/* ============================================================
   LES DÉLICES DE LA VIE — Design System v3.0
   Palette panier chaleureux : crème, osier, vert feuille, or doux
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette — tirée du logo officiel */
  --cream:        #FAF4E5;  /* fond principal — paille claire */
  --cream-2:      #F5E9C8;  /* fond secondaire — blé doré */
  --paper:        #FFFCF1;  /* surfaces cartes — ivoire */
  --osier:        #8B5E32;  /* brun osier (panier) */
  --osier-light:  #C2A472;  /* or doux (lumière osier) */
  --osier-dark:   #5C3D1E;  /* brun foncé */
  --ink:          #2A1F0F;  /* texte profond */
  --ink-soft:     #5C3D1E;  /* texte secondaire */
  --vert:         #7A9B3C;  /* vert feuille — livres dans le panier */
  --vert-dark:    #5C7A23;
  --vert-soft:    #A8C16F;
  --gold:         #C2A472;
  --gold-light:   #E8C76F;
  --gold-bright:  #D4AF4F;
  --line:         rgba(139, 92, 50, .22);
  --line-soft:    rgba(139, 92, 50, .12);
  --shadow:       0 8px 22px rgba(42, 31, 15, .08);
  --shadow-lg:    0 16px 40px rgba(42, 31, 15, .15);
  --radius:       4px;
  --radius-sm:    3px;
  --radius-lg:    10px;
  --banner-h:     0px;

  /* Typo */
  --serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:         'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 500;
  line-height: 1.15; color: var(--ink); letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

em { font-style: italic; }
p { color: var(--ink-soft); }

/* ============= LAYOUT ============= */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

section { padding: 80px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

/* ============= HEADER ============= */
.site-header {
  background: var(--paper);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--vert) 50%, var(--gold) 75%, transparent);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; max-width: 1240px; margin: 0 auto; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo {
  height: 54px; width: auto; object-fit: contain;
  cursor: pointer; user-select: none;
}
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name strong {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  color: var(--osier-dark); letter-spacing: .01em;
}
.brand__name span {
  font-family: var(--serif); font-style: italic; font-size: .82rem;
  color: var(--osier); letter-spacing: .03em;
}

.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-family: var(--sans); font-size: .88rem; font-weight: 500;
  color: var(--ink); padding: 8px 2px;
  position: relative; transition: .2s;
}
.nav a:hover { color: var(--vert-dark); }
.nav a.active { color: var(--vert-dark); }
.nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--gold); border-radius: 1px;
}

/* Lien panier dans la nav */
.nav-cart {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 8px 16px !important;
  background: var(--vert-dark); color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600 !important;
  transition: .2s;
}
.nav-cart:hover { background: var(--osier-dark); color: var(--cream) !important; }
.nav-cart__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--gold); color: var(--osier-dark);
  border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  font-family: var(--sans);
}

.nav-toggle {
  display: none; background: transparent; border: 0;
  width: 42px; height: 42px; cursor: pointer; color: var(--osier-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .brand__logo { height: 44px; }
  .brand__name strong { font-size: 1.1rem; }
  .brand__name span { font-size: .72rem; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0; max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 8px 24px rgba(42,31,15,.08);
  }
  .nav.open { max-height: 420px; padding: 12px 0; }
  .nav a { padding: 14px 28px; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav a.active::after { display: none; }
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: 0; transition: .2s; text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--osier-dark); color: var(--cream);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--osier-dark);
  border: 1px solid var(--osier);
}
.btn-ghost:hover { background: var(--osier-dark); color: var(--cream); border-color: var(--osier-dark); }
.btn-vert {
  background: var(--vert); color: var(--paper);
}
.btn-vert:hover { background: var(--vert-dark); transform: translateY(-1px); }
.btn-wa {
  background: #25D366; color: #fff;
}
.btn-wa:hover { background: #1DA851; transform: translateY(-1px); }

/* ============= ORNEMENTS ============= */
.orn-tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.orn-tag::before {
  content: ''; width: 28px; height: 1px; background: var(--osier);
}
.tag-label {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--osier-dark);
}

.orn-diamond {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--gold); margin-bottom: 12px;
}
.orn-diamond .line { width: 36px; height: 1px; background: currentColor; }
.orn-diamond svg { color: var(--gold); }

/* ============= HERO ============= */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cream-2) 0%, #EDD8A3 100%);
  min-height: 540px;
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  min-height: 540px;
}
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; min-height: auto; }
}
.hero__l {
  padding: 60px 0; position: relative; z-index: 2;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 500; line-height: 1.02; color: var(--ink);
  margin-bottom: 22px; letter-spacing: -.02em;
}
.hero h1 em {
  font-style: italic; color: var(--vert-dark); font-weight: 600;
  position: relative; display: inline-block;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 8px; background: rgba(194, 164, 114, .35); z-index: -1;
}
.hero__sub {
  color: var(--osier-dark); font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 32px; max-width: 460px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__r {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.hero__books {
  display: flex; gap: 14px; position: relative;
  transform: rotate(-4deg) translateX(-12px);
}
.hero__book {
  width: 130px; aspect-ratio: 2/3;
  border-radius: 3px; overflow: hidden; background: var(--paper);
  box-shadow: 0 14px 32px rgba(42, 31, 15, .25), 0 4px 8px rgba(42, 31, 15, .12);
  flex-shrink: 0;
}
.hero__book img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__book.b1 { transform: translateY(22px) rotate(-3deg); z-index: 1; }
.hero__book.b2 { transform: translateY(0) rotate(2deg); z-index: 3; width: 145px; }
.hero__book.b3 { transform: translateY(22px) rotate(5deg); z-index: 2; }
@media (max-width: 480px) {
  .hero__book { width: 95px; }
  .hero__book.b2 { width: 108px; }
}
.hero__art-cap {
  position: absolute; bottom: 24px; right: 0;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-style: italic; font-size: .9rem;
  color: var(--osier-dark);
}
.hero__art-cap::before {
  content: ''; width: 30px; height: 1px; background: var(--osier);
}

/* ============= SECTION HEADERS ============= */
.sec { padding: 80px 0; }
.sec.cream { background: var(--cream); }
.sec.warm { background: var(--cream-2); }
.sec.dark { background: var(--osier-dark); color: var(--cream); }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head__tag {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--osier); margin-bottom: 14px; display: block;
}
.sec.dark .sec-head__tag { color: var(--gold-light); }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500; color: var(--ink); letter-spacing: -.015em; line-height: 1.05;
}
.sec.dark .sec-head h2 { color: var(--cream); }
.sec-head h2 em { font-style: italic; color: var(--vert-dark); }
.sec.dark .sec-head h2 em { color: var(--gold-light); }
.sec-head p {
  margin-top: 16px; color: var(--ink-soft);
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.sec.dark .sec-head p { color: rgba(250, 244, 229, .75); }

/* ============= BOOK CARDS — flat, photo-first ============= */
.books-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.book-card {
  background: transparent; display: flex; flex-direction: column;
  position: relative; transition: .25s;
}
.book-card:hover { transform: translateY(-5px); }

.book-card__cover {
  position: relative; aspect-ratio: 2/3;
  overflow: hidden; border-radius: 3px;
  box-shadow: 0 10px 24px rgba(42, 31, 15, .18), 0 2px 4px rgba(42, 31, 15, .08);
  margin-bottom: 14px; background: var(--paper);
}
.book-card__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.book-card:hover .book-card__cover img { transform: scale(1.04); }

.book-card__cover-empty {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream-2), var(--osier-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--osier-dark); font-family: var(--serif);
  font-style: italic; padding: 12px; text-align: center; font-size: .9rem;
}

.book-card__ribbon {
  position: absolute; top: 12px; left: -3px;
  background: var(--vert); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: .78rem; padding: 5px 14px 5px 12px;
  z-index: 2; letter-spacing: .04em;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}
.book-card__ribbon::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  border: 3px solid transparent;
  border-top-color: var(--vert-dark); border-right-color: var(--vert-dark);
}

.book-card__cat {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--osier); margin-bottom: 6px;
}
.book-card__title {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500;
  color: var(--ink); margin-bottom: 3px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card__author {
  font-family: var(--serif); font-style: italic;
  font-size: .92rem; color: var(--osier); margin-bottom: 10px;
}
.book-card__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 0.5px solid var(--line);
}
.book-card__price {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.2rem; color: var(--osier-dark);
}
.book-card__price--promo {
  color: var(--vert-dark); font-style: italic; font-size: 1.1rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.book-card__price--promo::before {
  content: '✦'; color: var(--gold); font-size: .9em;
}
.book-card__wa {
  font-family: var(--sans); font-size: .68rem; font-weight: 600;
  color: var(--vert-dark); letter-spacing: .12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 4px;
}
.book-card__wa:hover { color: var(--vert); }

/* ============= CATEGORIES GRID ============= */
.cats-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 980px; margin: 0 auto;
}
@media (max-width: 860px) { .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 440px) { .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

.cat-card {
  background: transparent; padding: 18px 10px 22px;
  text-align: center; border: none;
  transition: .25s; display: flex; flex-direction: column;
  gap: 12px; align-items: center; position: relative;
  text-decoration: none; color: inherit;
}
.cat-card__photo {
  width: 110px; height: 110px; border-radius: 50%;
  overflow: hidden; position: relative;
  background: var(--cream-warm);
  box-shadow: 0 8px 22px rgba(42, 31, 15, .14), 0 2px 4px rgba(42, 31, 15, .06);
  transition: transform .35s ease, box-shadow .35s ease;
}
.cat-card__photo::after {
  /* Liseré or fin autour du médaillon */
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(194, 164, 114, .65);
  pointer-events: none;
}
.cat-card__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.cat-card:hover .cat-card__photo {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(42, 31, 15, .22), 0 4px 8px rgba(42, 31, 15, .10);
}
.cat-card:hover .cat-card__photo img { transform: scale(1.06); }
.cat-card:hover .cat-card__photo::after { border-color: var(--gold); }

.cat-card__name {
  font-family: var(--serif); font-weight: 500;
  color: var(--osier-dark); font-size: 1.1rem;
  letter-spacing: .005em; line-height: 1.2;
}
.cat-card__count {
  font-family: var(--sans); font-size: .7rem;
  color: var(--osier); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 500;
}
@media (max-width: 540px) {
  .cat-card__photo { width: 86px; height: 86px; }
  .cat-card__name { font-size: .95rem; }
}

/* ============= MINI-PLAYER RJV ============= */
.rjv-player {
  display: inline-flex; align-items: center; gap: .65rem;
  background: var(--cream-warm);
  border: 1px solid rgba(139, 92, 50, .25);
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  transition: all .25s ease;
  margin-right: 14px;
}
.rjv-player:hover {
  background: var(--cream);
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(194, 164, 114, .25);
}
.rjv-player.is-playing {
  background: linear-gradient(135deg, var(--vert-dark) 0%, var(--osier-dark) 100%);
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(122, 155, 60, .35);
}
.rjv-player__btn {
  flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--vert-dark); color: var(--cream);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease; position: relative; padding: 0;
}
.rjv-player__btn:hover {
  background: var(--osier-dark);
  transform: scale(1.05);
}
.rjv-player.is-playing .rjv-player__btn {
  background: var(--gold); color: var(--osier-dark);
}
.rjv-player.is-playing .rjv-player__btn:hover {
  background: var(--gold-light);
}
.rjv-player__btn svg {
  width: 14px; height: 14px;
  position: absolute; display: none;
}
.rjv-player .rjv-player__icon-play { display: block; }
.rjv-player.is-playing .rjv-player__icon-play { display: none; }
.rjv-player.is-playing .rjv-player__icon-pause { display: block; }
.rjv-player.is-loading .rjv-player__icon-play,
.rjv-player.is-loading .rjv-player__icon-pause { display: none; }
.rjv-player.is-loading .rjv-player__icon-loading {
  display: block;
  animation: rjv-spin 0.8s linear infinite;
}
@keyframes rjv-spin {
  to { transform: rotate(360deg); }
}

.rjv-player__eq {
  display: none; align-items: flex-end; gap: 2px; height: 16px;
}
.rjv-player.is-playing .rjv-player__eq { display: flex; }
.rjv-player__eq span {
  display: block; width: 3px;
  background: var(--gold-light); border-radius: 2px;
  animation: rjv-eq 1s ease-in-out infinite;
}
.rjv-player__eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.rjv-player__eq span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.rjv-player__eq span:nth-child(3) { height: 75%; animation-delay: 0.4s; }
@keyframes rjv-eq {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.rjv-player__info {
  display: flex; flex-direction: column; line-height: 1.1;
}
.rjv-player__label {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  color: var(--osier-dark);
  letter-spacing: .02em;
}
.rjv-player.is-playing .rjv-player__label { color: var(--cream); }
.rjv-player__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #C00;
  box-shadow: 0 0 6px rgba(204, 0, 0, .6);
  animation: rjv-pulse 1.6s ease-in-out infinite;
}
.rjv-player.is-playing .rjv-player__dot {
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
}
@keyframes rjv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.rjv-player__freq {
  font-family: var(--sans);
  font-size: .6rem; color: var(--osier);
  font-weight: 500; letter-spacing: .05em;
  margin-top: 1px;
}
.rjv-player.is-playing .rjv-player__freq {
  color: rgba(250, 244, 229, .75);
}

/* Player RJV sur mobile/tablet : version compacte (juste le bouton) */
@media (max-width: 880px) {
  .rjv-player__info { display: none; }
  .rjv-player__eq { display: none !important; }
  .rjv-player {
    padding: 3px;
    background: transparent;
    border-color: transparent;
    margin-right: 8px;
  }
  .rjv-player:hover {
    background: var(--cream-warm);
    border-color: rgba(139, 92, 50, .25);
  }
  .rjv-player.is-playing {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
}

/* ============= QUOTE BAND ============= */
.quote-band {
  background: var(--osier-dark);
  color: var(--cream); padding: 88px 28px; text-align: center;
  position: relative;
}
.quote-band::before, .quote-band::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.quote-band::before { top: 36px; }
.quote-band::after { bottom: 36px; }
.quote-band__inner { max-width: 660px; margin: 0 auto; }
.quote-band__mark {
  font-family: var(--serif); font-size: 5rem; color: var(--gold);
  line-height: .8; margin-bottom: 4px; font-style: italic; font-weight: 600;
}
.quote-band__text {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.55; color: var(--cream); margin-bottom: 26px; font-weight: 400;
}
.quote-band__attr {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.quote-band__attr .line { width: 36px; height: 1px; background: var(--gold); }
.quote-band__attr .name {
  font-family: var(--sans); font-size: .7rem;
  letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light);
}

/* ============= FOOTER ============= */
.site-footer {
  background: var(--ink); color: rgba(250, 244, 229, .65);
  padding: 56px 0 22px; font-family: var(--sans); font-size: .85rem;
}
.site-footer__grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 28px;
}
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand img {
  height: 78px; width: auto; margin-bottom: 14px;
}
.site-footer h4 {
  font-family: var(--serif); color: var(--gold-light);
  font-size: 1.1rem; margin-bottom: 14px; font-weight: 500;
}
.site-footer p, .site-footer a { color: rgba(250, 244, 229, .65); line-height: 1.85; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 6px; }
.site-footer__bottom {
  border-top: 0.5px solid rgba(194, 164, 114, .18);
  padding-top: 18px; text-align: center;
  color: rgba(250, 244, 229, .4); font-size: .75rem;
  letter-spacing: .1em;
}

/* ============= UTILITIES ============= */
.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.hidden { display: none !important; }

/* ============= FILTERS ============= */
.filter-bar {
  background: var(--paper); border: 1px solid var(--line);
  padding: 18px 22px; margin-bottom: 36px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  border-radius: var(--radius);
}
.filter-bar input, .filter-bar select {
  font-family: var(--sans); font-size: .9rem;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--cream);
  color: var(--ink); transition: .2s;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: 0; border-color: var(--vert); background: var(--paper);
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar__results {
  font-family: var(--sans); font-size: .8rem; color: var(--osier);
  margin-left: auto; letter-spacing: .08em; text-transform: uppercase;
}

/* ============= EMPTY STATE ============= */
.empty {
  text-align: center; padding: 60px 24px;
  color: var(--osier); font-family: var(--serif); font-style: italic;
}
.empty__icon { font-size: 3rem; margin-bottom: 14px; opacity: .5; }

/* ============= TOAST ============= */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: var(--cream); padding: 14px 24px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-family: var(--sans); font-size: .92rem; z-index: 9999;
  transition: transform .35s ease; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--vert-dark); }
.toast.error { background: #8C2A1F; }

/* ============= ADMIN ============= */
.admin-body { background: var(--cream-2); min-height: 100vh; font-family: var(--sans); }
.admin-shell { max-width: 1200px; margin: 0 auto; padding: 28px; }
.admin-card {
  background: var(--paper); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  margin-bottom: 24px; border: 1px solid var(--line);
}
.admin-card h2 { color: var(--osier-dark); margin-bottom: 20px; font-size: 1.4rem; }

.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-field label {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  color: var(--osier); display: block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .08em;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font-family: var(--sans); font-size: .95rem;
  padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--cream); color: var(--ink);
  transition: .2s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--vert); background: var(--paper);
}

.admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .9rem; }
.admin-table th, .admin-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.admin-table th {
  background: var(--cream-2); font-weight: 600;
  color: var(--osier-dark); text-transform: uppercase;
  letter-spacing: .08em; font-size: .75rem;
}
.admin-table img { width: 44px; height: 60px; object-fit: cover; border-radius: 3px; box-shadow: var(--shadow); }
.row-actions { display: flex; gap: 8px; }
.row-actions button {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius);
  border: 0; cursor: pointer; transition: .2s;
}
.btn-edit { background: rgba(194, 164, 114, .25); color: var(--osier-dark); }
.btn-edit:hover { background: var(--gold); }
.btn-delete { background: rgba(140, 42, 31, .12); color: #8C2A1F; }
.btn-delete:hover { background: #8C2A1F; color: var(--paper); }

.login-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--osier-dark) 0%, var(--ink) 100%);
  padding: 28px; position: relative; overflow: hidden;
}
.login-shell::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><g fill='none' stroke='%23C2A472' stroke-width='.5' opacity='.08'><path d='M50 10 L60 40 L90 50 L60 60 L50 90 L40 60 L10 50 L40 40 Z'/><circle cx='50' cy='50' r='25'/></g></svg>");
}
.login-card {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 48px 40px; max-width: 430px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
  position: relative; z-index: 1;
}
.login-card img { height: 70px; width: auto; margin: 0 auto 20px; }
.login-card h2 { color: var(--osier-dark); margin-bottom: 6px; font-size: 1.5rem; }
.login-card p { margin-bottom: 28px; font-family: var(--serif); font-style: italic; }
.login-card .form-field { text-align: left; margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; padding: 14px; }

.cover-preview {
  width: 88px; height: 120px; border-radius: 3px; object-fit: cover;
  background: var(--cream-2); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.upload-row { display: flex; gap: 16px; align-items: center; }
.upload-row .upload-btn {
  padding: 10px 16px; background: var(--gold); color: var(--osier-dark);
  border: 0; border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .85rem;
  letter-spacing: .04em; transition: .2s;
}
.upload-row .upload-btn:hover { background: var(--gold-bright); }
.upload-row input[type=file] { display: none; }

.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--vert); }
.checkbox-row label { font-family: var(--sans); font-size: .95rem; color: var(--ink); }

.stats-row {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 28px;
}
.stat-tile {
  background: var(--paper); border-radius: var(--radius);
  padding: 22px 20px; border: 1px solid var(--line);
  text-align: center; position: relative;
}
.stat-tile::before {
  content: ''; position: absolute; top: -1px; left: 50%;
  transform: translateX(-50%); width: 36px; height: 2px; background: var(--gold);
}
.stat-tile__num {
  font-family: var(--serif); font-size: 2.2rem; font-weight: 600;
  color: var(--osier-dark); line-height: 1;
}
.stat-tile__label {
  font-family: var(--sans); font-size: .72rem; color: var(--osier);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 8px;
}

.table-wrap { overflow-x: auto; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

.admin-header {
  background: var(--ink); color: var(--cream);
  padding: 16px 28px; display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
}
.admin-header img { height: 36px; }
.admin-header h1 { font-size: 1.15rem; color: var(--gold-light); font-family: var(--serif); font-weight: 500; }
.admin-header .who { font-family: var(--sans); font-size: .82rem; color: rgba(250, 244, 229, .7); }
.admin-header button {
  background: transparent; color: var(--cream);
  border: 1px solid rgba(194, 164, 114, .35);
  padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--sans); font-size: .82rem; letter-spacing: .05em;
}
.admin-header button:hover { background: var(--osier); border-color: var(--osier); }
