/* Variables */
:root {
  --green-primary: #2d9d78;
  --green-dark: #1e7a5e;
  --green-light: #e8f5f0;
  --teal: #38b2a3;
  --white: #ffffff;
  --gray-100: #f8faf9;
  --gray-200: #eef2f0;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --yellow: #f5c842;
  --disclaimer-bg: #fff3cd;
  --disclaimer-border: #ffc107;
  --ad-banner-bg: #e74c3c;
  --ad-banner-text: #fff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(45, 157, 120, 0.12);
  --shadow-hover: 0 8px 30px rgba(45, 157, 120, 0.2);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Ad banner */
.ad-banner {
  background: var(--ad-banner-bg);
  color: var(--ad-banner-text);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1001;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Disclaimer */
.disclaimer {
  background: var(--disclaimer-bg);
  border-bottom: 3px solid var(--disclaimer-border);
  padding: 14px 24px;
  font-size: 0.85rem;
  color: #856404;
  text-align: center;
  position: relative;
  z-index: 1000;
  animation: fadeIn 0.6s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.disclaimer p {
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
  animation: fadeIn 0.5s ease-out;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 20px;
}

.nav a.nav-active {
  color: var(--green-primary);
  background: var(--green-light);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.logo:hover {
  color: var(--green-primary);
  transform: scale(1.02);
}

.logo-icon {
  color: var(--green-primary);
  font-size: 1.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.3s, background 0.3s;
}

.nav a:hover {
  color: var(--green-primary);
  background: var(--green-light);
}

.cta-header {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  color: var(--green-primary);
  border: 2px solid var(--green-primary);
}

.btn-outline:hover {
  background: var(--green-light);
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.hero-new-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-new-buttons .btn {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero — nouvelle structure (split gauche blanc / droite teal) */
.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-new {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  align-items: stretch;
  padding-bottom: 60px;
}

.hero-new-inner {
  display: contents;
}

.hero-new-left {
  background: var(--white);
  padding: 64px 32px 64px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero-new-left {
    padding: 64px 48px 64px 48px;
  }
}

.hero-new-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #e67e22;
  margin-bottom: 16px;
}

.hero-new-title .line1,
.hero-new-title .line2 {
  display: block;
}

.hero-new-desc {
  color: var(--gray-600);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-new-cta {
  align-self: flex-start;
}

.hero-new-right {
  background: linear-gradient(160deg, var(--teal) 0%, var(--green-primary) 100%);
  background-image: url('1.jpeg');
  background-size: cover;
  background-position: center;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-new-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(45, 157, 120, 0.75);
  z-index: 0;
}

.hero-new-right .hero-new-badge,
.hero-new-right .hero-new-cards {
  position: relative;
  z-index: 1;
}

.hero-new-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-new-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 380px;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-card:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}

.hero-card h3 {
  font-size: 1.1rem;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

.hero-new-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--gray-100);
  clip-path: ellipse(80% 100% at 50% 100%);
  z-index: 0;
  pointer-events: none;
}

/* Animations d'entrée */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out both;
}

.animate-slide-up {
  animation: slideUp 0.9s ease-out 0.2s both;
}

.animate-slide-left {
  animation: slideLeft 0.9s ease-out 0.4s both;
}

.animate-zoom-in {
  animation: zoomIn 0.9s ease-out 0.5s both;
}

.animate-slide-right {
  animation: slideRight 0.9s ease-out 0.4s both;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(-12deg);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(12deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(12deg);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections communes */
.section {
  padding: 80px 0;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-title .highlight {
  color: var(--green-primary);
}

.section-desc {
  max-width: 640px;
  color: var(--gray-500);
  font-size: 1rem;
  margin-bottom: 40px;
}

/* Download section */
.download-section {
  background: var(--gray-100);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

.service-card:nth-child(2) .service-icon { animation-delay: 0.2s; }
.service-card:nth-child(3) .service-icon { animation-delay: 0.4s; }
.service-card:nth-child(4) .service-icon { animation-delay: 0.6s; }
.service-card:nth-child(5) .service-icon { animation-delay: 0.8s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.service-card h4 {
  font-size: 1.15rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.link-more {
  color: var(--green-primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s, color 0.3s;
}

.link-more:hover {
  gap: 8px;
  color: var(--green-dark);
}

/* Produits utiles */
.products-section {
  background: var(--gray-100);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.35s, box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gray-200);
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 22px 24px;
}

.product-card-body h4 {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Offre : tout en un */
.offer-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.offer-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
  padding: 32px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.offer-image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  max-width: 420px;
}

.offer-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.offer-content {
  padding: 0 8px;
}

.offer-intro {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: 20px;
  font-weight: 500;
}

.offer-ingredients {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.offer-ingredients li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.offer-ingredients li:last-child {
  border-bottom: none;
}

.ingredient-name {
  font-weight: 500;
  color: var(--gray-900);
}

.ingredient-qty {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.offer-ingredients li strong {
  color: var(--green-primary);
  margin-left: auto;
}

.offer-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 900px) {
  .offer-block {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .offer-image-wrap {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* CTA section */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, var(--green-primary) 0%, var(--teal) 100%);
  color: var(--white);
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section .section-title .highlight {
  color: var(--yellow);
}

.cta-section .section-desc {
  color: rgba(255,255,255,0.9);
  margin: 0 auto 24px;
}

.cta-section .btn {
  background: var(--white);
  color: var(--green-primary);
}

.cta-section .btn:hover {
  background: var(--yellow);
  color: var(--gray-900);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: var(--gray-500);
  padding: 40px 0 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
}

/* Scroll animations (état initial pour JS) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page légale commune */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page .container {
  animation: fadeIn 0.6s ease-out, slideUp 0.6s ease-out;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--gray-900);
  margin-bottom: 24px;
}

.legal-page h2 {
  font-size: 1.25rem;
  color: var(--gray-800);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
  color: var(--gray-600);
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--green-primary);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-new {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-new-left {
    padding: 48px 24px 40px;
    text-align: center;
    align-items: center;
  }

  .hero-new-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-new-cta {
    align-self: center;
  }

  .hero-new-right {
    padding: 40px 24px 48px;
    align-items: center;
  }

  .hero-new-cards {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-toggle {
    display: flex;
  }

  .cta-header {
    display: none;
  }

  .hero-new-left,
  .hero-new-right {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: 50px 0;
  }

  .disclaimer p {
    font-size: 0.8rem;
  }
}
