/* ════════════════════════════════════════════════════════════════════
   RestauVert · blog-warmth.css
   Réchauffe et magnifie le blog — additif uniquement.
   Cible les classes existantes (.bm-*, .rv-blog-*) sans les modifier.
   ════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   ★ HERO BLOG : ambiance magazine premium
   ───────────────────────────────────────────── */
.bm-hero {
  position: relative;
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.10) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 162, 78, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0F3320 0%, #0A2615 100%) !important;
  overflow: hidden;
}
/* Texture grain chaude sur le hero */
.bm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.85  0 0 0 0 0.3  0 0 0 0.5 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.04;
  mix-blend-mode: screen;
}
.bm-hero .bm-punch {
  color: rgba(255, 253, 240, 0.92) !important;
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.15rem !important;
}

/* Pills filtre : plus chaleureuses */
.bm-pill {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(212, 168, 67, 0.25) !important;
  color: rgba(255, 253, 240, 0.85) !important;
  transition: all .25s cubic-bezier(.16, 1, .3, 1) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}
.bm-pill:hover {
  background: rgba(253, 224, 71, 0.12) !important;
  border-color: rgba(253, 224, 71, 0.5) !important;
  color: #fde047 !important;
  transform: translateY(-1px);
}
.bm-pill.is-active {
  background: linear-gradient(135deg, #fde047 0%, #d4a843 100%) !important;
  border-color: #fde047 !important;
  color: #0F3320 !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(253, 224, 71, 0.30);
}

/* Champ recherche : feeling magazine */
.bm-search {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(212, 168, 67, 0.3) !important;
  border-radius: 999px !important;
  padding: 4px 8px 4px 16px !important;
  transition: border-color .25s, background .25s !important;
}
.bm-search:focus-within {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(253, 224, 71, 0.5) !important;
}
.bm-search input {
  background: transparent !important;
  border: none !important;
  color: #fffdf8 !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  outline: none;
  flex: 1;
}
.bm-search input::placeholder {
  color: rgba(255, 253, 240, 0.5) !important;
  font-style: italic;
}

/* ─────────────────────────────────────────────
   ★ ARTICLE À LA UNE (.bm-featured) : magazine premium
   On garde le grid 2-cols MAIS uniquement à partir de 768px
   pour éviter tout chevauchement sur tablettes/petits écrans
   ───────────────────────────────────────────── */
.bm-featured {
  background: linear-gradient(135deg, #fffdf8 0%, #F7F2E6 100%) !important;
  border-radius: 24px !important;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 12px 40px rgba(13, 42, 26, 0.10),
    0 2px 6px rgba(13, 42, 26, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s !important;
  text-decoration: none !important;
  color: inherit !important;
  margin-bottom: 4rem;
  border: 1px solid rgba(212, 168, 67, 0.18);
  display: block;
}
@media (min-width: 768px) {
  .bm-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
  }
}
.bm-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(253, 224, 71, 0.10) 0%, transparent 60%);
  pointer-events: none;
}
.bm-featured:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(13, 42, 26, 0.16),
    0 8px 16px rgba(212, 168, 67, 0.18);
}
.bm-featured-visual {
  background: linear-gradient(135deg, #1a4e30 0%, #0F3320 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}
.bm-featured-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(253, 224, 71, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(201, 162, 78, 0.12) 0%, transparent 50%);
}
.bm-featured-visual i,
.bm-featured-visual svg {
  font-size: 7rem !important;
  color: #fde047 !important;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.bm-featured:hover .bm-featured-visual i,
.bm-featured:hover .bm-featured-visual svg {
  transform: scale(1.05) rotate(-3deg);
}
.bm-featured-body {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.bm-featured-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  background: linear-gradient(135deg, #fde047 0%, #d4a843 100%);
  color: #0F3320 !important;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.28);
}
.bm-featured-body h2,
.bm-featured-body .bm-featured-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
  color: #18291E !important;
  margin: 0 0 1rem !important;
}
.bm-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9a24e !important;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 1.5rem;
  transition: gap .25s ease;
}
.bm-featured:hover .bm-featured-cta {
  gap: 12px;
  color: #1a4e30 !important;
}

@media (max-width: 768px) {
  .bm-featured {
    grid-template-columns: 1fr;
  }
  .bm-featured-visual {
    padding: 2.5rem 1.5rem;
  }
  .bm-featured-visual i,
  .bm-featured-visual svg {
    font-size: 4.5rem !important;
  }
  .bm-featured-body {
    padding: 2rem 1.5rem;
  }
}

/* ─────────────────────────────────────────────
   ★ CARTES ARTICLE (.bm-card) : feeling magazine
   ───────────────────────────────────────────── */
.bm-card {
  background: #fffdf8 !important;
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.14) !important;
  box-shadow: 0 4px 18px rgba(13, 42, 26, 0.06);
  transition:
    transform .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s,
    border-color .35s !important;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
}
.bm-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 168, 67, 0.45) !important;
  box-shadow:
    0 18px 40px rgba(13, 42, 26, 0.12),
    0 4px 10px rgba(212, 168, 67, 0.12);
}

/* Cover de la carte : gradient chaud + emoji ou icône XL */
.bm-card-cover {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #1a4e30 0%, #0F3320 60%, #143A23 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bm-card-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(253, 224, 71, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(201, 162, 78, 0.10) 0%, transparent 50%);
  z-index: 0;
}
.bm-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.8  0 0 0 0.5 0'/></filter><rect width='100' height='100' filter='url(%23n)'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
}
.bm-card-emoji {
  font-size: 3.5rem !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.bm-card:hover .bm-card-emoji {
  transform: scale(1.1) rotate(-3deg);
}

/* Tag dans le body (pas absolute — le HTML le place dans .bm-card-body) */
.bm-card-tag {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 0 0.8rem 0 !important;
  background: rgba(253, 224, 71, 0.18) !important;
  color: #6B5217 !important;
  border: 1px solid rgba(212, 168, 67, 0.35) !important;
  border-radius: 999px !important;
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
}

/* Body de la carte */
.bm-card-body {
  padding: 1.5rem 1.4rem 1.2rem !important;
}
.bm-card-body h3,
.bm-card-title {
  font-family: 'Fraunces', Georgia, serif !important;
  font-size: 1.18rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.015em;
  color: #18291E !important;
  margin: 0 0 0.6rem !important;
}
.bm-card:hover .bm-card-body h3,
.bm-card:hover .bm-card-title {
  color: #1a4e30 !important;
}
.bm-card-excerpt {
  color: #4B5B53 !important;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
  margin: 0 0 1rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pied de carte : auteur + temps lecture */
.bm-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(212, 168, 67, 0.18);
}
.bm-card-read {
  color: #c9a24e !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bm-card-read::before {
  content: "⏱";
  font-size: 0.9em;
  opacity: 0.7;
}

/* Auteur mini (.rv-blog-author-mini) */
.rv-blog-author-mini {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #5A6B62 !important;
}
.rv-blog-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9a24e;
  display: inline-block;
}

/* ─────────────────────────────────────────────
   ★ Grid d'articles : SEULEMENT si pas de grid existante
   On ne force pas une nouvelle grille pour éviter de casser le layout
   ───────────────────────────────────────────── */
/* (Override retiré : on laisse la grille HTML d'origine) */

/* ─────────────────────────────────────────────
   ★ Article (page individuelle) — typo éditoriale
   ───────────────────────────────────────────── */
article .article-hero,
.article-hero {
  background: linear-gradient(180deg, #fffdf8 0%, #F7F2E6 100%) !important;
  padding: 5rem 0 3rem !important;
  position: relative;
}
article .article-hero::after,
.article-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #c9a24e, transparent);
}

article h1,
.article-hero h1 {
  font-family: 'Fraunces', Georgia, serif !important;
  letter-spacing: -0.03em !important;
  line-height: 1.1 !important;
}

article h2,
article h3 {
  margin-top: 2em;
  margin-bottom: 0.6em;
}
/* Trait or sous h2 (au lieu de ::before qui chevauche) */
article h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  background-image: linear-gradient(90deg, #c9a24e 0%, #fde047 60%, transparent 100%);
  background-position: 0 100%;
  background-size: 60px 2px;
  background-repeat: no-repeat;
}

/* Blockquote magazine */
article blockquote,
.rv-quote {
  background: linear-gradient(135deg, rgba(253, 224, 71, 0.06) 0%, rgba(201, 162, 78, 0.04) 100%);
  border-left: 4px solid #c9a24e;
  border-radius: 4px 12px 12px 4px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

/* ─────────────────────────────────────────────
   ★ Section "Articles connexes" / pagination
   ───────────────────────────────────────────── */
.rv-blog-related,
.bm-related {
  background: linear-gradient(180deg, #F7F2E6 0%, #fffdf8 100%);
  padding: 4rem 0;
  border-top: 1px solid rgba(212, 168, 67, 0.18);
  margin-top: 4rem;
}

/* ─────────────────────────────────────────────
   ★ Empty state filtre (aucun article) — design joli
   ───────────────────────────────────────────── */
.bm-empty,
.rv-blog-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #5A6B62;
}
.bm-empty::before {
  content: "📭";
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* Animations d'entrée retirées (peuvent causer chevauchement transitoire) */

/* ─────────────────────────────────────────────
   Reduced motion : on désactive tout
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bm-card, .bm-featured {
    animation: none !important;
    transition: none !important;
  }
}
