/* --- Général --- */
body {
  font-family: Arial, sans-serif;
  background: #1a001f; /* plus foncé */
  color: #fff;
  margin: 0;
  padding: 0;
}

/* --- Header --- */
header {
  text-align: center;
  padding: 1.5em;
  background: linear-gradient(90deg, #3d0066, #1a001f);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

h1 {
  margin: 0;
  font-size: 2.2em;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

p {
  margin: 0.5em 0;
}

button {
  padding: 0.5em 1em;
  margin-top: 0.5em;
  cursor: pointer;
  background: linear-gradient(135deg, #6b1fa1, #9b30ff);
  color: #fff;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}

/* --- Container cartes --- */
#cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1em;
  gap: 1em;
}

/* --- Cartes --- */
.card {
  background: linear-gradient(145deg, #35005a, #4d0072);
  border-radius: 12px;
  padding: 1em;
  width: 240px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

/* --- Cœur --- */
.heart {
  cursor: pointer;
  font-size: 1.5em;
  vertical-align:middle;
  margin-left:1em;
  color: #ccc;
  transition: color 0.2s, transform 0.2s;
}

.heart:hover {
  transform: scale(1.2);
}

.heart.liked {
  color: red;
}

/* --- Popup modal --- */
#modal {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

#modal.hidden {
  display: none;
}

#modal-content {
  background: linear-gradient(135deg, #2c003e, #500073);
  padding: 2em;
  border-radius: 15px;
  position: relative;
  max-width: 650px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
}

/* --- Bouton fermer --- */
#close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 2em;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}

#close:hover {
  color: #ff4c4c;
}

/* --- Popup contenu --- */
.modal-header {
  text-align: center;
  margin-bottom: 1em;
}

.modal-img {
  max-width: 150px;
  border-radius: 10px;
  margin-bottom: 0.5em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

.modal-description {
  margin-bottom: 1em;
}

ul {
  padding-left: 1.2em;
}

li {
  margin-bottom: 0.3em;
}

/* Date et origine dans les cartes */
.card .date,
.card .origine {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #DDD;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background-color: rgba(200, 200, 200, 0.1);
}

/* Icônes avant le texte */
.card .date::before {
  content: "📅";
  margin-right: 4px;
}

.card .origine::before {
  content: "🌍";
  margin-right: 4px;
}

/* Modal header - même style mais plus visible */
.modal-header .date,
.modal-header .origine {
  font-size: 0.95rem;
  color: #DDD;
  margin: 3px 0;
  display: flex;
  align-items: center;
}

.modal-header .date::before {
  content: "📅";
  margin-right: 6px;
}

.modal-header .origine::before {
  content: "🌍";
  margin-right: 6px;
}



/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #333;
  color: white;
}

.site-header .nav-links a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}

.site-header .nav-links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 15px;
  background: #f1f1f1;
  margin-top: 30px;
  font-size: 0.9em;
  color: #555;
}
