/* ============================================
   AMAKÈ STORE — Design System
   Couleurs : Rouge profond · Or · Crème · Noir
   ============================================ */
:root {
  --red: #b91c1c;
  --red-dark: #7f1d1d;
  --red-light: #fecaca;
  --gold: #d4a017;
  --gold-light: #f5d76e;
  --cream: #faf7f2;
  --warm: #f5efe6;
  --text: #1c1917;
  --text-muted: #57534e;
  --white: #ffffff;
  --border: #e7e5e4;
  --shadow: 0 10px 40px -10px rgba(0,0,0,.15);
  --shadow-lg: 0 25px 50px -12px rgba(0,0,0,.2);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 72px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1200px, 92%); margin-inline: auto; }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 1.5rem;
}
.logo {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--red);
}
.logo em { font-style: italic; color: var(--gold); font-weight: 600; }
.logo-icon { font-size: 1.4rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color var(--transition); position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--gold); border-radius: 2px;
}
.admin-link { opacity: .7; font-size: .85rem; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.btn-icon {
  background: none; border: none; font-size: 1.25rem; cursor: pointer;
  padding: .4rem; border-radius: 50%; transition: background var(--transition);
}
.btn-icon:hover { background: var(--warm); }
.burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: .4rem;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  border: 2px solid transparent; cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  transform: translateY(-1px); box-shadow: var(--shadow);
}
.btn-outline { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-whatsapp {
  background: #25D366; color: white; border-color: #25D366;
  padding: .55rem 1.1rem; font-size: .85rem;
}
.btn-whatsapp:hover { background: #1da851; border-color: #1da851; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { color: var(--red); }

/* HERO */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; padding-top: var(--header-h);
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(127,29,29,.75) 0%, rgba(0,0,0,.55) 50%, rgba(180,83,9,.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: white;
  padding: 2rem 1rem; max-width: 820px;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  padding: .4rem 1.2rem; border-radius: 999px; font-size: .85rem; letter-spacing: .04em;
  margin-bottom: 1.25rem; border: 1px solid rgba(255,255,255,.25);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: .5rem;
  text-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.hero-title span { color: var(--gold-light); font-style: italic; }
.hero-subtitle { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: .75rem; opacity: .95; }
.hero-values {
  font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 2rem; font-weight: 500;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2.5rem;
}
.hero-features {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; justify-content: center;
  font-size: .9rem; opacity: .9;
}
.feature { display: flex; align-items: center; gap: .5rem; }
.feature-icon { font-size: 1.2rem; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* SECTIONS */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--red-dark); margin-bottom: .5rem;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; }
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem;
}
.category-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.5rem;
  text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
  border: 1px solid transparent;
}
.category-card:hover {
  transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow-lg);
}
.category-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.category-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--red-dark); }
.category-card p { font-size: .85rem; color: var(--text-muted); }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-image {
  position: relative; aspect-ratio: 1; overflow: hidden; background: var(--warm);
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease;
}
.product-card:hover .product-image img { transform: scale(1.06); }
.product-badge {
  position: absolute; top: .75rem; left: .75rem; background: var(--red); color: white;
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.product-badge.promo { background: var(--gold); color: var(--text); }
.product-body {
  padding: 1.15rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1;
}
.product-cat {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold); font-weight: 600; margin-bottom: .35rem;
}
.product-name { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; line-height: 1.3; }
.product-price {
  display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1rem; margin-top: auto;
}
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--red); }
.price-old { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.product-actions { display: flex; gap: .5rem; }
.product-actions .btn { flex: 1; padding: .55rem .8rem; font-size: .8rem; }

/* PROMO BANNER */
.promo-banner {
  background: linear-gradient(135deg, var(--red-dark), var(--red)); color: white; padding: 3.5rem 0;
}
.promo-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.promo-text h2 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: .4rem; }
.promo-text p { opacity: .9; }

/* FOOTER */
.footer { background: #1c1917; color: #a8a29e; padding: 4rem 0 1.5rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 2.5rem; margin-bottom: 3rem;
}
.footer-brand .logo { color: white; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; }
.footer h4 { color: white; font-size: .9rem; margin-bottom: 1rem; letter-spacing: .04em; }
.footer-links a, .footer-contact a {
  display: block; font-size: .9rem; margin-bottom: .5rem; transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-info p { font-size: .9rem; margin-bottom: .4rem; }
.footer-bottom {
  border-top: 1px solid #292524; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .8rem;
}
.demo-note { opacity: .6; }
.footer.compact { padding: 1.25rem 0; }
.footer.compact .footer-bottom { border: none; padding: 0; justify-content: center; }

/* CATALOGUE */
.catalogue-page { padding: calc(var(--header-h) + 2.5rem) 0 4rem; min-height: 80vh; }
.catalogue-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem; margin-bottom: 1.5rem;
}
.page-title { font-family: var(--font-display); font-size: 2.2rem; color: var(--red-dark); }
.page-subtitle { color: var(--text-muted); }
.catalogue-controls { display: flex; flex-wrap: wrap; gap: .75rem; }
.search-box input, .catalogue-controls select {
  padding: .65rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: white; min-width: 160px;
}
.search-box input { min-width: 220px; }
.results-meta { margin-bottom: 1.25rem; font-size: .9rem; color: var(--text-muted); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }

/* MODAL */
.modal {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center;
  justify-content: center; padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
}
.modal-content {
  position: relative; background: white; border-radius: var(--radius);
  max-width: 520px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); z-index: 1;
}
.modal-content.modal-lg { max-width: 640px; }
.modal-close {
  position: absolute; top: .75rem; right: .75rem; background: var(--warm); border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1; z-index: 2;
}
.modal-body { padding: 1.75rem; }
.modal-product-img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; background: var(--warm);
}
.modal-product-name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: .5rem; }
.modal-product-price { font-size: 1.4rem; font-weight: 700; color: var(--red); margin-bottom: 1rem; }
.modal-product-desc { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.7; }

/* ADMIN */
.admin-page { padding: calc(var(--header-h) + 2.5rem) 0 4rem; min-height: 80vh; }
.login-card {
  max-width: 400px; margin: 3rem auto; background: white; padding: 2.5rem;
  border-radius: var(--radius); box-shadow: var(--shadow); text-align: center;
}
.login-card h1 {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--red-dark); margin-bottom: .5rem;
}
.login-card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.login-hint { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); }
.form-group { margin-bottom: 1.15rem; text-align: left; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--cream);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: 2px solid var(--gold); border-color: transparent;
}
.form-group small { display: block; margin-top: .3rem; font-size: .75rem; color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkbox-group label {
  display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer;
}
.form-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }
.admin-header {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 1.25rem; margin-bottom: 2rem;
}
.admin-header h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--red-dark); }
.admin-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: white; padding: 1.25rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); text-align: center;
}
.stat-card .num { font-size: 1.8rem; font-weight: 700; color: var(--red); }
.stat-card .label { font-size: .8rem; color: var(--text-muted); }
.admin-table-wrap { overflow-x: auto; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td {
  padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: var(--warm); font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
}
.admin-table img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.admin-table .actions { display: flex; gap: .4rem; }
.admin-table .btn { padding: .35rem .7rem; font-size: .75rem; }
.badge-promo {
  background: var(--gold); color: var(--text); font-size: .7rem; font-weight: 700;
  padding: .15rem .45rem; border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: white;
    flex-direction: column; padding: 1.5rem; gap: 1rem; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .catalogue-controls { width: 100%; }
  .search-box input, .catalogue-controls select { width: 100%; min-width: 0; }
  .admin-actions { width: 100%; }
  .admin-actions .btn { flex: 1; }
}
