/* =====================================================
   WENATOU SHOPPING — feuille de style
   Palette : corail / noir chaud / blanc cassé
   ===================================================== */

:root {
  /* --- Couleurs de la marque (issues du branding corail/saumon) --- */
  --coral: #EC6F5F;         /* couleur principale */
  --coral-deep: #D4523F;    /* survol / accents forts */
  --coral-soft: #F7A99B;    /* accents doux */
  --blush: #FCEFEC;         /* fonds légers */
  --ink: #211917;           /* noir chaud de la marque */
  --paper: #FFFCFA;         /* blanc cassé */
  --white: #FFFFFF;
  --line: #EFD9D3;

  /* --- Typographie --- */
  --font-display: "Amiri", "Traditional Arabic", Georgia, serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Fraunces", Georgia, serif; /* réservé au wordmark latin */

  /* --- Divers --- */
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-card: 0 10px 30px rgba(33, 25, 23, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(212, 82, 63, 0.18);
  --container: 1140px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: 84px 0; }

.section-head {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p { color: #6f605c; margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.editable-note {
  color: var(--coral-deep);
  font-size: 0.85em;
  font-style: italic;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(236, 111, 95, 0.35);
}
.btn-primary:hover { background: var(--coral-deep); }

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: var(--blush); }

.btn-outline-light {
  border-color: rgba(255, 252, 250, 0.7);
  color: var(--paper);
}
.btn-outline-light:hover { background: rgba(255, 252, 250, 0.12); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-family: var(--font-latin);
  direction: ltr;
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1;
}
.wordmark-main {
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
}
.wordmark-sub {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  color: var(--coral);
}

.main-nav {
  display: flex;
  gap: 30px;
  font-weight: 500;
  font-size: 0.97rem;
}
.main-nav a {
  position: relative;
  padding: 6px 0;
  color: #4c403c;
  transition: color 0.2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0; inset-inline-end: 100%;
  bottom: 0;
  height: 2px;
  background: var(--coral);
  transition: right 0.25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { inset-inline-end: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--blush) 0%, var(--paper) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 88px;
}

.hero-brand {
  font-family: var(--font-latin);
  direction: ltr;
  unicode-bidi: isolate;
  font-style: italic;
  color: var(--coral-deep);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  margin-bottom: 18px;
}

.hero-desc {
  max-width: 470px;
  color: #5d504b;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

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

/* Visuel du hero : arche + cartes produits */
.hero-visual {
  position: relative;
  height: 420px;
}

.hero-arch {
  position: absolute;
  inset: 0 8% 0 18%;
  background: var(--coral);
  border-radius: 999px 999px 0 0;
  opacity: 0.16;
}
.hero-arch::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 2px solid var(--coral);
  border-radius: 999px 999px 0 0;
  opacity: 0.6;
}

.hero-card {
  position: absolute;
  margin: 0;
  width: 148px;
  padding: 22px 14px 14px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  text-align: center;
  border: 1px solid var(--line);
}
.hero-card figcaption {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 8px;
  color: var(--ink);
}
.hero-icon {
  width: 64px;
  height: 64px;
  margin-inline: auto;
  color: var(--coral);
}

.hero-card-1 { top: 8%; left: 4%; transform: rotate(-5deg); }
.hero-card-2 { top: 34%; right: 2%; transform: rotate(4deg); }
.hero-card-3 { bottom: 4%; left: 22%; transform: rotate(-2deg); }

@keyframes heroFloat {
  from { translate: 0 0; }
  to   { translate: 0 -10px; }
}
.hero-card-1 { animation: heroFloat 3.4s ease-in-out infinite alternate; }
.hero-card-2 { animation: heroFloat 3.9s 0.5s ease-in-out infinite alternate; }
.hero-card-3 { animation: heroFloat 3.6s 0.9s ease-in-out infinite alternate; }

/* ---------- Catégories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 16px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  font: inherit;
  color: inherit;
  text-align: center;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--coral-soft);
}
.category-card .cat-emoji {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--blush);
  border-radius: 50%;
}
.category-card h3 {
  font-size: 1.08rem;
  margin: 0;
}
.category-card p {
  margin: 0;
  font-size: 0.88rem;
  color: #6f605c;
}

/* ---------- Filtres ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 38px;
}
.filter-btn {
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: #5d504b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { border-color: var(--coral); color: var(--coral-deep); }
.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ---------- Produits ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--blush);
  border: none;
  padding: 0;
  cursor: zoom-in;
  width: 100%;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-btn);
}

.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.product-desc {
  font-size: 0.92rem;
  color: #6f605c;
  margin: 0 0 10px;
  flex: 1;
}

.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.variant-chip {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  background: var(--blush);
  color: var(--coral-deep);
  font-weight: 500;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  white-space: nowrap;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-btn);
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-wa:hover {
  background: #1ebe5b;
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.35);
}
.btn-wa:active { transform: scale(0.96); }
.btn-wa svg { width: 18px; height: 18px; }

.products-empty {
  text-align: center;
  color: #6f605c;
  padding: 40px 0 0;
}

/* ---------- Pourquoi nous ---------- */
.why { background: var(--blush); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
}
.why-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--blush);
  color: var(--coral-deep);
  border-radius: 14px;
  margin-bottom: 16px;
}
.why-icon svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why-card p { font-size: 0.92rem; color: #6f605c; margin: 0; }

/* ---------- CTA final ---------- */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.25;
}
.final-cta::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -160px;
  width: 300px;
  height: 300px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  opacity: 0.35;
}
.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
}
.final-cta h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.final-cta p { color: #d8cbc6; margin-bottom: 30px; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer-wordmark { margin-bottom: 12px; }
.footer-brand p:not(.wordmark) {
  color: #6f605c;
  font-size: 0.95rem;
  max-width: 320px;
}

.site-footer h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-nav { display: flex; flex-direction: column; }
.footer-nav a {
  color: #6f605c;
  padding: 4px 0;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--coral-deep); }

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6f605c;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.footer-wa:hover { color: #1ebe5b; }
.footer-wa-icon { width: 20px; height: 20px; color: #25D366; }
.footer-contact .editable-note { margin-top: 12px; font-size: 0.82rem; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.88rem;
  color: #8a7b76;
  text-align: center;
}
.footer-bottom p { margin: 0; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 60;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}
.wa-float:active { transform: scale(0.94); }

@keyframes waPulse {
  0%   { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.45); }
  70%  { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-float { animation: waPulse 2.6s ease-out infinite; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(33, 25, 23, 0.9);
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
  margin: 0;
  max-width: min(92vw, 720px);
  text-align: center;
}
.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-card);
  background: var(--white);
}
.lightbox-figure figcaption {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 14px;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 20px;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 252, 250, 0.14);
  color: var(--paper);
  font-size: 1.7rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 252, 250, 0.28); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 70px; }
  .hero-text { text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { height: 360px; max-width: 460px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }

  /* Menu mobile */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: 0 16px 30px rgba(33, 25, 23, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .main-nav a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a::after { display: none; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { padding: 22px 10px 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 32px; }

  .hero-visual { height: 300px; }
  .hero-card { width: 118px; padding: 16px 10px 10px; }
  .hero-icon { width: 48px; height: 48px; }

  .btn { padding: 13px 24px; width: auto; }
  .hero-actions .btn { flex: 1 1 auto; }

  .wa-float { inset-inline-end: 16px; bottom: 16px; width: 56px; height: 56px; }

  /* Espace pour que le bouton flottant ne masque pas le footer */
  .footer-bottom { padding-bottom: 88px; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card-1, .hero-card-2, .hero-card-3, .wa-float { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Produits à plusieurs images : navigation ---------- */
.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 250, 0.9);
  color: var(--ink);
  border-radius: 50%;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(33, 25, 23, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
  user-select: none;
}
.media-nav:hover { background: var(--coral); color: var(--white); }
.media-nav:active { transform: translateY(-50%) scale(0.92); }
.media-prev { inset-inline-start: 10px; }
.media-next { inset-inline-end: 10px; }

.media-dots {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  background: rgba(33, 25, 23, 0.35);
  border-radius: var(--radius-btn);
  z-index: 2;
}
[dir="rtl"] .media-dots { transform: translateX(50%); }
.media-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 252, 250, 0.55);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.media-dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

/* ---------- Lightbox : navigation entre images ---------- */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(255, 252, 250, 0.14);
  color: var(--paper);
  font-size: 1.15rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255, 252, 250, 0.28); }
.lightbox-prev { inset-inline-start: 18px; }
.lightbox-next { inset-inline-end: 18px; }
.lightbox-counter {
  color: rgba(255, 252, 250, 0.75);
  font-size: 0.9rem;
  margin: 6px 0 0;
}

@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; }
  .lightbox-prev { inset-inline-start: 8px; }
  .lightbox-next { inset-inline-end: 8px; }
}

/* ---------- Prix sur demande (via WhatsApp) ---------- */
.price-on-request {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--coral-deep);
}
