/* 
  O Trésor des Plantes - Premium Botanical Design System
  Theme: Cinematic Fullscreen 3D Glassmorphism
  Colors: Deep Rainforest (#030605), Glowing Emerald (#10B981), Amber Gold (#F59E0B)
*/

:root {
  --bg-dark: #030605;
  --bg-card: linear-gradient(135deg, rgba(8, 20, 15, 0.6) 0%, rgba(4, 10, 7, 0.8) 100%);
  --bg-card-hover: linear-gradient(135deg, rgba(12, 30, 22, 0.7) 0%, rgba(6, 15, 11, 0.9) 100%);
  --bg-glass: rgba(255, 255, 255, 0.02);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.3);
  
  --primary-emerald: #10b981;
  --primary-green: #059669;
  --accent-gold: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #f59e0b 100%);
  --emerald-glow: 0 8px 32px rgba(16, 185, 129, 0.08);
  --hover-glow: 0 12px 40px rgba(16, 185, 129, 0.18);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Page Overlay for Contrast */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(3, 6, 5, 0.25) 0%, rgba(2, 4, 3, 0.9) 100%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }

p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--emerald-glow);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: var(--hover-glow);
  transform: translateY(-4px);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

/* Fullscreen Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Floating Site Header */
.site-header {
  position: fixed;
  top: 1.25rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-wrapper {
  background: rgba(8, 20, 15, 0.45);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.65rem 2rem;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  top: 0.75rem;
}

.site-header.scrolled .header-wrapper {
  background: rgba(4, 10, 7, 0.82);
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: var(--emerald-glow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.brand-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-emerald);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-emerald);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent-gradient);
  color: #030605;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
  transition: var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.06);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

.mobile-toggle svg {
  width: 28px;
  height: 28px;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 9rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary-emerald);
  font-weight: 700;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-emerald);
  box-shadow: 0 0 10px var(--primary-emerald);
  animation: pulse 1.8s infinite alternate;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 2.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating Showcase Card in Hero */
.hero-showcase-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: rotate(1deg);
  border-color: rgba(16, 185, 129, 0.18);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.showcase-image-box {
  width: 100%;
  height: 230px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.showcase-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(3, 6, 5, 0.85);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* Section Header styling */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 4.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.section-header h2 {
  margin-top: 0.5rem;
}

/* Bento Sourcing Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 3rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-emerald);
  stroke-width: 2;
}

/* Botanical Explorer */
.explorer-box {
  margin-top: 3rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  border-color: rgba(255,255,255,0.05);
}

.explorer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.explorer-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.6rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.explorer-tab-btn:hover {
  border-color: rgba(16, 185, 129, 0.4);
  color: #ffffff;
  background: rgba(255,255,255,0.03);
}

.explorer-tab-btn.active {
  border-color: var(--primary-emerald);
  background: rgba(16, 185, 129, 0.09);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
}

.explorer-tab-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-light);
  transition: var(--transition-fast);
}

.explorer-tab-btn.active svg {
  stroke: var(--primary-emerald);
  transform: translateX(4px);
}

.explorer-content-panel {
  background: rgba(3, 6, 5, 0.55);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.explorer-botanical-name {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--accent-gold);
  font-weight: 600;
}

.explorer-divider {
  height: 1px;
  background: var(--border-glass);
  margin: 0.4rem 0;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.benefits-list li svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-emerald);
  stroke-width: 2.5;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Products Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image-box {
  width: 100%;
  height: 260px;
  position: relative;
  overflow: hidden;
}

.product-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-box img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(3, 6, 5, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--primary-emerald);
  color: var(--primary-emerald);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-body {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.product-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.product-action-btn {
  padding: 0.58rem 1.25rem;
  font-size: 0.88rem;
}

/* Testimonial slider refined */
.testimonials-slider {
  max-width: 850px;
  margin: 3.5rem auto 0 auto;
  border-color: rgba(16, 185, 129, 0.15);
}

.testimonial-card {
  padding: 3.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.quote-icon {
  color: rgba(16, 185, 129, 0.15);
  font-size: 4rem;
  font-family: Georgia, serif;
  line-height: 0;
  height: 20px;
}

.quote-text {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  color: #ffffff;
  font-weight: 500;
  line-height: 1.65;
  font-style: italic;
}

.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.quote-author-name {
  font-weight: 700;
  color: var(--primary-emerald);
  font-size: 1.05rem;
}

.quote-author-title {
  font-size: 0.85rem;
  color: var(--text-light);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  background: var(--primary-emerald);
  transform: scale(1.3);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 800px;
  margin: 3.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow: var(--emerald-glow);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  padding: 0 2rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 2rem 1.75rem 2rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.35s ease;
  stroke: var(--primary-emerald);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.info-item {
  display: flex;
  gap: 1.35rem;
}

.info-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary-emerald);
}

.info-details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-details strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.15rem;
  background: rgba(3, 6, 5, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary-emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  background: rgba(3, 6, 5, 0.7);
}

/* Site Footer */
.site-footer {
  background: #010202;
  border-top: 1px solid var(--border-glass);
  padding: 6.5rem 0 2rem 0;
  margin-top: 7rem;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.footer-corporate-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.footer-links-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary-emerald);
}

.footer-disclaimer-box {
  border-top: 1px solid var(--border-glass);
  padding: 2.2rem 0;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* Keyframes */
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.75; box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
  100% { transform: scale(1.12); opacity: 1; box-shadow: 0 0 16px rgba(16, 185, 129, 0.7); }
}

/* Responsive Parameters */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 4.5rem; text-align: center; }
  .badge-tag { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-showcase-card { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .explorer-box { grid-template-columns: 1fr; gap: 3rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .site-header { top: 0; }
  .header-wrapper { border-radius: 0; border-inline: none; border-top: none; padding: 1rem 1.5rem; }
  .site-header.scrolled { top: 0; }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(3, 6, 5, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    gap: 1.8rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }
  
  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle { display: block; }
  .btn-header-cta { display: none; }
  
  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
}
