/* ============================================================== 
   01 — IMPORTS / ROOT / TOKENS
============================================================== */

/* --------------------------------------------------------------
   GOOGLE FONTS
-------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@500;600;700;800&family=Lato:wght@400;700;800&display=swap");

/* ==============================================================
   A) CORE / BASE
============================================================== */
.rmx{
  /* Root bridge */
  --rmx-bg: var(--bg, #f6f7fb);
  --rmx-surface: var(--surface, #ffffff);
  --rmx-surface-2: var(--surface-2, #f8fafc);
  --rmx-surface-3: var(--surface-3, #f1f5f9);

  --rmx-text: var(--text, #101828);
  --rmx-soft: var(--text-soft, #667085);
  --rmx-faint: var(--text-faint, var(--text-soft, #667085));

  --rmx-border: var(--border-subtle, rgba(16,24,40,0.08));
  --rmx-border-strong: var(--border-strong, rgba(16,24,40,0.14));
  --rmx-divider: var(--divider, rgba(16,24,40,0.08));

  --rmx-primary: var(--primary, #6a5cff);
  --rmx-accent: var(--accent);
  --rmx-on-accent: var(--accent-contrast, #ffffff);

  --rmx-radius: var(--radius-card, 18px);
  --rmx-radius-card: var(--radius-card, 18px);
  --rmx-radius-control: var(--radius-control, 14px);
  --rmx-radius-button: var(--radius-button, 14px);
  --rmx-radius-pill: var(--radius-pill, 999px);

  --rmx-gap: var(--space-4, 16px);
  --rmx-space-2: var(--space-2, 8px);
  --rmx-space-3: var(--space-3, 12px);
  --rmx-space-4: var(--space-4, 16px);
  --rmx-space-5: var(--space-5, 20px);
  --rmx-space-6: var(--space-6, 24px);

  --rmx-shadow-sm: var(--shadow-sm, 0 6px 18px rgba(16,24,40,0.06));
  --rmx-shadow-md: var(--shadow-md, 0 12px 28px rgba(16,24,40,0.10));
  --rmx-shadow-lg: var(--shadow-lg, 0 20px 48px rgba(16,24,40,0.14));
  --rmx-inset: var(--app-inset, inset 0 1px 0 rgba(255,255,255,.92));

  --rmx-glass-1: var(--glass-1, color-mix(in srgb, var(--rmx-surface) 70%, transparent));
  --rmx-glass-2: var(--glass-2, color-mix(in srgb, var(--rmx-surface) 82%, transparent));
  --rmx-glass-3: var(--glass-3, color-mix(in srgb, var(--rmx-surface) 90%, transparent));
  --rmx-glass-4: var(--glass-4, color-mix(in srgb, var(--rmx-surface) 96%, transparent));

  --title-color: var(--rmx-text);
  --card-title-color: var(--rmx-text);
  --section-title-color: var(--rmx-text);

  --rmx-font-title: "Raleway", system-ui, sans-serif;
  --rmx-font-body: "Lato", system-ui, sans-serif;

  --rmx-text-micro: var(--text-micro, 11px);
  --rmx-text-meta: var(--text-meta, 12px);
  --rmx-text-body: var(--text-body, 13px);
  --rmx-text-control: var(--text-control, 14px);
  --rmx-text-card-title: var(--text-card-title, 15px);
  --rmx-text-section-title: var(--text-section-title, 18px);

  /* Rôles produit communs aux quatre styles. */
  --rmx-product-title: var(--fs-md, 16px);
  --rmx-product-title-featured: 17px;
  --rmx-product-lead: var(--rmx-text-body);
  --rmx-product-desc: var(--rmx-text-meta);
  --rmx-product-price: 17px;
  --rmx-product-price-featured: var(--rmx-product-price);
  --rmx-product-cta: var(--rmx-text-body);
  --rmx-category-title: 20px;

  color: var(--rmx-text);
  background: var(--rmx-bg);
  border-radius: var(--rmx-radius);
}

/* Forme des cartes : le mode Arrondies garde les valeurs historiques
   de chaque thème ; le mode Droites neutralise uniquement les surfaces
   structurelles des cartes, jamais les badges/pills/boutons. */
.rmx[data-bp-card-shape="square"]{
  --rmx-card-shape-radius:0px;
  --rmx-card-shape-media-radius:0px;
  --rmx-card-shape-top-radius:0px;
  --rmx-card-shape-bottom-radius:0px;
}

/* Même rôle, densité responsive adaptée. */
@media (max-width:640px){
  .rmx{
    --rmx-text-control: var(--text-body, 13px);
    --rmx-product-title: var(--text-card-title, 15px);
    --rmx-product-title-featured: var(--fs-md, 16px);
    --rmx-product-lead: var(--text-meta, 12px);
    --rmx-product-desc: var(--text-micro, 11px);
    --rmx-product-price: var(--fs-md, 16px);
    --rmx-product-price-featured: var(--rmx-product-price);
    --rmx-product-cta: var(--text-meta, 12px);
    --rmx-category-title: var(--text-section-title, 18px);
  }
}


/* ============================================================== 
   02 — BASE / HELPERS / ACCESSIBILITÉ
============================================================== */

/* ==============================================================
   H) ÉTATS GÉNÉRAUX / A11Y
============================================================== */
.rmx-empty{
  text-align:center;
  padding:30px;
  color:var(--rmx-soft);
}

.sr-only{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.rmx *:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 45%, #ffffff) !important;
  outline-offset:2px;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--rmx-accent) 25%, transparent) !important;
}

.rmx button{
  text-transform:none;
}

/* Focus propre uniquement clavier */
.rmx .rmx-menu-actions-row button:focus,
.rmx > .rmx-tabs button:focus{
  outline: none !important;
}

.rmx .rmx-menu-actions-row button:focus-visible,
.rmx > .rmx-tabs button:focus-visible{
  outline: 2px solid color-mix(in srgb, var(--rmx-accent) 42%, transparent) !important;
  outline-offset: 3px !important;
}

/* ==============================================================
   M) ICÔNES / CHEVRON / SIZES
============================================================== */
.rmx .rmx-icon{
  width:24px;
  height:24px;
}

.rmx .rmx-cta .rmx-icon{
  width:20px;
  height:20px;
}


/* ============================================================== 
   03 — TOP MENU / HERO
============================================================== */

.rmx__header{
  display:grid;
  gap:var(--rmx-gap);
  grid-template-columns:1fr;
  margin-bottom:14px;
}

@media (min-width:900px){
  .rmx__header{
    grid-template-columns:1fr auto auto;
    align-items:center;
  }
}

.rmx__title{
  font:800 clamp(20px,2.6vw,30px)/1.2 var(--rmx-font-title);
  color:var(--title-color);
}


/* Ancien header masqué et résultats */

.rmx > .rmx__header{
  display:none !important;
}

.rmx .rmx-results{
  margin-top: 0;
}

.rmx .rmx-menu-showcase{
  margin: 0 0 18px;
}

.rmx .rmx-hero-offer{
  position: relative;
  isolation: isolate;
  overflow: hidden;

  width: 100%;
  min-height: 360px;

  display: flex;
  align-items: center;

  padding: clamp(34px, 4.2vw, 54px);
  border-radius: 30px;

  color: #fff;

  background:
    radial-gradient(circle at 76% 42%, rgba(79,70,229,.32), transparent 28%),
    radial-gradient(circle at 42% 10%, rgba(255,255,255,.10), transparent 24%),
    linear-gradient(135deg, #082616 0%, #06140d 58%, #172b52 100%);

  box-shadow:
    0 24px 60px rgba(15,23,42,.16),
    inset 0 1px 0 rgba(255,255,255,.14);
}

.rmx .rmx-hero-offer.has-image::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  background-image:
    linear-gradient(
      90deg,
      rgba(6,20,13,.96) 0%,
      rgba(6,20,13,.82) 44%,
      rgba(6,20,13,.28) 100%
    ),
    var(--rmx-hero-img);

  background-size: cover;
  background-position: center right;
}

.rmx .rmx-hero-offer__content{
  position: relative;
  z-index: 2;

  max-width: 520px;

  display: grid;
  gap: 12px;
}

.rmx .rmx-hero-offer__badge{
  width: fit-content;

  padding: 8px 15px;
  border-radius: 999px;

  color: #fff;
  background: linear-gradient(135deg, #4ade80, #16a34a);

  font-size: 14px;
  font-weight: 900;
  line-height: 1;

  box-shadow: 0 14px 28px rgba(22,163,74,.28);
}

.rmx .rmx-hero-offer__title{
  display: block;
  max-width: 470px;

  color: #fff;

  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.06em;
}

.rmx .rmx-hero-offer__text{
  display: block;
  max-width: 390px;

  color: rgba(255,255,255,.9);

  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.rmx .rmx-hero-offer__btn{
  width: fit-content;
  min-height: 48px;
  margin-top: 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 13px 20px;
  border-radius: 16px;

  color: #0f172a;
  background: #fff;
  text-decoration: none !important;

  font-size: 14px;
  font-weight: 900;

  box-shadow: 0 18px 32px rgba(0,0,0,.22);

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.rmx .rmx-hero-offer__btn:hover{
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 22px 38px rgba(0,0,0,.26);
}

/* ----------------------------------------------------------
   2) Recherche + filtres flottants
---------------------------------------------------------- */

/* ==============================================================
   S) MOBILE HEADER (≤900px)
============================================================== */
@media (max-width:900px){
  .rmx__header{
    position:relative;
  }

  .rmx .rmx-toggle{
    position:absolute;
    top:0;
    right:0;
    display:inline-flex;
    align-items:center;
    gap:5px;
    white-space:nowrap;
    z-index:1;
  }

  .rmx .rmx-toggle__btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:12px 10px;
    border-radius:25px;
    font-size:var(--rmx-text-control);
    line-height:1;
    white-space:nowrap;
  }
}

@media (max-width:556px){
 .rmx-chip,
.rmx-tabs__btn,
.rmx-toggle__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:2px 12px;
  border:2px solid var(--rmx-border);
  border-radius:999px;
  background:var(--rmx-glass-3);
  font-size:var(--rmx-text-control);
  cursor:pointer;
  color:var(--rmx-text);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
}

/* ==============================================================
   T) MOBILE HEADER (≤400px) — ordre titre/controls/search
============================================================== */
@media (max-width:400px){
  .rmx__header{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }

  .rmx__header .rmx__title{
    order:1;
  }

  .rmx__header .rmx__controls{
    order:2;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
  }

  .rmx__header .rmx__controls .rmx-toggle{
    position:static !important;
    order:-1;
    margin:0;
    align-self:flex-start;
  }

  .rmx__header .rmx-search{
    order:3;
    width:100%;
  }

  .rmx__header .rmx__controls .rmx-chip{
    order:0;
  }
}


/* ============================================================== 
   04 — RECHERCHE / FILTRES / MODES / CATÉGORIES
============================================================== */

.rmx-search{
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--input-bg);
  border:0;
  padding:8px 12px;
  border-radius:var(--radius-control);
  box-shadow:var(--outline-control);
  min-width:min(100%,360px);
  transition:border-color .2s, box-shadow .2s, background .2s;
}

.rmx-search input{
  border:none;
  background:transparent !important;
  outline:none;
  box-shadow:none !important;
  width:100%;
  height:20px;
  font-size:var(--rmx-text-control);
  color:var(--rmx-text);
  caret-color:var(--rmx-text);
}

.rmx-search input::placeholder{
  color:var(--rmx-soft);
  opacity:.9;
}

.rmx-search:focus-within{
  border:0 !important;
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb,var(--rmx-accent) 48%,var(--border-subtle)),
    var(--focus-ring) !important;
}

/* ==============================================================
   C) CHIPS / TABS / CONTROLS
============================================================== */
.rmx__controls{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.rmx-chip,
.rmx-tabs__btn,
.rmx-toggle__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 12px;
  border:2px solid var(--rmx-border);
  border-radius:999px;
  background:var(--rmx-glass-3);
  font-size:var(--rmx-text-control);
  cursor:pointer;
  color:var(--rmx-text);
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.rmx-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.rmx-tabs{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}

.rmx-tabs__list{
  display:flex;
  gap:10px;
  padding:6px;
  margin:0;
  list-style:none;
}

.rmx-tabs__btn[aria-selected="true"],
.rmx-chip[aria-pressed="true"],
.rmx-toggle__btn[aria-pressed="true"]{
  background:var(--rmx-accent) !important;
  color:var(--rmx-on-accent) !important;
  border-color:transparent !important;
}

.rmx-tabs__btn:hover,
.rmx-chip:hover,
.rmx-toggle__btn:hover{
  background:color-mix(in srgb, var(--rmx-accent) 12%, var(--rmx-surface)) !important;
  border-color:color-mix(in srgb, var(--rmx-accent) 24%, var(--rmx-border)) !important;
  color: var(--text);
}

.rmx-tabs__btn[aria-selected="true"]:hover,
.rmx-chip[aria-pressed="true"]:hover,
.rmx-toggle__btn[aria-pressed="true"]:hover{
  background:color-mix(in srgb, var(--rmx-accent) 92%, black 8%) !important;
  color:var(--rmx-on-accent) !important;
}

.rmx .rmx-menu-actions-row{
  margin: 0 0 18px;
  padding: 0;

  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rmx .rmx-menu-actions-row .rmx-search-tools{
  min-width:0;
}

.rmx .rmx-menu-actions-row .rmx-search{
  width: 100%;
  min-width: 0;
  min-height: 52px;

  background:var(--input-bg);
  border:0;
  border-radius:var(--radius-control);
  box-shadow:var(--outline-control);
}

.rmx .rmx-menu-actions-row .rmx-search:focus-within{
  border:0 !important;
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb,var(--rmx-accent) 48%,var(--border-subtle)),
    var(--focus-ring) !important;
}

.rmx .rmx-menu-actions-row .rmx__controls{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.rmx .rmx-menu-actions-row .rmx-filter-panel,
.rmx .rmx-menu-actions-row .rmx-filter-chips{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.rmx .rmx-menu-actions-row .rmx-filter-trigger{
  display:none;
}

.rmx .rmx-menu-actions-row .rmx-filter-reset{
  display:none;
  appearance:none;
  border:0;
  padding:0;
  background:transparent;
  color:var(--rmx-accent);
  font:800 12px/1 var(--rmx-font-body);
  cursor:pointer;
}

.rmx .rmx-menu-actions-row .rmx-filter-reset:disabled{
  display:none;
}

.rmx .rmx-menu-actions-row .rmx-toggle{
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;

  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;

  white-space: nowrap;
}

.rmx .rmx-menu-actions-row .rmx-chip,
.rmx .rmx-menu-actions-row .rmx-toggle__btn{
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 9px 14px;
  border-radius: 999px;

  color:var(--rmx-text);
  background:var(--action-secondary-bg);
  border:0;
  box-shadow:var(--outline-control);

  font-size:var(--rmx-text-control);
  font-weight: 800;
  line-height: 1;

  transition:
    transform .14s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.rmx .rmx-menu-actions-row .rmx-chip:hover,
.rmx .rmx-menu-actions-row .rmx-toggle__btn:hover{
  transform:translateY(-1px);
  background:var(--action-secondary-hover-bg) !important;
  box-shadow:var(--outline-control-strong) !important;
}

.rmx .rmx-menu-actions-row .rmx-chip[aria-pressed="true"],
.rmx .rmx-menu-actions-row .rmx-toggle__btn[aria-pressed="true"]{
  color: var(--rmx-on-accent) !important;
  background: var(--rmx-accent) !important;
  border-color: transparent !important;

  box-shadow:
    0 10px 22px color-mix(in srgb, var(--rmx-accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.20);
}

.rmx .rmx-menu-actions-row .rmx-chip[aria-pressed="true"]:focus:not(:focus-visible),
.rmx .rmx-menu-actions-row .rmx-toggle__btn[aria-pressed="true"]:focus:not(:focus-visible){
  outline: none !important;

  box-shadow:
    0 10px 22px color-mix(in srgb, var(--rmx-accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}

/* ----------------------------------------------------------
   Choix Sur place / À emporter
---------------------------------------------------------- */
.rmx .rmx-toggle--service-sync{
  display:none !important;
}

.rmx-service-mode[hidden]{
  display:none !important;
}

.rmx-service-mode{
  position:fixed;
  inset:0;
  z-index:10020;
  display:grid;
  place-items:center;
  padding:24px;
  font-family:var(--rmx-font-body);
}

.rmx-service-mode__overlay{
  position:absolute;
  inset:0;
  background:rgba(8,15,28,.52);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.rmx-service-mode__panel{
  position:relative;
  z-index:1;
  width:min(100%, 680px);
  padding:34px;
  border:0;
  border-radius:var(--radius-panel);
  background:var(--card-bg-strong);
  color:var(--rmx-text);
  box-shadow:0 28px 80px rgba(15,23,42,.24);
  outline:none;
}

.rmx-service-mode__close{
  position:absolute;
  top:18px;
  right:18px;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--rmx-text);
  cursor:pointer;
}

.rmx-service-mode__close[hidden]{
  display:none !important;
}

.rmx-service-mode__close::before,
.rmx-service-mode__close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .22s ease;
}

.rmx-service-mode__close::before{ transform:translate(-50%,-50%) rotate(45deg); }
.rmx-service-mode__close::after{ transform:translate(-50%,-50%) rotate(-45deg); }
.rmx-service-mode__close:hover{
  background:transparent !important;
  color:var(--rmx-text) !important;
  box-shadow:none !important;
}
.rmx-service-mode__close:hover::before{ transform:translate(-50%,-50%) rotate(135deg); }
.rmx-service-mode__close:hover::after{ transform:translate(-50%,-50%) rotate(45deg); }

.rmx-service-mode__panel h2{
  max-width:560px;
  margin:0;
  color:var(--rmx-text);
  font-family:var(--rmx-font-title);
  font-size:clamp(26px, 4vw, 38px);
  font-weight:900;
  line-height:1.08;
}

.rmx-service-mode__panel > p{
  max-width:570px;
  margin:12px 0 0;
  color:var(--rmx-soft);
  font-size:14px;
  font-weight:600;
  line-height:1.55;
}

.rmx-service-mode__menu-icon{
  display:inline-block;
  width:16px;
  height:16px;
  margin-left:2px;
  vertical-align:-3px;
  background:currentColor;
  -webkit-mask:url("icons/menu-2.svg") center/contain no-repeat;
  mask:url("icons/menu-2.svg") center/contain no-repeat;
}

.rmx-service-mode__choices{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
  margin-top:26px;
}

.rmx-service-mode__choice{
  position:relative;
  min-width:0;
  min-height:108px;
  padding:16px 112px 16px 20px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border:2px solid color-mix(in srgb, var(--rmx-border) 82%, transparent);
  border-radius:22px;
  background:var(--rmx-surface-2) !important;
  background-image:none !important;
  color:var(--rmx-text);
  font:inherit;
  text-align:left;
  cursor:pointer;
  box-shadow:none;
  transition:transform .16s ease, border-color .16s ease;
}

.rmx-service-mode__choice:hover,
.rmx-service-mode__choice.is-current{
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--rmx-accent) 46%, var(--rmx-border));
  background:var(--rmx-surface-2) !important;
  background-image:none !important;
  box-shadow:none;
}

.rmx-service-mode__choice:focus-visible,
.rmx-service-mode__close:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 48%, transparent);
  outline-offset:3px;
}

.rmx-service-mode__choice-icon{
  position:absolute;
  right:12px;
  bottom:-7px;
  width:104px;
  height:104px;
  pointer-events:none;
  opacity:.11;
  background-color:var(--rmx-accent);
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  -webkit-mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
  mask-repeat:no-repeat;
}

.rmx-service-mode__choice-icon--eat-in{
  -webkit-mask-image:url("icons/building-store.svg");
  mask-image:url("icons/building-store.svg");
}

.rmx-service-mode__choice-icon--takeaway{
  -webkit-mask-image:url("icons/shopping-bag.svg");
  mask-image:url("icons/shopping-bag.svg");
}

.rmx-service-mode__choice-copy{
  position:relative;
  z-index:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.rmx-service-mode__choice-copy strong{
  color:var(--rmx-text);
  font-size:16px;
  font-weight:900;
  line-height:1.15;
}

.rmx-service-mode__choice-copy small{
  color:var(--rmx-soft);
  font-size:12px;
  font-weight:650;
  line-height:1.4;
}

body.rmx-service-mode-open{
  overflow:hidden;
}

/* ----------------------------------------------------------
   5) Catégories flottantes
---------------------------------------------------------- */

.rmx > .rmx-tabs{
  margin: 0 0 24px;
  padding: 0;

  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.rmx > .rmx-tabs .rmx-tabs__list{
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0;
}

.rmx > .rmx-tabs .rmx-tabs__btn{
  min-height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 15px;
  border-radius: 999px;

  color:var(--rmx-text);
  background:var(--action-secondary-bg);
  border:0;
  box-shadow:var(--outline-control);

  font-size:var(--rmx-text-control);
  font-weight: 800;
  line-height: 1;

  transition:
    transform .14s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.rmx > .rmx-tabs .rmx-tabs__btn:hover{
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--rmx-surface) 96%, transparent) !important;
  border-color: color-mix(in srgb, var(--rmx-accent) 22%, var(--rmx-border)) !important;
}

.rmx > .rmx-tabs .rmx-tabs__btn[aria-selected="true"]{
  color: var(--rmx-on-accent) !important;
  background: var(--rmx-accent) !important;
  border-color: transparent !important;

  box-shadow:
    0 10px 22px color-mix(in srgb, var(--rmx-accent) 22%, transparent),
    inset 0 1px 0 rgba(255,255,255,.20);
}
/* 0) Recherche : retire le carré interne orange au focus */
.rmx .rmx-search input,
.rmx .rmx-search input:focus,
.rmx .rmx-search input:focus-visible,
.rmx .rmx-menu-actions-row .rmx-search input,
.rmx .rmx-menu-actions-row .rmx-search input:focus,
.rmx .rmx-menu-actions-row .rmx-search input:focus-visible{
  outline:0 !important;
  box-shadow:none !important;
  border-color:transparent !important;
  -webkit-box-shadow:none !important;
}


/* ============================================================== 
   05 — LAYOUT / SECTIONS / GRILLES
============================================================== */

.rmx-grid{
  display:grid;
  gap:var(--rmx-gap);
  margin-top:14px;
  grid-template-columns:repeat(var(--cols,1), minmax(0,1fr));
}

/* ==============================================================
   F) SECTIONS
============================================================== */
.rmx-section{
  margin:18px 0 6px;
}

.rmx-section__title{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font:800 clamp(18px, 2.2vw, 22px)/1.2 var(--rmx-font-title);
  margin:8px 6px 12px;
  padding:6px 12px;
  border-radius:var(--rmx-radius-pill);
  background:var(--rmx-glass-3);
  border:1px solid var(--rmx-border);
  color:var(--section-title-color);
}

/* Catégories de la vue « Tout » : vrai marqueur de section. */
.rmx-section--category{
  margin:34px 0 10px;
}

.rmx-section--category:first-child{
  margin-top:20px;
}

.rmx-category-head{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  margin:0 2px 20px;
}

.rmx-category-head::before{
  content:"";
  flex:0 0 4px;
  width:4px;
  height:26px;
  border-radius:999px;
  background:var(--rmx-accent);
}

.rmx-section--category .rmx-section__title{
  flex:0 1 auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--section-title-color);
  font:800 clamp(20px, 2.4vw, 25px)/1.15 var(--rmx-font-title);
  letter-spacing:-.02em;
}

.rmx-category-line{
  flex:1 1 auto;
  min-width:28px;
  height:1px;
  background:color-mix(in srgb, var(--rmx-accent) 24%, var(--rmx-border));
}

@media (max-width:556px){
  .rmx-section--category{
    margin-top:30px;
  }

  .rmx-category-head{
    gap:9px;
    margin-bottom:18px;
  }

  .rmx-category-head::before{
    height:23px;
  }

  .rmx-section--category .rmx-section__title{
    font-size:var(--rmx-category-title);
  }

}

/* ==============================================================
   I) COLONNES — réglage séparé du layout
============================================================== */
.rmx{
  --cols:1;
}

/* Auto */
.rmx[data-columns="auto"]{
  --cols:1;
}

@media (min-width: 768px){
  .rmx[data-columns="auto"]{
    --cols:2;
  }
}

@media (min-width: 1200px){
  .rmx[data-columns="auto"]{
    --cols:3;
  }
}

/* Forcé */
.rmx[data-columns="1"]{
  --cols:1;
}

.rmx[data-columns="2"]{
  --cols:1;
}

.rmx[data-columns="3"]{
  --cols:1;
}

@media (min-width: 768px){
  .rmx[data-columns="2"]{
    --cols:2;
  }

  .rmx[data-columns="3"]{
    --cols:2;
  }
}

@media (min-width: 1200px){
  .rmx[data-columns="3"]{
    --cols:3;
  }
}


/* ==============================================================
   J) VARIANTE APP
============================================================== */
.rmx[data-variant="app"] .rmx-card{
  border-radius:var(--rmx-card-shape-radius, 20px);
}

.rmx[data-variant="app"] .rmx-price{
  background:color-mix(in srgb, var(--rmx-surface) 75%, transparent);
  border-radius:12px;
  padding:6px 10px;
  box-shadow:0 8px 18px color-mix(in srgb, var(--rmx-text) 8%, transparent);
}

.rmx[data-variant="app"] .rmx-toggle__btn{
  background:var(--rmx-glass-4) !important;
  box-shadow:var(--rmx-inset);
}


/* ============================================================== 
   06 — PRODUCT CARD — BASE COMMUNE
============================================================== */

.rmx-card{
  position:relative;
  container-type:inline-size;
  min-width:0;
  background:color-mix(in srgb, var(--rmx-surface) 45%, transparent);
  border:0;
  border-radius:var(--rmx-card-shape-radius, calc(var(--rmx-radius-card) - 2px));
  padding:16px;
  display:grid;
  gap:10px;
  transition:transform .14s ease, box-shadow .14s ease, background .18s ease;
  box-shadow:var(--rmx-shadow-sm);
}

@media (hover:hover){
  .rmx-card:hover{
    transform:translateY(-2px);
    box-shadow:var(--rmx-shadow-md);
  }
}

.rmx-card__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.rmx-card__title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0;
  font:700 16px/1.2 var(--rmx-font-body);
  color:var(--card-title-color);
}

/* Essential : le titre remplace proprement le CTA absent. */
.rmx .rmx-card__title-link,
.rmx .rmx-card__title-link:link,
.rmx .rmx-card__title-link:visited{
  min-width:0;
  color:inherit;
  text-decoration:none !important;
  overflow-wrap:anywhere;
  transition:color .18s ease;
}

.rmx .rmx-card__title-link:hover,
.rmx .rmx-card__title-link:focus-visible{
  color:var(--rmx-accent);
  text-decoration:none !important;
}

.rmx-card__lead{
  color:var(--rmx-text);
  font-size:var(--rmx-product-lead);
  margin:2px 0 4px;
}

.rmx-card__desc{
  margin:2px 0 0;
  color:var(--rmx-soft);
  font-size:var(--rmx-product-desc);
  font-style:italic;
}

.rmx-card__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  flex-wrap:wrap;
}

.rmx-price{
  min-width:0;
  font-weight:800;
  letter-spacing:.1px;
  color:var(--rmx-text);
}

.rmx-price__old{
  text-decoration:line-through;
  opacity:.6;
  margin-right:8px;
  font-weight:600;
}

.rmx-price__new{
  font-weight:800;
}

/* ==============================================================
   G) THUMBS
============================================================== */
.rmx-thumb{
  position:relative;
  margin:0;
  width:96px;
  height:96px;
  border-radius:12px;
  overflow:hidden;
  cursor:zoom-in;
  transition:transform .16s ease, box-shadow .16s ease;
}

.rmx-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.rmx-thumb:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 18px color-mix(in srgb, var(--rmx-text) 10%, transparent);
}

.rmx-thumb:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 35%, transparent);
  outline-offset:3px;
}

/* 1) Images : zoom désactivé */
.rmx .rmx-thumb{
  cursor:default !important;
}

.rmx .rmx-thumb:hover{
  transform:none !important;
  box-shadow:none !important;
}

.rmx .rmx-thumb:focus,
.rmx .rmx-thumb:focus-visible{
  outline:0 !important;
  box-shadow:none !important;
}

/* ==============================================================
   VARIANTES — thumbs / prix / actions / contenu
============================================================== */

/* Thumbs hide */
.rmx[data-thumbs="hide"] .rmx-thumb{
  display:none !important;
}

.rmx[data-thumbs="hide"] .rmx-card{
  grid-template-columns:1fr !important;
}

.rmx[data-thumbs="hide"] .rmx-card__head,
.rmx[data-thumbs="hide"] .rmx-card__lead,
.rmx[data-thumbs="hide"] .rmx-card__desc,
.rmx[data-thumbs="hide"] .rmx-card__foot,
.rmx[data-thumbs="hide"] .rmx-morebar,
.rmx[data-thumbs="hide"] .rmx-more{
  grid-column:1 !important;
}

/* ==============================================================
   Contenu texte — visibilité + clamp
============================================================== */

/* Lead */
.rmx[data-show-lead="false"] .rmx-card__lead{
  display:none !important;
}

/* Desc */
.rmx[data-show-desc="false"] .rmx-card__desc{
  display:none !important;
  overflow:hidden !important;
  -webkit-line-clamp:unset !important;
  -webkit-box-orient:unset !important;
}

/* Desc libre */
.rmx[data-show-desc="true"][data-desc-lines="0"] .rmx-card__desc{
  display:block !important;
  overflow:visible !important;
}

/* Desc clampée */
.rmx[data-show-desc="true"][data-desc-lines="1"] .rmx-card__desc{
  display: block !important;
  white-space: nowrap;
  overflow: hidden !important;
  text-overflow: ellipsis;
}

/* 2 lignes */
.rmx[data-show-desc="true"][data-desc-lines="2"] .rmx-card__desc{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  white-space:normal !important;
  line-height:1.45 !important;
  max-height:calc(1.45em * 2) !important;
}

/* 3 lignes */
.rmx[data-show-desc="true"][data-desc-lines="3"] .rmx-card__desc{
  display:-webkit-box !important;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden !important;
}

/* Prix en pill */
.rmx[data-price-style="pill"] .rmx-price{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:6px 10px;
  border-radius:12px;
  background:color-mix(in srgb, var(--rmx-surface) 75%, transparent);
  box-shadow:0 8px 18px color-mix(in srgb, var(--rmx-text) 8%, transparent);
}

/* Prix inline */
.rmx[data-price-style="inline"] .rmx-price{
  background:transparent;
  padding:0;
  border-radius:0;
  box-shadow:none;
}

/* Prix mis en avant */
.rmx[data-price-style="highlight"] .rmx-price{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:var(--rmx-accent);
  color:var(--rmx-on-accent);
  box-shadow:var(--rmx-shadow-sm);
}

/* Actions flottantes compactes */
/* ==========================================================
   Options d’affichage Bloopin — fallback front menu
   ========================================================== */

/* Sécurité si JS fail */
.rmx[data-bp-show-image="no"] .rmx-thumb{
  display:none !important;
}

.rmx[data-bp-show-excerpt="no"] .rmx-card__lead,
.rmx[data-bp-show-excerpt="no"] .rmx-card__desc{
  display:none !important;
}

.rmx[data-bp-show-badge="no"] .rmx-badge,
.rmx[data-bp-show-badge="no"] .rmx-promo,
.rmx[data-bp-show-badge="no"] .rmx-showcase-badge{
  display:none !important;
}

.rmx[data-bp-show-cta="no"] .rmx-cta--order,
.rmx[data-bp-service-mode="browse"] .rmx-cta--order{
  display:none !important;
}



/* ============================================================== 
   07 — PRODUCT CARD — BADGES / PROMOS / ÉTATS
============================================================== */

.rmx-card__badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.rmx-badge{
  font-size:12px;
  padding:3px 4px;
  border-radius:25px;
  background:var(--rmx-glass-3);
  color:var(--rmx-soft);
  border:1px solid color-mix(in srgb, var(--rmx-border) 75%, transparent);
}

.rmx-badge--vegan{
  background:color-mix(in srgb, #10b981 14%, var(--rmx-surface));
  color:#176c43;
}

.rmx-badge--spicy{
  background:color-mix(in srgb, #ef4444 14%, var(--rmx-surface));
  color:#8f2b17;
}

.rmx-badge--glutenfree{
  background:color-mix(in srgb, #3b82f6 12%, var(--rmx-surface));
  color:#1c4d76;
}

.rmx-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
}

  .rmx-badge--spicy,
  .rmx-badge--vegan,
  .rmx-badge--glutenfree{
    width:30px;
    height:30px;
  }

  .rmx-badge svg,
  .rmx-badge .rmx-icon{
    width:16px;
    height:16px;
  }

/* Dans « En savoir plus », les badges système redeviennent des pills
   texte + icône : la largeur carrée 30x30 est réservée à la carte fermée. */
.rmx-more__chips--badges .rmx-badge--spicy,
.rmx-more__chips--badges .rmx-badge--vegan,
.rmx-more__chips--badges .rmx-badge--glutenfree{
  width:auto;
  min-width:0;
  height:30px;
  padding:3px 10px 3px 8px;
  gap:6px;
  white-space:nowrap;
}

.rmx-more__chips--badges .rmx-badge--spicy .rmx-icon,
.rmx-more__chips--badges .rmx-badge--vegan .rmx-icon,
.rmx-more__chips--badges .rmx-badge--glutenfree .rmx-icon{
  display:block;
  flex:0 0 16px;
  width:16px;
  height:16px;
}

/* Étiquettes personnalisées : même hauteur et même respiration verticale
   que les pills système avec icône, sur toutes les variantes de carte. */
.rmx .rmx-badge--custom{
  width:auto;
  min-width:0;
  height:30px;
  padding:3px 10px 3px 8px;
  gap:6px;
  white-space:nowrap;
}

/* ==============================================================
   O) BADGE PROMO + RUBAN VIGNETTE
============================================================== */

.rmx .rmx-ribbon-svg{
  position:absolute;
  width:190%;
  height:190%;
  top:-45%;
  left:-45%;
  pointer-events:none;
  z-index:1;
}

@container (min-width:340px){
  .rmx .rmx-ribbon-svg{
    width:170%;
    height:170%;
    top:-35%;
    left:-35%;
  }
}

.rmx .rmx-thumb .rmx-ribbon-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:2;
}

/* ==============================================================
   BADGE PROMO — SOURCE UNIQUE STRICTE
   Cards menu : typo, taille et rendu cohérents
============================================================== */

.rmx .rmx-promo,
.rmx .rmx-card .rmx-promo{
  box-sizing: border-box !important;

  min-width: 64px !important;
  min-height: 32px !important;
  height: 32px !important;

  display: none !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 14px !important;
  margin: 0 !important;

  border: 0 !important;
  border-radius: 999px !important;

  color: #fff !important;
  background: var(--rmx-accent) !important;

  font-family: "Poppins", var(--rmx-font-body), system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap !important;

  box-shadow:
    0 10px 20px color-mix(in srgb, var(--rmx-accent) 24%, transparent),
    inset 0 1px 0 rgba(255,255,255,.18) !important;
}

/* Badge menu : dans le flux par défaut */
.rmx .rmx-card .rmx-promo{
  position: static !important;
  flex: 0 0 auto !important;
  vertical-align: middle !important;
}

/* Elegant : exception, badge menu flottant */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-promo{
  position: absolute !important;
  top: -12px !important;
  right: 16px !important;
  z-index: 8 !important;
}

/* Mobile : réduction du badge menu */
@media (max-width: 640px){
  .rmx .rmx-promo,
  .rmx .rmx-card .rmx-promo{
    min-width: 60px !important;
    min-height: 30px !important;
    height: 30px !important;

    padding: 0 12px !important;

    font-family: "Poppins", var(--rmx-font-body), system-ui, sans-serif !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }


  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-promo{
    top: -10px !important;
    right: 14px !important;
  }
}

/* ==============================================================
   Showcase — produits mis en avant
============================================================== */
.rmx-card.is-showcase{
  position:relative;
}

.rmx-showcase-badge{
  position:absolute;
  z-index:5;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:999px;
  background:var(--rmx-accent);
  color:var(--rmx-on-accent);
  font-size:11px;
  font-weight:800;
  line-height:1;
  letter-spacing:.02em;
  box-shadow:0 10px 22px color-mix(in srgb, var(--rmx-accent) 18%, transparent);
}

@media (max-width: 640px){
  .rmx-showcase-badge{
    min-height:24px;
    padding:4px 8px;
    font-size:10px;
  }
}
/* 4) Badge épuisé premium, remplace le ruban diagonal */
.rmx .rmx-sold-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:7;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  color:#fff;
  background:linear-gradient(135deg, #111827, #374151);
  font-family:"Poppins", var(--rmx-font-body), system-ui, sans-serif;
  font-size:12px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.01em;
  box-shadow:0 12px 22px rgba(15,23,42,.20), inset 0 1px 0 rgba(255,255,255,.16);
  pointer-events:none;
}

.rmx .rmx-card.is-showcase .rmx-thumb .rmx-sold-badge{
  top:50px;
}

@media (max-width:640px){
  .rmx .rmx-sold-badge{
    top:10px;
    left:10px;
    min-height:28px;
    padding:0 10px;
    font-size:11px;
  }

  .rmx .rmx-card.is-showcase .rmx-thumb .rmx-sold-badge{
    top:44px;
  }
}


/* ============================================================== 
   08 — PRODUCT CARD — ACTIONS
============================================================== */

/* ==============================================================
   E) CTA (génériques)
============================================================== */
.rmx .rmx-cta{
  appearance:none;
  -webkit-appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--rmx-radius-pill);
  padding:12px 16px;
  background:var(--rmx-glass-4);
  color:var(--text-hover);
  font-weight:600;
  cursor:pointer;
  text-decoration:none;
  transition:background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.rmx .rmx-cta:hover{
  background:color-mix(in srgb, var(--rmx-accent) 12%, var(--rmx-surface));
  border-color:color-mix(in srgb, var(--rmx-accent) 24%, var(--rmx-border));
}

.rmx .rmx-cta:active{
  transform:translateY(1px);
}

.rmx .rmx-cta:disabled{
  opacity:.75;
  filter:saturate(.85);
  cursor:not-allowed;
}

.rmx .rmx-cta:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 45%, #fff);
  outline-offset:2px;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--rmx-accent) 25%, transparent);
}

/* CTA commander */
.rmx .rmx-cta--order{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  max-width:100%;
  flex:0 1 auto;
  padding:10px 15px;
  border-radius:var(--radius-button);
  border:0;
  font-weight:700;
  font-size:var(--rmx-product-cta);
  cursor:pointer;
  transition:background .2s, color .2s, transform .15s, box-shadow .2s;
  background:var(--action-primary-bg);
  color:var(--action-primary-text);
}

.rmx .rmx-cta--order:hover{
  transform:translateY(-1px);
  box-shadow:var(--rmx-shadow-sm);
  background:var(--action-primary-hover-bg);
  color:var(--action-primary-hover-text);
}

/* CTA favori / invite */
.rmx .rmx-cta--fav,
.rmx .rmx-cta--invite{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--rmx-glass-4) !important;
  color:var(--rmx-text) !important;
  transition:background .18s ease, transform .06s ease, border-color .18s ease;
}

.rmx .rmx-cta--fav .rmx-icon,
.rmx .rmx-cta--invite .rmx-icon{
  width:18px;
  height:18px;
  fill:currentColor;
  transform-origin:center;
}

.rmx .rmx-cta--fav.is-on,
.rmx .rmx-cta--invite.is-on{
  color:var(--accent) !important;
  border-color:transparent !important;
}

.rmx .rmx-cta--fav:hover,
.rmx .rmx-cta--invite:hover{
  background:color-mix(in srgb, var(--rmx-accent) 24%, var(--rmx-surface)) !important;
}

.rmx .rmx-cta--fav.is-on:hover,
.rmx .rmx-cta--invite.is-on:hover{
  background:color-mix(in srgb, var(--rmx-accent) 24%, var(--rmx-surface)) !important;
}

.rmx-favpanel__item img,
.rmx-favpanel__ph{
  width:56px;
  height:56px;
  border-radius:10px;
  background:var(--rmx-surface-2);
}

.rmx-favpanel__name{
  font-weight:700;
}

.rmx-btn{
  padding:8px 10px;
  border-radius:var(--radius-button);
  border:0;
  background:var(--action-secondary-bg);
  color:var(--action-secondary-text);
  box-shadow:var(--outline-control);
}

.rmx-btn:hover{
  background:var(--action-secondary-hover-bg);
  color:var(--action-secondary-text);
  box-shadow:var(--outline-control-strong);
}

.rmx-btn--ghost{
  background:var(--action-secondary-bg);
}

.rmx-ctas .rmx-cta{
  margin-left:6px;
}

/* ==============================================================
   R) BOUTONS FLOTTANTS SUR LES CARTES
============================================================== */
.rmx-card .rmx-cta--fav,
.rmx-card .rmx-cta--invite{
  position:absolute;
  top:12px;
  z-index:2;
  width:44px;
  height:44px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
}

.rmx-card .rmx-cta--invite{
  right:16px;
}

.rmx-card .rmx-cta--fav{
  right:72px;
}

.rmx-card .rmx-cta.rmx-cta--fav > .rmx-icon,
.rmx-card .rmx-cta.rmx-cta--invite > .rmx-icon,
.rmx-card .rmx-cta.rmx-cta--fav > svg,
.rmx-card .rmx-cta.rmx-cta--invite > svg{
  width:20px !important;
  height:20px !important;
  min-width:20px !important;
  min-height:20px !important;
  max-width:none !important;
  max-height:none !important;
  display:block;
  flex:none;
}

.rmx-card .rmx-cta--fav svg,
.rmx-card .rmx-cta--invite svg{
  stroke:currentColor;
  vector-effect:non-scaling-stroke;
}

/* Réserve top pour cartes avec boutons */
.rmx-card{
  padding-top:64px;
}

/* ==============================================================
   U) FIX — débordement CTA dans les cartes
============================================================== */
.rmx-card,
.rmx-card__head,
.rmx-card__foot{
  min-width:0;
}

.rmx-card__foot{
  flex-wrap:wrap;
}

.rmx .rmx-cta--order{
  max-width:100%;
  flex:0 1 auto;
}

@container (max-width:260px){
  .rmx-card__foot{
    display:grid;
    grid-template-columns:1fr;
  }

  .rmx .rmx-cta--order{
    width:100%;
  }
}


.rmx[data-actions="compact"] .rmx-card{
  padding-top:56px;
}

.rmx[data-actions="compact"] .rmx-card .rmx-cta--fav,
.rmx[data-actions="compact"] .rmx-card .rmx-cta--invite{
  width:36px;
  height:36px;
}

.rmx[data-actions="compact"] .rmx-card .rmx-cta--invite{
  right:12px;
}

.rmx[data-actions="compact"] .rmx-card .rmx-cta--fav{
  right:56px;
}

.rmx[data-actions="compact"] .rmx-card .rmx-cta.rmx-cta--fav > .rmx-icon,
.rmx[data-actions="compact"] .rmx-card .rmx-cta.rmx-cta--invite > .rmx-icon,
.rmx[data-actions="compact"] .rmx-card .rmx-cta.rmx-cta--fav > svg,
.rmx[data-actions="compact"] .rmx-card .rmx-cta.rmx-cta--invite > svg{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
}

/* Actions flottantes standard */
.rmx[data-actions="default"] .rmx-card{
  padding-top:64px;
}

/* 2) Icônes favoris / partage via assets, en gardant le style actuel */
.rmx .rmx-cta--fav,
.rmx .rmx-cta--invite{
  color:var(--rmx-text) !important;
}

.rmx .rmx-cta--fav.is-on,
.rmx .rmx-cta--fav[aria-pressed="true"]{
  color:var(--rmx-accent) !important;
}

.rmx .rmx-icon--asset{
  display:block !important;
  flex:0 0 auto !important;
  width:20px !important;
  height:20px !important;
  background-color:currentColor !important;
  background-image:none !important;
  color:currentColor !important;
  opacity:.86 !important;
}

.rmx .rmx-icon--heart{
  -webkit-mask:url("icons/heart.svg") center / contain no-repeat;
  mask:url("icons/heart.svg") center / contain no-repeat;
}

.rmx .rmx-icon--share{
  -webkit-mask:url("icons/mood-share.svg") center / contain no-repeat;
  mask:url("icons/mood-share.svg") center / contain no-repeat;
}

.rmx .rmx-cta--fav:hover .rmx-icon--asset,
.rmx .rmx-cta--invite:hover .rmx-icon--asset{
  opacity:1 !important;
}


/* ============================================================== 
   09 — PRODUCT CARD — PLUS D’INFOS
============================================================== */

/* ==============================================================
   L) PANNEAU “PLUS D’INFOS”
============================================================== */
.rmx .rmx-morebar{
  grid-column:1 / -1;
  margin-top:4px;
}

.rmx .rmx-morebtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6em;
  padding:8px 16px;
  border-radius:var(--radius-button);
  border:0;
  background:var(--action-secondary-bg);
  color:var(--action-secondary-text);
  box-shadow:var(--outline-control);
  font-family:var(--rmx-font-body);
  font-weight:600;
  font-size:14px;
  font-style:italic;
  line-height:1.4;
  letter-spacing:.2px;
  cursor:pointer;
  text-decoration:none;
  transition:background .2s, box-shadow .2s, transform .15s;
}

.rmx .rmx-morebtn:hover{
  transform:translateY(-1px);
  background:var(--rmx-glass-4);
  box-shadow:0 2px 6px color-mix(in srgb, var(--rmx-text) 8%, transparent);
}

.rmx .rmx-morebtn:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 40%, white);
  outline-offset:2px;
}

.rmx-morebar .rmx-morebtn:link,
.rmx-morebar .rmx-morebtn:visited,
.rmx-morebar .rmx-morebtn:hover,
.rmx-morebar .rmx-morebtn:focus{
  text-decoration:none !important;
}

.rmx-morebar .rmx-morebtn::after{
  content:none;
}

.rmx-morebar .rmx-morebtn .rmx-morebtn__label{
  order:1;
}

.rmx-morebar .rmx-morebtn .rmx-icon{
  order:2;
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  display:block;
}

.rmx-morebar .rmx-morebtn .rmx-icon *{
  fill:none;
  stroke:currentColor;
}

.rmx .rmx-more{
  grid-column:1 / -1;
  background:var(--rmx-glass-2);
  border:1px dashed var(--rmx-border);
  border-radius:12px;
  padding:10px;
  margin-top:8px;
  overflow:hidden;
  max-height:0;
  opacity:0;
  transform:translateY(-2px);
  transition:max-height .28s ease, opacity .2s ease, transform .2s ease;
}

.rmx .rmx-card[data-open="true"] .rmx-more{
  max-height:600px;
  opacity:1;
  transform:none;
}

.rmx .rmx-more__row{
  font-size:13px;
  color:var(--rmx-soft);
  margin:6px 0;
}

.rmx .rmx-more__chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
}

.rmx .rmx-more__chip{
  font-size:12px;
  padding:2px 15px;
  border-radius:999px;
  background:var(--rmx-surface-2);
  color:var(--rmx-soft);
  border:1px solid var(--rmx-border);
}


/* ============================================================== 
   10 — RESPONSIVE TOP MENU / CATÉGORIES
============================================================== */


/* Responsive Top menu et catégories */


@media (max-width: 1024px){
  .rmx .rmx-hero-offer{
    min-height: 300px;
  }

  .rmx .rmx-menu-actions-row{
    display:flex;
    flex-direction:column;
    gap: 12px;
  }

  .rmx .rmx-menu-actions-row .rmx__controls{
    display:contents;
  }

  .rmx .rmx-menu-actions-row .rmx-toggle{
    order:1;
    align-self:flex-start;
  }

  .rmx .rmx-menu-actions-row .rmx-search-tools{
    order:2;
    width:100%;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
    gap:8px;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-width:50px;
    min-height:50px;
    padding:0 14px;
    border:0;
    border-radius:999px;
    background:var(--action-secondary-bg);
    box-shadow:var(--outline-control);
    color:var(--rmx-text);
    font:800 13px/1 var(--rmx-font-body);
    cursor:pointer;
    transition:background .16s ease, color .16s ease, box-shadow .16s ease;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger:hover,
  .rmx .rmx-menu-actions-row .rmx-filter-trigger[aria-expanded="true"],
  .rmx .rmx-menu-actions-row .rmx-filter-trigger.is-active{
    background:color-mix(in srgb, var(--rmx-accent) 9%, var(--rmx-surface));
    color:var(--rmx-accent);
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger:focus-visible{
    outline:2px solid color-mix(in srgb, var(--rmx-accent) 45%, transparent);
    outline-offset:2px;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger__icon{
    width:19px;
    height:19px;
    flex:0 0 auto;
    background:currentColor;
    -webkit-mask:url("icons/filter.svg") center / contain no-repeat;
    mask:url("icons/filter.svg") center / contain no-repeat;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger__count{
    min-width:18px;
    height:18px;
    padding:0 5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    background:var(--rmx-accent);
    color:var(--rmx-on-accent);
    font:900 10px/1 var(--rmx-font-body);
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger__count[hidden]{
    display:none;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-panel{
    order:3;
    width:100%;
    display:none;
    padding:14px;
    border:1px solid color-mix(in srgb, var(--rmx-border) 72%, transparent);
    border-radius:18px;
    background:color-mix(in srgb, var(--rmx-surface) 94%, transparent);
    box-shadow:0 12px 28px rgba(15,23,42,.06);
  }

  .rmx .rmx-menu-actions-row .rmx-filter-panel.is-open{
    display:block;
  }


  .rmx .rmx-menu-actions-row .rmx-filter-chips{
    justify-content:flex-start;
    gap:8px;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-reset{
    display:inline-flex;
    align-items:center;
    min-height:40px;
    padding:8px 4px;
    margin-left:2px;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-reset:disabled{
    display:none;
  }


  .rmx > .rmx-tabs{
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .rmx > .rmx-tabs::-webkit-scrollbar{
    display: none;
    width: 0;
    height: 0;
  }

  .rmx > .rmx-tabs .rmx-tabs__list{
    width: max-content;
    min-width: 100%;
  }
}


@media (max-width: 640px){
  .rmx .rmx-menu-showcase{
    margin-bottom: 16px;
  }

  .rmx .rmx-hero-offer{
    min-height: 260px;
    padding: 28px 24px;
    border-radius: 26px;
  }

  .rmx .rmx-hero-offer__title{
    max-width: 360px;
    font-size: 36px;
  }

  .rmx .rmx-hero-offer__text{
    font-size: 15px;
  }

  .rmx .rmx-menu-actions-row{
    gap: 10px;
    margin-bottom: 16px;
  }

  .rmx .rmx-menu-actions-row .rmx-search{
    min-height: 50px;
  }

  .rmx .rmx-menu-actions-row .rmx__controls{
    display:contents;
  }

  .rmx .rmx-menu-actions-row .rmx-toggle{
    width:auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .rmx .rmx-menu-actions-row .rmx-chip,
  .rmx .rmx-menu-actions-row .rmx-toggle__btn{
    min-height: 40px;
    padding: 8px 13px;
    font-size:var(--rmx-text-control);
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger{
    width:50px;
    min-width:50px;
    padding:0;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger__label{
    display:none;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-trigger__count{
    position:absolute;
    top:-4px;
    right:-3px;
    box-shadow:0 0 0 3px var(--rmx-bg);
  }


  .rmx > .rmx-tabs{
    margin-bottom: 22px;
  }

  .rmx-service-mode{
    place-items:end center;
    padding:0;
  }

  .rmx-service-mode__panel{
    width:100%;
    max-height:min(88dvh, 720px);
    overflow-y:auto;
    padding:28px 18px max(22px, env(safe-area-inset-bottom));
    border-width:1px 0 0;
    border-radius:28px 28px 0 0;
  }

  .rmx-service-mode__close{
    top:14px;
    right:14px;
  }

  .rmx-service-mode__panel h2{
    padding-right:34px;
    font-size:28px;
  }

  .rmx-service-mode.is-required .rmx-service-mode__panel h2{
    padding-right:0;
  }

  .rmx-service-mode__choices{
    grid-template-columns:1fr;
    gap:10px;
    margin-top:20px;
  }

  .rmx-service-mode__choice{
    min-height:94px;
    padding:14px 88px 14px 16px;
    border-radius:18px;
  }

  .rmx-service-mode__choice-icon{
    right:8px;
    bottom:-3px;
    width:78px;
    height:78px;
    opacity:.10;
  }

  .rmx > .rmx-tabs .rmx-tabs__list{
    gap: 8px;
  }

  .rmx > .rmx-tabs .rmx-tabs__btn{
    min-height: 38px;
    padding: 8px 13px;
    font-size:var(--rmx-text-control);
  }
}

/* ============================================================== 
   11 — VARIANTE MODERN
============================================================== */

/* ==========================================================
   Variante Modern — base
   ========================================================== */

.rmx[data-bp-style="modern"] .rmx-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
  align-items:start !important;
}

.rmx[data-bp-style="modern"] .rmx-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  height:100%;
  padding:0;
  overflow:hidden;
  border-radius:var(--rmx-card-shape-radius, 24px);
  background:color-mix(in srgb, var(--rmx-surface) 78%, transparent);
  border:0;
  box-shadow:0 10px 24px rgba(16,24,40,0.06);
  transition:transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

.rmx[data-bp-style="modern"] .rmx-grid > .rmx-card{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}

@media (hover:hover){
  .rmx[data-bp-style="modern"] .rmx-card:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(16,24,40,0.09);
  }
}

/* Showcase */
.rmx[data-bp-style="modern"] .rmx-card.is-showcase{
  border:2px solid color-mix(in srgb, var(--rmx-accent) 30%, transparent);
  box-shadow:
    0 16px 32px color-mix(in srgb, var(--rmx-accent) 10%, transparent),
    0 10px 24px rgba(16,24,40,.08);
  background:color-mix(in srgb, var(--rmx-surface) 84%, transparent);
}

.rmx[data-bp-style="modern"] .rmx-showcase-badge{
  top:12px;
  left:12px;
  z-index:9;
}

.rmx[data-bp-style="modern"] .rmx-grid > .rmx-card > .rmx-promo{
  position:absolute !important;
  top:12px !important;
  left:12px !important;
  right:auto !important;
  z-index:20 !important;
  pointer-events:none !important;
}

.rmx[data-bp-style="modern"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo{
  top:52px !important;
}

/* Image */
.rmx[data-bp-style="modern"] .rmx-thumb{
  position:relative;
  width:100%;
  height:160px;
  min-height:160px;
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:transparent;
}

.rmx[data-bp-style="modern"] .rmx-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  background:transparent;
}

/* Fav / share */
.rmx[data-bp-style="modern"] .rmx-ctas{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta{
  margin-left:0;
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--order{
  position:static;
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav,
.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite{
  position:absolute;
  top:12px;
  z-index:8;
  width:40px;
  height:40px;
  padding:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  background:color-mix(in srgb, var(--rmx-surface) 76%, transparent) !important;
  border:0 !important;
  box-shadow:var(--outline-control), 0 4px 10px rgba(16,24,40,.06) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite{
  right:12px;
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav{
  right:58px;
}

.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav .rmx-icon,
.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite .rmx-icon,
.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav svg,
.rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite svg{
  width:16px !important;
  height:16px !important;
  opacity:.78;
}

/* Contenu */
.rmx[data-bp-style="modern"] .rmx-card__head{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:8px;
  min-width:0;
  padding:16px 16px 8px;
}

.rmx[data-bp-style="modern"] .rmx-card__title{
  margin:0;
  font-size:var(--rmx-product-title);
  line-height:1.2;
}

.rmx[data-bp-style="modern"] .rmx-card.is-showcase .rmx-card__title{
  font-size:var(--rmx-product-title-featured);
  font-weight:800;
}

/* Promo + badges sur une même ligne */
.rmx[data-bp-style="modern"] .rmx-card__badges{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.rmx[data-bp-style="modern"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-card__badges{
  position:absolute !important;
  top:118px !important;
  right:14px !important;
  left:auto !important;
  z-index:19 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  margin:0 !important;
}


.rmx[data-bp-style="modern"] .rmx-card__lead{
  margin:0;
  padding:0 16px 6px;
  font-size:var(--rmx-product-lead);
  line-height:1.45;
  color:var(--rmx-text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;
}

.rmx[data-bp-style="modern"] .rmx-card__desc{
  margin:0;
  padding:0 16px 6px;
  font-size:var(--rmx-product-desc);
  line-height:1.45;
  max-height:calc(1.45em * 2) !important;
  padding-bottom:0 !important;
  color:var(--rmx-soft);
  font-style:normal;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;
}

.rmx[data-bp-style="modern"] .rmx-card__modern-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px 4px;
  margin:0;
}

.rmx[data-bp-style="modern"] .rmx-card__modern-meta .rmx-morebar{
  flex:0 1 auto;
  padding:0;
  margin:0;
}

.rmx[data-bp-style="modern"] .rmx-card__modern-meta .rmx-price{
  flex:0 0 auto;
  margin-left:auto;
  padding-top:0;
  transform:translateY(-2px);
}

.rmx[data-bp-style="modern"] .rmx-morebar{
  padding:16px 10px 6px;
  margin:0;
}

.rmx[data-bp-style="modern"] .rmx-more{
  margin:0 16px 12px;
}

.rmx[data-bp-style="modern"] .rmx-card__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 14px;
  margin-top:auto !important;
}

.rmx[data-bp-style="modern"] .rmx-price{
  display:inline-flex !important;
  align-items:baseline !important;
  flex-wrap:nowrap !important;
  gap:8px !important;
  white-space:nowrap !important;
  font-size:var(--rmx-product-price);
  padding-top:5px;
  font-weight:800;
  line-height:1.1;
  color:var(--rmx-accent);
}

.rmx[data-bp-style="modern"] .rmx-card.is-showcase .rmx-price{
  font-size:var(--rmx-product-price-featured);
}

.rmx[data-bp-style="modern"] .rmx-price__old{
  opacity:.55;
  margin-right:0 !important;
}

.rmx[data-bp-style="modern"] .rmx-cta--order{
  min-height:38px;
  padding:10px 14px;
  border-radius:var(--radius-button);
  font-size:var(--rmx-product-cta);
  font-weight:700;
}

/* Sans image */
.rmx[data-bp-style="modern"][data-bp-show-image="no"] .rmx-card{
  overflow:visible;
}

.rmx[data-bp-style="modern"][data-bp-show-image="no"] .rmx-card__head{
  padding-top:56px;
}

.rmx[data-bp-style="modern"][data-bp-show-image="no"] .rmx-showcase-badge{
  top:12px;
  left:16px;
}

/* Excerpt OFF */
.rmx[data-bp-style="modern"][data-bp-show-excerpt="no"] .rmx-card__lead,
.rmx[data-bp-style="modern"][data-bp-show-excerpt="no"] .rmx-card__desc{
  display:none !important;
}

.rmx[data-bp-style="modern"][data-bp-show-excerpt="no"] .rmx-card__head{
  padding-bottom:10px;
}

/* Badge OFF */
.rmx[data-bp-style="modern"][data-bp-show-badge="no"] .rmx-showcase-badge,
.rmx[data-bp-style="modern"][data-bp-show-badge="no"] .rmx-card__badges{
  display:none !important;
}

/* CTA OFF / browse */
.rmx[data-bp-style="modern"][data-bp-show-cta="no"] .rmx-cta--order,
.rmx[data-bp-style="modern"][data-bp-service-mode="browse"] .rmx-cta--order{
  display:none !important;
}

/* Desktop standard */
@media (max-width: 1399px){
  .rmx[data-bp-style="modern"] .rmx-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

/* Tablet */
@media (max-width: 1024px){
  .rmx[data-bp-style="modern"] .rmx-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
  }

  .rmx[data-bp-style="modern"] .rmx-thumb{
    height:132px;
    min-height:132px;
  }

  .rmx[data-bp-style="modern"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-card__badges{
    top:90px !important;
  }
}

/* Mobile */
@media (max-width: 640px){
  .rmx[data-bp-style="modern"] .rmx-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .rmx[data-bp-style="modern"] .rmx-card{
    border-radius:var(--rmx-card-shape-radius, 20px);
  }

  .rmx[data-bp-style="modern"] .rmx-thumb{
    height:112px;
    min-height:112px;
  }

  .rmx[data-bp-style="modern"] .rmx-card__head{
    padding:12px 12px 6px;
  }

  .rmx[data-bp-style="modern"][data-bp-show-image="no"] .rmx-card__head{
    padding-top:50px;
  }

  .rmx[data-bp-style="modern"] .rmx-card__lead{
    padding:0 12px 6px;
  }

  .rmx[data-bp-style="modern"] .rmx-card__desc{
    padding:0 12px 4px;
  }

  .rmx[data-bp-style="modern"] .rmx-card__modern-meta{
    gap:10px;
    padding:8px 12px 4px;
  }

  .rmx[data-bp-style="modern"] .rmx-card__modern-meta .rmx-morebar{
    padding:0;
  }

  .rmx[data-bp-style="modern"] .rmx-card__foot{
    padding:0 12px 12px;
  }

  .rmx[data-bp-style="modern"] .rmx-price{
    font-size:var(--rmx-product-price);
  }

  .rmx[data-bp-style="modern"] .rmx-more{
    margin:0 12px 12px;
  }

  .rmx[data-bp-style="modern"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo{
    top:46px !important;
  }

  .rmx[data-bp-style="modern"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-card__badges{
    top:72px !important;
    right:12px !important;
  }

  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav,
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite{
    top:10px;
    width:36px;
    height:36px;
  }

  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite{
    right:10px;
  }

  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav{
    right:52px;
  }

  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav .rmx-icon,
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite .rmx-icon,
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav svg,
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite svg{
    width:15px !important;
    height:15px !important;
  }

  .rmx[data-bp-style="modern"] .rmx-showcase-badge{
    top:10px;
    left:10px;
  }

  .rmx[data-bp-style="modern"][data-bp-show-image="no"] .rmx-showcase-badge{
    top:10px;
    left:14px;
  }
}

/* ==========================================================
   MODERN — force 2 lignes 
   ========================================================== */

.rmx[data-bp-style="modern"][data-show-desc="true"][data-desc-lines="1"] .rmx-card__desc,
.rmx[data-bp-style="modern"][data-show-desc="true"][data-desc-lines="2"] .rmx-card__desc{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  white-space:normal !important;
  text-overflow:clip !important;
}

/* Anti-étirement strict Modern : lignes auto en contexte résultats/section */
.rmx[data-bp-style="modern"] .rmx-results .rmx-grid,
.rmx[data-bp-style="modern"] .rmx-section .rmx-grid{
  grid-auto-rows:auto !important;
}
/* Modern : retire le vide créé par le panneau fermé quand "En savoir plus" existe */
.rmx[data-bp-style="modern"] .rmx-grid > .rmx-card:not([data-open="true"]) .rmx-more{
  margin:0 16px 0 !important;
  padding:0 !important;
  border-width:0 !important;
  max-height:0 !important;
  opacity:0 !important;
}

@media (max-width:640px){
  .rmx[data-bp-style="modern"] .rmx-grid > .rmx-card:not([data-open="true"]) .rmx-more{
    margin:0 12px 0 !important;
  }
}

/* Espacement vertical des cards */
.rmx[data-bp-style="modern"] .rmx-results .rmx-grid{
  row-gap: 34px !important;
}

@media (max-width: 640px){
  .rmx[data-bp-style="modern"] .rmx-results .rmx-grid{
    row-gap: 28px !important;
  }
}

/* ============================================================== 
   12 — VARIANTE WARM
============================================================== */

.rmx[data-bp-style="warm"] .rmx-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  align-items:start !important;
}

.rmx[data-bp-style="warm"] .rmx-card{
  position:relative;
  display:grid;
  grid-template-columns:88px minmax(0, 1fr);
  grid-template-areas:
    "thumb head"
    "thumb lead"
    "thumb desc"
    "thumb morebar"
    "thumb foot"
    "thumb more";
  column-gap:14px;
  row-gap:6px;
  align-items:start;
  height:100%;
  padding:16px;
  border-radius:var(--rmx-card-shape-radius, 20px);
  background:color-mix(in srgb, var(--rmx-surface) 74%, transparent);
  border:0;
  box-shadow:0 8px 20px rgba(16,24,40,.05);
  transition:transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

.rmx[data-bp-style="warm"] .rmx-grid > .rmx-card{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}

@media (hover:hover){
  .rmx[data-bp-style="warm"] .rmx-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(16,24,40,.08);
  }
}

/* Showcase */
.rmx[data-bp-style="warm"] .rmx-card.is-showcase{
  border:1.5px solid color-mix(in srgb, var(--rmx-accent) 30%, transparent);
  box-shadow:
    0 14px 30px color-mix(in srgb, var(--rmx-accent) 10%, transparent),
    0 10px 22px rgba(16,24,40,.06);
}

.rmx[data-bp-style="warm"] .rmx-showcase-badge{
  top:-18px;
  left:16px;
  z-index:9;
}

/* Image */
.rmx[data-bp-style="warm"] .rmx-thumb{
  grid-area:thumb;
  width:88px;
  height:88px;
  margin:0;
  border-radius:var(--rmx-card-shape-media-radius, 16px);
  overflow:hidden;
  background:color-mix(in srgb, var(--rmx-surface) 94%, transparent);
  align-self:start;
}

.rmx[data-bp-style="warm"] .rmx-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

/* Head */
.rmx[data-bp-style="warm"] .rmx-card__head{
  grid-area:head;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  grid-template-areas:"title badges" !important;
  align-items:start !important;
  column-gap:10px !important;
  row-gap:0 !important;
  padding:0;
  margin:0;
  min-width:0;
}

.rmx[data-bp-style="warm"] .rmx-card__title{
  grid-area:title !important;
  min-width:0 !important;
  margin:0;
  font-size:var(--rmx-product-title);
  line-height:1.2;
}

.rmx[data-bp-style="warm"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-card__title{
  padding-right:0 !important;
}

.rmx[data-bp-style="warm"] .rmx-card.is-showcase .rmx-card__title{
  font-size:var(--rmx-product-title-featured);
  font-weight:800;
}

/* Ligne badges / promo */
.rmx[data-bp-style="warm"] .rmx-card__badges{
  grid-area:badges !important;
  position:static !important;
  inset:auto !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  z-index:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
  margin:0 !important;
  flex-wrap:nowrap !important;
  transform:none !important;
}

.rmx[data-bp-style="warm"] .rmx-grid > .rmx-card > .rmx-promo{
  position:absolute !important;
  top:14px !important;
  left:16px !important;
  right:auto !important;
  z-index:18 !important;
  pointer-events:none !important;
}

.rmx[data-bp-style="warm"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo{
  top:-12px !important;
  left:154px !important;
}

.rmx[data-bp-style="warm"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-promo{
  position:absolute !important;
  top:14px !important;
  right:16px !important;
  bottom:auto !important;
  left:auto !important;
  z-index:30 !important;
  transform:none !important;
  pointer-events:none !important;
}

.rmx[data-bp-style="warm"][data-bp-show-image="yes"] .rmx-grid > .rmx-card.is-showcase .rmx-promo{
  top:-18px !important;
  left:154px !important;
  right:auto !important;
}


/* Texte */
.rmx[data-bp-style="warm"] .rmx-card__lead{
  grid-area:lead;
  margin:0;
  padding:0;
  font-size:var(--rmx-product-lead);
  line-height:1.45;
  color:var(--rmx-text);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;
}

.rmx[data-bp-style="warm"][data-show-desc="true"] .rmx-card__desc{
  grid-area:desc;
  margin:0;
  padding:0;
  font-size:var(--rmx-product-desc);
  line-height:1.45;
  color:var(--rmx-soft);
  font-style:normal;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;
  white-space:normal !important;
  text-overflow:clip !important;
  max-height:calc(1.45em * 3) !important;
}

/* More */
.rmx[data-bp-style="warm"] .rmx-morebar{
  grid-area:morebar;
  padding:0;
  margin:0;
}

.rmx[data-bp-style="warm"] .rmx-more{
  grid-area:more;
  margin:0;
}

/* Warm : le panneau "En savoir plus" fermé ne doit pas réserver d'espace en bas de carte. */
.rmx[data-bp-style="warm"] .rmx-grid > .rmx-card:not([data-open="true"]) .rmx-more{
  margin:0 !important;
  padding:0 !important;
  border-width:0 !important;
  max-height:0 !important;
  opacity:0 !important;
}

/* Le row-gap de la grille conserve 6 px : on compense sur le padding bas pour garder 16 px visuels. */
.rmx[data-bp-style="warm"] .rmx-grid > .rmx-card:not([data-open="true"]){
  padding-bottom:10px;
}

/* Footer */
.rmx[data-bp-style="warm"] .rmx-card__foot{
  grid-area:foot;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0;
  margin:8px 0 0 !important;
  min-width:0;
  align-self:end !important;
}

.rmx[data-bp-style="warm"] .rmx-price{
  font-size:var(--rmx-product-price);
  font-weight:700;
  white-space:nowrap !important;
  color:var(--rmx-accent);
}

.rmx[data-bp-style="warm"] .rmx-card.is-showcase .rmx-price{
  font-size:var(--rmx-product-price-featured);
}

.rmx[data-bp-style="warm"] .rmx-price__old{
  opacity:.55;
}

.rmx[data-bp-style="warm"] .rmx-ctas{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  flex-wrap:nowrap;
}

.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta{
  margin-left:0;
}

.rmx[data-bp-style="warm"] .rmx-cta--order{
  min-height:38px;
  padding:10px 14px;
  border-radius:var(--radius-button);
  font-size:var(--rmx-product-cta);
  font-weight:700;
}

/* Fav / share posés calmement dans le footer */
.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--fav,
.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--invite{
  position:static;
  width:36px;
  height:36px;
  padding:0;
  border-radius:999px;
  background:color-mix(in srgb, var(--rmx-surface) 78%, transparent) !important;
  border:0 !important;
  box-shadow:var(--outline-control) !important;
}

.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--fav .rmx-icon,
.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--invite .rmx-icon,
.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--fav svg,
.rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--invite svg{
  width:16px !important;
  height:16px !important;
  opacity:.8;
}

/* Sans image */
.rmx[data-bp-style="warm"][data-bp-show-image="no"] .rmx-card{
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:
    "head"
    "lead"
    "desc"
    "morebar"
    "foot"
    "more";
  row-gap:6px;
  overflow:visible;
}

.rmx[data-bp-style="warm"][data-bp-show-image="no"] .rmx-showcase-badge{
  top:-12px;
  left:16px;
}

/* Excerpt OFF */
.rmx[data-bp-style="warm"][data-bp-show-excerpt="no"] .rmx-card__lead,
.rmx[data-bp-style="warm"][data-bp-show-excerpt="no"] .rmx-card__desc{
  display:none !important;
}

/* Badge OFF */
.rmx[data-bp-style="warm"][data-bp-show-badge="no"] .rmx-showcase-badge,
.rmx[data-bp-style="warm"][data-bp-show-badge="no"] .rmx-card__badges{
  display:none !important;
}

/* CTA OFF / browse */
.rmx[data-bp-style="warm"][data-bp-show-cta="no"] .rmx-cta--order,
.rmx[data-bp-style="warm"][data-bp-service-mode="browse"] .rmx-cta--order{
  display:none !important;
}

/* Tablet */
@media (max-width: 1024px){
  .rmx[data-bp-style="warm"] .rmx-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
}

/* Mobile */
@media (max-width: 640px){
  .rmx[data-bp-style="warm"] .rmx-card{
    grid-template-columns:72px minmax(0,1fr);
    grid-template-areas:
      "thumb head"
      "thumb desc"
      "thumb morebar"
      "foot foot"
      "more more";
    column-gap:12px;
    row-gap:6px;
    padding:12px;
    border-radius:var(--rmx-card-shape-radius, 16px);
  }

  .rmx[data-bp-style="warm"] .rmx-thumb{
    width:72px;
    height:72px;
    border-radius:var(--rmx-card-shape-media-radius, 14px);
  }

  .rmx[data-bp-style="warm"] .rmx-card__title{
    font-size:var(--rmx-product-title);
  }

  .rmx[data-bp-style="warm"] .rmx-card__lead{
    font-size:var(--rmx-product-lead);
  }

  .rmx[data-bp-style="warm"] .rmx-card__desc{
    font-size:var(--rmx-product-desc);
  }

  .rmx[data-bp-style="warm"] .rmx-card__foot{
    margin-top:8px !important;
  }

  .rmx[data-bp-style="warm"] .rmx-price{
    display:inline-flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:1px;
    font-size:var(--rmx-product-price);
    line-height:1.05;
    white-space:normal !important;
  }

  .rmx[data-bp-style="warm"] .rmx-price__old,
  .rmx[data-bp-style="warm"] .rmx-price__new{
    display:block;
    white-space:nowrap;
  }

  .rmx[data-bp-style="warm"] .rmx-cta--order{
    min-height:36px;
    padding:9px 12px;
    font-size:var(--rmx-product-cta);
  }

  .rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--fav,
  .rmx[data-bp-style="warm"] .rmx-ctas .rmx-cta--invite{
    width:34px;
    height:34px;
  }

  .rmx[data-bp-style="warm"][data-bp-show-image="no"] .rmx-card{
    grid-template-columns:1fr;
    grid-template-areas:
      "head"
      "desc"
      "morebar"
      "foot"
      "more";
  }

  .rmx[data-bp-style="warm"] .rmx-card__head{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"title" !important;
    row-gap:0 !important;
    column-gap:0 !important;
  }

  .rmx[data-bp-style="warm"] .rmx-card__badges{
    display:none !important;
  }

  .rmx[data-bp-style="warm"] .rmx-more__row--badges{
    margin-top:0;
  }

  .rmx[data-bp-style="warm"] .rmx-more__row--badges .rmx-more__label--badges{
    display:none;
  }

  .rmx[data-bp-style="warm"] .rmx-more__chips--badges{
    margin-top:0;
  }

  .rmx[data-bp-style="warm"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo{
    top:-10px !important;
    left:132px !important;
  }

  .rmx[data-bp-style="warm"][data-bp-show-image="yes"] .rmx-grid > .rmx-card.is-showcase .rmx-promo{
    top:-15px !important;
    left:152px !important;
  }
}

/* Anti-étirement strict Warm */
.rmx[data-bp-style="warm"] .rmx-results .rmx-grid,
.rmx[data-bp-style="warm"] .rmx-section .rmx-grid{
  align-items:start !important;
  grid-auto-rows:auto !important;
}

.rmx[data-bp-style="warm"] .rmx-results .rmx-grid > .rmx-card,
.rmx[data-bp-style="warm"] .rmx-section .rmx-grid > .rmx-card{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}

/* Espacement vertical des cards */
.rmx[data-bp-style="warm"] .rmx-results .rmx-grid{
  row-gap: 34px !important;
}

@media (max-width: 640px){
  .rmx[data-bp-style="warm"] .rmx-results .rmx-grid{
    row-gap: 28px !important;
  }
}

/* ============================================================== 
   13 — VARIANTE STREET
============================================================== */

/* ==========================================================
   Variante Street — base
   ========================================================== */

.rmx[data-bp-style="street"] .rmx-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}

.rmx[data-bp-style="street"] .rmx-card{
  position:relative;
  display:block;
  height:100%;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

/* ==========================================================
   IMAGE
   ========================================================== */

.rmx[data-bp-style="street"] .rmx-thumb{
  width:100%;
  height:180px;
  min-height:180px;
  margin:0;
  border-radius:var(--rmx-card-shape-media-radius, 22px);
  overflow:hidden;
  background:var(--rmx-bg);
}

.rmx[data-bp-style="street"] .rmx-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  background:transparent;
}

/* ==========================================================
   BADGE SHOWCASE
   ========================================================== */

.rmx[data-bp-style="street"] .rmx-showcase-badge{
  top:10px;
  left:10px;
  z-index:9;
}

.rmx[data-bp-style="street"] .rmx-grid > .rmx-card > .rmx-promo{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  right:auto !important;
  z-index:40 !important;
  pointer-events:none !important;
}

.rmx[data-bp-style="street"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo{
  top:50px !important;
  left:10px !important;
}

.rmx[data-bp-style="street"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-promo{
  position:absolute !important;
  top:10px !important;
  left:10px !important;
  right:auto !important;
  bottom:auto !important;
  z-index:45 !important;
  transform:none !important;
  pointer-events:none !important;
}

.rmx[data-bp-style="street"][data-bp-show-image="yes"] .rmx-grid > .rmx-card.is-showcase .rmx-promo{
  top:50px !important;
  left:10px !important;
  right:auto !important;
}

/* ==========================================================
   Street — placement fav/share
   ========================================================== */

.rmx[data-bp-style="street"] .rmx-card__foot .rmx-ctas{
  position:static !important;
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto !important;
  flex:0 0 auto !important;
}

/* Commander reste dans le flux */
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--order{
  position:static !important;
  width:auto !important;
  min-width:110px !important;
}

/* fav/share sortent du footer visuellement */
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav,
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite{
  position:absolute !important;
  top:10px !important;
  bottom:auto !important;
  left:auto !important;
  z-index:30 !important;
  display:inline-flex !important;
  width:36px;
  height:36px;
  padding:0;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  line-height:0;
  margin:0 !important;
  box-shadow:0 4px 10px rgba(16,24,40,.06) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite{
  right:10px !important;
}

.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav{
  right:54px !important;
}

.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav .rmx-icon,
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite .rmx-icon,
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav svg,
.rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite svg{
  width:16px !important;
  height:16px !important;
  opacity:.82;
}

/* sans image : même placement mais on garde l'espace en haut du head */
.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__head{
  padding-top:54px;
}

@media (max-width: 640px){
  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav,
  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite{
    top:8px !important;
    width:34px;
    height:34px;
  }

  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite{
    right:8px !important;
  }

  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav{
    right:48px !important;
  }

  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--order{
    min-width:96px !important;
  }
}

/* ==========================================================
   PANEL UNIQUE — fusion visuelle
   ========================================================== */

/* base commune */
.rmx[data-bp-style="street"] .rmx-card__head,
.rmx[data-bp-style="street"] .rmx-card__lead,
.rmx[data-bp-style="street"] .rmx-card__desc{
  position:relative;
  z-index:2;
  margin-left:10px;
  margin-right:10px;
  background:var(--rmx-surface);
  min-width:0;
}

/* neutraliser les marges natives des p */
.rmx[data-bp-style="street"] .rmx-card__lead,
.rmx[data-bp-style="street"] .rmx-card__desc{
  margin-top:0 !important;
  margin-bottom:0 !important;
}

/* on masque le more dans Street */
.rmx[data-bp-style="street"] .rmx-morebar,
.rmx[data-bp-style="street"] .rmx-more{
  display:none !important;
}

/* haut du panel */
.rmx[data-bp-style="street"] .rmx-card__head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin-top:-18px;
  padding:12px 14px 8px;
  border-radius:var(--rmx-card-shape-top-radius, 18px 18px 0 0);
}

.rmx[data-bp-style="street"] .rmx-card__title{
  margin:0;
  font-size:var(--rmx-product-title);
  line-height:1.2;
  min-width:0;
}

.rmx[data-bp-style="street"] .rmx-card__badges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  margin:0;
}

.rmx[data-bp-style="street"][data-bp-show-image="yes"] .rmx-card__head .rmx-card__badges{
  position:absolute;
  top:-52px;
  right:6px;
  z-index:24;
  max-width:calc(100% - 12px);
}

/* milieu du panel */
.rmx[data-bp-style="street"] .rmx-card__lead{
  padding:0 14px 4px;
  font-size:var(--rmx-product-lead);
  line-height:1.45;
  color:var(--rmx-text);
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical;
  white-space:normal;
  overflow:hidden;
  text-overflow:clip;
}

/* Street n'affiche jamais la description longue dans la card. */
.rmx[data-bp-style="street"] .rmx-card__desc{
  display:none !important;
  padding:0 !important;
}

/* Street suit uniquement le switch « description courte ».
   On ne dépend plus de la clé legacy show_excerpt, afin que le switch
   « description longue » ne puisse jamais masquer la courte. */
.rmx[data-bp-style="street"][data-bp-show-short-description="no"] .rmx-card__lead{
  display:none !important;
  padding:0 !important;
}

.rmx[data-bp-style="street"][data-bp-show-short-description="yes"] .rmx-card__lead{
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  white-space:normal !important;
  overflow:hidden !important;
  text-overflow:clip !important;
}

/* bas du panel */
.rmx[data-bp-style="street"] .rmx-card__foot{
  position:static !important;
  z-index:2;
  margin-left:10px;
  margin-right:10px;
  background:var(--rmx-surface);
  min-width:0;
  display:flex !important;
  grid-template-columns:none !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:8px 14px 12px;
  border-radius:var(--rmx-card-shape-bottom-radius, 0 0 18px 18px);
  box-shadow:0 12px 24px rgba(16,24,40,.10);
}

.rmx[data-bp-style="street"] .rmx-card__foot .rmx-price{
  flex:0 1 auto !important;
  white-space:nowrap !important;
}

.rmx[data-bp-style="street"] .rmx-price{
  font-size:var(--rmx-product-price);
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  color:var(--rmx-accent);
}

.rmx[data-bp-style="street"] .rmx-price__old{
  opacity:.55;
}

.rmx[data-bp-style="street"] .rmx-cta--order{
  width:auto !important;
  min-width:110px !important;
  min-height:38px;
  padding:10px 14px;
  border-radius:var(--radius-button);
  font-size:var(--rmx-product-cta);
  font-weight:700;
  justify-content:center;
}



/* CTA off / browse */
.rmx[data-bp-style="street"][data-bp-show-cta="no"] .rmx-cta--order,
.rmx[data-bp-style="street"][data-bp-service-mode="browse"] .rmx-cta--order{
  display:none !important;
}

/* badge off */
.rmx[data-bp-style="street"][data-bp-show-badge="no"] .rmx-showcase-badge,
.rmx[data-bp-style="street"][data-bp-show-badge="no"] .rmx-card__badges{
  display:none !important;
}

/* ==========================================================
   SANS IMAGE
   ========================================================== */

.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__head{
  margin-top:0;
  padding-top:54px;
  border-radius:var(--rmx-card-shape-top-radius, 18px 18px 0 0);
}

.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__head,
.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__lead,
.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__desc,
.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-card__foot{
  margin-left:0;
  margin-right:0;
}

.rmx[data-bp-style="street"][data-bp-show-image="no"] .rmx-showcase-badge{
  top:-10px;
  left:12px;
}

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

@media (max-width: 1399px){
  .rmx[data-bp-style="street"] .rmx-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px){
  .rmx[data-bp-style="street"] .rmx-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:12px;
  }

  .rmx[data-bp-style="street"] .rmx-thumb{
    height:170px;
    min-height:170px;
  }
}

@media (max-width: 640px){
  .rmx[data-bp-style="street"] .rmx-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .rmx[data-bp-style="street"] .rmx-thumb{
    height:180px;
    min-height:180px;
    border-radius:var(--rmx-card-shape-media-radius, 20px);
  }

  .rmx[data-bp-style="street"] .rmx-card__head,
  .rmx[data-bp-style="street"] .rmx-card__lead,
  .rmx[data-bp-style="street"] .rmx-card__desc,
  .rmx[data-bp-style="street"] .rmx-card__foot{
    margin-left:8px;
    margin-right:8px;
  }

  .rmx[data-bp-style="street"] .rmx-card__head{
    margin-top:-14px;
    padding:10px 12px 8px;
    border-radius:var(--rmx-card-shape-top-radius, 16px 16px 0 0);
  }

  .rmx[data-bp-style="street"] .rmx-card__lead{
    padding:0 12px 4px;
  }

  .rmx[data-bp-style="street"] .rmx-card__lead{
    display:-webkit-box !important;
    -webkit-line-clamp:3 !important;
    -webkit-box-orient:vertical;
    white-space:normal;
    overflow:hidden;
    text-overflow:clip;
  }

  .rmx[data-bp-style="street"] .rmx-card__desc{
    display:none !important;
    padding:0 !important;
  }

  .rmx[data-bp-style="street"][data-bp-show-image="yes"] .rmx-card__head .rmx-card__badges{
    top:-48px;
    right:4px;
    gap:6px;
  }

  .rmx[data-bp-style="street"] .rmx-card__foot{
    padding:8px 12px 12px;
    border-radius:var(--rmx-card-shape-bottom-radius, 0 0 16px 16px);
  }

  .rmx[data-bp-style="street"] .rmx-showcase-badge{
    top:8px;
    left:8px;
  }

  .rmx[data-bp-style="street"] .rmx-grid > .rmx-card.is-showcase > .rmx-promo,
  .rmx[data-bp-style="street"][data-bp-show-image="yes"] .rmx-grid > .rmx-card.is-showcase .rmx-promo{
    top:44px !important;
  }

  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--fav,
  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--invite{
    width:34px;
    height:34px;
    top:8px;
  }

  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--invite{
    right:8px;
  }

  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--fav{
    right:48px;
  }

  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--fav .rmx-icon,
  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--invite .rmx-icon,
  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--fav svg,
  .rmx[data-bp-style="street"] .rmx-ctas .rmx-cta--invite svg{
    width:15px !important;
    height:15px !important;
  }
}

/* Mobile : Modern + Street avaient deux boutons translucides avec blur par card.
   Le backdrop-filter force des recompositions coûteuses pendant le scroll.
   On le coupe uniquement sur petit écran ; structure et interactions inchangées. */
@media (max-width: 640px){
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--fav,
  .rmx[data-bp-style="modern"] .rmx-ctas .rmx-cta--invite,
  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--fav,
  .rmx[data-bp-style="street"] .rmx-card__foot .rmx-cta--invite{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }
}

/* Espacement vertical des cards */
.rmx[data-bp-style="street"] .rmx-results .rmx-grid{
  row-gap: 34px !important;
}

@media (max-width: 640px){
  .rmx[data-bp-style="street"] .rmx-results .rmx-grid{
    row-gap: 28px !important;
  }
}

/* ============================================================== 
   14 — VARIANTE ELEGANT
============================================================== */

/* ==========================================================
   Variante Elegant — base
   basé sur le HTML réel
   ========================================================== */

.rmx[data-bp-style="elegant"] .rmx-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  align-items:start;
}

/* ==========================================================
   CARD BASE
   ========================================================== */

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card{
  position:relative;
  padding:18px;
  border-radius:var(--rmx-card-shape-radius, 18px);
  background:color-mix(in srgb, var(--rmx-surface) 70%, transparent);
  border:0;
  box-shadow:0 8px 18px rgba(16,24,40,.05);
  transition:transform .16s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover:hover){
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(16,24,40,.08);
  }
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card.is-showcase{
  border:1.5px solid color-mix(in srgb, var(--rmx-accent) 30%, transparent);
  box-shadow:
    0 12px 24px rgba(16,24,40,.08),
    0 0 0 1px color-mix(in srgb, var(--rmx-accent) 18%, transparent);
}

.rmx[data-bp-style="elegant"] .rmx-showcase-badge{
  position:absolute;
  top:22px;
  left:132px;
  z-index:12;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__lead,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__desc,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-price,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-morebar,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-more,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__badges{
  margin:0;
  min-width:0;
}

/* image chevauchante : aucun fond ni masque imposé afin de respecter les PNG/WebP transparents */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-thumb{
  width:96px;
  height:96px;
  margin:0;
  border-radius:0;
  overflow:visible !important;
  background:transparent !important;
  box-shadow:none;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
  background:transparent;
}

/* head / foot deviennent transparents : la carte pilote la grille */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__head,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__foot{
  display:contents;
}

/* ==========================================================
   NOM | ------ | PRIX
   Une ligne dédiée : le séparateur commence juste après le titre
   et reste aligné sur la première ligne si le titre wrappe.
   ========================================================== */

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-topline{
  grid-area:topline;
  display:flex;
  align-items:flex-start;
  width:100%;
  min-width:0;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title{
  flex:0 1 auto;
  min-width:0;
  max-width:72%;
  padding-right:0 !important;
  margin:0;
  font-size:var(--rmx-product-title);
  font-weight:600;
  line-height:1.18;
  color:var(--rmx-text);
  white-space:normal;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title-text,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title-link{
  display:block;
  min-width:0;
  max-width:100%;
  color:inherit;
  text-decoration:none;
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title::after{
  content:none !important;
  display:none !important;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-separator{
  flex:1 1 auto;
  display:block;
  min-width:26px;
  height:0;
  margin:calc(.59em + 1px) 8px 0;
  border-bottom:1px dashed color-mix(in srgb, var(--rmx-soft) 45%, transparent);
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-topline > .rmx-price{
  flex:0 0 auto;
  align-self:flex-start;
  position:relative;
  z-index:2;
  background:transparent;
  padding-left:0;
  margin:0;
  font-size:var(--rmx-product-price);
  font-weight:600;
  line-height:1.18;
  white-space:nowrap;
  color:var(--rmx-text);
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-price__old{
  opacity:.55;
}

.rmx[data-bp-style="elegant"]:not([data-bp-show-excerpt="no"]) .rmx-grid > .rmx-card .rmx-card__lead{
  grid-area:lead;
  margin:0 !important;
  min-width:0;
  font-size:var(--rmx-product-lead);
  line-height:1.45;
  color:var(--rmx-soft);
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  white-space:normal;
}

/* Les étiquettes Elegant vivent dans « En savoir plus ». */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__badges{
  display:none !important;
}

.rmx[data-bp-style="elegant"] .rmx-more__row--badges{
  align-items:flex-start;
}

.rmx[data-bp-style="elegant"] .rmx-more__chips--badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__desc{
  display:none !important;
}

/* en savoir plus */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-morebar{
  grid-area:more;
  display:block;
  margin:0;
  padding:0;
  align-self:center;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-morebtn{
  min-width:132px;
  white-space:nowrap;
  justify-content:center;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-more{
  grid-area:extra;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card:not([data-open="true"]) .rmx-more{
  margin-top:0;
  padding-top:0;
  padding-bottom:0;
  border-width:0;
}

/* actions */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-ctas{
  grid-area:actions;
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  margin:0;
  min-width:max-content;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-ctas .rmx-cta{
  margin-left:0;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--order{
  order:1;
  min-width:140px;
  min-height:40px;
  padding:9px 16px;
  border-radius:var(--radius-button);
  font-size:var(--rmx-product-cta);
  font-weight:700;
  background:var(--action-primary-bg);
  color:var(--action-primary-text);
  border:0;
  box-shadow:none;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--order:hover{
  background:var(--action-primary-hover-bg);
  color:var(--action-primary-hover-text);
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{
  position:absolute;
  top:18px;
  z-index:10;
  width:40px;
  height:40px;
  padding:0;
  border-radius:999px;
  background:color-mix(in srgb, var(--rmx-surface) 85%, transparent) !important;
  border:0 !important;
  box-shadow:var(--outline-control) !important;
}

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav{ right:68px; }
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{ right:18px; }

.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav .rmx-icon,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite .rmx-icon,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav svg,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite svg{
  width:16px !important;
  height:16px !important;
  opacity:.82;
}

/* ==========================================================
   AVEC IMAGE — même composition sur tous les supports
   ========================================================== */

.rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card{
  display:grid;
  grid-template-columns:minmax(0, 1fr) max-content;
  grid-template-areas:
    "topline topline"
    "lead    lead"
    "more    actions"
    "extra   extra";
  column-gap:10px;
  row-gap:10px;
  align-items:start;
  padding:72px 18px 18px;
}

.rmx[data-bp-style="elegant"][data-bp-show-image="yes"][data-bp-show-excerpt="no"] .rmx-grid > .rmx-card{
  grid-template-areas:
    "topline topline"
    "more    actions"
    "extra   extra";
}

.rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-thumb{
  position:absolute !important;
  overflow:visible !important;
  top:-32px;
  left:18px;
  z-index:12;
  width:96px;
  height:96px;
  border-radius:0;
  background:transparent !important;
  box-shadow:none;
}

/* ==========================================================
   SANS IMAGE
   ========================================================== */

.rmx[data-bp-style="elegant"][data-bp-show-image="no"] .rmx-grid > .rmx-card{
  display:grid;
  grid-template-columns:minmax(0, 1fr) max-content;
  grid-template-areas:
    "topline topline"
    "lead    lead"
    "more    actions"
    "extra   extra";
  column-gap:10px;
  row-gap:10px;
  align-items:start;
}

.rmx[data-bp-style="elegant"][data-bp-show-image="no"][data-bp-show-excerpt="no"] .rmx-grid > .rmx-card{
  grid-template-areas:
    "topline topline"
    "more    actions"
    "extra   extra";
}

.rmx[data-bp-style="elegant"][data-bp-show-image="no"] .rmx-grid > .rmx-card .rmx-thumb{
  display:none !important;
}

.rmx[data-bp-style="elegant"][data-bp-show-badge="no"] .rmx-showcase-badge,
.rmx[data-bp-style="elegant"][data-bp-show-badge="no"] .rmx-grid > .rmx-card .rmx-card__badges{
  display:none !important;
}

.rmx[data-bp-style="elegant"][data-bp-show-cta="no"] .rmx-grid > .rmx-card .rmx-cta--order,
.rmx[data-bp-style="elegant"][data-bp-service-mode="browse"] .rmx-grid > .rmx-card .rmx-cta--order{
  display:none !important;
}

/* ==========================================================
   ESPACEMENT : l'image flottante ne doit jamais mordre la card
   précédente ni le titre de catégorie.
   ========================================================== */

.rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-results .rmx-grid,
.rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-section .rmx-grid{
  margin-top:32px;
  row-gap:48px !important;
}

/* Responsive : même grille titre | séparateur | prix, seules les tailles évoluent. */
@media (max-width: 1024px){
  .rmx[data-bp-style="elegant"] .rmx-grid{
    grid-template-columns:1fr;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card,
  .rmx[data-bp-style="elegant"][data-bp-show-image="no"] .rmx-grid > .rmx-card{
    grid-template-columns:minmax(0, 1fr) max-content;
    column-gap:8px;
    row-gap:8px;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card{
    padding:62px 16px 16px;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-thumb{
    top:-28px;
    left:16px;
    width:84px;
    height:84px;
  }

  .rmx[data-bp-style="elegant"] .rmx-showcase-badge{
    top:16px;
    left:112px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav,
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{
    top:14px;
    width:38px;
    height:38px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav{ right:60px; }
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{ right:14px; }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-results .rmx-grid,
  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-section .rmx-grid{
    margin-top:34px;
    row-gap:46px !important;
  }
}

@media (max-width: 640px){
  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card,
  .rmx[data-bp-style="elegant"][data-bp-show-image="no"] .rmx-grid > .rmx-card{
    grid-template-columns:minmax(0, 1fr) max-content;
    column-gap:8px;
    row-gap:7px;
    border-radius:var(--rmx-card-shape-radius, 16px);
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card{
    padding:60px 14px 14px;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-grid > .rmx-card .rmx-thumb{
    top:-26px;
    left:14px;
    width:78px;
    height:78px;
  }

  .rmx[data-bp-style="elegant"] .rmx-showcase-badge{
    top:8px;
    left:100px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav,
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{
    top:6px;
    width:34px;
    height:34px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--fav{ right:50px; }
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--invite{ right:10px; }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-topline{
    position:relative;
    align-items:flex-start;
    gap:0;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__title{
    flex:0 1 auto;
    max-width:50%;
    font-size:var(--rmx-product-title);
    line-height:1.16;
  }

  /* Mobile : le séparateur est positionné d'après la fin RÉELLE de la
     première ligne du titre (mesurée en JS), jusqu'au début réel du prix. */
  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-separator{
    position:absolute;
    z-index:1;
    flex:none;
    min-width:0;
    height:0;
    margin:0;
    left:var(--rmx-elegant-sep-left, 50%);
    right:var(--rmx-elegant-sep-right, 25%);
    top:var(--rmx-elegant-sep-top, calc(.58em + 1px));
    pointer-events:none;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-elegant-topline > .rmx-price{
    flex:0 0 auto;
    margin-left:auto;
    align-items:flex-end;
    text-align:right;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-card__lead{
    font-size:var(--rmx-product-lead);
    line-height:1.35;
    -webkit-line-clamp:2;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-morebtn{
    min-width:120px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-cta--order{
    min-width:108px;
    min-height:36px;
    padding:8px 12px;
  }

  .rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-more__row--badges .rmx-more__label--badges{
    display:none;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="no"] .rmx-grid > .rmx-card{
    padding:14px;
  }

  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-results .rmx-grid,
  .rmx[data-bp-style="elegant"][data-bp-show-image="yes"] .rmx-section .rmx-grid{
    margin-top:36px;
    row-gap:46px !important;
  }
}

/* ==========================================================
   ELEGANT — prix promo en colonne
   ========================================================== */

.rmx[data-bp-style="elegant"] .rmx-price{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:2px;
}

.rmx[data-bp-style="elegant"] .rmx-price__old{
  font-size:var(--rmx-product-desc);
  line-height:1;
}

.rmx[data-bp-style="elegant"] .rmx-price__new{
  font-size:var(--rmx-product-price);
  font-weight:700;
  line-height:1;
}

/* Elegant : pastille Épuisé centrée dans l'image */
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card .rmx-thumb .rmx-sold-badge,
.rmx[data-bp-style="elegant"] .rmx-grid > .rmx-card.is-showcase .rmx-thumb .rmx-sold-badge{
  top:50% !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%, -50%) !important;
  z-index:8 !important;
}

/* ============================================================== 
   15 — CARTE DES VINS
============================================================== */

/* La Carte des vins est réservée à la consultation sur place.
   Le JS synchronise aussi l'attribut hidden pour éviter tout flash lors
   d'un changement de mode dynamique. */
.rmx[data-mode="takeaway"] .rmx-wine-entry,
.rmx .rmx-wine-entry[hidden]{
  display:none !important;
}

.rmx-wine-entry__button{
  --wine-entry-bg:#f4efe6;
  --wine-entry-shape:#ead8b5;
  --wine-entry-ink:#2c2925;
  --wine-entry-watermark:rgba(79,70,57,.28);
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  min-height:112px !important;
  padding:22px 126px 22px 22px !important;
  display:flex;
  align-items:center;
  border:0 !important;
  border-radius:24px !important;
  background:var(--wine-entry-bg) !important;
  color:var(--wine-entry-ink) !important;
  text-align:left;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(47,39,29,.08) !important;
  transition:transform .16s ease, box-shadow .18s ease;
}

.rmx-wine-entry__button--sand{
  --wine-entry-bg:#f4efe6;
  --wine-entry-shape:#ead8b5;
  --wine-entry-ink:#2c2925;
}

.rmx-wine-entry__button--sage{
  --wine-entry-bg:#edf1ec;
  --wine-entry-shape:#cbd7cb;
  --wine-entry-ink:#263128;
}

.rmx-wine-entry__button--burgundy{
  --wine-entry-bg:#f3e9eb;
  --wine-entry-shape:#d8b7c0;
  --wine-entry-ink:#3a222a;
}

.rmx-wine-entry__button::before,
.rmx-wine-entry__button::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:0;
  background:var(--wine-entry-shape);
}

.rmx-wine-entry__button::before{
  top:-54px;
  right:-35px;
  width:174px;
  height:174px;
  border-radius:46% 54% 47% 53% / 58% 44% 56% 42%;
  transform:rotate(-8deg);
}

.rmx-wine-entry__button::after{
  left:-54px;
  bottom:-78px;
  width:128px;
  height:128px;
  border-radius:48% 52% 56% 44% / 44% 58% 42% 56%;
  opacity:.62;
  transform:rotate(16deg);
}

.rmx-wine-entry__button:hover{
  transform:translateY(-2px);
  background:var(--wine-entry-bg) !important;
  box-shadow:0 15px 32px rgba(47,39,29,.12) !important;
}

.rmx-wine-entry__button:active{
  transform:translateY(0);
}

.rmx-wine-entry__button:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 72%, transparent);
  outline-offset:3px;
}

.rmx-wine-entry__text{
  position:relative;
  z-index:2;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.rmx-wine-entry__text strong{
  color:var(--wine-entry-ink) !important;
  font-family:var(--rmx-font-title);
  font-size:18px !important;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.025em !important;
}

.rmx-wine-entry__text small{
  color:color-mix(in srgb, var(--wine-entry-ink) 68%, transparent) !important;
  font-size:12px !important;
  font-weight:700;
  line-height:1.3;
}

.rmx-wine-entry__watermark{
  position:absolute;
  z-index:1;
  right:10px;
  bottom:4px;
  width:126px;
  height:94px;
  display:block;
  background:url("./img/wine_watermark.svg") center / contain no-repeat;
  opacity:.30;
  pointer-events:none;
  transform:rotate(-2deg);
  transform-origin:center;
  transition:opacity .18s ease, transform .2s ease;
}

.rmx-wine-entry__button:hover .rmx-wine-entry__watermark{
  opacity:.36;
  transform:rotate(0deg) scale(1.025);
}

@media (max-width:640px){
  .rmx-wine-entry{
    width:100%;
    margin:12px 0 18px !important;
  }

  .rmx-wine-entry__button{
    min-height:100px !important;
    padding:18px 108px 18px 18px !important;
    border-radius:22px !important;
  }

  .rmx-wine-entry__button::before{
    top:-48px;
    right:-36px;
    width:154px;
    height:154px;
  }

  .rmx-wine-entry__button::after{
    left:-52px;
    bottom:-76px;
    width:118px;
    height:118px;
  }

  .rmx-wine-entry__text strong{
    font-size:17px !important;
  }

  .rmx-wine-entry__text small{
    font-size:11.5px !important;
  }

  .rmx-wine-entry__watermark{
    right:8px;
    bottom:3px;
    width:110px;
    height:84px;
  }
}

.rmx-wine-modal[hidden]{
  display:none !important;
}

.rmx-wine-modal{
  position:fixed;
  inset:0;
  z-index:10002;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  color:var(--rmx-text);
}

.rmx-wine-modal__overlay{
  position:absolute;
  inset:0;
  background:var(--overlay, rgba(15,17,21,.52));
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  opacity:0;
  transition:opacity .18s ease;
}

.rmx-wine-modal__sheet{
  position:relative;
  z-index:1;
  width:min(1180px, 100%);
  max-height:min(90dvh, 920px);
  margin:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:0;
  border-radius:var(--radius-panel);
  background:var(--card-bg-strong);
  box-shadow:0 32px 90px rgba(15,23,42,.28);
  transform:translate3d(0, 14px, 0) scale(.99);
  opacity:0;
  transition:opacity .2s ease, transform .22s ease;
}

.rmx-wine-modal.is-open .rmx-wine-modal__overlay,
.rmx-wine-modal[open] .rmx-wine-modal__overlay{
  opacity:1;
}

.rmx-wine-modal.is-open .rmx-wine-modal__sheet,
.rmx-wine-modal[open] .rmx-wine-modal__sheet{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
}

.rmx-wine-modal__head{
  position:relative;
  flex:0 0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:92px;
  padding:20px 84px 20px 28px !important;
  border-bottom:1px solid var(--rmx-divider);
  background:color-mix(in srgb, var(--rmx-surface) 97%, transparent);
}

.rmx-wine-modal__head > div{
  min-width:0;
}

.rmx-wine-modal__head strong{
  display:block;
  color:var(--rmx-text);
  font-family:var(--rmx-font-title);
  font-size:clamp(26px, 2.5vw, 36px);
  font-weight:900;
  line-height:1.04;
  letter-spacing:-.04em;
}

.rmx-wine-modal__head p{
  max-width:700px;
  margin:7px 0 0;
  color:var(--rmx-soft);
  font-size:14px;
  font-weight:650;
  line-height:1.42;
}

.rmx-wine-modal__close{
  position:absolute !important;
  top:50% !important;
  right:20px !important;
  left:auto !important;
  transform:translateY(-50%) !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  border-radius:0 !important;
  width:42px !important;
  height:42px !important;
  min-width:42px !important;
  margin:0 !important;
  padding:0 !important;
  color:var(--rmx-text) !important;
  font-size:0 !important;
  line-height:1 !important;
  cursor:pointer !important;
  z-index:3 !important;
}

.rmx-wine-modal__close::before,
.rmx-wine-modal__close::after{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:2px !important;
  height:19px !important;
  border-radius:999px;
  background:currentColor !important;
  transform-origin:center;
  transition:transform .36s cubic-bezier(.22,1,.36,1), opacity .18s ease;
}

.rmx-wine-modal__close::before{
  transform:translate(-50%, -50%) rotate(45deg);
}

.rmx-wine-modal__close::after{
  transform:translate(-50%, -50%) rotate(-45deg);
}

.rmx-wine-modal__close:hover{
  background:transparent !important;
  box-shadow:none !important;
  color:var(--rmx-text) !important;
}

.rmx-wine-modal__close:hover::before{
  transform:translate(-50%, -50%) rotate(135deg);
}

.rmx-wine-modal__close:hover::after{
  transform:translate(-50%, -50%) rotate(45deg);
}

.rmx-wine-modal__close:active::before,
.rmx-wine-modal__close:active::after{
  opacity:.62;
}

.rmx-wine-modal__close:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-text) 28%, transparent) !important;
  outline-offset:2px !important;
  color:var(--rmx-text) !important;
}

.rmx-wine-modal__body{
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  padding:20px 28px 28px;
  overscroll-behavior:contain;
}

.rmx-wine-filters{
  position:sticky;
  top:-20px;
  z-index:4;
  display:flex;
  align-items:center;
  gap:8px;
  margin:-2px 0 18px;
  padding:8px 0 10px;
  overflow-x:auto;
  scrollbar-width:none;
  background:linear-gradient(to bottom, var(--rmx-surface) 72%, transparent);
}

.rmx-wine-filters::-webkit-scrollbar{
  display:none;
}

.rmx-wine-filter{
  appearance:none;
  -webkit-appearance:none;
  flex:0 0 auto;
  min-height:36px;
  padding:0 15px;
  border:0;
  border-radius:999px;
  background:var(--action-secondary-bg);
  color:var(--rmx-soft);
  font-family:inherit;
  font-size:12px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  box-shadow:var(--outline-control) !important;
  transition:background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rmx-wine-filter:hover{
  transform:translateY(-1px);
  color:var(--rmx-text);
  box-shadow:none !important;
}

.rmx-wine-filter.is-active{
  border:0;
  background:color-mix(in srgb,var(--rmx-accent) 13%,var(--rmx-surface));
  color:var(--rmx-text);
  box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--rmx-accent) 45%,var(--rmx-border)) !important;
}

.rmx-wine-filter:focus-visible{
  outline:2px solid var(--rmx-accent);
  outline-offset:2px;
}

.rmx-wine-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.rmx-wine-card[hidden]{
  display:none !important;
}

.rmx-wine-more{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-height:42px;
  margin-top:14px;
  border:0;
  border-radius:var(--radius-button);
  background:var(--action-secondary-bg);
  color:var(--action-secondary-text);
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:var(--outline-control) !important;
}

.rmx-wine-more[hidden]{
  display:none !important;
}

.rmx-wine-more:hover{
  background:var(--action-secondary-hover-bg);
  color:var(--action-secondary-text);
  box-shadow:var(--outline-control-strong) !important;
}

.rmx-wine-more:focus-visible{
  outline:2px solid var(--rmx-accent);
  outline-offset:2px;
}

.rmx-wine-card{
  --wine-color:#8a1538;
  --wine-visual:#8a3349;
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:16px;
  border:0;
  border-radius:24px;
  background:var(--rmx-surface);
  box-shadow:var(--rmx-shadow-sm);
}

.rmx-wine-card::before{
  content:"";
  position:absolute;
  top:-82px;
  right:-88px;
  width:210px;
  height:210px;
  border-radius:999px;
  background:color-mix(in srgb, var(--wine-visual) 9%, transparent);
  pointer-events:none;
}

.rmx-wine-card--red{ --wine-color:#8a1538; }
.rmx-wine-card--white{ --wine-color:#a66b12; }
.rmx-wine-card--rose{ --wine-color:#c85076; }
.rmx-wine-card--champagne{ --wine-color:#a87b21; }
.rmx-wine-card--sparkling{ --wine-color:#477868; }
.rmx-wine-card--orange{ --wine-color:#c66820; }
.rmx-wine-card--dessert{ --wine-color:#8b5d23; }

.rmx-wine-card--tone-burgundy{ --wine-visual:#8a3349; }
.rmx-wine-card--tone-rose{ --wine-visual:#dca0ad; }
.rmx-wine-card--tone-sand{ --wine-visual:#d8bd8d; }
.rmx-wine-card--tone-sage{ --wine-visual:#92a594; }
.rmx-wine-card--tone-slate{ --wine-visual:#6f7b89; }
.rmx-wine-card--tone-plum{ --wine-visual:#7b5671; }

.rmx-wine-card__main{
  position:relative;
  z-index:1;
  min-width:0;
}

.rmx-wine-card.has-media .rmx-wine-card__main{
  display:grid;
  grid-template-columns:146px minmax(0,1fr);
  align-items:stretch;
  gap:16px;
}

.rmx-wine-card__visual{
  position:relative;
  min-height:174px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:20px;
  background:color-mix(in srgb, var(--wine-visual) 17%, var(--rmx-surface));
  isolation:isolate;
}

.rmx-wine-card__visual-shape{
  position:absolute;
  width:116px;
  height:116px;
  border-radius:32% 68% 54% 46% / 48% 42% 58% 52%;
  background:color-mix(in srgb, var(--wine-visual) 42%, transparent);
  transform:rotate(-9deg);
  z-index:-1;
}

.rmx-wine-card__visual::after{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  bottom:10px;
  height:18px;
  border-radius:50%;
  background:rgba(15,23,42,.10);
  filter:blur(8px);
  z-index:-1;
}

.rmx-wine-card__visual img{
  display:block;
  width:100%;
  height:176px;
  padding:6px 4px 3px;
  object-fit:contain;
  transform:scale(1.12);
  transform-origin:center bottom;
  filter:drop-shadow(0 12px 12px rgba(15,23,42,.16));
}

.rmx-wine-card__content{
  min-width:0;
  align-self:center;
}

.rmx-wine-card__top{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:9px;
}

.rmx-wine-card__type{
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:0 9px;
  border:0;
  border-radius:999px;
  background:color-mix(in srgb, var(--wine-color) 11%, var(--rmx-surface)) !important;
  color:var(--wine-color) !important;
  font-size:11px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
  box-shadow:none !important;
}

.rmx-wine-card__year{
  display:inline-flex;
  align-items:center;
  min-height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--rmx-soft);
  font-size:11px;
  font-weight:850;
  line-height:1;
  letter-spacing:.02em;
  white-space:nowrap;
}

.rmx-wine-card h3{
  position:relative;
  z-index:1;
  margin:0;
  color:var(--rmx-text);
  font-family:var(--rmx-font-title);
  font-size:21px;
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.035em;
}

.rmx-wine-card__meta,
.rmx-wine-card__desc{
  position:relative;
  z-index:1;
  margin:7px 0 0;
  color:var(--rmx-soft);
  font-size:12px;
  font-weight:700;
  line-height:1.4;
}

.rmx-wine-card__desc{
  color:color-mix(in srgb, var(--rmx-text) 88%, var(--rmx-soft));
  font-weight:600;
}

.rmx-wine-card__prices{
  position:relative;
  z-index:1;
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  gap:9px !important;
  margin-top:15px;
}

.rmx-wine-card__prices .rmx-wine-card__price{
  min-width:0 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center !important;
  gap:6px 10px !important;
  padding:9px 10px !important;
  border-radius:14px;
  background:color-mix(in srgb, var(--rmx-glass-3) 82%, transparent);
  color:var(--rmx-text);
  font-size:15px;
  font-weight:900;
  line-height:1.1;
  overflow:hidden !important;
}

.rmx-wine-card__price:only-child{
  grid-column:1 / -1;
}

.rmx-wine-card__prices small{
  display:block;
  margin:0 !important;
  max-width:100% !important;
  color:var(--rmx-soft);
  font-size:11px;
  font-weight:800;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.rmx-wine-card__prices strong{
  display:inline-flex !important;
  align-items:baseline !important;
  justify-content:flex-end !important;
  gap:3px !important;
  max-width:100% !important;
  color:var(--rmx-text) !important;
  font-size:16px !important;
  font-weight:950 !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}

.rmx-wine-card__prices .woocommerce-Price-amount{
  display:inline-flex !important;
  align-items:baseline !important;
  gap:2px !important;
  width:auto !important;
  max-width:none !important;
  color:inherit !important;
  font:inherit !important;
  line-height:inherit !important;
  white-space:nowrap !important;
}

.rmx-wine-card__price strong,
.rmx-wine-card__price strong .woocommerce-Price-amount,
.rmx-wine-card__price strong .amount,
.rmx-wine-card__price strong bdi{
  display:inline-flex !important;
  flex-direction:row !important;
  align-items:baseline !important;
  justify-content:flex-start !important;
  gap:3px !important;
  white-space:nowrap !important;
  word-break:keep-all !important;
  max-width:100% !important;
}

.rmx-wine-card__price strong .woocommerce-Price-currencySymbol{
  display:inline-block !important;
  flex:0 0 auto !important;
  margin-left:2px !important;
}

.rmx-wine-card__order{
  appearance:none;
  -webkit-appearance:none;
  grid-column:1 / -1;
  width:100%;
  min-height:34px;
  margin-top:2px;
  padding:0 11px;
  border:0;
  border-radius:var(--ui-radius-button, 14px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--rmx-primary);
  color:var(--primary-contrast, #fff);
  font-family:inherit;
  font-size:12px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 9px 18px color-mix(in srgb, var(--rmx-primary) 20%, transparent);
  transition:transform .14s ease, filter .14s ease, opacity .14s ease;
}

.rmx-wine-card__order:hover{
  transform:translateY(-1px);
  filter:brightness(.98);
}

.rmx-wine-card__order:focus-visible{
  outline:2px solid var(--rmx-accent);
  outline-offset:2px;
}

.rmx-wine-card__order:disabled,
.rmx-wine-card__order.is-loading{
  opacity:.72;
  cursor:wait;
  transform:none;
}

.rmx[data-mode="takeaway"] .rmx-wine-card__order{
  display:none !important;
}

.rmx-wine-card__pairing{
  position:relative;
  z-index:1;
  margin-top:11px;
  padding:11px 12px;
  border-radius:15px;
  background:color-mix(in srgb, var(--wine-visual) 8%, var(--rmx-surface));
}

.rmx-wine-card__pairing strong,
.rmx-wine-card__pairing span{
  display:block;
}

.rmx-wine-card__pairing strong{
  color:var(--wine-color);
  font-size:10.5px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.rmx-wine-card__pairing span{
  margin-top:4px;
  color:var(--rmx-text);
  font-size:12px;
  font-weight:700;
  line-height:1.35;
}

.rmx-wine-card__meters{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px;
  margin-top:11px;
}

.rmx-wine-meter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:8px 9px;
  border-radius:13px;
  background:var(--rmx-glass-3);
}

.rmx-wine-meter span{
  color:var(--rmx-soft);
  font-size:10.5px;
  font-weight:900;
  line-height:1;
}

.rmx-wine-meter div{
  display:flex;
  gap:3px;
}

.rmx-wine-meter i{
  width:11px;
  height:6px;
  border-radius:999px;
  background:color-mix(in srgb, var(--rmx-text) 12%, transparent);
}

.rmx-wine-meter i.is-on{
  background:var(--wine-color) !important;
}

@media (max-width:1024px){
  .rmx-wine-modal{
    align-items:flex-end;
    padding:0;
  }

  .rmx-wine-modal__sheet{
    width:100%;
    max-width:none;
    max-height:92dvh;
    margin:0;
    border-left:0;
    border-right:0;
    border-bottom:0;
    border-radius:28px 28px 0 0;
    transform:translate3d(0, 22px, 0);
  }

  .rmx-wine-modal__head{
    min-height:82px;
    padding:18px 76px 16px 22px !important;
  }

  .rmx-wine-modal__head strong{
    font-size:28px;
  }

  .rmx-wine-modal__body{
    padding:18px 22px 24px;
  }

  .rmx-wine-filters{
    top:-18px;
  }
}

@media (max-width:720px){
  .rmx-wine-modal__sheet{
    max-height:90dvh;
    border-radius:26px 26px 0 0;
  }

  .rmx-wine-modal__head{
    min-height:76px;
    padding:16px 68px 14px 16px !important;
  }

  .rmx-wine-modal__head strong{
    font-size:24px;
  }

  .rmx-wine-modal__head p{
    margin-top:5px;
    font-size:12.5px;
  }

  .rmx-wine-modal__close{
    right:14px !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }

  .rmx-wine-modal__body{
    padding:14px 16px 20px;
  }

  .rmx-wine-filters{
    top:-14px;
    gap:7px;
    margin-bottom:14px;
    padding-top:6px;
  }

  .rmx-wine-filter{
    min-height:34px;
    padding:0 13px;
    font-size:11.5px;
  }

  .rmx-wine-list{
    grid-template-columns:1fr;
    gap:13px;
  }

  .rmx-wine-card{
    padding:14px;
    border-radius:21px;
  }

  .rmx-wine-card.has-media .rmx-wine-card__main{
    grid-template-columns:122px minmax(0,1fr);
    gap:13px;
  }

  .rmx-wine-card__visual{
    min-height:154px;
    border-radius:18px;
  }

  .rmx-wine-card__visual-shape{
    width:96px;
    height:96px;
  }

  .rmx-wine-card__visual img{
    height:166px;
    padding:5px 4px 2px;
    transform:scale(1.22);
  }

  .rmx-wine-card h3{
    font-size:19px;
  }

  .rmx-wine-entry__button{
    min-height:66px;
    padding:12px;
    border-radius:20px;
  }

  .rmx-wine-entry__icon{
    width:44px !important;
    height:44px !important;
    border-radius:16px !important;
  }
}

@media (max-width:440px){
  .rmx-wine-card.has-media .rmx-wine-card__main{
    grid-template-columns:112px minmax(0,1fr);
    gap:11px;
  }

  .rmx-wine-card__visual{
    min-height:152px;
  }

  .rmx-wine-card__visual-shape{
    width:90px;
    height:90px;
  }

  .rmx-wine-card__visual img{
    height:162px;
    padding:4px 3px 2px;
    transform:scale(1.28);
  }

  .rmx-wine-card__type{
    min-height:25px;
    padding:0 8px;
    font-size:10px;
  }

  .rmx-wine-card__year{
    font-size:10px;
  }

  .rmx-wine-card h3{
    font-size:17px;
  }

  .rmx-wine-card__meta,
  .rmx-wine-card__desc{
    font-size:11.5px;
  }

  .rmx-wine-card__meters{
    grid-template-columns:1fr;
  }

  .rmx-wine-card__prices{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }

  .rmx-wine-card__prices strong,
  .rmx-wine-card__prices .woocommerce-Price-amount{
    font-size:14px !important;
  }

  .rmx-wine-card__order{
    min-height:32px;
    font-size:11.5px;
  }
}
/* ============================================================== 
   16 — OVERLAYS / LIGHTBOX / PANELS ANNEXES
============================================================== */

/* ==============================================================
   P) LIGHTBOX
============================================================== */
.rmx-lightbox{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background:var(--overlay, rgba(17,18,20,.64));
  backdrop-filter:blur(3px) saturate(110%);
  -webkit-backdrop-filter:blur(3px) saturate(110%);
  z-index:9999;
}

.rmx-lightbox[open]{
  display:grid;
}

.rmx-lightbox__panel{
  background:transparent;
  border-radius:16px;
  overflow:hidden;
  width:min(92vw, 960px);
  max-height:88vh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  box-shadow:0 20px 60px color-mix(in srgb, black 35%, transparent);
}

.rmx-lightbox__head,
.rmx-lightbox__caption{
  background:color-mix(in srgb, var(--rmx-surface) 92%, transparent);
  backdrop-filter:blur(6px) saturate(120%);
  -webkit-backdrop-filter:blur(6px) saturate(120%);
  border:1px solid color-mix(in srgb, var(--rmx-border) 60%, transparent);
}

.rmx-lightbox__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
}

.rmx-lightbox__title{
  font:700 15px/1.2 var(--rmx-font-body);
  margin:0;
  color:var(--rmx-text);
}

.rmx-lightbox__caption{
  padding:10px 12px;
  color:var(--rmx-soft);
  font-size:13px;
}

.rmx-lightbox__imgwrap{
  display:grid;
  place-items:center;
  background:transparent;
}

.rmx-lightbox__img{
  display:block;
  width:100%;
  height:auto;
  max-height:78vh;
  object-fit:contain;
}

.rmx-lightbox__close{
  all:unset;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  cursor:pointer;
  background:transparent !important;
  color:var(--rmx-text) !important;
  box-shadow:none !important;
  border:0 !important;
  border-radius:0 !important;
  font-size:0;
  line-height:0;
}

.rmx-lightbox__close:focus-visible{
  outline:2px solid color-mix(in srgb, var(--rmx-accent) 40%, white);
  outline-offset:2px;
}

.rmx-lightbox__close > *{
  pointer-events:none;
}

/* ==============================================================
   Q) FAVORIS PANEL + BOUTONS GÉNÉRIQUES
============================================================== */

/* ==============================================================
   FINAL UX — Carte des vins + étiquettes restaurateur
============================================================== */

/* Respiration constante entre la Carte des vins et les catégories. */
.rmx .rmx-wine-entry{
  margin:0 0 18px;
}

/* En dark mode, la carte reste teintée sans devenir un grand pavé clair. */
body[data-mode="dark"] .rmx .rmx-wine-entry__button{
  --wine-entry-ink:var(--rmx-text);
  --wine-entry-watermark:color-mix(in srgb, var(--rmx-text) 20%, transparent);
  box-shadow:0 12px 28px rgba(0,0,0,.18) !important;
}

body[data-mode="dark"] .rmx .rmx-wine-entry__button--sand{
  --wine-entry-bg:color-mix(in srgb, var(--rmx-surface) 88%, #9b7a50 12%);
  --wine-entry-shape:color-mix(in srgb, var(--rmx-surface) 72%, #9b7a50 28%);
}

body[data-mode="dark"] .rmx .rmx-wine-entry__button--sage{
  --wine-entry-bg:color-mix(in srgb, var(--rmx-surface) 88%, #5f8069 12%);
  --wine-entry-shape:color-mix(in srgb, var(--rmx-surface) 72%, #72917a 28%);
}

body[data-mode="dark"] .rmx .rmx-wine-entry__button--burgundy{
  --wine-entry-bg:color-mix(in srgb, var(--rmx-surface) 88%, #8c5865 12%);
  --wine-entry-shape:color-mix(in srgb, var(--rmx-surface) 72%, #9d6472 28%);
}

@media (max-width:1200px){
  /* Les filtres restent sur une seule ligne et se parcourent horizontalement sur tablette/mobile. */
  .rmx .rmx-menu-actions-row .rmx-filter-panel{
    overflow:hidden;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-chips{
    width:100%;
    flex-wrap:nowrap !important;
    overflow-x:auto;
    overflow-y:hidden;
    justify-content:flex-start;
    padding:1px 1px 4px;
    scrollbar-width:none;
    -ms-overflow-style:none;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-chips::-webkit-scrollbar{
    display:none;
  }

  .rmx .rmx-menu-actions-row .rmx-filter-chips > *{
    flex:0 0 auto;
  }
}
