/* ============================================
   RESET ET BASE GLOBALE
============================================ */

:root {
  --color-primary: #d63031;
  --color-secondary: #ee5a24;
  --color-accent: #ff6b6b;
  --color-bg-light: #f8f9fa;
  --color-bg-lighter: #e9ecef;
  --color-dark: #2c2c2c;
  --color-text-gray: #636e72;
  --color-white: #ffffff;

  --font-main: 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-full: 999px;

  --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
  --shadow-btn: 0 4px 15px rgba(0,0,0,0.2);
  --shadow-btn-hover: 0 6px 20px rgba(0,0,0,0.3);
  --shadow-header: 0 4px 20px rgba(214, 48, 49, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* ============================================
   TOGGLE DE LANGUE
============================================ */
.lang-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  user-select: none;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.lang-content {
  display: none !important;
}
.lang-content.active {
  display: block !important;
}
.nav-links .lang-content.active {
  display: inline !important;
}

/* ============================================
   HEADER + NAVIGATION
============================================ */
header {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  color: var(--color-white);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-header);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 16px 0 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.text-logo h1 {
  font-size: 2rem;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-weight: 900;
  letter-spacing: 1px;
}

.chinese-name {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.9;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-main);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%3E%3Cdefs%3E%3Cpattern%20id='grain'%20patternUnits='userSpaceOnUse'%20width='100'%20height='100'%3E%3Ccircle%20cx='25'%20cy='25'%20r='1'%20fill='rgba(255,255,255,0.05)'/%3E%3Ccircle%20cx='75'%20cy='75'%20r='1.5'%20fill='rgba(255,255,255,0.03)'/%3E%3Ccircle%20cx='50'%20cy='10'%20r='0.8'%20fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect%20width='100'%20height='100'%20fill='url(%23grain)'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.floating-circle:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; animation-delay: 0s; }
.floating-circle:nth-child(2) { width: 60px; height: 60px; top: 60%; right: 15%; animation-delay: 2s; }
.floating-circle:nth-child(3) { width: 100px; height: 100px; top: 80%; left: 20%; animation-delay: 4s; }

.hero-content {
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 3rem;
  line-height: 1.4;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ============================================
   SECTIONS : Produits, À propos, Contact
============================================ */
.products,
.about,
.contact {
  padding: 5rem 2rem;
  position: relative;
}

.products {
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-lighter) 100%);
}
.about {
  background: var(--color-white);
}
.contact {
  background: linear-gradient(135deg, #2d3436, var(--color-text-gray));
  color: var(--color-white);
  text-align: center;
}

.products h2,
.about h2,
.contact h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  font-weight: 700;
}

.about p,
.contact p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.product-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-white), #f1f3f4);
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.product-card p {
  font-size: 1.1rem;
  color: var(--color-text-gray);
  line-height: 1.6;
}

/* ============================================
   CONTACT INFO
============================================ */
.contact-info {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
============================================ */
footer {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-text-gray) 100%);
  color: var(--color-white);
  text-align: center;
  padding: 25px 0;
  font-size: 1rem;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(120deg); }
  66% { transform: translateY(10px) rotate(240deg); }
}

/* ============================================
   RESPONSIVE — Mobile
============================================ */
@media (max-width: 768px) {
  .lang-toggle {
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
  }

  .nav-links {
    display: none;
  }

  .hero-content h2 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.4rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .products, .about, .contact {
    padding: 3rem 1rem;
  }
}

/* ============================================
   RESPONSIVE — Desktop Large
============================================ */
@media screen and (min-width: 1024px) {
  .hero-content h2 {
    font-size: 5rem;
  }

  .hero-content p {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    display: flex !important;
  }
}