/* MODE VITRINE — importé automatiquement */
@import url('vitrine.css');

/* ====================================================
   METCHAN CEYLON TEA - style.css
   Version 8 | metchan.fr
   ==================================================== */

/* ── IMPORTS GOOGLE FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS VARIABLES ─── */
:root {
  --brand-green:   #0F2F26;
  --brand-gold:    #C8A96A;
  --brand-cream:   #F4EFE6;
  --brand-charcoal:#1A1A1A;
  --brand-white:   #FFFFFF;
  --font-heading:  'Playfair Display', serif;
  --font-body:     'Inter', sans-serif;
  --radius:        0.625rem;
  --shadow-sm:     0 2px 8px rgba(15,47,38,0.08);
  --shadow-md:     0 4px 20px rgba(15,47,38,0.12);
  --shadow-lg:     0 8px 40px rgba(15,47,38,0.16);
  --transition:    0.25s cubic-bezier(0.4,0,0.2,1);
  --max-width:     1280px;
}

/* ── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--brand-charcoal);
  background: var(--brand-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── CONTAINER ─── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── SECTIONS ─── */
.section { padding: 5rem 0; }
.bg-cream { background: var(--brand-cream); }
.bg-dark  { background: var(--brand-green); color: white; }
.text-center { text-align: center; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }

/* ── TYPOGRAPHY ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--brand-green);
  text-align: center;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin-bottom: 3rem;
}

/* ── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--brand-gold);
  color: white;
  border-color: var(--brand-gold);
}
.btn-gold:hover {
  background: #B89960;
  border-color: #B89960;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-dark {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}
.btn-dark:hover { background: #0a1f1a; border-color: #0a1f1a; }
.btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── HEADER ─── */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15,47,38,0.1);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 1rem;
}
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex-shrink: 0;
}
.logo img { height: 48px; width: auto; object-fit: contain; }
.logo-tagline {
  font-size: 11px;
  color: var(--brand-gold);
  font-style: italic;
  letter-spacing: 0.05em;
}
#main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 1024px) { #main-nav { display: flex; } }
.nav-link {
  font-size: 0.9rem;
  color: var(--brand-green);
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-gold);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active, .nav-link:hover { color: var(--brand-gold); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-green);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(15,47,38,0.2);
  transition: all var(--transition);
}
.btn-lang:hover { background: var(--brand-cream); }
.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--brand-green);
  transition: background var(--transition);
}
.icon-btn:hover { background: var(--brand-cream); }
.badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--brand-gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brand-green);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: white;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(15,47,38,0.1);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; color: var(--brand-green); padding: 0.5rem 0; }
.mobile-nav a:hover { color: var(--brand-gold); }

/* ── HERO ─── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,47,38,0.6) 0%, rgba(15,47,38,0.4) 50%, rgba(15,47,38,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 4rem 1rem;
}
.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ── USP SECTION ─── */
.usp-section { padding: 4rem 0; background: var(--brand-cream); }
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.usp-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.usp-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usp-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.usp-item h3 { font-size: 1.1rem; color: var(--brand-green); margin-bottom: 0.5rem; }
.usp-item p  { font-size: 0.9rem; color: #666; }

/* ── PRODUCTS GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  width: 100%; height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
}
.product-card:hover .product-card-img { transform: scale(1.05); }
.product-card-img-wrap { overflow: hidden; position: relative; }
.product-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  background: var(--brand-gold);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.product-card-body { padding: 1.25rem; }
.product-card-cat {
  font-size: 0.75rem;
  color: var(--brand-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.product-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--brand-green);
  margin-bottom: 0.5rem;
}
.product-card-desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.product-card-stars { color: var(--brand-gold); font-size: 0.85rem; margin-bottom: 0.75rem; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--brand-cream);
}
.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brand-green);
}
.btn-add-cart {
  background: var(--brand-green);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--brand-gold); }

/* ── STORY SECTION ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) { .story-grid { grid-template-columns: 1fr 1fr; } }
.story-image img {
  width: 100%;
  border-radius: calc(var(--radius)*2);
  box-shadow: var(--shadow-lg);
}
.story-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--brand-green);
  margin-bottom: 1rem;
}
.story-text p { color: #555; margin-bottom: 1rem; line-height: 1.8; }

/* ── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand-gold);
}
.testimonial-card .stars { color: var(--brand-gold); font-size: 1.1rem; margin-bottom: 0.75rem; }
.testimonial-card p { color: #555; font-style: italic; line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { font-weight: 600; color: var(--brand-green); }

/* ── NEWSLETTER ─── */
.newsletter h2 { font-size: 2rem; color: white; margin-bottom: 0.75rem; }
.newsletter p  { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(200,169,106,0.4); }

/* ── FOOTER ─── */
footer {
  background: var(--brand-green);
  color: white;
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
footer h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--brand-gold);
  margin-bottom: 1rem;
}
footer h4 {
  font-family: var(--font-heading);
  color: var(--brand-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
footer p, footer li { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
footer a:hover { color: var(--brand-gold); }
footer ul { display: flex; flex-direction: column; gap: 0.5rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; font-size: 1.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ── CART / WISHLIST BADGES ─── */
.badge:empty, .badge[data-count="0"] { display: none !important; }

/* ── UTILITY ─── */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 0.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── TOAST NOTIFICATIONS ─── */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--brand-green);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  z-index: 9999;
  font-size: 0.95rem;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ─── */
@media (max-width: 767px) {
  .section { padding: 3rem 0; }
  .hero { min-height: 60vh; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  footer h3 { font-size: 1.4rem; }
  .header-inner { height: 65px; }
  .logo img { height: 40px; }
}

/* ── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* ── PAGE BOUTIQUE ─── */
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  align-items: center;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  border: 2px solid rgba(15,47,38,0.2);
  font-size: 0.9rem;
  color: var(--brand-green);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: white;
}

/* ── PAGE PRODUIT ─── */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 3rem 0;
}
@media (min-width: 768px) { .product-hero { grid-template-columns: 1fr 1fr; } }
.product-hero-img {
  width: 100%; border-radius: calc(var(--radius)*2);
  box-shadow: var(--shadow-lg);
}
.product-detail-price { font-size: 2rem; font-weight: 700; color: var(--brand-gold); }
.qty-selector { display: flex; align-items: center; gap: 1rem; }
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--brand-green); color: white; }

/* ── PANIER ─── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 1rem; text-align: left; border-bottom: 2px solid var(--brand-cream); color: var(--brand-green); }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--brand-cream); vertical-align: middle; }
.cart-summary {
  background: var(--brand-cream);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: 100px;
}
.cart-summary-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; }
.cart-summary-total { font-size: 1.3rem; font-weight: 700; color: var(--brand-green); }

/* ── FORMULAIRES ─── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--brand-green); margin-bottom: 0.4rem; }
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(15,47,38,0.15);
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: var(--brand-cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(200,169,106,0.15);
  background: white;
}
.form-error { font-size: 0.8rem; color: #e53e3e; margin-top: 0.3rem; }

/* ── ADMIN DASHBOARD ─── */
.admin-sidebar {
  width: 260px;
  background: var(--brand-green);
  color: white;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
}
.admin-main { margin-left: 260px; padding: 2rem; }
@media (max-width: 1023px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
}
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.8);
  transition: all var(--transition);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.admin-sidebar-link:hover, .admin-sidebar-link.active {
  background: rgba(200,169,106,0.2);
  color: var(--brand-gold);
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--brand-gold);
}
.stat-card h3 { font-size: 0.85rem; color: #666; margin-bottom: 0.5rem; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--brand-green); }
