/* ═══════════════════════════════════════
   RF MOBILE MENU v2 — CSS
   Injecté dans le off-canvas Astra
   DA Rose&Fly : élégant, sobre, raffiné
   ═══════════════════════════════════════ */

:root {
  --rfm-rose-poudre: #e8a4b8;
  --rfm-vieux-rose: #c96b7e;
  --rfm-bordeaux: #8b3a4c;
  --rfm-texte: #221f26;
  --rfm-muted: #6b5a61;
  --rfm-line: rgba(0,0,0,.06);
  --rfm-soft: rgba(201,107,126,.12);
}

/* ═══════════════════════════════════════
   Masquer le menu natif Astra en mobile
   ═══════════════════════════════════════ */
@media (max-width: 992px) {
  /* Cache les menus natifs Astra dans le off-canvas */
  .ast-mobile-popup-content > .ast-builder-menu,
  .ast-mobile-popup-content > .ast-builder-menu-mobile,
  .ast-mobile-popup-content > nav.site-navigation,
  .ast-mobile-popup-content > .main-header-menu,
  .ast-mobile-popup-content > .ast-builder-grid-row > .ast-builder-menu,
  .ast-mobile-popup-content > .ast-builder-grid-row > .ast-builder-menu-mobile {
    display: none !important;
  }

  /* Le off-canvas prend la bonne taille */
  .ast-mobile-popup-inner {
    display: flex;
    flex-direction: column;
  }

  .ast-mobile-popup-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Reset & Container ─── */
.rfm {
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}

.rfm *, .rfm *::before, .rfm *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════════
   Écran 1 : Home
   ═══════════════════════════════════════ */
.rfm-home {
  padding: 6px 0 20px;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}

.rfm.is-open .rfm-home {
  transform: translateX(-25%);
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

/* ─── Items univers ─── */
.rfm-univers-list {
  display: flex;
  flex-direction: column;
}

.rfm-univers-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 17px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rfm-line);
  border-left: 3px solid transparent;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s ease, border-left-color .25s ease;
}

.rfm-univers-btn:last-child { border-bottom: none; }

/* Hover / active */
.rfm-univers-btn:hover,
.rfm-univers-btn:active {
  background: rgba(201,107,126,.04);
  border-left-color: var(--rfm-vieux-rose);
}

.rfm-univers-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.rfm-univers-btn:hover .rfm-univers-icon,
.rfm-univers-btn:active .rfm-univers-icon {
  transform: scale(1.08);
}

.rfm-icon-decorer  { background: #FFF0E6; }
.rfm-icon-seduire  { background: #FFE8EF; }
.rfm-icon-amuser   { background: #EEF0FF; }
.rfm-icon-bienetre { background: #E8F5E8; }
.rfm-univers-icon:not([class*='rfm-icon-']) { background: #f5eff2; }

.rfm-univers-text { flex: 1; min-width: 0; }

.rfm-univers-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rfm-texte);
  line-height: 1.3;
  transition: color .18s ease;
}

.rfm-univers-btn:hover .rfm-univers-title,
.rfm-univers-btn:active .rfm-univers-title {
  color: var(--rfm-bordeaux);
}

.rfm-univers-sub {
  display: block;
  font-size: 12px;
  color: var(--rfm-muted);
  line-height: 1.3;
  margin-top: 1px;
  opacity: .7;
}

.rfm-univers-chevron {
  font-size: 18px;
  color: #ccc;
  flex-shrink: 0;
  transition: transform .2s ease, color .2s ease;
}

.rfm-univers-btn:hover .rfm-univers-chevron,
.rfm-univers-btn:active .rfm-univers-chevron {
  transform: translateX(3px);
  color: var(--rfm-vieux-rose);
}

/* ─── Quick Links ─── */
.rfm-quick-links {
  display: flex;
  flex-direction: column;
  margin: 4px 0 0;
  border-top: 1px solid var(--rfm-line);
  padding-top: 2px;
}

.rfm-quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  text-decoration: none;
  color: var(--rfm-texte);
  font-weight: 650;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,.03);
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.rfm-quick-link:hover,
.rfm-quick-link:active {
  background: rgba(201,107,126,.03);
}

.rfm-quick-link-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  opacity: .5;
  transition: opacity .18s ease;
}

.rfm-quick-link:hover .rfm-quick-link-icon,
.rfm-quick-link:active .rfm-quick-link-icon {
  opacity: 1;
}

.rfm-quick-link-label {
  flex: 1;
  transition: color .18s ease;
}

.rfm-quick-link:hover .rfm-quick-link-label,
.rfm-quick-link:active .rfm-quick-link-label {
  color: var(--rfm-bordeaux);
}

.rfm-quick-link-bar {
  display: inline-block;
  height: 2px;
  width: 0;
  background: var(--rfm-vieux-rose);
  border-radius: 1px;
  transition: width .25s ease;
  margin-left: auto;
}

.rfm-quick-link:hover .rfm-quick-link-bar,
.rfm-quick-link:active .rfm-quick-link-bar {
  width: 28px;
}

/* ─── CTA RosyBox ─── */
.rfm-cta-wrap { padding: 16px 20px 0; }

.rfm-cta-rosybox {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--rfm-bordeaux), var(--rfm-vieux-rose));
  border-radius: 14px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 10px 26px rgba(139,58,76,.15);
  transition: transform .15s ease, box-shadow .15s ease;
}

.rfm-cta-rosybox:hover,
.rfm-cta-rosybox:active {
  transform: scale(.98);
  box-shadow: 0 6px 16px rgba(139,58,76,.20);
}

.rfm-cta-icon { font-size: 20px; flex-shrink: 0; }

.rfm-cta-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-style: italic;
}

.rfm-cta-sub {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   Écran 2 : Sous-panneaux
   ═══════════════════════════════════════ */
.rfm-sub {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
}

.rfm-sub.is-active {
  position: relative;
  transform: translateX(0);
}

.rfm-sub-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--rfm-line);
  padding: 0 20px;
}

.rfm-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--rfm-vieux-rose);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.rfm-back::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--rfm-vieux-rose);
  transition: width .2s ease;
}

.rfm-back:hover::after,
.rfm-back:active::after { width: 100%; }

.rfm-back-arrow { font-size: 18px; line-height: 1; }

.rfm-sub-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 12px;
}

.rfm-sub-emoji { font-size: 20px; }

.rfm-sub-name {
  font-size: 17px;
  font-weight: 900;
  color: var(--rfm-texte);
  letter-spacing: -.01em;
}

.rfm-sub-body { padding: 4px 0 28px; }

/* ═══════════════════════════════════════
   Accordéon
   ═══════════════════════════════════════ */
.rfm-section {
  border-bottom: 1px solid var(--rfm-line);
}

.rfm-section:last-of-type { border-bottom: none; }

.rfm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rfm-section-title {
  font-size: 12px;
  font-weight: 900;
  color: var(--rfm-rose-poudre);
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: color .2s ease;
}

.rfm-section.is-open .rfm-section-title {
  color: var(--rfm-vieux-rose);
}

.rfm-section-chevron {
  font-size: 16px;
  color: #ccc;
  transition: transform .25s ease, color .25s ease;
  flex-shrink: 0;
}

.rfm-section.is-open .rfm-section-chevron {
  transform: rotate(90deg);
  color: var(--rfm-vieux-rose);
}

.rfm-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 20px;
}

.rfm-section.is-open .rfm-section-body {
  max-height: 600px;
  padding-bottom: 12px;
}

/* ─── Voir tout ─── */
.rfm-see-all {
  display: inline-block;
  padding: 6px 0;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--rfm-vieux-rose);
  text-decoration: none;
  position: relative;
}

.rfm-see-all::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  height: 1.5px;
  width: 100%;
  background: var(--rfm-soft);
  transition: background .2s ease;
}

.rfm-see-all:hover::after,
.rfm-see-all:active::after {
  background: var(--rfm-vieux-rose);
}

/* ─── Liens nav ─── */
.rfm-links { list-style: none; }

.rfm-links li a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--rfm-texte);
  text-decoration: none;
  position: relative;
  transition: color .18s ease, transform .18s ease;
}

.rfm-links li a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  height: 1.5px; width: 0;
  background: var(--rfm-vieux-rose);
  transition: width .25s ease;
}

.rfm-links li a:hover,
.rfm-links li a:active {
  color: var(--rfm-bordeaux);
  transform: translateX(3px);
}

.rfm-links li a:hover::after,
.rfm-links li a:active::after { width: 100%; }

.rfm-links li + li {
  border-top: 1px solid var(--rfm-line);
}

/* ═══════════════════════════════════════
   Produits
   ═══════════════════════════════════════ */
.rfm-products-section { padding: 20px 0 8px; }

.rfm-section-label {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--rfm-rose-poudre);
  padding: 0 20px 10px;
}

.rfm-products-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 8px;
  scrollbar-width: none;
}

.rfm-products-scroll::-webkit-scrollbar { display: none; }

.rfm-product-card {
  flex: 0 0 145px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(18,8,20,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.rfm-product-card:hover,
.rfm-product-card:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18,8,20,.09);
  border-color: rgba(201,107,126,.3);
}

.rfm-product-img {
  height: 135px;
  overflow: hidden;
  background: #faf8f8;
}

.rfm-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .25s ease;
}

.rfm-product-card:hover .rfm-product-img img,
.rfm-product-card:active .rfm-product-img img {
  transform: scale(1.05);
}

.rfm-product-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--rfm-bordeaux);
  color: #fff;
  padding: 3px 9px;
  border-radius: 999px;
}

.rfm-product-info { padding: 10px 12px 12px; }

.rfm-product-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--rfm-texte);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfm-product-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--rfm-muted);
  margin-top: 4px;
}

/* ═══════════════════════════════════════
   Inspirations
   ═══════════════════════════════════════ */
.rfm-inspi-section { padding: 18px 0 4px; }

.rfm-inspi-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 8px;
  scrollbar-width: none;
}

.rfm-inspi-scroll::-webkit-scrollbar { display: none; }

.rfm-inspi-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 26px rgba(18,8,20,.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rfm-inspi-card:hover,
.rfm-inspi-card:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18,8,20,.09);
  border-color: rgba(201,107,126,.3);
}

.rfm-inspi-img {
  height: 100px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #f5eff2;
  transition: transform .3s ease;
}

.rfm-inspi-card:hover .rfm-inspi-img,
.rfm-inspi-card:active .rfm-inspi-img {
  transform: scale(1.04);
}

.rfm-inspi-ph {
  background: linear-gradient(135deg, #f9e4ee, #f0d0e0);
}

.rfm-inspi-body { padding: 10px 12px 12px; }

.rfm-inspi-cat {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rfm-vieux-rose);
  margin-bottom: 3px;
}

.rfm-inspi-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--rfm-texte);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   Desktop : masquer
   ═══════════════════════════════════════ */
@media (min-width: 993px) {
  .rfm { display: none; }
}

/* ═══════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .rfm-home, .rfm-sub, .rfm-section-body,
  .rfm-section-chevron, .rfm-univers-btn,
  .rfm-univers-icon, .rfm-univers-chevron,
  .rfm-univers-title, .rfm-quick-link-bar,
  .rfm-quick-link-icon, .rfm-quick-link-label,
  .rfm-links li a, .rfm-links li a::after,
  .rfm-see-all::after, .rfm-back::after,
  .rfm-product-card, .rfm-product-img img,
  .rfm-inspi-card, .rfm-inspi-img {
    transition: none !important;
  }
}
