/* Marketplace — page d'une annonce (sortie du <style> de article.php le 13/11, valeurs identiques ; règles des
   classes absentes de la page — barre de recherche, hero, catégories, cartes produit, CTA, menu mobile — retirées) */
:root {
  --main: #20C997;        /* Vert doux */
  --accent: #FF6B81;      /* Rose pastel */
  --text: #222;           /* Texte sombre */
  --bg: #fffbe7;          /* Fond ivoire */
  --white: #fff;
  --highlight: #FFE066;   /* Jaune lumineux */
  --border: #eee;
  --font: 'Segoe UI', sans-serif;
  --ombre: rgba(0,0,0,0.1);
  --ombre-legere: rgba(0,0,0,0.05);
  --gris-clair: #ccc;
  --gris: #666;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

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

nav a {
  margin-left: 1.5em;
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* === FOOTER === */
footer {
  background: var(--text);
  color: var(--gris-clair);
  text-align: center;
  padding: 2em 1em;
}

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

button:focus, a:focus, input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button, nav a {
  transition: all 0.2s ease;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  body {
    padding: 0 1em;
  }
}

/* Adaptation pour la page annonce */
main {
  max-width: 1000px;
  margin: 2em auto;
  padding: 1em;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--ombre-legere);
}

.annonce-header {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.annonce-header img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--main);
}

.annonce-header h1 {
  font-size: 2em;
  margin: 0.5em 0;
  color: var(--main);
}

.annonce-meta {
  color: var(--gris);
  font-size: 0.95em;
  margin-bottom: 1em;
}

.annonce-description {
  margin-top: 2em;
  line-height: 1.6;
  font-size: 1.1em;
}

.tags {
  margin-top: 2em;
}

.tags span {
  background: var(--bg);
  color: #444;
  padding: 6px 12px;
  border-radius: 16px;
  margin: 4px;
  display: inline-block;
  font-size: 0.85em;
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  text-decoration: none;
  background: var(--main);
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.back-link:hover {
  background: var(--accent);
  color: var(--text);
}

.annonce-prix {
  font-size: 2em;
  color: var(--main);
  font-weight: bold;
  margin: 0.5em 0;
}

@media (max-width: 768px) {
  .annonce-header {
    flex-direction: column;
  }

  .annonce-header img {
    max-height: 300px;
  }
}

/* Titre de la barre du haut (avant : style="…" dans article.php) */
header h1.mp-marque { color: var(--main); margin: 0; }
