
/* ─── DA éditoriale (alignée sur catalogue / fiche) ─── */
:root {
  --cream: #ffffff;
  --cream-2: oklch(97% 0.008 85);
  --ink: oklch(18% 0.025 250);
  --ink-soft: oklch(40% 0.02 250);
  --ink-mute: oklch(58% 0.015 250);
  --rule: oklch(90% 0.008 85);
  --green-v2: oklch(48% 0.13 152);
  --green-soft: oklch(95% 0.04 152);
  --terra: oklch(62% 0.14 40);
  --terra-soft: oklch(96% 0.03 40);
}
html, body { background: #ffffff; }
body { color: var(--ink); font-family: 'Plus Jakarta Sans', sans-serif; }
a { color: var(--green-v2); }
a:hover { color: oklch(40% 0.13 152); }

/* Nav (aligné catalogue) */
.site-nav { background: rgba(255,255,255,0.9) !important; border-bottom: 1px solid var(--rule) !important; backdrop-filter: blur(10px); }
.nav-logo { color: var(--ink) !important; font-family: 'Bricolage Grotesque', sans-serif !important; font-weight: 700 !important; letter-spacing: -0.8px !important; }
.nav-logo span { color: var(--green-v2) !important; }
.nav-links a { color: var(--ink-soft) !important; }
.nav-links a:hover, .nav-links a.active { color: var(--ink) !important; }
.btn { font-family: 'Plus Jakarta Sans', sans-serif !important; font-weight: 600 !important; border-radius: 100px !important; letter-spacing: -0.1px; }
.btn-primary { background: var(--ink) !important; color: #fff !important; border: none !important; }
.btn-primary:hover { background: oklch(28% 0.04 250) !important; }
.btn-outline { background: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important; }
.btn-outline:hover { background: var(--ink) !important; color: #fff !important; }

/* ─── HEADER éditorial ──────────────────────────── */
.fav-header { border-bottom: 1px solid var(--rule); padding: 104px 32px 40px; }
.fav-header-inner { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; }
.fav-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-mute); }
.fav-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--ink-mute); }
.fav-eyebrow svg { width: 15px; height: 15px; fill: var(--terra); stroke: var(--terra); }
.fav-header h1 {
  font-family: 'Bricolage Grotesque', sans-serif; font-variation-settings: "wdth" 95;
  font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.035em; line-height: 0.98;
  color: var(--ink); margin: 16px 0 0; text-wrap: balance;
}
.fav-header h1 em { font-family: 'Newsreader', serif; font-style: italic; font-weight: 500; color: var(--terra); font-variation-settings: normal; }
.fav-header-intro { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-soft); line-height: 1.5; margin: 18px 0 0; max-width: 500px; }
.fav-header-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; padding-bottom: 8px; }
.fav-header-side .label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--ink-mute); font-weight: 700; }
.fav-header-side .val { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-top: 6px; line-height: 1.1; }
.fav-header-side .val small { font-size: 13px; font-weight: 500; color: var(--ink-mute); letter-spacing: 0; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ─── WRAP ──────────────────────────────────────── */
.fav-wrap { max-width: 1300px; margin: 0 auto; padding: 40px 24px 0; }

/* Toolbar */
.fav-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.fav-count-label { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 1.6px; font-weight: 700; }
.fav-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fav-act {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 14px; font-weight: 600; padding: 11px 20px; border-radius: 100px;
  border: 1.5px solid var(--rule); background: #fff; color: var(--ink); transition: border-color .2s, background .2s, color .2s;
}
.fav-act svg { width: 16px; height: 16px; }
.fav-act:hover { border-color: var(--ink); background: var(--cream-2); }
.fav-act.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.fav-act.primary:hover { background: oklch(28% 0.04 250); }
.fav-act.ghost { border-color: transparent; color: var(--ink-mute); padding-left: 12px; padding-right: 12px; }
.fav-act.ghost:hover { color: var(--terra); background: var(--terra-soft); }

/* ─── GRID ──────────────────────────────────────── */
.fav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.fav-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--rule); border-radius: 20px; overflow: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s, background .25s, opacity .3s;
  opacity: 0; transform: translateY(18px);
}
.fav-card.in { opacity: 1; transform: translateY(0); }
.fav-card.leaving { opacity: 0; transform: scale(.92); }
.fav-card:hover { background: #fafaf8; box-shadow: 0 20px 44px oklch(0% 0 0 / 0.06); transform: translateY(-4px); }

.fav-media { position: relative; height: 210px; background: #fafaf8; display: flex; align-items: center; justify-content: center; }
.fav-media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: filter .3s; }
.fav-media .fav-fallback { font-size: 56px; opacity: .45; }
.fav-media a { position: absolute; inset: 0; z-index: 1; }
.fav-flags {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; flex-direction: column; gap: 7px; align-items: flex-start;
}
.fav-flag {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  background: var(--green-soft); color: var(--green-v2);
  padding: 5px 11px 5px 9px; border-radius: 100px;
}
.fav-flag svg { width: 13px; height: 13px; }
.fav-oos-ribbon {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 5px 11px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
}
.fav-oos-ribbon .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }
.fav-card.oos .fav-media img, .fav-card.oos .fav-media .fav-fallback { filter: grayscale(1) opacity(.55); }

.fav-remove {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px oklch(0% 0 0 / 0.12);
  border: 1px solid var(--rule); cursor: pointer; color: var(--ink);
  display: flex; align-items: center; justify-content: center; transition: transform .2s, background .2s, color .2s, border-color .2s;
  padding: 0;
}
.fav-remove svg { width: 15px; height: 15px; display: block; }
.fav-remove:hover { transform: scale(1.08); background: var(--terra); color: #fff; border-color: var(--terra); }

.fav-body { padding: 18px 20px 6px; display: flex; flex-direction: column; flex: 1; }
.fav-cat { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--terra); }
.fav-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); margin: 7px 0 8px; line-height: 1.15; }
.fav-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.fav-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); margin-top: 14px; }
.fav-price small { font-size: 12.5px; font-weight: 500; color: var(--ink-mute); }

.fav-foot { display: flex; gap: 10px; padding: 16px 20px 20px; }
.fav-view {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 11px 14px; border-radius: 100px; border: 1.5px solid var(--rule); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s;
}
.fav-view:hover { border-color: var(--ink); background: var(--cream-2); color: var(--ink); }
.fav-add {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 14px; border-radius: 100px;
  border: none; background: var(--ink); color: #fff; transition: background .2s;
}
.fav-add svg { width: 15px; height: 15px; }
.fav-add:hover { background: oklch(28% 0.04 250); }
.fav-add:disabled { background: var(--cream-2); color: var(--ink-mute); cursor: not-allowed; border: 1.5px solid var(--rule); }

/* ─── ÉTAT VIDE (percutant) ─────────────────────── */
.fav-empty { text-align: center; padding: 60px 20px 110px; max-width: 560px; margin: 0 auto; }
.fav-empty-art { position: relative; width: 150px; height: 150px; margin: 0 auto 34px; display: flex; align-items: center; justify-content: center; }
.fav-empty-art svg { width: 96px; height: 96px; overflow: visible; }
.fav-empty-heart {
  fill: none; stroke: var(--terra); stroke-width: 1.6;
  stroke-dasharray: 90; stroke-dashoffset: 90;
  animation: heartDraw 1.1s .1s ease forwards, heartBeat 2.4s 1.3s ease-in-out infinite;
  transform-origin: center; transform-box: fill-box;
}
.fav-empty-ring {
  position: absolute; inset: 0; margin: auto; width: 150px; height: 150px; border-radius: 50%;
  border: 1.5px solid var(--terra); opacity: 0;
  animation: emptyRing 2.4s 1.3s ease-out infinite;
}
.fav-empty-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--terra); opacity: 0; }
.fav-empty-dot.d1 { top: 14px; left: 26px; animation: floatDot 2.8s 1.4s ease-in-out infinite; }
.fav-empty-dot.d2 { top: 34px; right: 18px; animation: floatDot 3.2s 1.7s ease-in-out infinite; }
.fav-empty-dot.d3 { bottom: 26px; left: 20px; animation: floatDot 3s 2s ease-in-out infinite; }
.fav-empty h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; color: var(--ink); }
.fav-empty p { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin: 14px 0 30px; text-wrap: pretty; }
.fav-empty .fav-empty-hint { display: inline-flex; align-items: center; gap: 7px; color: var(--terra); font-weight: 600; }
.fav-empty .fav-empty-hint svg { width: 16px; height: 16px; fill: var(--terra); stroke: var(--terra); }

@keyframes heartDraw { to { stroke-dashoffset: 0; } }
@keyframes heartBeat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
@keyframes emptyRing { 0% { transform: scale(.65); opacity: .5; } 80% { opacity: 0; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes floatDot { 0%,100% { opacity: 0; transform: translateY(6px); } 40%,60% { opacity: .9; transform: translateY(-4px); } }

/* ─── Footer ────────────────────────────────────── */
.site-footer { background: var(--ink) !important; }
.footer-logo { font-family: 'Bricolage Grotesque', sans-serif; letter-spacing: -0.5px; }
.footer-logo span { color: var(--green-v2) !important; }

@media (prefers-reduced-motion: reduce) {
  .fav-card { opacity: 1; transform: none; transition: none; }
  .fav-empty-heart { stroke-dashoffset: 0; animation: none; }
  .fav-empty-ring, .fav-empty-dot { animation: none; display: none; }
}

/* ─── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1000px) {
  .fav-header-inner { grid-template-columns: 1fr; gap: 28px; }
  .fav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .fav-header { padding: 92px 20px 34px; }
  .fav-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .fav-grid { grid-template-columns: 1fr; }
  .fav-foot { flex-direction: column; }
}
