/* Marketplace — page Explorer (sortie du <style> de explorer.php le 13/11, valeurs identiques) */
:root {
  --main: #3C77F2;
  --accent: #FF6B6B;
  --text: #333;
  --bg: #f9f9f9;
  --white: #fff;
  --ombre-legere: rgba(0,0,0,0.05);
  --gris-clair: #ccc;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

header {
  background: var(--white);
  padding: 1em 2em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 6px var(--ombre-legere);
}

main {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1em;
}

h1 {
  margin-bottom: 1em;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5em;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--ombre-legere);
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-body {
  padding: 1em;
}

.card-body h2 {
  font-size: 1.2em;
  margin: 0 0 0.5em 0;
}

.card-body p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 0.5em;
}

.prix {
  color: var(--main);
  font-weight: bold;
  font-size: 1.1em;
}

footer {
  background: #222;
  color: var(--gris-clair);
  text-align: center;
  padding: 2em 1em;
  margin-top: 4em;
}

footer a {
  color: var(--gris-clair);
  margin: 0 1em;
  text-decoration: none;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  header h2 {
    font-size: 1.2em;
  }

  .card-body h2 {
    font-size: 1em;
  }
}

/* Filtres et étiquettes des cartes (avant : style="…" dans explorer.php) */
.mp-filtres { margin-bottom: 2em; display: flex; flex-wrap: wrap; gap: 1em; justify-content: center; }
.mp-filtres input, .mp-filtres select { padding: 6px; }
.mp-filtres .mp-prix { width: 100px; }
.mp-filtres button { padding: 6px 12px; }
.mp-photo { position: relative; }
.mp-etiquette { position: absolute; top: 8px; color: var(--white); padding: 4px 8px; font-size: 0.75em; border-radius: 4px; }
.mp-etiquette--type { left: 8px; background: var(--main); }
.mp-etiquette--nouveau { right: 8px; background: var(--accent); }
.card-body p.mp-categorie { font-size: 0.8em; color: #999; }
.card-body p.mp-date { font-size: 0.8em; color: #aaa; }
