/* ═══════════════════════════════════════════════════════════════════════
   La Verte Feuille — additions.css
   Styles : cart drawer, product card v2, header v2, shop sidebar
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Topbar ─────────────────────────────────────────────────────────── */
.topbar { background: var(--green); color: rgba(255,255,255,.9); font-size: .75rem; padding: 8px 0; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar__text { flex: 1; text-align: center; }
.topbar__links { display: flex; gap: 12px; flex-shrink: 0; }
.topbar__links a { color: rgba(255,255,255,.8); text-decoration: none; white-space: nowrap; }
.topbar__links a:hover { color: #fff; }
.topbar__sep { opacity: .4; }
.topbar__close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 1.125rem; line-height: 1; padding: 2px 6px; flex-shrink: 0; }
.topbar__close:hover { color: #fff; }

/* ─── Trust bar ──────────────────────────────────────────────────────── */
.trust-bar { background: var(--cream); border-top: 1px solid var(--border); font-size: .75rem; }
.trust-bar__inner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 0; flex-wrap: wrap; }
.trust-bar__item { color: var(--text-muted); }
.trust-bar__sep { color: var(--border); }

/* ─── Header search panel ────────────────────────────────────────────── */
.header-search { position: relative; }
.header-search__toggle { background: var(--green-pale); border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--green); transition: background .15s; }
.header-search__toggle:hover { background: var(--green); color: #fff; }

/* Panel : caché par défaut via display:none, jamais via l'attribut hidden seul
   car display:flex écraserait [hidden]{display:none} */
.header-search__panel {
  display: none;            /* CACHÉ par défaut */
  position: absolute;
  top: calc(100% + 10px);
  right: -120px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px;
  z-index: 500;
  flex-direction: column;
  gap: 8px;
}
/* Ouvert via classe JS .is-open */
.header-search__panel.is-open {
  display: flex;            /* VISIBLE quand la classe est ajoutée */
}

/* Champ + bouton clear dans un wrapper relatif */
.header-search__input-wrap {
  position: relative;
  width: 100%;
}
.header-search__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 36px 10px 12px;
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.header-search__input:focus { border-color: var(--border-focus); }
.header-search__clear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
}
.header-search__clear:hover { color: var(--dark); }
.search-dropdown { max-height: 280px; overflow-y: auto; }
.search-dropdown__item { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: var(--radius-sm); text-decoration: none; color: var(--dark); transition: background .13s; }
.search-dropdown__item:hover { background: var(--green-pale); }
.search-dropdown__img { width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--green-pale); flex-shrink: 0; }
.search-dropdown__no-img { width: 44px; height: 44px; background: var(--green-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; }
.search-dropdown__name { font-size: .875rem; font-weight: 500; }
.search-dropdown__meta { font-size: .75rem; color: var(--green); }
.search-dropdown__price { font-size: .8125rem; font-weight: 500; color: var(--green); margin-left: auto; }
.search-dropdown__empty { padding: 16px; text-align: center; font-size: .875rem; color: var(--text-muted); }

/* ─── Wishlist header ────────────────────────────────────────────────── */
.header-wishlist { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--text-muted); text-decoration: none; transition: border-color .15s, color .15s; }
.header-wishlist:hover { border-color: var(--green); color: var(--green); }
.header-wishlist__count { position: absolute; top: -4px; right: -4px; background: var(--gold); color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: .625rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ─── Cart Drawer ────────────────────────────────────────────────────── */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cart-drawer:not([hidden]) { pointer-events: all; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .28s ease; }
.cart-drawer:not([hidden]) .cart-drawer__overlay { opacity: 1; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 95vw;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.cart-drawer:not([hidden]) .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--green); color: #fff; }
.cart-drawer__title { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; }
.cart-drawer__count { background: rgba(255,255,255,.2); border-radius: 10px; padding: 1px 8px; font-size: .75rem; }
.cart-drawer__close { background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.25rem; cursor: pointer; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; line-height: 1; }
.cart-drawer__close:hover { background: rgba(255,255,255,.3); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 0; }
.cart-drawer__item { display: flex; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); position: relative; align-items: flex-start; }
.cart-drawer__item-img { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; background: var(--green-pale); flex-shrink: 0; }
.cart-drawer__item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer__item-info { flex: 1; }
.cart-drawer__item-name { font-size: .875rem; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.cart-drawer__item-meta { font-size: .75rem; color: var(--green); margin-bottom: 8px; }
.cart-drawer__item-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer__item-qty { display: flex; align-items: center; gap: 8px; background: var(--cream); border-radius: 20px; padding: 3px 8px; }
.cart-drawer__qty-btn { background: none; border: none; cursor: pointer; color: var(--green); font-size: 1rem; line-height: 1; padding: 0 2px; font-weight: 500; }
.cart-drawer__qty-btn:hover { color: var(--green-hover); }
.cart-drawer__item-qty span { font-size: .875rem; font-weight: 500; min-width: 18px; text-align: center; }
.cart-drawer__item-price { font-size: .875rem; font-weight: 600; color: var(--green); }
.cart-drawer__item-remove { background: none; border: none; cursor: pointer; color: var(--text-light); font-size: 1.25rem; line-height: 1; padding: 0; transition: color .13s; flex-shrink: 0; align-self: flex-start; }
.cart-drawer__item-remove:hover { color: #E53935; }

.cart-drawer__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 60px 20px; text-align: center; color: var(--text-muted); flex: 1; }
.cart-drawer__empty-icon { font-size: 3rem; }

.cart-drawer__footer { border-top: 1px solid var(--border); padding: 16px 20px; background: #fff; }
.cart-drawer__freeship { margin-bottom: 12px; font-size: .8125rem; color: var(--text-muted); }
.cart-drawer__freeship--ok { color: var(--green); font-weight: 500; font-size: .875rem; margin-bottom: 12px; }
.cart-drawer__freeship-bar { height: 4px; background: var(--border); border-radius: 2px; margin-bottom: 6px; }
.cart-drawer__freeship-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width .3s ease; }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: center; font-size: 1.0625rem; font-weight: 600; color: var(--green); padding: 10px 0; border-top: 1px solid var(--border); margin-bottom: 12px; }
.cart-drawer__coupon { display: flex; gap: 8px; margin-bottom: 12px; }
.cart-drawer__coupon-input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: .8125rem; font-family: inherit; outline: none; }
.cart-drawer__coupon-input:focus { border-color: var(--border-focus); }

/* ─── Product Card v2 ────────────────────────────────────────────────── */
.product-card__no-img { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: var(--green-pale); }
.product-card__meta-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.product-card__cbd { font-size: .75rem; font-weight: 500; color: var(--green); background: var(--green-pale); border-radius: 4px; padding: 1px 6px; }
.product-card__origin { font-size: .6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.product-card__name a { color: var(--dark); text-decoration: none; font-size: .9375rem; font-weight: 500; line-height: 1.3; }
.product-card__name a:hover { color: var(--green); }
.product-card__rating { display: flex; align-items: center; gap: 4px; margin: 4px 0 8px; font-size: .75rem; }
.product-card__rev-count { color: var(--text-muted); }

/* Tarif dégressif sur la card */
.product-card__pricing-block { margin-top: auto; }
.product-card__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.product-card__price { font-size: 1.125rem; font-weight: 600; color: var(--green); }
.product-card__price-old { font-size: .8125rem; color: var(--text-light); text-decoration: line-through; }
.product-card__unit { font-size: .75rem; color: var(--text-muted); }

.product-card__degressive { background: var(--green-pale); border-radius: var(--radius-sm); padding: 8px; }
.dg-label { font-size: .6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.dg-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.dg-tier { text-align: center; background: #fff; border-radius: 4px; padding: 4px 2px; border: 1px solid var(--border); }
.dg-qty { display: block; font-size: .625rem; color: var(--text-muted); }
.dg-price { display: block; font-size: .75rem; font-weight: 600; color: var(--green); }

/* Badge dark */
.badge--dark { background: var(--dark); color: #fff; }

/* Footer card */
.product-card__footer { padding: 0 14px 14px; }
.product-card__add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; background: var(--green-pale); color: var(--green); border: 1.5px solid transparent; border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 500; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; text-decoration: none; }
.product-card__add:hover { background: var(--green); color: #fff; }
.product-card__add.is-loading { opacity: .6; cursor: wait; }
.product-card__add.is-added { background: var(--green); color: #fff; }
.product-card__add--out { opacity: .65; cursor: default; }
.product-card__add--out:hover { background: var(--green-pale); color: var(--green); }

/* Wishlist active */
.product-card__wishlist.is-active { background: var(--green); color: #fff; border-color: var(--green); }

/* Out of stock card */
.product-card--out-of-stock .product-card__image { opacity: .7; }

/* ─── Shop Sidebar ───────────────────────────────────────────────────── */
.sidebar-cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-cat-list__item { }
.sidebar-cat-list__item > a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; color: var(--dark); transition: background .13s, color .13s; }
.sidebar-cat-list__item > a:hover, .sidebar-cat-list__item > a.is-active { background: var(--green-pale); color: var(--green); font-weight: 500; }
.sidebar-cat-list__count { background: var(--green-pale); color: var(--green); border-radius: 10px; padding: 1px 7px; font-size: .6875rem; }
.sidebar-cat-list--sub { padding-left: 12px; }
.sidebar-cat-list--sub a { font-size: .8125rem; }

/* Shop filter toggle (mobile) */
.shop-filter-toggle { display: none; margin-bottom: 16px; }
.shop-filter-toggle__count { background: var(--green); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: .6875rem; margin-left: 4px; }
.shop-sidebar__close { display: none; }

/* ─── Archive / no results ───────────────────────────────────────────── */
.no-products-found { text-align: center; padding: 60px 0; }
.no-products-found__icon { font-size: 3rem; margin-bottom: 12px; }
.no-products-found h2 { font-size: 1.375rem; margin-bottom: 8px; }
.no-products-found p { color: var(--text-muted); margin-bottom: 20px; }
.no-filter-results { text-align: center; padding: 32px; background: var(--cream); border-radius: var(--radius-md); }
.archive-seo-text { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text-muted); line-height: 1.75; max-width: 720px; }
.shop-pagination { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0; }

/* ─── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .shop-filter-toggle { display: flex; }
  .shop-sidebar { position: fixed; top: 0; left: -300px; width: 280px; bottom: 0; z-index: 600; background: #fff; padding: 20px; overflow-y: auto; box-shadow: 4px 0 16px rgba(0,0,0,.1); transition: left .28s ease; }
  .shop-sidebar.is-open { left: 0; }
  .shop-sidebar__close { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; background: none; border: 1px solid var(--border); padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: .875rem; }
  .cart-drawer__panel { width: 100%; max-width: 100vw; }
}

@media (max-width: 768px) {
  .trust-bar { display: none; }
  .topbar__links { display: none; }
  .header-search__panel { right: -80px; width: 280px; }
  .dg-tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .header-wishlist { display: none; }
  .header-search__panel { left: 0; right: 0; width: auto; }
}


/* ═══════════════════════════════════════════════════════════════════════
   BLOG / NEWS — Styles site d'information
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── Breaking news bar ──────────────────────────────────────────────── */
.news-breaking-bar {
  background: var(--dark);
  color: #fff;
  font-size: .75rem;
  padding: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--green);
}
.news-breaking-bar__inner {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 0;
}
.news-breaking-bar__label {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.news-breaking-bar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: breakingPulse 1.4s ease-in-out infinite;
}
@keyframes breakingPulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}
.news-breaking-bar__track-wrap {
  flex: 1; min-width: 0; overflow: hidden;
}
.news-breaking-bar__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.news-breaking-bar__track:hover { animation-play-state: paused; }
.news-breaking-bar__item {
  padding: 0 28px 0 0;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  white-space: nowrap;
  font-size: .75rem;
  letter-spacing: .01em;
  transition: color .15s;
}
.news-breaking-bar__item::before { content: '·'; margin-right: 28px; color: var(--green); }
.news-breaking-bar__item:first-child::before { display: none; margin: 0; }
.news-breaking-bar__item:hover { color: #fff; }
.news-breaking-bar__date {
  flex-shrink: 0;
  padding: 0 16px;
  color: rgba(255,255,255,.4);
  font-size: .6875rem;
  border-left: 1px solid rgba(255,255,255,.1);
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Masthead — ajouts ──────────────────────────────────────────────── */
.news-masthead__meta {
  text-align: right;
  flex-shrink: 0;
}
.news-masthead__date-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 4px;
}
.news-masthead__date-day {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.news-masthead__date-rest {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Hero éditorial (UNE + stack + flash) ───────────────────────────── */
.news-hero-editorial {
  display: grid;
  grid-template-columns: 1fr 320px 260px;
  grid-template-rows: auto auto;
  gap: 3px;
  background: var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* Grande UNE */
.news-une {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
}
.news-une__link { display: block; height: 100%; text-decoration: none; }
.news-une__img-wrap {
  height: 100%;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.news-une__img-wrap--noimg { background: linear-gradient(135deg, #1a3a1a, #2d7a4f); }
.news-une__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.news-une:hover .news-une__img-wrap img { transform: scale(1.04); }
.news-une__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.news-une__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-une__bottom { }
.news-une__title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.news-une__excerpt {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* Stack secondaire */
.news-stack {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--border);
}
.news-stack__item { flex: 1; background: var(--white); overflow: hidden; }
.news-stack__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.news-stack__img {
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.news-stack__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-stack__item:hover .news-stack__img img { transform: scale(1.05); }
.news-stack__body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-stack__title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin: 0;
  transition: color .15s;
}
.news-stack__item:hover .news-stack__title { color: var(--green); }
.news-stack__excerpt { font-size: .8125rem; color: var(--text-muted); line-height: 1.55; margin: 0; flex: 1; }

/* Colonne flash info -->
.news-flash-col {
  grid-column: 3;
  grid-row: 1 / 3;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.news-flash-col__header {
  background: var(--dark);
  padding: 10px 14px;
}
.news-flash-col__badge {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
.news-flash-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px 0;
}
.news-flash-item:last-of-type { padding-bottom: 12px; }
.news-flash-item__img-wrap {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.news-flash-item__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-flash-item__body { flex: 1; min-width: 0; }
.news-flash-item__cat {
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green);
  display: block;
  margin-bottom: 3px;
}
.news-flash-item__title {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.news-flash-item__title a {
  color: var(--dark);
  text-decoration: none;
  transition: color .15s;
}
.news-flash-item__title a:hover { color: var(--green); }
.news-flash-item__date { font-size: .625rem; color: var(--text-muted); display: block; margin-top: 4px; }
.news-flash-item__sep { border: none; border-top: 1px solid var(--border); margin: 8px 14px 0; }

/* ─── Pills catégorie ────────────────────────────────────────────────── */
.news-pill {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 8px;
  border-radius: 3px;
}
.news-pill--white { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.news-pill--green { background: var(--green-pale); color: var(--green); }

/* ─── news-card footer (vues) ────────────────────────────────────────── */
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.news-card__views { font-size: .6875rem; color: var(--text-muted); }

/* ─── Section thèmes ─────────────────────────────────────────────────── */
.news-topics-section { padding: 32px 0 48px; background: var(--cream); border-top: 1px solid var(--border); margin-top: 48px; }
.news-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.news-topic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  background: #fff;
}
.news-topic-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); border-color: var(--green); }
.news-topic-card__emoji { font-size: 1.875rem; }
.news-topic-card__name { font-weight: 700; font-size: .875rem; color: var(--dark); text-align: center; }
.news-topic-card__count { font-size: .6875rem; color: var(--text-muted); }
/* Couleurs par type */
.news-topic-card--guide     { background: #e8f5e9; }
.news-topic-card--actualite { background: #e3f2fd; }
.news-topic-card--science   { background: #f3e5f5; }
.news-topic-card--legalite  { background: #fff8e1; }
.news-topic-card--bien-etre { background: #fce4ec; }
.news-topic-card--tutoriel  { background: #e0f2f1; }

/* ─── Bandeau rubrique (single.php) ─────────────────────────────────── */
.article-rubrique-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.article-rubrique-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.article-rubrique {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s;
}
.article-rubrique:hover { background: var(--green-hover); }
.breadcrumb--inline { margin-left: auto; }

/* ─── Byline auteur (single.php) ─────────────────────────────────────── */
.single-article__byline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--green);
  margin-bottom: 0;
}
.single-article__author-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark);
  flex-shrink: 0;
}
.single-article__author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--green);
  object-fit: cover;
}
.single-article__author-name {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--dark);
}
.single-article__byline-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  flex: 1;
}
.single-article__byline-sep { color: var(--border); }
.single-article__updated { color: var(--green); font-style: italic; }
.single-article__read-time,
.single-article__views { white-space: nowrap; }

/* Chapeau / lead */
.single-article__lead {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 400;
  border-left: 3px solid var(--green);
  padding: 10px 18px;
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 16px 0 0;
  font-style: italic;
}

/* ─── Responsive hero éditorial ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .news-hero-editorial {
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto auto;
  }
  .news-flash-col { display: none; }
  .news-une { grid-column: 1; grid-row: 1; }
  .news-stack { grid-column: 2; grid-row: 1; }
}
@media (max-width: 768px) {
  .news-hero-editorial { grid-template-columns: 1fr; }
  .news-une { grid-row: 1; }
  .news-une__img-wrap { min-height: 280px; }
  .news-une__title { font-size: 1.375rem; }
  .news-stack { grid-column: 1; grid-row: 2; flex-direction: row; }
  .news-stack__img { height: 120px; }
  .news-breaking-bar__date { display: none; }
  .single-article__byline { flex-direction: column; gap: 10px; }
  .breadcrumb--inline { margin-left: 0; }
  .news-masthead__meta { display: none; }
  .news-topics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .news-stack { flex-direction: column; }
  .news-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .single-article__share { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════════════
   CHATBOT CBD — La Verte Feuille
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Variables locales ── */
.lvf-chat-widget {
  --chat-green:    #2D5A27;
  --chat-green-lt: #e8f4e6;
  --chat-radius:   16px;
  --chat-shadow:   0 8px 32px rgba(0,0,0,.15);
  --chat-border:   #e0e8dd;
  --chat-bg:       #ffffff;
  --chat-footer:   #f7faf6;
  --chat-text:     #2e3a2e;
  --chat-muted:    #8a9e87;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
}

/* ── Bouton flottant ── */
.lvf-chat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chat-green);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,90,39,.35);
  transition: transform .15s, box-shadow .15s, background .15s;
  font-size: 14px;
  font-weight: 500;
}
.lvf-chat-toggle:hover  { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(45,90,39,.4); background: #235020; }
.lvf-chat-toggle:active { transform: translateY(0); }
.lvf-chat-toggle__label { font-size: .875rem; }
.lvf-chat-toggle__close { font-size: 16px; line-height: 1; }

/* ── Boîte principale ── */
.lvf-chat-box {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 360px;
  max-height: 560px;
  display: flex;
  flex-direction: column;
  background: var(--chat-bg);
  border: 1px solid var(--chat-border);
  border-radius: var(--chat-radius);
  box-shadow: var(--chat-shadow);
  overflow: hidden;
  animation: lvfChatSlideIn .2s ease;
}
.lvf-chat-box[hidden] { display: none; }

@keyframes lvfChatSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Header ── */
.lvf-chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--chat-green);
  color: #fff;
  flex-shrink: 0;
}
.lvf-chat-header__avatar {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.lvf-chat-header__info { flex: 1; min-width: 0; }
.lvf-chat-header__name  { font-size: .875rem; font-weight: 600; line-height: 1.2; }
.lvf-chat-header__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .75rem;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}
.lvf-chat-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7fe07f;
  box-shadow: 0 0 0 2px rgba(127,224,127,.3);
  animation: lvfPulse 2.5s ease-in-out infinite;
}
@keyframes lvfPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(127,224,127,.3); }
  50%      { box-shadow: 0 0 0 5px rgba(127,224,127,.1); }
}
.lvf-chat-header__action,
.lvf-chat-header__close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  flex-shrink: 0;
}
.lvf-chat-header__action:hover,
.lvf-chat-header__close:hover { background: rgba(255,255,255,.28); }
.lvf-chat-header__close { font-size: 14px; padding: 5px 8px; }

/* ── Zone de messages ── */
.lvf-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.lvf-chat-messages::-webkit-scrollbar { width: 4px; }
.lvf-chat-messages::-webkit-scrollbar-thumb { background: var(--chat-border); border-radius: 4px; }

/* ── Bulles ── */
.lvf-chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.lvf-chat-msg--user { align-self: flex-end; align-items: flex-end; }
.lvf-chat-msg--bot  { align-self: flex-start; align-items: flex-start; }

.lvf-chat-msg__bubble {
  padding: 9px 13px;
  border-radius: 14px;
  line-height: 1.55;
  font-size: .8125rem;
  word-break: break-word;
}
.lvf-chat-msg--user .lvf-chat-msg__bubble {
  background: var(--chat-green);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.lvf-chat-msg--bot .lvf-chat-msg__bubble {
  background: var(--chat-green-lt);
  color: var(--chat-text);
  border-bottom-left-radius: 4px;
}
.lvf-chat-msg__bubble a { color: var(--chat-green); font-weight: 500; }
.lvf-chat-msg--user .lvf-chat-msg__bubble a { color: #b3ffb3; }
.lvf-chat-msg__bubble ul  { margin: 6px 0 0; padding-left: 18px; }
.lvf-chat-msg__bubble li  { margin-bottom: 3px; }

/* Timestamp */
.lvf-chat-msg__time {
  font-size: .6875rem;
  color: var(--chat-muted);
  margin-top: 3px;
  padding: 0 2px;
}

/* ── Typing indicator ── */
.lvf-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--chat-green-lt);
  border-radius: 14px 14px 14px 4px;
}
.lvf-typing span {
  display: block;
  width: 7px; height: 7px;
  background: var(--chat-green);
  border-radius: 50%;
  opacity: .5;
  animation: lvfTypingBounce 1.2s ease-in-out infinite;
}
.lvf-typing span:nth-child(2) { animation-delay: .18s; }
.lvf-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes lvfTypingBounce {
  0%,60%,100% { transform: translateY(0); opacity: .5; }
  30%          { transform: translateY(-5px); opacity: 1; }
}

/* ── Retry button ── */
.lvf-retry-btn {
  display: inline-block;
  margin-top: 6px;
  background: var(--chat-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .75rem;
  cursor: pointer;
  transition: background .15s;
}
.lvf-retry-btn:hover { background: #235020; }

/* ── Suggestions ── */
.lvf-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 4px;
  flex-shrink: 0;
}
.lvf-chat-suggestions--post {
  padding: 4px 0 0;
  width: 100%;
}
.lvf-chat-suggestion {
  background: #fff;
  border: 1.5px solid var(--chat-green);
  color: var(--chat-green);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .75rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
  line-height: 1.4;
}
.lvf-chat-suggestion:hover {
  background: var(--chat-green);
  color: #fff;
}

/* ── Zone de saisie ── */
.lvf-chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--chat-border);
  background: var(--chat-bg);
  flex-shrink: 0;
}
.lvf-chat-input {
  flex: 1;
  border: 1.5px solid var(--chat-border);
  border-radius: 10px;
  padding: 8px 11px;
  font-size: .8125rem;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.45;
  color: var(--chat-text);
  background: #fafaf8;
  transition: border-color .15s;
  max-height: 96px;
  overflow-y: auto;
}
.lvf-chat-input:focus { border-color: var(--chat-green); background: #fff; }
.lvf-chat-input::placeholder { color: var(--chat-muted); }

.lvf-chat-send {
  background: var(--chat-green);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.lvf-chat-send:hover   { background: #235020; }
.lvf-chat-send:active  { transform: scale(.93); }
.lvf-chat-send:disabled { background: #b3ccb0; cursor: not-allowed; }

/* ── Barre méta (compteur) ── */
.lvf-chat-meta-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0 12px 6px;
  background: var(--chat-bg);
  flex-shrink: 0;
}
.lvf-char-count {
  font-size: .6875rem;
  color: var(--chat-muted);
}

/* ── Footer ── */
.lvf-chat-footer {
  padding: 6px 12px 10px;
  text-align: center;
  font-size: .6875rem;
  color: var(--chat-muted);
  background: var(--chat-footer);
  border-top: 1px solid var(--chat-border);
  flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .lvf-chat-widget { bottom: 16px; right: 12px; left: 12px; }
  .lvf-chat-box    { width: 100%; right: 0; left: 0; position: fixed; bottom: 76px; max-height: calc(100dvh - 92px); border-radius: 16px 16px 0 0; }
  .lvf-chat-toggle { border-radius: 28px; position: fixed; bottom: 16px; right: 12px; }
}
