
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: rgb(74, 176, 123);
  --primary-hover: rgb(61, 147, 102);
  --text-primary: #1f2937;
  --text-secondary: #64748b;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-green-50: #ecfdf5;
  --border: rgba(0, 0, 0, 0.1);
  --amazon-orange: #ff9900;
  --amazon-blue: #232f3e;
  --leboncoin-orange: #FF6E14;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  background-color: #f9fafb;
  color: var(--text-primary);
  line-height: 1.5;
}

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

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1rem 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, var(--bg-green-50), var(--bg-light));
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.centered-image {
    display: block;
    margin: 0 auto;
    max-width: 100px; /* Ajuste la taille selon tes besoins */
}

.badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-green-50);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.button-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 6px rgba(74, 176, 123, 0.1);
}

.button-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 8px rgba(74, 176, 123, 0.15);
  transform: translateY(-1px);
}

.button-outline {
  background-color: white;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.button-outline:hover {
  background-color: var(--bg-light);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Demo Section */
.demo {
  background-color: white;
  padding: 4rem 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.browser-mockup {
  background-color: #f1f5f9;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 900px;
}

.browser-header {
  background-color: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}

.browser-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.dot-red {
  background-color: #ef4444;
}

.dot-yellow {
  background-color: #eab308;
}

.dot-green {
  background-color: #22c55e;
}

.browser-address {
  background-color: #334155;
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.25rem 1rem;
  border-radius: 0.25rem;
  margin-left: 1rem;
  flex-grow: 1;
}

.browser-content {
  position: relative;
}

/* Amazon Mockup */
.amazon-mockup {
  position: relative;
  background-color: white;
  padding: 1rem;
  overflow: hidden;
  height: 450px;
}

.amazon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.amazon-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--amazon-blue);
}


.amazon-product {
  padding: 1.5rem 0;
}

.amazon-product-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

.amazon-product-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.amazon-product-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.amazon-product-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.amazon-product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.amazon-stars {
  color: var(--amazon-orange);
}

.amazon-product-price {
  margin-bottom: 1rem;
}

.amazon-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #b91c1c;
}

.amazon-product-delivery {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.amazon-product-actions {
  display: flex;
  gap: 1rem;
}

.amazon-button {
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
}

.amazon-cart {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.amazon-buy {
  background-color: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* Extension Toggle - Matched to extension UI */
.extension-toggle {
  position: absolute;
  top: 190px;
  right: 1rem;
  z-index: 10;
}

.extension-toggle-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  transition: all 0.2s ease;
  position: relative;
}

.extension-toggle-button:hover {
  background-color: #F0FCF4;
}

.extension-toggle-button.active {
  opacity: 0;
}

.extension-toggle-text {
  font-weight: 600;
}

.extension-badge {
  position: absolute;
  top: -8px;
  right: -5px;
  background-color: var(--primary);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(74, 176, 123, 0.3);
}

/* Extension Panel - Matched to extension UI */
.extension-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 450px;
  background-color: white;
  border-radius: 8px 0 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 20;
}

.extension-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f9fafb;
}

.extension-panel-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2px;
}

.extension-panel-subtitle {
  font-size: 0.875rem;
  font-weight: 500;
}

.extension-close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
}

.extension-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.extension-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.extension-filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.extension-results-count {
  font-size: 0.75rem;
  color: #64748b;
}

.extension-filter-button {
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
}

.extension-filter-button:hover {
  background-color: #f9fafb;
  color: var(--primary);
}

.extension-alternatives {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.alternative-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.alternative-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.alternative-image {
  position: relative;
  height: 120px;
  background-color: #f9fafb;
}

.alternative-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.alternative-date {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  color: #333;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
}

.alternative-content {
  padding: 0.75rem;
}

.alternative-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.alternative-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.alternative-badge-delivery {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--primary);
  background-color: #e0fbea;
  border: 1px solid var(--primary);
}

.alternative-badge-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  color: #64748b;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
}

.alternative-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.alternative-price {
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.alternative-link {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  gap: 4px;
}

.alternative-link:hover {
  color: var(--primary-hover);
}

.extension-panel-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f9fafb;
}

.extension-feedback-text {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 8px;
}

.extension-feedback-buttons {
  display: flex;
  gap: 8px;
}

.extension-feedback-btn {
  flex: 1;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
}

.extension-feedback-btn:hover {
  background-color: #f9fafb;
}

.extension-yes-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.extension-no-btn:hover {
  color: #dc2626;
  border-color: #dc2626;
}

/* Features Section */
.features {
  padding: 4rem 1rem;
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background-color: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* Installation Section */
.installation {
  padding: 4rem 1rem;
  background-color: white;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  background-color: var(--bg-green-50);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
  font-weight: 500;
}

.step h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.step p {
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background-color: #3A9666;
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.footer p {
  color: #4AB07B;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .button {
    width: 100%;
    max-width: 280px;
  }

  .amazon-product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .amazon-product-image {
    margin-bottom: 1rem;
  }

  .extension-panel {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
  }
}
