﻿/* ============================================================
   COMPONENTS.CSS — Composants custom Kezas Univers
   Chargé après style.css pour compléter/étendre le template.
   ============================================================ */

/* ============================================================
   MODULE 4 — TIROIR PANIER (slide-out)
   ============================================================ */
.cart-drawer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cart-drawer.open { pointer-events: all; }

.cart-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: background .35s ease;
}
.cart-drawer.open .cart-drawer__overlay { background: rgba(0,0,0,.52); }

.cart-drawer__panel {
  position: absolute; top: 0; right: -420px;
  width: 400px; max-width: 100vw; height: 100%;
  background: #fff; display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
  transition: right .35s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open .cart-drawer__panel { right: 0; }

/* Header drawer */
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
}
.cart-drawer__title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #111; margin: 0; }
.cart-drawer__count { background: #F7B600; color: #fff; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 50px; min-width: 24px; text-align: center; }
.cart-drawer__close { width: 36px; height: 36px; border: none; background: #f5f5f5; border-radius: 50%; cursor: pointer; font-size: 16px; color: #555; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.cart-drawer__close:hover { background: #F7B600; color: #fff; }

/* Body */
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-drawer__loading { display: flex; justify-content: center; padding: 48px; color: #F7B600; font-size: 28px; }
.cart-drawer__empty { text-align: center; padding: 60px 20px; }
.cart-drawer__empty i { font-size: 52px; color: #e0e0e0; display: block; margin-bottom: 14px; }
.cart-drawer__empty p { color: #aaa; font-size: 14px; }

/* Items */
.cart-drawer__item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f4f4f4; }
.cart-drawer__item:last-child { border-bottom: none; }
.cart-drawer__item-img { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.cart-drawer__item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer__item-info { flex: 1; min-width: 0; }
.cart-drawer__item-name { font-size: 13px; font-weight: 600; color: #111; margin: 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-drawer__item-qty-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cart-drawer__qty-btn { width: 28px; height: 28px; border: 1px solid #e0e0e0; background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 700; color: #555; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.cart-drawer__qty-btn:hover { background: #F7B600; color: #fff; border-color: #F7B600; }
.cart-drawer__qty-btn:disabled { opacity: .5; cursor: not-allowed; }
.cart-drawer__qty-value { font-size: 14px; font-weight: 700; color: #111; min-width: 20px; text-align: center; }
.cart-drawer__item-price { font-size: 14px; font-weight: 700; color: #F7B600; flex-shrink: 0; }
.cart-drawer__item-remove { background: none; border: none; color: #ddd; cursor: pointer; font-size: 14px; padding: 4px; margin-left: 4px; transition: color .2s; flex-shrink: 0; }
.cart-drawer__item-remove:hover { color: #e74c3c; }

/* Footer */
.cart-drawer__footer { padding: 20px 24px; border-top: 1px solid #f0f0f0; flex-shrink: 0; background: #fafafa; }
.cart-drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-drawer__total-label { font-size: 15px; font-weight: 700; color: #111; }
.cart-drawer__total-value { font-size: 22px; font-weight: 800; color: #F7B600; }
.cart-drawer__actions { display: flex; flex-direction: column; gap: 10px; }
.cart-drawer__btn-view { display: block; text-align: center; font-size: 13px; color: #aaa; text-decoration: none; padding: 8px; border-radius: 8px; transition: background .2s, color .2s; }
.cart-drawer__btn-view:hover { background: #f0f0f0; color: #555; }


/* ============================================================
   MODULE 5 — MODAL AVIS PRODUIT
   ============================================================ */
.review-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.review-modal.open { pointer-events: all; opacity: 1; }

.review-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }

.review-modal__dialog {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px; padding: 36px;
  width: 100%; max-width: 500px;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  transform: scale(.95) translateY(12px);
  transition: transform .3s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh; overflow-y: auto;
}
.review-modal.open .review-modal__dialog { transform: scale(1) translateY(0); }

.review-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; background: #f5f5f5; border: none;
  border-radius: 50%; cursor: pointer; font-size: 15px; color: #555;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.review-modal__close:hover { background: #F7B600; color: #fff; }

.review-modal__title   { font-size: 20px; font-weight: 700; color: #111; margin: 0 0 4px; }
.review-modal__product { font-size: 13px; color: #aaa; margin: 0 0 24px; }

/* Sélecteur d'étoiles */
.star-selector { display: flex; gap: 4px; margin-bottom: 8px; }
.star-selector__star {
  background: none; border: none; font-size: 34px;
  color: #e0e0e0; cursor: pointer; padding: 0; line-height: 1;
  transition: color .15s, transform .15s;
}
.star-selector__star.hovered,
.star-selector__star.selected { color: #F7B600; }
.star-selector__star:hover { transform: scale(1.18); }
.star-selector__hint { font-size: 13px; color: #aaa; margin-bottom: 20px; min-height: 18px; }

/* Succès modal */
.review-modal__success { text-align: center; padding: 20px 0; }
.review-modal__success i { font-size: 52px; color: #27ae60; display: block; margin-bottom: 16px; }
.review-modal__success h3 { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 8px; }
.review-modal__success p { font-size: 14px; color: #888; }

/* ============================================================
   MODULE 1 — FOOTER OVERLAP FIX
   Cause réelle : margin-top: -100px + padding: 220px sur .footer2-main.style1
   ============================================================ */
.footer2-main.style1 {
  margin-top: 0 !important;
  padding-top: 72px !important;
}
@media (max-width: 1199px) { .footer2-main.style1 { padding-top: 60px !important; } }
@media (max-width: 991px)  { .footer2-main.style1 { padding-top: 48px !important; } }
@media (max-width: 767px)  { .footer2-main.style1 { padding-top: 40px !important; } }


/* ============================================================
   MODULE 2 — TOAST NOTIFICATION PANIER
   ============================================================ */
.cart-toast {
  position: fixed;
  top: -120px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  padding: 16px 20px;
  min-width: 300px;
  max-width: 380px;
  border-left: 4px solid #27ae60;
  transition: top .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-toast.visible { top: 88px; }
.cart-toast__icon  { font-size: 22px; color: #27ae60; flex-shrink: 0; margin-top: 1px; }
.cart-toast__body  { flex: 1; min-width: 0; }
.cart-toast__title { font-size: 14px; font-weight: 700; color: #111; margin: 0 0 4px; line-height: 1.4; }
.cart-toast__link  { font-size: 12px; color: #F7B600; font-weight: 600; text-decoration: none; }
.cart-toast__link:hover { color: #F7B600; opacity: .75; }
.cart-toast__close { background: none; border: none; color: #ccc; cursor: pointer; font-size: 16px; padding: 0; line-height: 1; transition: color .2s; flex-shrink: 0; }
.cart-toast__close:hover { color: #333; }
@media (max-width: 575px) { .cart-toast { right: 12px; left: 12px; min-width: unset; max-width: unset; } }


/* ============================================================
   MODULE 3 — CARTE PRODUIT — Design premium Kezas Univers
   ============================================================ */

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  transition: transform .32s cubic-bezier(.25,.8,.25,1),
              box-shadow .32s cubic-bezier(.25,.8,.25,1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .13);
}

/* ── Média (image) ── */
.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #FFF8E7 0%, #f5f0f8 100%);
  flex-shrink: 0;
}

.product-card__img-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.25,.8,.25,1);
  display: block;
}

.product-card:hover .product-card__media img { transform: scale(1.06); }

/* Overlay "Voir le produit" au centre au hover */
.product-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background .3s ease;
  pointer-events: none;
}

.product-card:hover .product-card__overlay {
  background: rgba(0, 0, 0, .12);
  pointer-events: all;
}

.product-card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px) scale(.94);
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  pointer-events: none;
}

.product-card:hover .product-card__overlay-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.product-card__overlay-btn:hover { background: #F7B600; color: #fff; }

/* ── Badge ── */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  background: #F7B600;
  pointer-events: none;
  z-index: 2;
}

.product-card__badge--sale { background: #e74c3c; }

/* ── Animation pop du cœur ── */
@keyframes heartPop {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.55); }
  55%  { transform: scale(.88); }
  80%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.fav--popping { animation: heartPop .42s cubic-bezier(.36,.07,.19,.97) forwards; will-change: transform; }

/* Cœur actif (produit déjà en wishlist) */
.product-card__fav.fav--active,
.product-info__wishlist-btn.fav--active {
  background: #F7B600 !important;
  color: #fff !important;
}

/* Cœur "déjà dans la liste" (déjà dedans mais pas cliquer) */
.product-card__fav.fav--already {
  background: rgba(247,182,0,.12);
  color: #F7B600;
}

/* ── Bouton wishlist (♡) — toujours visible ── */
.product-card__fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  transition: background .2s, color .2s, transform .2s;
}

.product-card__fav:hover {
  background: #F7B600;
  color: #fff;
  transform: scale(1.12);
}

/* Bouton supprimer de la wishlist (top-left, rouge) */
.product-card__remove {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e74c3c;
  font-size: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: background .2s, color .2s, transform .2s;
}
.product-card__remove:hover { background: #e74c3c; color: #fff; transform: scale(1.12); }

/* ── Informations produit ── */
.product-card__info {
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.product-card__cat {
  font-size: 10px;
  font-weight: 800;
  color: #F7B600;
  text-transform: uppercase;
  letter-spacing: .7px;
  text-decoration: none;
  transition: opacity .2s;
}
.product-card__cat:hover { opacity: .7; }

.product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0;
}
.product-card__name a { color: inherit; text-decoration: none; transition: color .2s; }
.product-card__name a:hover { color: #F7B600; }

.product-card__desc {
  font-size: 12.5px;
  color: #aaa;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  margin-top: 2px;
}
.product-card__rating .stars { color: #F7B600; font-size: 11px; letter-spacing: 1px; }
.product-card__rating-score   { font-weight: 700; color: #555; }
.product-card__rating-count   { color: #ccc; }

/* ── Actions : prix + bouton panier ── */
.product-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 18px;
  border-top: 1px solid #f4f4f4;
  gap: 12px;
  margin-top: auto;
}

.product-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.product-card__price {
  font-size: 16px;
  font-weight: 800;
  color: #111;
  line-height: 1;
  white-space: nowrap;
}

.product-card__price-promo { color: #F7B600; }

.product-card__price-was {
  font-size: 11px;
  color: #ccc;
  text-decoration: line-through;
  line-height: 1;
}

/* Bouton panier : sombre → rose au hover */
.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a1a1a;
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .22s ease, transform .18s ease, box-shadow .22s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

.product-card__cart-btn i { font-size: 13px; }

.product-card__cart-btn:hover {
  background: #F7B600;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(247, 182, 0, .35);
}

.product-card__cart-btn.added {
  background: #27ae60;
  box-shadow: 0 4px 14px rgba(39, 174, 96, .3);
}

.product-card__cart-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Rupture de stock */
.product-card__stock-out {
  font-size: 11px;
  font-weight: 600;
  color: #e74c3c;
  background: #ffebee;
  padding: 8px 14px;
  border-radius: 50px;
  white-space: nowrap;
}


/* ============================================================
   PANIER
   ============================================================ */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: 12px; font-weight: 700; color: #aaa;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 0 16px 14px; border-bottom: 2px solid #f0f0f0;
}
.cart-item td { padding: 20px 16px; border-bottom: 1px solid #f8f8f8; vertical-align: middle; }
.cart-item:last-child td { border-bottom: none; }
.cart-item__img-wrap { display: flex; align-items: center; gap: 16px; }
.cart-item__img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #f5f5f5; }
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-size: 14px; font-weight: 600; color: #111; text-decoration: none; display: block; }
.cart-item__cat  { font-size: 12px; color: #aaa; margin-top: 3px; }
.cart-item__price-unit { font-size: 14px; color: #888; }
.cart-item__qty { display: inline-flex; align-items: center; border: 1.5px solid #e8e8e8; border-radius: 50px; overflow: hidden; }
.cart-item__qty-btn { width: 36px; height: 36px; border: none; background: transparent; font-size: 16px; font-weight: 700; color: #555; cursor: pointer; transition: background .15s, color .15s; }
.cart-item__qty-btn:hover { background: #F7B600; color: #fff; }
.cart-item__qty-input { width: 40px; text-align: center; border: none; border-left: 1.5px solid #e8e8e8; border-right: 1.5px solid #e8e8e8; font-size: 14px; font-weight: 700; color: #111; height: 36px; -moz-appearance: textfield; appearance: textfield; outline: none; }
.cart-item__qty-input::-webkit-inner-spin-button { display: none; }
.cart-item__subtotal { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; }
.cart-item__remove { color: #ddd; font-size: 16px; background: none; border: none; cursor: pointer; padding: 6px; transition: color .2s; text-decoration: none; display: inline-block; }
.cart-item__remove:hover { color: #e74c3c; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty__icon { font-size: 60px; color: #e0e0e0; display: block; margin-bottom: 20px; }
.cart-empty__title { font-size: 22px; font-weight: 700; color: #333; margin-bottom: 10px; }
.cart-empty__text  { color: #aaa; margin-bottom: 28px; }
.cart-summary-card { background: #fff; border: 1.5px solid #f0f0f0; border-radius: 16px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,.06); position: sticky; top: 110px; }
.cart-summary-card__title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 20px; }
.cart-summary-line { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 10px 0; border-bottom: 1px solid #f4f4f4; }
.cart-summary-line:last-of-type { border: none; }
.cart-summary-line__label { color: #888; }
.cart-summary-line__value { font-weight: 600; color: #111; }
.cart-summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 0; margin-top: 8px; }
.cart-summary-total__label { font-size: 16px; font-weight: 700; color: #111; }
.cart-summary-total__value { font-size: 22px; font-weight: 800; color: #F7B600; }
@media (max-width: 767px) {
  .cart-table, .cart-table thead, .cart-table tbody, .cart-table tr { display: block; }
  .cart-table thead { display: none; }
  .cart-item td { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: none; }
  .cart-item td:first-child { padding-top: 16px; }
  .cart-item td:last-child  { padding-bottom: 16px; border-bottom: 1.5px solid #f0f0f0; }
  .cart-table tbody tr { border: 1.5px solid #f0f0f0; border-radius: 12px; margin-bottom: 12px; }
}

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-card { background: #fff; border: 1.5px solid #f0f0f0; border-radius: 16px; padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.06); margin-bottom: 24px; }
.checkout-card__title { font-size: 17px; font-weight: 700; color: #111; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: center; gap: 10px; }
.checkout-card__title i { color: #F7B600; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-method { position: relative; }
.payment-method input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.payment-method__card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #eee; border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s; font-size: 13px; font-weight: 600; color: #555; }
.payment-method__icon { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.payment-method input:checked + .payment-method__card { border-color: #F7B600; background: rgba(247,182,0,.04); color: #F7B600; }
.payment-method:hover .payment-method__card { border-color: rgba(247,182,0,.4); }
.checkout-order-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f4f4f4; }
.checkout-order-item:last-child { border: none; }
.checkout-order-item__img { width: 56px; height: 56px; border-radius: 8px; background: #f5f5f5; overflow: hidden; flex-shrink: 0; }
.checkout-order-item__img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-order-item__name  { font-size: 13px; font-weight: 600; color: #111; }
.checkout-order-item__qty   { font-size: 12px; color: #aaa; margin-top: 2px; }
.checkout-order-item__price { font-size: 14px; font-weight: 700; color: #F7B600; margin-left: auto; flex-shrink: 0; }
.checkout-success { text-align: center; padding: 60px 20px; }
.checkout-success__icon { width: 80px; height: 80px; background: rgba(247,182,0,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: #F7B600; margin: 0 auto 24px; }
.checkout-success__ref { display: inline-block; background: #FFF8E7; color: #F7B600; font-size: 18px; font-weight: 800; padding: 8px 24px; border-radius: 50px; margin-bottom: 20px; }
@media (max-width: 575px) { .payment-methods { grid-template-columns: 1fr; } }

/* ── Cartes méthodes de paiement (nouvelles icônes) ── */
.pm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 2px solid #eee;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  min-height: 100px;
  will-change: transform;
}

.pm-card:hover {
  border-color: #F7B600;
  box-shadow: 0 4px 16px rgba(247,182,0,.15);
  transform: translateY(-2px);
}

.pm-card--active {
  border-color: #F7B600;
  background: #FFF8E7;
  box-shadow: 0 4px 16px rgba(247,182,0,.2);
}

.pm-card__icon {
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pm-card__icon svg  { display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15)); }
.pm-card__icon img  { display: block; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.pm-card__label {
  font-size: 12px;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
}
.pm-card--active .pm-card__label { color: #C48F00; }

.pm-card__check {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 14px;
  color: #F7B600;
  opacity: 0;
  transition: opacity .2s;
}
.pm-card--active .pm-card__check { opacity: 1; }

/* ============================================================
   WISHLIST
   ============================================================ */
.wishlist-item-wrap { position: relative; }
.wishlist-remove-btn { position: absolute; top: 10px; right: 10px; z-index: 10; width: 32px; height: 32px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); color: #e74c3c; font-size: 14px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.wishlist-remove-btn:hover { background: #e74c3c; color: #fff; transform: scale(1.1); }

/* ============================================================
   BLOG DETAIL
   ============================================================ */
.blog-detail__hero { width: 100%; aspect-ratio: 21/9; border-radius: 20px; overflow: hidden; margin-bottom: 36px; }
.blog-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-detail__meta { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.blog-detail__meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #aaa; }
.blog-detail__meta-item i { color: #F7B600; }
.blog-detail__title { font-size: 34px; font-weight: 800; color: #111; line-height: 1.25; margin-bottom: 28px; }
.blog-detail__content { font-size: 16px; line-height: 1.9; color: #555; }
.blog-detail__content p  { margin-bottom: 20px; }
.blog-detail__content h2, .blog-detail__content h3 { color: #111; font-weight: 700; margin: 32px 0 14px; }
.blog-share { display: flex; align-items: center; gap: 14px; margin-top: 48px; padding-top: 28px; border-top: 2px solid #f0f0f0; flex-wrap: wrap; }
.blog-share__label { font-size: 14px; font-weight: 700; color: #333; }
.blog-share__btn { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; text-decoration: none; transition: transform .2s; }
.blog-share__btn:hover { transform: translateY(-2px); }
.blog-share__btn--wa { background: #e8fdf0; color: #25D366; }
.blog-share__btn--fb { background: #e8f0fe; color: #1877F2; }
@media (max-width: 767px) {
  .blog-detail__title { font-size: 24px; }
  .blog-detail__content { font-size: 15px; }
}

/* ============================================================
   CARTE BLOG ===== */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(247, 182, 0, .12);
  color: inherit;
}

.blog-card__thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card:hover .blog-card__thumb img {
  transform: scale(1.06);
}

.blog-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px 28px;
  flex: 1;
}

.blog-card__date {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #F7B600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin: 0;
  transition: color .2s;
}

.blog-card:hover .blog-card__title {
  color: #F7B600;
}

.blog-card__extrait {
  font-size: 14px;
  color: #888;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #F7B600;
  margin-top: auto;
  transition: gap .2s;
}

.blog-card:hover .blog-card__link {
  gap: 12px;
}


/* ===== STOCK RUPTURE (badge produit) ===== */
.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 6px;
}

.product-stock--out {
  background: #fff0f0;
  color: #c0392b;
}

.product-stock--out::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}


/* ===== PRIX PRODUIT (barré + promo) ===== */
.featured-product-card__content-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-product-card__content-old-price {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}


/* ===== TESTIMONIAL — avatar initiale ===== */
.testimonial2-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F7B600, #C48F00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial2-card__content-product {
  font-size: 12px;
  color: #F7B600;
  font-weight: 600;
  margin: 0;
}

.testimonial2-card__content-headline {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
  font-style: italic;
}

.testimonial2-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #27ae60;
  background: #eafaf1;
  padding: 3px 10px;
  border-radius: 50px;
  margin-top: 8px;
}


/* ===== SECTION HEADING avec lien "Voir tout" ===== */
.section-heading.d-flex {
  flex-wrap: wrap;
  gap: 16px;
}


/* ============================================================
   À PROPOS — Stats
   ============================================================ */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.about-stat {
  text-align: center;
  padding: 28px 20px;
  border: 1.5px solid #f0f0f0;
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}

.about-stat:hover {
  border-color: rgba(247, 182, 0, .3);
  box-shadow: 0 4px 20px rgba(247, 182, 0, .08);
}

.about-stat__value {
  font-size: 42px;
  font-weight: 800;
  color: #F7B600;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.about-stat__label {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

@media (max-width: 575px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-stat__value { font-size: 32px; }
}


/* ============================================================
   BOUTIQUE — Filtre
   ============================================================ */
.shop-filter {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.shop-filter__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.shop-filter__pill {
  padding: 7px 18px;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}

.shop-filter__pill:hover,
.shop-filter__pill.active {
  background: #F7B600;
  border-color: #F7B600;
  color: #fff;
}

.shop-filter__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border: 1.5px solid #eee;
  border-radius: 50px;
  padding: 6px 16px;
  min-width: 220px;
  transition: border-color .2s;
}

.shop-filter__search:focus-within {
  border-color: #F7B600;
  background: #fff;
}

.shop-filter__search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #333;
  width: 100%;
}

.shop-filter__search input::placeholder { color: #bbb; }

.shop-filter__search i { color: #ccc; font-size: 14px; flex-shrink: 0; }

.shop-result-count {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 24px;
}

.shop-result-count strong { color: #333; }

.shop-empty {
  text-align: center;
  padding: 80px 20px;
}

.shop-empty__icon { font-size: 56px; color: #e8e8e8; margin-bottom: 20px; }
.shop-empty__title { font-size: 20px; font-weight: 700; color: #333; margin-bottom: 10px; }
.shop-empty__text { color: #aaa; font-size: 14px; margin-bottom: 28px; }

@media (max-width: 767px) {
  .shop-filter { flex-direction: column; align-items: stretch; }
  .shop-filter__search { min-width: unset; }
}


/* ============================================================
   DÉTAIL PRODUIT
   ============================================================ */

/* Galerie */
.product-gallery__main {
  border-radius: 16px;
  overflow: hidden;
  background: #f8f8f8;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.product-gallery__main img:hover { transform: scale(1.04); }

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
  flex-shrink: 0;
  background: #f0f0f0;
}

.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.active,
.product-gallery__thumb:hover { border-color: #F7B600; }

/* Infos produit */
.product-info__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #F7B600;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 10px;
  text-decoration: none;
}

.product-info__name {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.25;
  margin: 0 0 14px;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #888;
}

.product-info__rating .stars { color: #F7B600; }

.product-info__short-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.product-info__price-current {
  font-size: 32px;
  font-weight: 800;
  color: #F7B600;
}

.product-info__price-old {
  font-size: 18px;
  color: #ccc;
  text-decoration: line-through;
}

.product-info__stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.product-info__stock-badge--in  { background: #eafaf1; color: #27ae60; }
.product-info__stock-badge--out { background: #ffebee; color: #c62828; }

.product-info__stock-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Quantité */
.product-info__qty-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  display: block;
}

.product-info__qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #e8e8e8;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}

.product-info__qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.product-info__qty-btn:hover { background: #F7B600; color: #fff; }

.product-info__qty-input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #e8e8e8;
  border-right: 1.5px solid #e8e8e8;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  outline: none;
  height: 44px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.product-info__qty-input::-webkit-inner-spin-button { display: none; }

/* Actions */
.product-info__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.product-info__wishlist-btn {
  width: 52px;
  height: 52px;
  border: 1.5px solid #e8e8e8;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}

.product-info__wishlist-btn:hover { border-color: #F7B600; color: #F7B600; }

/* Méta */
.product-info__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.product-info__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #888;
}

.product-info__meta-item strong { color: #333; }

/* Onglets produit */
.product-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox — webkit fallback below */
}

.product-tabs::-webkit-scrollbar { display: none; } /* Chrome / Safari / Edge */

.product-tab-btn {
  padding: 14px 24px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
}

.product-tab-btn.active { color: #F7B600; border-bottom-color: #F7B600; }
.product-tab-btn:hover  { color: #F7B600; }

.product-tab-panel { display: none; }
.product-tab-panel.active { display: block; animation: profileFadeIn .25s ease; }

/* Avis */
.review-summary {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px;
  background: #FFF8E7;
  border-radius: 14px;
  margin-bottom: 28px;
}

.review-summary__score {
  text-align: center;
  flex-shrink: 0;
}

.review-summary__score-value {
  font-size: 52px;
  font-weight: 800;
  color: #F7B600;
  line-height: 1;
}

.review-summary__score-label { font-size: 12px; color: #aaa; margin-top: 4px; }

.review-summary__stars { color: #F7B600; font-size: 18px; margin-bottom: 6px; }
.review-summary__count { font-size: 13px; color: #888; }

.review-card {
  padding: 20px 0;
  border-bottom: 1px solid #f4f4f4;
}

.review-card:last-child { border-bottom: none; }

.review-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F7B600, #C48F00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__meta { flex: 1; }
.review-card__author { font-size: 15px; font-weight: 700; color: #111; margin: 0 0 4px; }
.review-card__stars  { color: #F7B600; font-size: 13px; }
.review-card__date   { font-size: 12px; color: #bbb; margin-left: auto; flex-shrink: 0; }

.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #27ae60;
  background: #eafaf1;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
}

.review-card__title { font-weight: 700; color: #222; margin: 0 0 6px; font-size: 14px; }
.review-card__body  { font-size: 14px; color: #666; line-height: 1.75; margin: 0; }

@media (max-width: 767px) {
  .product-info__name { font-size: 22px; }
  .product-info__price-current { font-size: 26px; }
  .review-summary { flex-direction: column; text-align: center; }
}

/* ============================================================
   PAGES LÉGALES (mentions légales, politique confidentialité)
   ============================================================ */
.legal-doc {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ede9e0;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  padding: 48px 56px;
}
.legal-doc__updated {
  font-size: 12px;
  color: #bbb;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.legal-doc__main-title {
  font-size: 34px;
  font-weight: 800;
  color: #111;
  margin: 0 0 16px;
}
.legal-doc__intro {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 2px solid #f0e8d0;
}
.legal-doc__section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #f5f5f5;
}
.legal-doc__section:last-of-type { border-bottom: none; }
.legal-doc__title {
  font-size: 19px;
  font-weight: 700;
  color: #1C1A17;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.legal-doc__title i { color: #F7B600; font-size: 18px; }
.legal-doc__section p {
  font-size: 14.5px;
  color: #555;
  line-height: 1.85;
  margin-bottom: 12px;
}
.legal-doc__section p:last-child { margin-bottom: 0; }
.legal-doc__section a { color: #F7B600; font-weight: 600; }
.legal-doc__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-doc__list li {
  padding: 10px 16px;
  background: #fafaf8;
  border-left: 3px solid #F7B600;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}
.legal-doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.legal-doc__table td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}
.legal-doc__table td:first-child {
  font-weight: 700;
  color: #111;
  width: 45%;
  background: #fafaf8;
}
.legal-doc__contact-box {
  margin-top: 14px;
  padding: 16px 20px;
  background: #FFF8E7;
  border-radius: 10px;
  font-size: 14px;
  color: #555;
  line-height: 2;
}
.legal-doc__contact-box i { margin-right: 8px; }
.legal-doc__footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid #f0e8d0;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}
.legal-doc__footer a { color: #F7B600; }

@media (max-width: 767px) {
  .legal-doc { padding: 28px 20px; }
  .legal-doc__main-title { font-size: 26px; }
  .legal-doc__table td:first-child { width: auto; }
}

/* ============================================================
   BENEFIT CARDS V2
   ============================================================ */
.benefit-card-v2 {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #FEF0C0;
  padding: 44px 32px 40px;
  text-align: center;
  height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  box-shadow: 0 4px 24px rgba(247,182,0,.05);
}

.benefit-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(247,182,0,.13);
  border-color: #F7B600;
}

.benefit-card-v2__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F7B600 0%, #FAD060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 30px;
  color: #fff;
  box-shadow: 0 8px 28px rgba(247,182,0,.32);
  transition: transform .28s ease;
}

.benefit-card-v2:hover .benefit-card-v2__icon {
  transform: scale(1.1) rotate(-4deg);
}

.benefit-card-v2__title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: -.3px;
}

.benefit-card-v2__text {
  font-size: 14px;
  color: #888;
  line-height: 1.75;
  margin: 0;
}

@media (max-width: 575px) {
  .benefit-card-v2 { padding: 32px 24px 28px; }
  .benefit-card-v2__icon { width: 64px; height: 64px; font-size: 24px; }
}

/* ============================================================
   NOTIFICATIONS IN-APP — Cloche + Dropdown
   ============================================================ */
.notif-bell { align-items: center; }

.notif-bell__btn { position: relative; }

.notif-badge {
  position: absolute;
  top: -4px; right: -6px;
  min-width: 18px; height: 18px;
  background: #e74c3c;
  color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 50px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  animation: badgePop .4s cubic-bezier(0.34,1.56,0.64,1);
  will-change: transform, opacity;
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Cloche qui vibre quand il y a des notifs non-lues */
.notif-bell__btn.has-unread #notif-bell-icon {
  animation: bellShake 2.5s ease-in-out 1s 3;
  will-change: transform;
}

@keyframes bellShake {
  0%,100%        { transform: rotate(0); }
  10%,30%,50%    { transform: rotate(12deg); }
  20%,40%        { transform: rotate(-12deg); }
  60%            { transform: rotate(0); }
}

/* Dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: -8px;
  width: 360px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
  z-index: 800;
  opacity: 0;
  transform: translateY(-10px) scale(.97);
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: top right;
  overflow: hidden;
}

.notif-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Flèche */
.notif-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; right: 18px;
  width: 12px; height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-top: 1px solid rgba(0,0,0,.06);
  border-left: 1px solid rgba(0,0,0,.06);
}

/* Header dropdown */
.notif-dropdown__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}
.notif-dropdown__title {
  font-size: 15px; font-weight: 700; color: #111;
  display: flex; align-items: center; gap: 8px;
}
.notif-dropdown__title i { color: #F7B600; }

.notif-dropdown__mark-all {
  background: none; border: none; cursor: pointer;
  font-size: 12px; font-weight: 600; color: #F7B600;
  padding: 4px 10px; border-radius: 50px;
  transition: background .2s;
}
.notif-dropdown__mark-all:hover { background: #FFF8E7; }

/* Body scrollable */
.notif-dropdown__body {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;       /* Firefox */
  scrollbar-color: #eee transparent; /* Firefox */
}
/* Chrome / Safari / Edge fallbacks */
.notif-dropdown__body::-webkit-scrollbar { width: 4px; }
.notif-dropdown__body::-webkit-scrollbar-thumb { background: #eee; border-radius: 4px; }

/* Loading */
.notif-dropdown__loading {
  text-align: center; padding: 36px;
  color: #F7B600; font-size: 24px;
}

/* Item */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid #fafafa;
  text-decoration: none; color: inherit;
  transition: background .15s;
  cursor: pointer;
  /* Animé à l'entrée */
  opacity: 0; transform: translateX(-8px);
  transition: opacity .22s ease, transform .22s ease, background .15s;
}
.notif-item.visible {
  opacity: 1; transform: translateX(0);
}
.notif-item:hover { background: #fafafa; }
.notif-item--unread { background: #FFF8E7; }
.notif-item--unread:hover { background: #fff4d0; }

.notif-item__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.notif-item__icon--gold  { background: rgba(247,182,0,.12); color: #F7B600; }
.notif-item__icon--green { background: rgba(46,125,50,.1);  color: #2e7d32; }
.notif-item__icon--blue  { background: rgba(21,101,192,.1); color: #1565c0; }
.notif-item__icon--red   { background: rgba(198,40,40,.1);  color: #c62828; }

.notif-item__content { flex: 1; min-width: 0; }
.notif-item__title   { font-size: 13px; font-weight: 700; color: #111; margin: 0 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item__msg     { font-size: 12px; color: #888; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item__time    { font-size: 11px; color: #ccc; margin-top: 4px; }

.notif-item__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #F7B600;
  flex-shrink: 0; margin-top: 6px;
}

/* Vide */
.notif-empty { text-align: center; padding: 40px 20px; }
.notif-empty i { font-size: 36px; color: #e8e8e8; display: block; margin-bottom: 10px; }
.notif-empty p { font-size: 13px; color: #bbb; }

/* Footer */
.notif-dropdown__footer {
  display: block; text-align: center;
  padding: 12px; font-size: 13px; font-weight: 600;
  color: #F7B600; border-top: 1px solid #f5f5f5;
  text-decoration: none; transition: background .15s;
}
.notif-dropdown__footer:hover { background: #FFF8E7; color: #C48F00; }

/* ============================================================
   WEB PUSH — Banner de permission & mini-toast
   ============================================================ */
#push-permission-banner {
  position: fixed;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1C1A17;
  color: #fff;
  border-radius: 18px;
  padding: 18px 24px;
  max-width: 520px;
  width: calc(100% - 32px);
  box-shadow: 0 16px 48px rgba(0,0,0,.3), 0 0 0 1px rgba(247,182,0,.15);
  transition: bottom .55s cubic-bezier(0.34,1.56,0.64,1);
}
#push-permission-banner.visible { bottom: 24px; }
#push-permission-banner.hiding  { bottom: -160px; transition: bottom .4s ease-in; }

.push-banner__icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg,#F7B600,#C48F00);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  flex-shrink: 0;
  will-change: transform;
  animation: bellRing 1.8s ease-in-out 1s infinite;
}

@keyframes bellRing {
  0%,100%  { transform: rotate(0); }
  10%,30%  { transform: rotate(14deg); }
  20%,40%  { transform: rotate(-14deg); }
  50%      { transform: rotate(0); }
}

.push-banner__text {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}
.push-banner__text strong { display: block; font-size: 15px; color: #fff; margin-bottom: 2px; }
.push-banner__text span   { color: rgba(255,255,255,.6); font-size: 13px; }

.push-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }

.push-banner__btn {
  border: none; border-radius: 50px; font-size: 13px; font-weight: 700;
  padding: 10px 18px; cursor: pointer; transition: all .2s;
}
.push-banner__btn--accept  { background: #F7B600; color: #1C1A17; }
.push-banner__btn--accept:hover { background: #C48F00; }
.push-banner__btn--dismiss { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.push-banner__btn--dismiss:hover { background: rgba(255,255,255,.15); }

/* Mini-toast push */
.push-mini-toast {
  position: fixed;
  bottom: -80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: bottom .4s cubic-bezier(0.34,1.56,0.64,1);
}
.push-mini-toast.visible { bottom: 90px; }
.push-mini-toast--success { background: #1C1A17; color: #F7B600; }
.push-mini-toast--error   { background: #1C1A17; color: #e74c3c; }

@media (max-width: 600px) {
  #push-permission-banner { flex-wrap: wrap; gap: 12px; }
  .push-banner__actions   { width: 100%; justify-content: flex-end; }
}
