/* === RESET + POLICES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #eee;
  min-height: 100vh;
  overflow-x: hidden;
}
a {
  color: #ff3344;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* === BOUTONS === */
.btn {
  background: #ff3344;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}
.btn:hover {
  background: #ff4455;
}
.btn.ghost {
  background: transparent;
  border: 1px solid #ff3344;
  color: #ff3344;
}
.btn.ghost:hover {
  background: #ff3344;
  color: #fff;
}
.btn.accent {
  background: #222;
  border: 1px solid #ff3344;
  color: #ff3344;
}
.btn.accent:hover {
  background: #ff3344;
  color: #fff;
}

/* === HERO HEADER === */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.brand {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
}
.brand span {
  color: #ff3344;
}
.tagline {
  color: #aaa;
  margin-top: 0.4rem;
}

/* === SEARCH BAR + STATS === */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}
.search {
  display: flex;
  align-items: center;
  background: #111;
  border-radius: 999px;
  padding: 2px 10px;
}
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 6px 8px;
  width: 200px;
}
#search-clear {
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 999px;
}
.stats {
  color: #777;
  font-size: 0.9rem;
}

/* === ONGLET DE FILTRES === */
#category-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem auto;
}
#category-tabs .tab {
  background: #111;
  color: #ff3344;
  border: 1px solid #ff3344;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
#category-tabs .tab:hover {
  background: #ff3344;
  color: #fff;
}
#category-tabs .tab.active {
  background: #ff3344;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
}

/* === CONTAINER + GRID === */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
#quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px) {
  #quotes-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1400px) {
  #quotes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* === QUOTE CARD === */
.quote-card {
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 0, 0, 0.25);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  display: grid;
  gap: 10px;
}
.quote-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 0, 0.45);
  box-shadow: 0 10px 24px rgba(255, 0, 0, 0.12), 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* === IMAGES / GIFS — PAS DE CROP === */
.quote-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain !important;
  background: #000;
  display: block;
  border-radius: 12px;
}
.page-quote img {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain !important;
  background: #000;
  display: block;
  margin: 0 auto 1rem;
  border-radius: 12px;
}

/* === TEXTE DES CITATIONS === */
.quote-card blockquote {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.45;
  quotes: "“" "”" "‘" "’";
}
.quote-card blockquote::before {
  content: open-quote;
  color: #ff3344;
  margin-right: 3px;
}
.quote-card blockquote::after {
  content: close-quote;
  color: #ff3344;
  margin-left: 3px;
}
.quote-card .author {
  color: #ff4666;
  margin: 0;
  font-size: 0.95rem;
}
.quote-card .tag {
  color: #bbb;
  margin: 0;
  font-size: 0.85rem;
}

/* === PAGE CITATION === */
.page-quote .quote-card.large {
  max-width: 800px;
  margin: 4rem auto;
  background: rgba(20, 20, 20, 0.7);
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
  text-align: center;
}
.page-quote blockquote {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 1rem;
}
.page-quote .author {
  color: #ff3366;
  font-size: 1.1rem;
}
.page-quote .tag {
  color: #aaa;
  font-size: 0.9rem;
}
.back-nav {
  text-align: center;
  margin-top: 1rem;
}

/* === SPOTLIGHT === */
#spotlight {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  place-items: center;
  z-index: 9999;
}
#spotlight[aria-hidden="false"] {
  display: grid;
}
.spotlight-content {
  max-width: 900px;
  text-align: center;
  padding: 1.5rem;
}
#spotlight-img {
  max-width: 96vw;
  max-height: calc(96vh - 150px);
  object-fit: contain !important;
  border-radius: 12px;
  margin-bottom: 1rem;
}
#spotlight-text {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.meta-line {
  color: #aaa;
  font-size: 0.9rem;
}
#spotlight-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ff3344;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
}
#spotlight-close:hover {
  background: #ff4455;
}

/* === AGE GATE (18+) === */
#age-gate {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
}
#age-gate[hidden] {
  display: none !important;
}
.age-card {
  background: #111;
  padding: 2rem 3rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #ff3344;
  color: #fff;
  max-width: 400px;
}
.age-card h1 {
  font-size: 3rem;
  color: #ff3344;
  margin-bottom: 1rem;
}
.age-card p {
  color: #ccc;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

/* === ÉTAT VIDE === */
#empty-state {
  text-align: center;
  color: #aaa;
  margin: 24px 0 40px;
}
