* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(to bottom, #87CEEB 0%, #b8d8f0 40%, #e3f2fd 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Realistic cloud shapes */
.cloud {
  position: absolute;
  filter: blur(30px);
  opacity: 0.8;
  animation: drift 60s infinite ease-in-out;
}
.cloud:nth-child(1) {
  width: 400px; height: 120px; top: 8%; left: -10%;
  background: radial-gradient(ellipse at 30% 50%, #ffffff 0%, rgba(255,255,255,0.9) 40%, transparent 70%);
  animation-duration: 80s; animation-delay: 0s;
}
.cloud:nth-child(2) {
  width: 350px; height: 100px; top: 25%; right: -5%;
  background: radial-gradient(ellipse at 60% 40%, #ffffff 0%, rgba(255,255,255,0.85) 35%, transparent 65%);
  animation-duration: 100s; animation-delay: -20s;
}
.cloud:nth-child(3) {
  width: 500px; height: 140px; top: 55%; left: 10%;
  background: radial-gradient(ellipse at 40% 60%, #ffffff 0%, rgba(255,255,255,0.9) 45%, transparent 75%);
  animation-duration: 120s; animation-delay: -40s;
}
.cloud:nth-child(4) {
  width: 300px; height: 90px; top: 75%; right: 15%;
  background: radial-gradient(ellipse at 50% 50%, #ffffff 0%, rgba(255,255,255,0.8) 40%, transparent 70%);
  animation-duration: 90s; animation-delay: -60s;
}
.cloud:nth-child(5) {
  width: 450px; height: 130px; top: 40%; left: 50%;
  background: radial-gradient(ellipse at 35% 45%, #ffffff 0%, rgba(255,255,255,0.75) 38%, transparent 68%);
  animation-duration: 110s; animation-delay: -30s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(50px, -20px); }
  50% { transform: translate(-30px, 10px); }
  75% { transform: translate(20px, -15px); }
}

@media (max-width: 768px) {
  .cloud { display: none; }
  #loading {
    background: white;
  }
}

#app { position: relative; z-index: 10; }

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal h2 { margin-bottom: 2rem; color: #1a202c; font-size: 2rem; font-weight: 700; }

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-100%);
  transition: transform 0.4s;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.input-group {
  margin: 1.5rem 0;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.input-group input, .input-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8fafc;
}

.input-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.back-btn {
  background: #e0e0e0;
  color: #2c3e50;
  padding: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.back-btn:hover {
  background: #d0d0d0;
}

/* Dropdown button styles */
.dropdown-container {
  position: relative;
  display: flex;
  width: 100%;
  border-radius: 16px;
  /* Allow menu to escape */
  overflow: visible;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.dropdown-btn {
  flex: 1;
  border-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-toggle {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  padding: 1rem 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  min-width: 50px;
}

.dropdown-toggle:hover {
  background: linear-gradient(135deg, #5b5bd6 0%, #7c3aed 100%);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  margin-top: 0.4rem;
}

.dropdown-container.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
  color: #2c3e50;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.1);
}

.dropdown-item.active {
  background: rgba(99, 102, 241, 0.2);
  font-weight: 600;
}

/* Mobile modal styles */
@media (max-width: 768px) {
  .modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 2rem;
    overscroll-behavior-y: contain;
  }
  
  .detail-modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 2rem;
    overscroll-behavior-y: contain;
  }
}

/* Fullscreen welcome screen */
.welcome-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1500;
}

.welcome-content {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 2.2rem 2rem 2.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.welcome-title {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.welcome-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.welcome-actions.row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-top: 1rem;
}

.welcome-actions.row .welcome-btn {
  width: auto;
  flex: 1;
}

.welcome-btn {
  width: 100%;
  padding: 1rem 1.1rem;
  border: none;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: .25s;
}

.welcome-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}

.welcome-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

.welcome-btn.secondary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.welcome-btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
}

.welcome-btn.ghost {
  background: #f1f5f9;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.welcome-btn.ghost:hover {
  background: #e2e8f0;
}

.welcome-field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.welcome-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  transition: .2s;
}

.welcome-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* Mobile responsive for welcome */
@media (max-width: 560px) {
  .welcome-screen {
    background: white;
    padding: 1rem;
  }
  .welcome-content {
    max-width: 100%;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .welcome-title {
    font-size: 1.9rem;
    color: #1e293b;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
  }
  .welcome-btn {
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    border-radius: 22px;
  }
}

/* Main app container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.header h1 { 
  font-size: 3.5rem; 
  margin-bottom: 0.5rem; 
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header p { 
  font-size: 1.3rem; 
  opacity: 0.95; 
  font-weight: 500; 
  background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search bar */
.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  transition: all 0.3s;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  z-index: 10;
}

/* Admin toolbar */
.admin-toolbar {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.6rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Category menu */
.category-menu {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 1rem 0;
  margin-bottom: 2rem;
  scrollbar-width: thin;
}
.category-item { 
  position: relative; 
  display: flex; 
  align-items: center;
}
.category-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-btn > span:first-child {
  flex: 1;
}
.category-actions-trigger {
  opacity: 0.7;
  padding: 0 0.3rem;
  cursor: pointer;
  font-weight: bold;
  transition: opacity 0.2s;
}
.category-actions-trigger:hover {
  opacity: 1;
}
.category-actions-menu {
  position: fixed;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 140px;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  margin-top: 0.5rem;
}
.category-actions-menu button {
  background: none;
  border: none;
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color:#1e293b;
}
.category-actions-menu button:hover { background: rgba(99,102,241,0.12); }
.category-actions-menu button.danger { color:#dc2626; }
.category-actions-menu button.danger:hover { background: rgba(220,38,38,0.12); }

.category-menu::-webkit-scrollbar {
  height: 8px;
}

.category-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.category-btn {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
  background: white;
}

.category-btn.active {
  border-color: #6366f1;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* Carousel */
.carousel-container {
  position: relative;
  padding: 0 60px;
}

.carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel::-webkit-scrollbar {
  height: 6px;
}

.carousel::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
  border-radius: 3px;
}

.carousel::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.3);
  border-radius: 3px;
}

.carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.5);
}

.carousel.dragging .item-card {
  pointer-events: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.25s, box-shadow 0.25s;
  color: #1e293b;
  z-index: 1000;
  pointer-events: auto;
}

.nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.nav-arrow.left {
  left: 0;
}
.nav-arrow.right {
  right: 0;
}

/* Show arrows when there are more than 5 items */
@media (min-width: 769px) {
  .nav-arrow {
    display: flex;
  }
}

/* Mobile: show arrows when there are more than 5 items */
@media (max-width: 768px) {
  .nav-arrow {
    display: flex;
  }
  .carousel {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1rem;
    scroll-padding: 0 15vw;
    gap: 2rem;
  }
  .item-card {
    flex: 0 0 70vw;
    max-width: 70vw;
    scroll-snap-align: center;
  }
}

@media (max-width: 640px) {
  .nav-arrow { width: 40px; height: 40px; font-size: 1.4rem; }
  .nav-arrow.left { left: 5px; }
  .nav-arrow.right { right: 5px; }
}

.item-card {
  flex: 0 0 280px;
  height: 400px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  scroll-snap-align: none;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.15);
}

.item-card-top {
  flex: 1;
}

.item-card-bottom {
  margin-top: auto;
}

.item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #f1f5f9;
  cursor: pointer;
}

.item-content {
  padding: 1.5rem;
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  cursor: pointer;
}

.item-price-badge {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.item-price-badge::before {
  content: '~';
  margin-right: 0.2rem;
}

.item-card.owned {
  opacity: 0.6;
  position: relative;
}

.item-card.owned::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: #4caf50;
  font-weight: bold;
  z-index: 10;
}

.load-more-card {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
}

.load-more-card h3 {
  font-size: 1.2rem;
  color: #333;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #6366f1;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-top: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.item-card h3 {
  color: #0f172a;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
  padding-right: 1rem;
  height: 2.6em; /* line-height * 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.item-date {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.8rem;
  font-style: italic;
  cursor: pointer;
}

.carousel-section {
  margin-bottom: 3rem;
}

.carousel-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.interest-button {
  width: 100%;
  padding: 0.8rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 0 0 20px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

/* Vert - Personne intéressé */
.interest-button.no-interest {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.interest-button.no-interest:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Jaune - D'autres personnes intéressées */
.interest-button.others-interested {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.interest-button.others-interested:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Orange - Je suis intéressé */
.interest-button.user-interested {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.interest-button.user-interested:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Ancien style pour compatibilité */
.interest-button.interested {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.interest-count {
  opacity: 0.9;
  font-size: 0.9rem;
}

.interest-counter {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.item-card .category-tag {
  display: inline-block;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  padding: 0.4rem 1rem;
  border-radius: 16px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.item-card p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.item-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6366f1;
  margin-bottom: 0.5rem;
}

.item-price::before {
  content: '~';
  margin-right: 0.2rem;
}

.item-link {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.item-link:hover { text-decoration: underline; }

.booking-badge {
  background: #fff3e0;
  color: #f57c00;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  display: inline-block;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: white;
  font-size: 1.2rem;
}

/* Price filter */
.price-filter {
  max-width: 600px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.price-filter h4 {
  margin: 0 0 1rem 0;
  color: #1e293b;
  font-size: 1rem;
}

.price-filter.collapsed {
  display: none;
}

.price-inputs {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.price-inputs input {
  flex: 1;
  padding: 0.7rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
}

.filter-toggle-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.75rem;
}

.filter-toggle-btn span {
  font-size: 0.85rem;
  opacity: 0.85;
}

.price-filter.collapsed {
  display: none;
}

@media (max-width: 768px) {
  /* Carousel */
.carousel-container {
  padding: 0 0;
}
  .price-inputs {
    flex-direction: column;
  }
}

/* Item detail modal */
.detail-modal {
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.detail-modal .item-image-large {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.detail-content h2 {
  margin-bottom: 1rem;
}

.detail-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.detail-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Notifications */
.notifications {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: #4CAF50;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: 500;
  text-align: center;
  min-width: 300px;
  max-width: 500px;
  animation: slideUp 0.3s ease-out;
  margin-bottom: 10px;
}

.notification.error {
  background: #f44336;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}