/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Outfit:wght@300;400;500;600&display=swap');

/* ===== VARIABLES — PALETTE ECTOPLASMA ===== */
:root {
  --bg-deep:      #080612;
  --bg-card:      #0f0a1e;
  --bg-surface:   #140f24;
  --bg-elevated:  #1c1430;
  --bg-hover:     #241b3a;

  --accent:        #9b5de5;
  --accent-light:  #c084fc;
  --accent-dim:    rgba(155, 93, 229, 0.15);
  --accent-border: rgba(155, 93, 229, 0.35);
  --accent-glow:   rgba(155, 93, 229, 0.2);

  --mauve:         #d4aaff;
  --mauve-dim:     rgba(212, 170, 255, 0.08);

  --text-primary: #f0ecff;
  --text-muted:   #8878b0;
  --text-dim:     #4a3d6a;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.6);
  --shadow-glow:  0 0 30px rgba(155,93,229,0.18);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(155,93,229,0.1), transparent),
    radial-gradient(ellipse 40% 30% at 90% 80%, rgba(100,50,180,0.06), transparent),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239b5de5' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(8, 6, 18, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--accent-border);
  padding: 0.6rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--accent-light) !important;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-brand:hover { color: #fff !important; }

.btn-collection-nav {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-collection-nav:hover {
  background: rgba(155,93,229,0.28);
  color: #fff !important;
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ===== BARRE DE FILTRES ===== */
.filters-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(155,93,229,0.12);
  padding: 0.7rem 1rem;
  position: sticky;
  top: 53px;
  z-index: 900;
}

/* ===== FORMULAIRES ===== */
.form-control, .form-select {
  background: var(--bg-elevated) !important;
  border: 1px solid rgba(155,93,229,0.18) !important;
  color: var(--text-primary) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  border-radius: var(--radius-sm) !important;
  transition: var(--transition);
  min-height: 34px;
}

.form-control::placeholder { color: var(--text-muted) !important; }

.form-control:focus, .form-select:focus {
  border-color: var(--accent-border) !important;
  box-shadow: 0 0 0 3px var(--accent-dim) !important;
  background: var(--bg-hover) !important;
  outline: none;
}

.form-select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-select:disabled { opacity: 0.35 !important; cursor: not-allowed !important; }

/* ===== BOUTON RESET ===== */
#resetFilters {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  min-height: 34px;
}

#resetFilters:hover {
  background: rgba(255,80,80,0.1);
  border-color: rgba(255,80,80,0.3);
  color: #ff8080;
}

/* ===== DROPDOWN CUSTOM ===== */
.custom-select-wrapper { position: relative; width: 100%; }

.custom-select-btn {
  width: 100%;
  background: var(--bg-elevated) !important;
  border: 1px solid rgba(155,93,229,0.18) !important;
  color: var(--text-primary) !important;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  border-radius: var(--radius-sm) !important;
  padding: 0.25rem 2rem 0.25rem 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  min-height: 34px;
}

.custom-select-btn:hover {
  border-color: var(--accent-border) !important;
  background: var(--bg-hover) !important;
}

.custom-select-wrapper.open .custom-select-btn {
  border-color: var(--accent-border) !important;
  box-shadow: 0 0 0 3px var(--accent-dim) !important;
}

.custom-select-arrow {
  position: absolute;
  right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  pointer-events: none;
}

.custom-select-wrapper.open .custom-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.7), 0 0 30px rgba(155,93,229,0.1);
  z-index: 9999;
  overflow: hidden;
  min-width: 240px;
}

.custom-select-dropdown.open { display: flex; flex-direction: column; }

.custom-select-search {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(155,93,229,0.1);
}

.custom-select-search input {
  width: 100%;
  background: var(--bg-surface) !important;
  border: 1px solid rgba(155,93,229,0.15) !important;
  color: var(--text-primary) !important;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: 'Outfit', sans-serif;
}

.custom-select-search input::placeholder { color: var(--text-muted) !important; }
.custom-select-search input:focus {
  border-color: var(--accent-border) !important;
  box-shadow: 0 0 0 2px var(--accent-dim) !important;
}

.custom-select-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.3rem 0;
}

.custom-select-options::-webkit-scrollbar { width: 4px; }
.custom-select-options::-webkit-scrollbar-track { background: transparent; }
.custom-select-options::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 2px; }

.custom-select-group-label {
  padding: 0.5rem 0.8rem 0.25rem;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--accent-light);
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-select-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.custom-select-option:hover { background: var(--bg-hover); }

.custom-select-option.selected {
  color: var(--accent-light);
  background: var(--accent-dim);
}

.set-symbol-option { width: 17px; height: 17px; object-fit: contain; flex-shrink: 0; opacity: 0.85; }
.set-symbol-btn    { width: 15px; height: 15px; object-fit: contain; flex-shrink: 0; opacity: 0.9; }

/* ===== GRILLE ===== */
#cardsGrid { padding: 0.8rem; }

/* ===== CARTE POKÉMON ===== */
.pokemon-card {
  background: var(--bg-card);
  border: 1px solid rgba(155,93,229,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  animation: cardAppear 0.4s ease both;
}

@keyframes cardAppear {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.pokemon-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.pokemon-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(155,93,229,0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1; pointer-events: none;
}

.pokemon-card:hover::before { opacity: 1; }

.pokemon-card img {
  width: 100%; display: block;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.pokemon-card .card-body { padding: 7px 9px 9px; background: var(--bg-card); }

.pokemon-card .card-name {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.pokemon-card .card-info {
  font-size: 0.7rem; color: var(--text-muted); margin-top: 2px;
  display: flex; align-items: center; gap: 3px;
  white-space: nowrap; overflow: hidden;
}

.card-set-name {
  color: var(--accent-light); opacity: 0.85;
  font-size: 0.67rem; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== RARETÉ ===== */
.card-rarity {
  font-size: 0.67rem; color: var(--text-dim); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 3px;
}

.rarity-symbol { font-size: 0.72rem; color: var(--accent); opacity: 0.9; flex-shrink: 0; }

/* ===== BADGE ===== */
.badge-owned {
  position: absolute; top: 7px; right: 7px;
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; z-index: 10;
  box-shadow: 0 2px 8px rgba(155,93,229,0.5);
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgePop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== CARTE SANS IMAGE ===== */
.card-no-image {
  width: 100%; aspect-ratio: 2.5 / 3.5;
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; color: var(--text-dim); font-size: 0.72rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

/* ===== CHARGER PLUS ===== */
#loadMoreBtn {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent-light);
  font-family: 'Outfit', sans-serif; font-weight: 500;
  padding: 0.6rem 2rem; border-radius: 999px;
  transition: var(--transition);
}

#loadMoreBtn:hover {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== ÉTATS VIDES ===== */
.state-message { color: var(--text-muted); padding: 3rem 1rem; }
.state-message i { color: var(--text-dim); }

/* ===== MODAL ===== */
.modal-content {
  background: var(--bg-surface) !important;
  border: 1px solid var(--accent-border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,0.85), 0 0 40px rgba(155,93,229,0.12) !important;
  color: var(--text-primary) !important;
}

.modal-header {
  border-bottom: 1px solid rgba(155,93,229,0.12) !important;
  padding: 1.1rem 1.3rem 0.8rem;
}

.modal-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem; color: var(--text-primary); }

.modal-body { padding: 1.1rem 1.3rem 1.5rem; }

.modal-body img { border-radius: var(--radius-md); box-shadow: 0 8px 32px rgba(0,0,0,0.6); max-width: 100%; }

.modal-backdrop { background: rgba(0,0,0,0.85) !important; backdrop-filter: blur(6px); }

#modalBtnPlus {
  background: var(--accent); border: none; color: #fff;
  font-weight: 700; border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem; font-size: 1.1rem; transition: var(--transition);
}

#modalBtnPlus:hover { background: var(--accent-light); box-shadow: 0 0 16px var(--accent-glow); transform: scale(1.05); }

#modalBtnMinus {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem; font-size: 1.1rem; transition: var(--transition);
}

#modalBtnMinus:hover { background: rgba(255,80,80,0.12); border-color: rgba(255,80,80,0.3); color: #ff8080; transform: scale(1.05); }

#modalCount { font-family: 'Cinzel', serif; font-size: 2rem; color: var(--accent-light); line-height: 1; }

/* ===== STATS ===== */
.stats-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(155,93,229,0.1);
  padding: 1rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(155,93,229,0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem; text-align: center;
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-glow); }

.stat-value { font-family: 'Cinzel', serif; font-size: 1.9rem; font-weight: 700; color: var(--accent-light); line-height: 1; }

.stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; font-weight: 300; letter-spacing: 0.03em; }

/* ===== TOOLBAR COLLECTION ===== */
.collection-toolbar {
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(155,93,229,0.1);
  padding: 0.6rem 1rem;
}

#btnClearCollection {
  background: rgba(255,80,80,0.07);
  border: 1px solid rgba(255,80,80,0.18);
  color: #ff8080; font-size: 0.82rem;
  border-radius: var(--radius-sm); transition: var(--transition); min-height: 34px;
}

#btnClearCollection:hover { background: rgba(255,80,80,0.16); border-color: rgba(255,80,80,0.38); }

/* ===== SPINNER ===== */
.spinner-border { color: var(--accent) !important; width: 2.2rem; height: 2.2rem; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ===== GROUPE COLLECTION ===== */
.collection-group-header {
  display: flex; align-items: center; gap: 8px;
  padding: 0.75rem 0.2rem 0.4rem; margin-top: 0.5rem;
  border-bottom: 1px solid rgba(155,93,229,0.18);
  font-family: 'Cinzel', serif; font-size: 0.82rem;
  color: var(--accent-light); letter-spacing: 0.04em;
}

.collection-group-count {
  margin-left: auto; font-family: 'Outfit', sans-serif;
  font-size: 0.7rem; color: var(--text-muted); font-weight: 400; letter-spacing: 0;
}

/* ===== PROGRESSION PAR SET ===== */
.set-progress-title {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding-top: 0.25rem;
}

.set-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.6rem;
}

.set-progress-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(155,93,229,0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.set-progress-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 16px rgba(155,93,229,0.1);
}

.set-progress-card.complete {
  border-color: rgba(64,192,128,0.3);
  background: rgba(64,192,128,0.04);
}

.set-progress-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.set-progress-icon {
  width: 16px; height: 16px;
  object-fit: contain;
  opacity: 0.85;
  flex-shrink: 0;
}

.set-progress-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.set-progress-check {
  font-size: 0.7rem;
  color: #40c080;
  font-weight: 700;
  flex-shrink: 0;
}

.set-progress-count {
  font-size: 0.78rem;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.set-progress-bar-wrap {
  height: 3px;
  background: rgba(155,93,229,0.1);
  border-radius: 2px;
  overflow: hidden;
}

.set-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  border-radius: 2px;
  transition: width 0.6s ease;
}

.set-progress-bar.complete {
  background: linear-gradient(90deg, #40c080, #80ffb0);
}

.set-progress-pct {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 576px) {
  .set-progress-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.45rem;
  }
  .set-progress-card { padding: 0.6rem 0.75rem; }
  .set-progress-name { font-size: 0.7rem; }
}


/* ===== ANIMATIONS GRILLE ===== */
#cardsGrid .col-6:nth-child(1)  .pokemon-card { animation-delay: 0.02s; }
#cardsGrid .col-6:nth-child(2)  .pokemon-card { animation-delay: 0.04s; }
#cardsGrid .col-6:nth-child(3)  .pokemon-card { animation-delay: 0.06s; }
#cardsGrid .col-6:nth-child(4)  .pokemon-card { animation-delay: 0.08s; }
#cardsGrid .col-6:nth-child(5)  .pokemon-card { animation-delay: 0.10s; }
#cardsGrid .col-6:nth-child(6)  .pokemon-card { animation-delay: 0.12s; }
#cardsGrid .col-6:nth-child(7)  .pokemon-card { animation-delay: 0.14s; }
#cardsGrid .col-6:nth-child(8)  .pokemon-card { animation-delay: 0.16s; }
#cardsGrid .col-6:nth-child(9)  .pokemon-card { animation-delay: 0.18s; }
#cardsGrid .col-6:nth-child(10) .pokemon-card { animation-delay: 0.20s; }
#cardsGrid .col-6:nth-child(11) .pokemon-card { animation-delay: 0.22s; }
#cardsGrid .col-6:nth-child(12) .pokemon-card { animation-delay: 0.24s; }

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .filters-bar .row { gap: 0.35rem 0; }
  .custom-select-dropdown { min-width: 200px; }
}

@media (max-width: 576px) {
  .navbar { padding: 0.5rem 0.8rem; }
  .navbar-brand { font-size: 1rem; gap: 7px; }
  .btn-collection-nav { font-size: 0.78rem; padding: 0.35rem 0.8rem; }

  .filters-bar { top: 49px; padding: 0.5rem 0.7rem; }
  .filters-bar .row { gap: 0.3rem 0.3rem; }

  #cardsGrid { padding: 0.5rem 0.4rem; }
  #collectionGrid { padding: 0 0.2rem; }

  .pokemon-card .card-body { padding: 5px 7px 7px; }
  .pokemon-card .card-name { font-size: 0.74rem; }
  .pokemon-card .card-info { font-size: 0.65rem; }
  .card-rarity { font-size: 0.62rem; }

  .stat-value { font-size: 1.5rem; }
  .stat-card { padding: 0.7rem 0.8rem; }

  .modal-dialog { margin: 0.5rem; max-width: calc(100vw - 1rem); }
  .modal-body { padding: 0.9rem 1rem 1.2rem; }

  .custom-select-dropdown { min-width: 180px; }
  .custom-select-options { max-height: 220px; }

  .stats-bar { padding: 0.7rem 0.8rem; }
  .collection-toolbar { padding: 0.5rem 0.7rem; }
}

@media (max-width: 360px) {
  .navbar-brand { font-size: 0.9rem; }
  .pokemon-card .card-name { font-size: 0.7rem; }
  #cardsGrid { padding: 0.4rem 0.3rem; }
}
/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(155,93,229,0.15);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.06em;
}

.footer-brand img {
  border-radius: 5px;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(155,93,229,0.15);
  background: rgba(155,93,229,0.05);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-light);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
  width: 100%;
}

.footer-copy span {
  font-size: 0.65rem;
  opacity: 0.7;
}

@media (max-width: 576px) {
  .site-footer { padding: 2rem 1rem 1.2rem; }
  .footer-links { gap: 0.4rem; }
  .footer-link { font-size: 0.75rem; padding: 0.3rem 0.65rem; }
}
/* ===== FILTRES RÉTRACTABLES MOBILE ===== */
.filters-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid rgba(155,93,229,0.2);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.filters-toggle-btn:hover {
  border-color: var(--accent-border);
  background: var(--bg-hover);
}

.filters-toggle-arrow {
  transition: transform var(--transition);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 767px) {
  .filters-collapsible {
    display: none;
    padding-top: 0.5rem;
  }

  .filters-collapsible.open {
    display: block;
  }

  /* Grille 2 colonnes — override Bootstrap */
  .filters-collapsible .row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  /* Premier enfant (recherche) : pleine largeur */
  .filters-collapsible .row > *:first-child {
    grid-column: 1 / -1;
  }

  /* Retirer le padding Bootstrap */
  .filters-collapsible .row > * {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
  }
}

@media (min-width: 768px) {
  .filters-toggle-bar { display: none !important; }
  .filters-collapsible { display: block !important; }
}
/* ===== SKELETON LOADING IMAGE ===== */
.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2.5 / 3.5;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
}

.card-img-wrapper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.card-img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 25%,
    var(--bg-hover) 50%,
    var(--bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* ===== NAVBAR — LOGO AGRANDI + SÉPARATEUR ===== */
.navbar-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.navbar-sep {
  display: inline-block;
  width: 1px;
  height: 28px;
  background: rgba(155, 93, 229, 0.35);
  margin: 0 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Navbar plus haute pour accueillir le logo */
.navbar {
  min-height: 64px;
}

/* ===== FOOTER — LOGO EMPILÉ AU DESSUS DU TITRE ===== */
.footer-brand {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
}

.footer-brand span {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 0.06em;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 576px) {
  .navbar-logo {
    width: 36px;
    height: 36px;
  }

  .navbar-sep {
    height: 22px;
    margin: 0 7px;
  }

  .navbar {
    min-height: 54px;
  }

  .footer-logo {
    width: 52px;
    height: 52px;
  }
}