:root {
  --bg: #f5ede3;
  --surface: #fdf8f2;
  --card: #fdf8f2;
  --accent: #b5591c;
  --accent2: #8c6e3f;
  --text: #2c1e10;
  --muted: #7a6450;
  --border: #e0c9ad;
  --nav-h: 80px;
  --radius: 16px;
  --social-icon-size: 36px;
  --product-card-image-h: 240px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
}
header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 36px;
  background: rgba(245,237,227,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 16px rgba(181,89,28,0.07);
}
.logo img { height: 62px; width: 62px; object-fit: contain; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700;
  padding: 8px 16px; border-radius: 30px; transition: color 0.2s, background 0.2s;
}
.site-nav a:hover { color: var(--accent); background: rgba(181,89,28,0.08); }
.site-nav a.active { color: var(--accent); background: rgba(181,89,28,0.1); }
.site-nav a.new-page { color: var(--accent2); border: 2px dashed var(--accent2); }
.nav-toggle {
  display: none; background: var(--surface); border: 2px solid var(--border);
  border-radius: 10px; padding: 8px 12px; font-size: 20px; cursor: pointer;
}
.banner {
  width: 100%;
  border-bottom: 3px solid var(--border);
  background: var(--surface);
  line-height: 0;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.products-section { padding: 70px 40px; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 16px; }
.section-header h2 { font-size: 34px; font-weight: 900; }
.section-header h2 span { display: block; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 4px; }
.products-section > .page-intro {
  color: var(--muted);
  font-weight: 600;
  max-width: 1400px;
  margin: -20px auto 24px;
  padding: 0 40px;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s, box-shadow 0.35s, border-color 0.3s;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(181,89,28,0.18); border-color: var(--accent); }
.card-img-wrap {
  height: var(--product-card-image-h);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s;
}
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; }
.card-category { font-size: 11px; color: var(--accent2); letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.card-price { font-size: 20px; font-weight: 900; color: var(--accent); }
.add-btn {
  background: var(--bg); border: 2px solid var(--border); color: var(--text);
  padding: 8px 16px; border-radius: 20px; font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: inherit;
}
.add-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.perso-btn { background: var(--accent); color: white; border-color: var(--accent); }
footer {
  margin-top: 48px;
  background: #fff;
  border-top: 3px solid var(--border);
  padding: 48px 24px 24px;
  color: var(--text);
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr;
  gap: 40px 56px;
  margin-bottom: 36px;
  align-items: start;
}
.footer-brand img { height: 72px; width: 72px; border-radius: 50%; margin-bottom: 14px; object-fit: cover; }
.footer-brand p { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 340px; margin-bottom: 16px; }
.footer-col h4 {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-col li { margin-bottom: 12px; }
.footer-col li:last-child { margin-bottom: 0; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.social-link:hover { color: var(--accent); border-color: var(--accent); }
.social-link--icon {
  padding: 7px;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  border-radius: 50%;
  overflow: visible;
  flex-shrink: 0;
}
.social-link--icon:hover { transform: translateY(-2px); }
.social-link--instagram { color: #c13584; }
.social-link--facebook { color: #1877f2; }
.social-link--icon:hover { color: var(--accent); }
.social-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.contact-item { display: inline-block; }
.footer-bottom {
  border-top: 2px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom > p { font-size: 13px; color: var(--muted); font-weight: 700; margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}
.footer-legal a:hover { color: var(--accent); }
.cgv-link { color: var(--accent) !important; }
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--text); color: white;
  padding: 14px 22px; border-radius: 12px; font-weight: 700; z-index: 2000;
  opacity: 0; transform: translateY(12px); transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.page-wrap { max-width: 900px; margin: 0 auto; padding: 48px 24px 80px; }
.page-title { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.page-intro { color: var(--muted); font-weight: 600; margin-bottom: 32px; }
.form-card { background: white; border: 2px solid var(--border); border-radius: 20px; padding: 28px 32px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 15px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8c3a10);
  color: white; border: none; padding: 14px 20px; border-radius: 12px;
  font-family: inherit; font-weight: 900; cursor: pointer;
}
.hidden { display: none !important; }
.empty-msg { text-align: center; color: var(--muted); padding: 48px; font-weight: 700; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.gallery-item {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.gallery-item a { display: block; }
.gallery-open {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--bg);
}
.gallery-caption {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  word-break: break-word;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { border-color: rgba(255,255,255,0.75); background: rgba(0,0,0,0.55); }
.legal-content {
  background: white;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  line-height: 1.75;
  font-size: 15px;
}
.legal-content h2 {
  margin: 40px 0 16px;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  padding-top: 8px;
  border-top: 2px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.legal-content h3 {
  margin: 24px 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent2);
}
.legal-content p { margin: 0 0 14px; color: var(--text); }
.legal-content ul, .legal-content ol {
  margin: 0 0 18px 1.25rem;
  padding: 0;
}
.legal-content li { margin-bottom: 8px; }
.legal-content li:last-child { margin-bottom: 0; }
.legal-content .legal-note {
  margin: 20px 0;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  font-weight: 600;
}
.legal-content .product-names {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 16px;
  background: var(--bg);
  border-radius: 12px;
  list-style: none;
}
.legal-content .product-names li { margin: 0; font-weight: 700; }
@media (max-width: 900px) {
  header { padding: 0 16px; }
  .products-section { padding: 50px 16px; }
  .products-section > .page-intro { padding: 0 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  :root {
    --product-card-image-h: 220px;
  }
}
@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  :root {
    --social-icon-size: 32px;
    --product-card-image-h: 200px;
  }
}
