/* ═══════════════════════════════════════════════════════════
   NFM STYLISTE - Styles globaux
   Atelier couture haut de gamme à Dakar
   ═══════════════════════════════════════════════════════════ */

/* Reset & Base */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  color: #0E0C09;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: #0E0C09; text-decoration: none; transition: color 140ms ease; }
a:hover { color: #C4A97B; }
img { max-width: 100%; height: auto; display: block; }

/* Variables couleurs */
:root {
  --nfm-beige: #F5F0E8;
  --nfm-beige-dark: #E8DFD1;
  --nfm-or: #C4A97B;
  --nfm-noir: #0E0C09;
  --nfm-blanc: #FFFFFF;
  --nfm-gris: #6B6B6B;
  --nfm-gris-clair: #8A8377;
  --nfm-whatsapp: #25D366;
  --nfm-rouge: #C0271A;
}

/* Animations */
@keyframes nfmStepIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes nfmWaPulse {
  0%, 72%, 100% { transform: scale(1); opacity: 0.45; }
  86% { transform: scale(1.55); opacity: 0; }
}

@keyframes nfmFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.nfm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 22px clamp(20px, 5vw, 72px);
  background: #F5F0E8;
  border-bottom: 1px solid rgba(196, 169, 123, 0.28);
}

.nfm-logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 0.01em;
  color: #C4A97B;
  white-space: nowrap;
}

.nfm-logo em {
  font-style: italic;
  font-weight: 500;
}

.nfm-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nfm-nav a {
  color: #4A443B;
  transition: color 140ms ease;
}

.nfm-nav a:hover,
.nfm-nav a.active {
  color: #0E0C09;
}

.nfm-nav a.active {
  padding-bottom: 3px;
  border-bottom: 1px solid #C4A97B;
}

/* Bouton panier */
.nfm-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 140ms ease;
}

.nfm-cart-btn:hover {
  background: #EDE4D6;
}

.nfm-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #C0271A;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.nfm-cart-count.hidden {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════ */

.nfm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 140ms ease;
  gap: 10px;
}

.nfm-btn-primary {
  background: #0E0C09;
  color: #FFFFFF;
  border-color: #0E0C09;
}

.nfm-btn-primary:hover {
  background: #26211A;
  color: #FFFFFF;
}

.nfm-btn-outline {
  background: transparent;
  border-color: #0E0C09;
  color: #0E0C09;
}

.nfm-btn-outline:hover {
  background: #0E0C09;
  color: #FFFFFF;
}

.nfm-btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.nfm-btn-whatsapp:hover {
  filter: brightness(0.92);
}

.nfm-btn-cream {
  background: #F5F0E8;
  color: #0E0C09;
  border-color: #F5F0E8;
}

.nfm-btn-cream:hover {
  background: #FFFFFF;
}

.nfm-btn-outline-cream {
  background: transparent;
  color: #F5F0E8;
  border-color: #F5F0E8;
}

.nfm-btn-outline-cream:hover {
  background: #F5F0E8;
  color: #0E0C09;
}

/* ═══════════════════════════════════════════════════════════
   BOUTON WHATSAPP FLOTTANT
   ═══════════════════════════════════════════════════════════ */

.nfm-wa-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.nfm-wa-floating:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.nfm-wa-floating::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.45;
  animation: nfmWaPulse 3s ease-out infinite;
  z-index: -1;
}

.nfm-wa-floating svg {
  width: 28px;
  height: 28px;
  fill: #FFFFFF;
}

@media (max-width: 640px) {
  .nfm-wa-floating {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }
  .nfm-wa-floating svg { width: 26px; height: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   MODAL PANIER
   ═══════════════════════════════════════════════════════════ */

.nfm-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  background: rgba(14, 12, 9, 0.4);
  backdrop-filter: blur(4px);
  animation: nfmFadeIn 200ms ease;
}

.nfm-cart-modal.active {
  display: flex;
}

.nfm-cart-panel {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #F5F0E8;
  display: flex;
  flex-direction: column;
  animation: nfmSlideIn 300ms ease;
}

@keyframes nfmSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.nfm-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(196, 169, 123, 0.3);
}

.nfm-cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #0E0C09;
  margin: 0;
}

.nfm-cart-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #0E0C09;
}

.nfm-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
}

.nfm-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8A8377;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.nfm-cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(196, 169, 123, 0.2);
}

.nfm-cart-item-img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: #E8DFD1;
  border-radius: 3px;
  flex-shrink: 0;
}

.nfm-cart-item-info {
  flex: 1;
  min-width: 0;
}

.nfm-cart-item-cat {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 12px;
  color: #8A8377;
  margin: 0 0 4px;
}

.nfm-cart-item-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  color: #0E0C09;
  margin: 0 0 6px;
}

.nfm-cart-item-price {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #C4A97B;
  font-size: 15px;
  margin: 0 0 10px;
}

.nfm-cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nfm-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #C4A97B;
  background: transparent;
  color: #0E0C09;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms ease;
}

.nfm-qty-btn:hover {
  background: #C4A97B;
  color: #FFFFFF;
}

.nfm-qty-value {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  min-width: 20px;
  text-align: center;
}

.nfm-cart-item-remove {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #C0271A;
  padding: 4px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nfm-cart-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(196, 169, 123, 0.3);
  background: #FFFFFF;
}

.nfm-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.nfm-cart-total-label {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8A8377;
}

.nfm-cart-total-value {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 26px;
  color: #C4A97B;
}

.nfm-cart-checkout {
  width: 100%;
  min-height: 56px;
  background: #25D366;
  color: #FFFFFF;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: filter 140ms ease;
}

.nfm-cart-checkout:hover {
  filter: brightness(0.92);
}

.nfm-cart-checkout svg {
  width: 22px;
  height: 22px;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.nfm-footer {
  background: #0E0C09;
  color: #E8DFD1;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 72px) 40px;
}

.nfm-footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.nfm-footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #C4A97B;
  margin: 0 0 20px;
  font-weight: 500;
}

.nfm-footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #F5F0E8;
  margin: 0 0 16px;
}

.nfm-footer-brand em {
  color: #C4A97B;
  font-style: italic;
}

.nfm-footer-baseline {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: #8A8377;
  margin: 0 0 24px;
  max-width: 32ch;
}

.nfm-footer-social {
  display: flex;
  gap: 12px;
}

.nfm-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #C4A97B;
  color: #C4A97B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  transition: all 140ms ease;
}

.nfm-footer-social a:hover {
  background: #C4A97B;
  color: #0E0C09;
}

.nfm-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nfm-footer-nav a {
  font-family: 'Playfair Display', serif;
  color: #E8DFD1;
  font-size: 15px;
  transition: color 140ms ease;
}

.nfm-footer-nav a:hover {
  color: #C4A97B;
}

.nfm-footer-contact-item {
  margin-bottom: 16px;
}

.nfm-footer-contact-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C4A97B;
  margin: 0 0 6px;
  font-weight: 500;
}

.nfm-footer-contact-value {
  font-family: 'Playfair Display', serif;
  color: #E8DFD1;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.nfm-footer-bottom {
  max-width: 1280px;
  margin: 60px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(196, 169, 123, 0.2);
  text-align: center;
  font-size: 12px;
  color: #8A8377;
  letter-spacing: 0.05em;
}

/* Newsletter dans footer */
.nfm-footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.nfm-footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid #C4A97B;
  color: #F5F0E8;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
}

.nfm-footer-newsletter-form input::placeholder {
  color: #8A8377;
  font-style: italic;
}

.nfm-footer-newsletter-form button {
  padding: 12px 20px;
  background: #C4A97B;
  color: #0E0C09;
  border: 1px solid #C4A97B;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 140ms ease;
}

.nfm-footer-newsletter-form button:hover {
  background: transparent;
  color: #C4A97B;
}

/* ═══════════════════════════════════════════════════════════
   NOTIFICATIONS TOAST
   ═══════════════════════════════════════════════════════════ */

.nfm-toast {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 999;
  padding: 16px 24px;
  background: #0E0C09;
  color: #F5F0E8;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 300ms ease;
  pointer-events: none;
  max-width: 320px;
}

.nfm-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.nfm-toast-icon {
  color: #C4A97B;
  margin-right: 8px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Header - réduction pour tenir sur 1 ligne */
  .nfm-header {
    padding: 16px 12px;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nfm-logo {
    font-size: 18px;
    flex-shrink: 0;
  }

  .nfm-nav {
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.08em;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
  }

  .nfm-nav::-webkit-scrollbar {
    display: none;
  }

  .nfm-nav a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .nfm-cart-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .nfm-cart-btn svg {
    width: 18px;
    height: 18px;
  }

  .nfm-cart-panel {
    max-width: 100%;
  }
}

/* Très petits écrans (< 400px) - encore plus compact */
@media (max-width: 400px) {
  .nfm-nav {
    gap: 7px;
    font-size: 8.5px;
    letter-spacing: 0.05em;
  }
  .nfm-logo {
    font-size: 16px;
  }
}

/* Accessibilité - respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour clavier */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #C4A97B;
  outline-offset: 3px;
}

/* Galerie défilante des fiches produits */
.nfm-product-image { position: relative; overflow: hidden; }
.nfm-product-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(14, 12, 9, .72); color: #fff; font-size: 21px;
  display: grid; place-items: center; transition: background 180ms ease, opacity 180ms ease;
}
.nfm-product-arrow:hover { background: #C4A97B; }
.nfm-product-arrow-prev { left: 12px; }
.nfm-product-arrow-next { right: 12px; }
.nfm-image-counter {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  padding: 5px 9px; border-radius: 20px; background: rgba(14, 12, 9, .72);
  color: #fff; font: 600 11px/1 'DM Sans', sans-serif; letter-spacing: .05em;
}

