/* La Brulerie de Lanni - Styles inspirés du site original */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f6f3;
  --color-text: #000000;
  --color-text-muted: #4a4a4a;
  --color-accent: #94a3a4;
  --color-accent-dark: #6b7c7d;
  --color-brown: #3d2b1f;
  --color-cream: #f5f0e8;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Quicksand', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 4px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

/* Top bar */
.top-bar {
  background: var(--color-brown);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img { height: 50px; width: auto; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brown);
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.nav-item:hover .dropdown { display: block; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 240px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 8px 0;
  z-index: 100;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
}

.dropdown a:hover { background: var(--color-cream); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 1.4rem;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 40px 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 32px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}

.btn:hover { background: var(--color-accent-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn-outline:hover { background: #fff; color: var(--color-brown); }

/* Story section */
.story-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.story-section img { border-radius: var(--radius); box-shadow: var(--shadow); }

.story-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-brown);
}

.story-section p { color: var(--color-text-muted); margin-bottom: 16px; }

/* Features */
.features {
  background: var(--color-cream);
  padding: 60px 24px;
}

.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.feature-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  object-fit: contain;
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-item p { font-size: 14px; color: var(--color-text-muted); }

/* Products grid */
.section { padding: 60px 24px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.products-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card-body { padding: 16px; }

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-brown);
}

.product-price .original {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 8px;
}

.add-to-cart {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--color-brown);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.add-to-cart:hover { background: var(--color-accent-dark); }

/* Product detail */
.product-detail {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-gallery img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-brown);
}

.product-info .price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 24px;
}

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  border: 1px solid #ddd;
  padding: 8px;
  font-family: var(--font-body);
  border-radius: var(--radius);
}

/* Contact */
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-card {
  background: var(--color-cream);
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
}

.contact-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
  color: var(--color-brown);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
}

.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
.site-footer {
  background: var(--color-brown);
  color: #fff;
  padding: 60px 24px 24px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* Cart sidebar */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
}

.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 2001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.cart-header h3 { font-family: var(--font-heading); }

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item-info .item-price { font-weight: 700; font-size: 14px; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid #eee;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.breadcrumb {
  max-width: var(--max-width);
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.breadcrumb a { color: var(--color-accent-dark); }

.page-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-brown);
  margin-bottom: 24px;
  text-align: center;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.timeline {
  border-left: 3px solid var(--color-accent);
  margin: 0 0 0 12px;
  padding-left: 32px;
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--color-brown);
  border-radius: 50%;
  border: 3px solid var(--color-cream);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 8px;
}

.filter-bar {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-bar input {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-family: var(--font-body);
}

/* Responsive */
@media (max-width: 968px) {
  .story-section, .product-detail, .contact-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
  }
  .nav-item .dropdown { position: static; box-shadow: none; padding-left: 16px; }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 50vh; }
}
