@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');

body {
  font-family: 'Inria Serif', serif;
  background-color: #ece5cc;
  color: #252323;
  margin: 0;
  padding: 0;
  font-size: 1.1em;
  line-height: 1.8;
}

.details-oeuvre {
  display: flex;
  padding: 40px 60px;
  gap: 30px;
  background-color: #fdfaf3;
  justify-content: center;
  align-items: flex-start;
}

/* Colonne de gauche */
.gauche {
  flex: 1;
  max-width: 300px;
  background: linear-gradient(to bottom, #f8f2e8, #fdfaf3);
  padding: 20px;
  border-radius: 12px;
}

.gauche h2 {
  color: #5c483a;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 2px dashed #d4c5a6;
  padding-bottom: 10px;
}

.gauche p {
  margin-bottom: 15px;
  color: #3d3027;
  font-size: 1.1em;
}

.fleche-gauche {
  font-size: 1.8em;
  background-color: #fbeacc;
  color: #5c483a;
  padding: 10px 14px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  display: inline-block;
}

.fleche-gauche:hover {
  background-color: #e2c7a3;
  color: #3d3027;
}

/* Colonne centrale */
.grande-image {
  flex: 1;
  background-color: #fff8ee;
  padding: 20px;
  border: 2px solid #e2d3b3;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  max-height: 600px;
}

.grande-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* Portrait vs Landscape : bien différencier les hauteurs */
.grande-image img.landscape {
  max-height: 350px;
  width: auto;
}

.grande-image img.portrait {
  max-height: 500px;
  width: auto;
}

/* Colonne de droite */
.droite {
  flex: 1.5;
  padding: 20px;
  background-color: #fcf7ec;
  border-radius: 12px;
}

.description {
  margin-top: 30px;
}

.description h3 a {
  font-size: 1.8em;
  font-weight: 700;
  color: #5c483a;
  text-decoration: none;
}

.description h3 a:hover {
  color: #3d3027;
  text-decoration: underline;
}

.description p {
  font-size: 1.1em;
  color: #403830;
  margin-top: 10px;
  line-height: 1.8;
}

.description h4 {
  font-size: 1.6em;
  font-weight: 700;
  margin-top: 20px;
  color: #3d3027;
}

/* Actions (like + panier) */
.actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  background-color: #fff8ee;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: fit-content;
}

.actions button {
  background-color: transparent;
  border: none;
  font-size: 2em;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.actions button:hover {
  transform: scale(1.2);
}

/* Bouton acquérir */
.bouton-acquerir {
  margin-top: 30px;
}

.bouton-acquerir button {
  background-color: #5c483a;
  color: #fff;
  font-size: 1.4em;
  padding: 20px 40px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Inria Serif', serif;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.bouton-acquerir button:hover {
  background-color: #3d3027;
  transform: scale(1.05);
}

.bouton-like {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
  color: #888; /* couleur par défaut non liké */
}

.bouton-like:hover {
  transform: scale(1.2);
  color: red;
}

.bouton-like.dejа-like {
  color: red;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.bouton-like.dejа-like:hover {
  transform: scale(1.2);
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}
