*, *::after, *::before {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-image: url(Images/fond.jpeg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

nav a,
.carte-nom,
h1 {
  font-family: 'Pirata One', cursive;
}

nav {
  display: flex;
  gap: 30px;
  padding: 16px 20px;
  background-color: #c0392b;
  justify-content: space-around;
  border-bottom: 3px solid #f39c12;
}

nav a {
  color: #f5e6c8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

nav a:hover {
  color: #f39c12;
}

form, select {
  display: inline-block;
  margin: 20px 10px;
}

input[type="text"] {
  padding: 8px 14px;
  border: 2px solid #f39c12;
  border-radius: 6px;
  background-color: #1a2e45;
  color: #f5e6c8;
  font-size: 14px;
}

button[type="submit"] {
  padding: 8px 16px;
  background-color: #f39c12;
  color: #1a2e45;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #e67e22;
}

select {
  padding: 8px 14px;
  border: 2px solid #f39c12;
  border-radius: 6px;
  background-color: #1a2e45;
  color: #f5e6c8;
  font-size: 14px;
  cursor: pointer;
}

/* Mobile : 1 colonne */
.grille {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}

/* Desktop : 4 colonnes à partir de 768px */
@media (min-width: 768px) {
  .grille {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Carte portrait style avis de recherche */
.carte {
  width: 100%;
  border: 3px solid #8b4513;
  border-radius: 8px;
  background-color: #f0d9a0;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  cursor: pointer;
  text-decoration: none;
}

.carte-fond {
  display: none;
}

.carte-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background-color: #1a2e45;
  border-radius: 4px;
}

/* Nom centré sous l'image */
.carte-nom {
  margin-top: 8px;
  color: #2c1810;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Pirata One', cursive;
  text-align: center;
  width: 100%;
}

.carte-infos {
  margin-top: 8px;
  color: #4a2c0a;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  width: 100%;
  text-align: left;
}

.lien-carte {
  text-decoration: none;
  color: inherit;
}

h1 {
  color: #f5e6c8;
  padding: 20px;
  font-size: 24px;
}

p {
  color: #f5e6c8;
  padding: 0 20px 10px;
}

/* Page détail */
.detail {
  display: flex;
  gap: 40px;
  padding: 40px;
  align-items: flex-start;
}

.detail-image {
  width: 300px;
  height: 400px;
  object-fit: contain;
  object-position: center;
  background-color: #1a2e45;
  border: 3px solid #8b4513;
  border-radius: 8px;
  flex-shrink: 0;
}

.detail-contenu {
  background-color: #f0d9a0;
  border: 3px solid #8b4513;
  border-radius: 8px;
  padding: 24px;
  flex: 1;
}

.detail-contenu h1 {
  color: #2c1810;
  padding: 0;
  margin-bottom: 16px;
}

.detail-infos p {
  color: #4a2c0a;
  font-size: 14px;
  line-height: 2;
}

.detail-infos strong {
  color: #2c1810;
}

.bouton-retour {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #c0392b;
  color: #f5e6c8;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Pirata One', cursive;
  font-size: 16px;
}

.bouton-retour:hover {
  background-color: #e74c3c;
}