.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 4rem;
  background: var(--official-green);
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: var(--background);
  max-width: 48rem;
  margin: 0 auto;
}

/* Items Grid */
.items-section {
  padding: 4rem 0;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Item Card */
.item-card {
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-card:hover {
  transform: translateY(-4px);
}

.item-card__image {
  height: 200px;
  overflow: hidden;
}

.item-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.item-card:hover .item-card__image img {
  transform: scale(1.1);
}

.item-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.item-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--official-green);
}

.item-card__description {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.item-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.item-card__specs li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
  color: var(--foreground);
  font-size: 0.95rem;
}

.item-card__specs li:last-child {
  border-bottom: none;
}

.item-card__actions {
  margin-top: auto;
}

/* Ensure CTA sticks to bottom when content is short */
.site-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.items-section {
  flex: 1 1 auto;
}

.cta-section {
  flex-shrink: 0;
  margin-top: 0;
}

/* CTA Section */
.cta-section {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(
    90deg,
    var(--official-green),
    var(--official-brown)
  );
  color: white;
  text-align: center;
  margin-top: 2rem;
}

.cta__title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta__subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn--hero {
  background: white;
  color: var(--foreground);
  font-size: 1.125rem;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn--outline:hover {
  border-color: var(--official-brown);
  color: var(--official-brown);
}

.btn__icon {
  margin-left: 0.5rem;
  transition: transform 0.2s;
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

#detailModal {
  background-image: url("/images/background.png");
  background-repeat: repeat; /* l’image se répète automatiquement */
  background-size: auto; /* garde la taille originale de l’image */
  background-position: top left; /* commence en haut à gauche */
  background-attachment: fixed; /* optionnel : effet de fond fixe */
}

.back-to-top {
  position: fixed !important;
  top: auto;
  left: auto;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--official-green);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top.show {
  display: inline-flex;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 425px) {
  .cta__title {
    font-size: 2rem;
  }

  .cta__subtitle {
    font-size: 1rem;
  }
}
