* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f5;
  color: #18181b;
}

.container {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 8px 24px 24px;
}

.card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.hidden {
  display: none;
}

h1, h2 {
  margin-top: 0;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  background: #18181b;
  color: white;
  font-size: 16px;
  font-weight: 700;
}

button:hover {
  opacity: 0.9;
}

input {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0 16px;
  font-size: 16px;
}

label {
  display: block;
  font-weight: 700;
  margin-top: 12px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: 700;
}

.source {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e4e4e7;
  font-size: 14px;
  font-weight: 700;
}

.source-leboncoin {
  background: #ff6e14;
  color: white;
}

.source-vinted {
  background: #007782;
  color: white;
}

.source-default {
  background: #e4e4e7;
  color: #18181b;
}

#annonce-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 16px;
  margin: 16px 0;
}

#annonce-description {
  line-height: 1.5;
}

.meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #52525b;
  margin-bottom: 18px;
}

#result-zone {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f4f4f5;
}

#round-result {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
}

.error {
  color: #dc2626;
  font-weight: 700;
}

.carousel {
  position: relative;
  width: 100%;
  margin: 16px 0 8px;
}

.carousel img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 16px;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  background: rgba(24, 24, 27, 0.8);
  color: white;
  z-index: 2;
}

#prev-img-btn {
  left: 10px;
}

#next-img-btn {
  right: 10px;
}

.image-counter {
  text-align: center;
  color: #71717a;
  font-size: 14px;
  margin: 0 0 16px;
}

.original-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #18181b;
  font-weight: 700;
  text-decoration: underline;
}

.app-header {
  width: 100%;
  padding: 16px 24px;
}

.home-btn {
  background: transparent;
  color: #18181b;
  padding: 0;
  border-radius: 0;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.home-btn:hover {
  opacity: 0.7;
}


.footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  z-index: 1000;
  font-size: 13px;
}

.footer a {
  color: white;
  text-decoration: none;
  opacity: 0.85;
}

.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Évite que le footer cache le bas du contenu */
body {
  padding-bottom: 52px;
}