/* ============================================
   TWIST PRO ABIDJAN — Design tokens
   ============================================ */
:root {
  --ink: #111111;
  --cream: #FFFFFF;
  --cream-soft: #F2F2F2;
  --gold: #C68A3F;
  --coral: #E5595A;
  --green: #2F4A3C;
  --white: #FFFFFF;

  --font-display: 'Unbounded', sans-serif;
  --font-logo: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --radius: 18px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Signature : le trait "twist"
   Un motif de corde tressée réutilisé comme
   séparateur entre les sections
   ============================================ */
.twist-divider {
  width: 100%;
  height: 28px;
  background-repeat: repeat-x;
  background-size: 56px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cpath d='M0 14 Q14 0 28 14 T56 14' stroke='%23C68A3F' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M0 14 Q14 28 28 14 T56 14' stroke='%23E5595A' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  opacity: 0.9;
}

/* ============================================
   Bandeau d'annonce
   ============================================ */
.announce-bar {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 9px 16px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.logo span { color: var(--gold); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  background: none;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn:hover { background: var(--cream-soft); }

.cart-count {
  background: var(--gold);
  color: var(--ink);
  border-radius: 100px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0 4px;
}

.menu-toggle {
  background: none;
  font-size: 1.3rem;
  justify-self: start;
  padding: 8px;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  border-top: 2px solid var(--ink);
  background: var(--cream);
}

.nav-drawer.active { display: flex; }

.nav-drawer a {
  padding: 14px 24px;
  font-weight: 700;
  border-bottom: 1px solid var(--cream-soft);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-logo);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(6rem, 18vw, 13rem);
  color: var(--ink);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 28px;
  color: var(--ink);
  opacity: 0.72;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease;
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  padding: 12px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--cream-soft);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Catégories (pills)
   ============================================ */
.categories-bar {
  padding: 8px 0 32px;
}

.categories-bar .container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-pill {
  flex-shrink: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}

.category-pill.active {
  background: var(--ink);
  color: var(--cream);
}

/* ============================================
   Grille produits
   ============================================ */
.products-section { padding: 24px 0 72px; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 28px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--cream-soft);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 1/1;
  background: var(--cream-soft);
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image img { transform: scale(1.06); }

.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.stock-badge.low { background: var(--ink); opacity: 0.75; }
.stock-badge.out { background: var(--ink); opacity: 0.7; }

.product-info { padding: 16px; }

.product-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.product-price-old {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.45;
  text-decoration: line-through;
}

.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid var(--ink);
  border-radius: 100px;
  overflow: hidden;
}

.qty-stepper button {
  background: var(--cream-soft);
  width: 38px;
  height: 38px;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.qty-stepper button:hover { background: var(--gold); color: var(--ink); }

.qty-stepper .qty-value {
  flex: 1;
  text-align: center;
  font-weight: 700;
}

.out-of-stock-btn {
  width: 100%;
  background: var(--cream-soft);
  color: var(--ink);
  opacity: 0.5;
  padding: 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: not-allowed;
}

/* ============================================
   WhatsApp flottant
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  opacity: 0.6;
  text-align: center;
}

/* ============================================
   Panneau panier / commande
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 16, 22, 0.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-overlay.active { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cart-panel.active { transform: translateX(0); }

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid var(--ink);
}

.cart-panel-header h3 { font-family: var(--font-display); font-size: 1.1rem; }

.cart-close {
  background: none;
  font-size: 1.3rem;
  color: var(--ink);
}

.cart-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.cart-items { display: flex; flex-direction: column; gap: 14px; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cream-soft);
}

.cart-item-name { font-weight: 700; font-size: 0.9rem; }
.cart-item-price { font-size: 0.85rem; color: var(--ink); font-weight: 600; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--cream-soft);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 700;
}

.cart-empty { text-align: center; opacity: 0.6; padding: 40px 0; font-size: 0.9rem; }

.cart-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cart-checkout-btn { width: 100%; text-align: center; border: none; font-size: 1rem; }

/* Formulaire de commande */
.checkout-view label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.checkout-view input,
.checkout-view select,
.checkout-view textarea {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}

.checkout-view input:focus,
.checkout-view select:focus,
.checkout-view textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

.checkout-back {
  background: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
  align-self: flex-start;
  color: var(--ink);
}

.payment-note {
  background: var(--cream-soft);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.checkout-error {
  color: var(--coral);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

/* ============================================
   Animation d'apparition (CSS pur, se déclenche
   automatiquement à chaque affichage de carte,
   pas besoin de JS ni de scroll)
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-card {
  animation: fadeInUp 0.4s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .product-card { animation: none; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .hero { padding: 40px 0 32px; }
}
