/* cde/v1/assets/css/pages/menu.css */
/* doc-project | commande/v1/assets/css/pages/menu.css | Définit l’apparence de la page menu, des filtres, du finder, des cartes produits et des états actifs/réactifs. | Expose: aucun | Dépend de: commande/v1/assets/css/pages/menu.css, classes/attributs du menu et du finder côté HTML/JS | Impacte: UI du menu, lisibilité, interactions visuelles, responsive | Tables: aucune */

.pageMenu [data-login-card]{
  width: min(760px, 100%);
  margin: 0 auto;
}
.pageMenu [data-login-card] .cartLoginCard__title{
  color: #111;
}

/* =========================
   Placeholder "Aucun filtre sélectionné"
   Affiché au chargement, masqué dès qu'un filtre est actif.
   ========================= */
.menuNoFilterPlaceholder{
  position: relative;
  width: min(720px, 100%);
  margin: 12px auto 0;
  border: 1px solid rgba(11,42,91,.14);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,.92), rgba(255,255,255,.80) 46%, rgba(236,243,250,.96) 100%);
  box-shadow:
    0 18px 42px rgba(12,24,48,.12),
    inset 0 1px 0 rgba(255,255,255,.84);
}
.menuNoFilterPlaceholder::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(110,198,255,.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.26), transparent 42%);
  pointer-events: none;
}
.menuNoFilterPlaceholder::after{
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--radius) - 4px);
  border: 1px dashed rgba(11,42,91,.16);
  pointer-events: none;
}
.menuNoFilterPlaceholder__body{
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 30px 20px 28px;
  text-align: center;
}
.menuNoFilterPlaceholder__body::before{
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.98), rgba(110,198,255,.22) 45%, rgba(11,42,91,.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.72),
    0 16px 30px rgba(12,24,48,.18);
}
.menuNoFilterPlaceholder__eyebrow{
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0b2a5b;
  opacity: .82;
}
.menuNoFilterPlaceholder__title{
  margin: 0;
  max-width: 520px;
  line-height: 1.1;
  color: #111;
}
.menuNoFilterPlaceholder__text{
  margin: 0;
  max-width: 500px;
  color: rgba(17,17,17,.72);
  font-weight: 750;
  line-height: 1.5;
}

/* =========================
   Finder: hero / structure / footer
   ========================= */
[data-sheet-finder] .sheet__panel{
  scroll-padding-top: 88px;
}

@media (min-width: 880px){
  [data-sheet-finder] .sheet__panel{
    left: 50%;
    right: auto;
    width: min(760px, calc(100vw - 32px));
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
  }
}

[data-sheet-finder] .sheet__row{
  align-items: flex-start;
}

[data-sheet-finder] .sheet__title{
  margin-bottom: 0;
}

.finderCard{
  border: 1px solid rgba(0,0,0,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,248,248,.96));
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.finderCard__hint{
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(17,17,17,.74);
  font-weight: 750;
}

.finderCard--constraints,
.finderCard--constraints .card__body{
  overflow: visible;
}

.finderFooterCard{
  position: sticky;
  bottom: calc(-14px - env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -8px 28px rgba(0,0,0,.10);
}

.finderFooterCard__actions{
  align-items: stretch !important;
}

[data-sheet-finder] [data-finder-clear]{
  min-width: 148px;
  border: 2px solid rgba(143,0,0,.24);
  background: rgba(143,0,0,.10);
  color: #8f0000;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(143,0,0,.10);
}
[data-sheet-finder] [data-finder-clear]:hover{
  background: rgba(143,0,0,.14);
  border-color: rgba(143,0,0,.34);
}
[data-sheet-finder] [data-finder-clear]:active{
  background: rgba(143,0,0,.18);
}
[data-sheet-finder] [data-finder-clear]:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(143,0,0,.14), 0 8px 20px rgba(143,0,0,.10);
}

.finderFooterCard__hint{
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(17,17,17,.66);
  font-weight: 800;
}

.finderFooterCard__summary{
  margin: 8px 0 0;
  line-height: 1.45;
}

/* =========================
   Finder: contraintes ingrédients (A–Z)
   ========================= */
/* IMPORTANT:
   La sheet Finder ([data-sheet-finder]) est hors de .pageMenu.
   On scope donc la grille sur la sheet. */
[data-sheet-finder] .finderCard__hint--constraints{
  margin-bottom: 12px;
}

[data-sheet-finder] .finderConstraintsWrap{
  position: relative; /* ancre la flèche flottante */
}

[data-sheet-finder] .finderConstraintsGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 56px 8px 2px;
  margin: 0 -2px;
}
[data-sheet-finder] .finderConstraintsGrid::-webkit-scrollbar{
  display: none;
}

[data-sheet-finder] .finderConstraintsCol{
  --finder-accent: #0b2a5b;
  --finder-text: #0b2a5b;
  --finder-soft: rgba(11,42,91,.08);
  --finder-soft-strong: rgba(11,42,91,.14);

  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(12,24,48,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  box-shadow: 0 16px 30px rgba(12,24,48,.10);
  scroll-snap-align: start;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
[data-sheet-finder] .finderConstraintsCol[data-finder-col="must"]{
  --finder-accent: #177245;
  --finder-text: #145737;
  --finder-soft: rgba(46,204,113,.10);
  --finder-soft-strong: rgba(46,204,113,.16);
}
[data-sheet-finder] .finderConstraintsCol[data-finder-col="hate"]{
  --finder-accent: #d97706;
  --finder-text: #9a5a06;
  --finder-soft: rgba(255,136,0,.12);
  --finder-soft-strong: rgba(255,136,0,.18);
}
[data-sheet-finder] .finderConstraintsCol[data-finder-col="allergy"]{
  --finder-accent: #7c3aed;
  --finder-text: #5b28aa;
  --finder-soft: rgba(155,89,182,.12);
  --finder-soft-strong: rgba(155,89,182,.18);
}
[data-sheet-finder] .finderConstraintsCol[data-picker-active="1"]{
  transform: translateY(-2px);
}
[data-sheet-finder] .finderConstraintsCol[data-picker-active="1"][data-finder-col="must"]{
  border-color: rgba(23,114,69,.36);
  box-shadow: 0 22px 38px rgba(23,114,69,.18);
}
[data-sheet-finder] .finderConstraintsCol[data-picker-active="1"][data-finder-col="hate"]{
  border-color: rgba(217,119,6,.36);
  box-shadow: 0 22px 38px rgba(217,119,6,.18);
}
[data-sheet-finder] .finderConstraintsCol[data-picker-active="1"][data-finder-col="allergy"]{
  border-color: rgba(124,58,237,.34);
  box-shadow: 0 22px 38px rgba(124,58,237,.18);
}

[data-sheet-finder] .finderConstraintsCell{
  min-width: 0;
  padding: 14px;
}
[data-sheet-finder] .finderConstraintsCell--head{
  background: linear-gradient(180deg, rgba(255,255,255,.98), var(--finder-soft-strong));
  border-bottom: 1px solid rgba(255,255,255,.60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
[data-sheet-finder] .finderConstraintsCell--body{
  min-height: 184px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), var(--finder-soft));
}
[data-sheet-finder] .finderConstraintsBody{
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 100%;
}
[data-sheet-finder] .finderConstraintsActions{
  display: flex;
  width: 100%;
  margin-top: auto;
}
[data-sheet-finder] .finderConstraintsActions .finderAddIcon{
  width: 100%;
  min-width: 0;
}

[data-sheet-finder] .finderConstraintsCol__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
[data-sheet-finder] .finderConstraintsCol__copy{
  min-width: 0;
  display: grid;
  gap: 6px;
}
[data-sheet-finder] .finderConstraintsCol__eyebrow{
  margin: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--finder-text);
  opacity: .78;
}
[data-sheet-finder] .finderConstraintsCol__title{
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 19px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: .01em;
  color: #111;
}
[data-sheet-finder] .finderConstraintsCol__titleText{
  min-width: 0;
}
[data-sheet-finder] .finderConstraintsCol__desc{
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(17,17,17,.70);
  font-weight: 800;
}
[data-sheet-finder] .finderConstraintsCol__count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.10);
  color: var(--finder-text);
  font-size: 12px;
  font-weight: 950;
}

[data-sheet-finder] .finderAddIcon{
  flex: 0 0 auto;
  min-width: 102px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--finder-accent);
  color: #fff;
  border: 1px solid rgba(255,255,255,.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(12,24,48,.18);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
[data-sheet-finder] .finderAddIcon__plus{
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
}
[data-sheet-finder] .finderAddIcon__text{
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}
[data-sheet-finder] .finderAddIcon:hover{
  filter: brightness(1.06);
}
[data-sheet-finder] .finderAddIcon:active{
  transform: translateY(1px);
}
[data-sheet-finder] .finderAddIcon:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(143,0,0,.20);
}
[data-sheet-finder] .finderAddIcon[disabled],
[data-sheet-finder] .finderAddIcon:disabled{
  filter: none;
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

[data-sheet-finder] .finderConstraintsRow{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100%;
}
[data-sheet-finder] .finderConstraintsCol__chips{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
[data-sheet-finder] .finderConstraintsCol__empty{
  margin: auto 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(0,0,0,.16);
  background: rgba(255,255,255,.76);
  font-size: 12px;
  line-height: 1.3;
  color: rgba(17,17,17,.68);
  font-weight: 900;
}
[data-sheet-finder] .finderConstraintsCol__empty::before{
  content: "•";
  color: var(--finder-accent);
  font-size: 15px;
  line-height: 1;
}
[data-sheet-finder] .finderConstraintsChip{
  position: relative;
  padding-right: 32px;
  border-width: 2px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 18px rgba(12,24,48,.08);
}
[data-sheet-finder] .finderConstraintsChip .chip__x{
  background: #0b2a5b;
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
[data-sheet-finder] .finderConstraintsChip--must{
  border-color: rgba(23,114,69,.24);
  color: #145737;
}
[data-sheet-finder] .finderConstraintsChip--hate{
  border-color: rgba(217,119,6,.26);
  color: #9a5a06;
}
[data-sheet-finder] .finderConstraintsChip--allergy{
  border-color: rgba(124,58,237,.24);
  color: #5b28aa;
}
[data-sheet-finder] .finderConstraintsChip:hover{
  filter: brightness(1.02);
}
[data-sheet-finder] .finderConstraintsChip.is-selected,
[data-sheet-finder] .finderConstraintsChip.is-active{
  background: #0b2a5b;
  border-color: #0b2a5b;
  color: #fff;
}
[data-sheet-finder] .finderConstraintsCol[data-has-items="1"] .finderConstraintsCell--body{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92));
}

/* Hint "scroll horizontal" (flèche flottante) si 3 colonnes ne tiennent pas */
[data-sheet-finder] .finderConstraintsScrollHint{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.55);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
[data-sheet-finder] .finderConstraintsScrollHint__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
  color: #111;
}
[data-sheet-finder] .finderConstraintsScrollHint__icon svg{
  display: block;           /* évite l'alignement baseline qui décale visuellement */
  width: 22px;
  height: 22px;
}
[data-sheet-finder] .finderConstraintsScrollHint.is-visible{
  animation: finderConstraintsScrollHintPulse 1.15s ease-in-out infinite;
}
@keyframes finderConstraintsScrollHintPulse{
  0%   { transform: translateY(-50%) scale(1); }
  50%  { transform: translateY(-50%) scale(1.13); }
  100% { transform: translateY(-50%) scale(1); }
}
[data-sheet-finder] .finderConstraintsScrollHint:hover{
  filter: brightness(1.05);
}
[data-sheet-finder] .finderConstraintsScrollHint:active{
  transform: translateY(calc(-50% + 1px)) scale(.98);
}
[data-sheet-finder] .finderConstraintsScrollHint:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(110,198,255,.28), 0 12px 28px rgba(0,0,0,.18);
}

@media (prefers-reduced-motion: reduce){
  [data-sheet-finder] .finderConstraintsScrollHint.is-visible{ animation: none; }
}

@media (max-width: 780px){
  [data-sheet-finder] .finderConstraintsGrid{
    grid-template-columns: repeat(3, minmax(250px, 82vw));
  }
}

@media (max-width: 520px){
  [data-sheet-finder] .finderConstraintsScrollHint{
    right: 8px;
    width: 42px;
    height: 42px;
  }
  [data-sheet-finder] .finderConstraintsCol__title{
    font-size: 17px;
  }
  [data-sheet-finder] .finderConstraintsCol__desc{
    font-size: 11px;
  }
  [data-sheet-finder] .finderAddIcon{
    min-width: 92px;
    height: 36px;
    padding: 0 10px;
  }
  [data-sheet-finder] .finderAddIcon__text{
    font-size: 10px;
  }
  [data-sheet-finder] .finderConstraintsCell{
    padding: 12px;
  }
  [data-sheet-finder] .finderConstraintsCell--body{
    min-height: 170px;
  }
}

[data-sheet-finder] .finderIngPick{
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(11,42,91,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(236,243,250,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 14px 28px rgba(12,24,48,.08);
}
[data-sheet-finder] .finderIngPick__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

[data-sheet-finder] .finderIngPick__selected{
  gap: 10px;
}
[data-sheet-finder] .finderIngPick__list{
  gap: 10px;
}
[data-sheet-finder] .finderIngPick__meta{
  margin: 2px 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(17,17,17,.66);
  font-weight: 800;
}
[data-sheet-finder] .finderIngPick__list .chip{
  background: rgba(255,255,255,.98);
  border-width: 2px;
  border-color: rgba(11,42,91,.18);
  box-shadow: 0 10px 18px rgba(12,24,48,.08);
}
[data-sheet-finder] .finderIngPick__list .chip:hover{
  filter: brightness(1.02);
}
[data-sheet-finder] .finderIngPick__list .chip.is-selected{
  background: #0b2a5b;
  border-color: #0b2a5b;
  color: #fff;
  box-shadow: 0 12px 22px rgba(11,42,91,.18);
}
[data-sheet-finder] .finderIngPick__empty{
  margin: 8px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  border: 1px dashed rgba(0,0,0,.14);
  font-size: 12px;
  line-height: 1.35;
  color: rgba(17,17,17,.58);
  font-weight: 800;
}
/* État actif visible (on reste cohérent avec Mods) */
[data-sheet-finder] .finderIngPick .chip.is-selected{
  background: #0b2a5b;
  border-color: #0b2a5b;
  color: #fff;
}
/* Chips de sélection: on autorise le wrap, sans scroll horizontal */
[data-sheet-finder] .finderIngPick__selected,
[data-sheet-finder] .finderIngPick__list{
  display:flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.menuHeader{
  position: relative;
  top: auto;
  z-index: 15;
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(6,16,34,.88), rgba(10,24,46,.78) 55%, rgba(13,31,58,.72));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  isolation: isolate;
  transition: padding .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.menuHeader::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(110,198,255,.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.14), transparent 36%);
  pointer-events: none;
}
.menuHeader::after{
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(22px - 1px);
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}

/* Le header ne se "colle" plus au scroll (non sticky) */

.menuHeader__search{ width: 100%; }
.menuHeader__search--underKnow{
  margin-top: 2px;
  padding: 10px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.menuHeader__search .search{
  border-color: rgba(11,42,91,.12);
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 22px rgba(12,24,48,.12);
}
.menuHeader__search .search__icon{ opacity: .62; }
.menuSearch{ width: 100%; }

/* Mode desktop vs mobile:
   - Desktop (pointer fine): afficher champ de recherche, masquer A–Z
   - Mobile/tactile (pointer coarse): masquer champ, afficher A–Z */
@media (pointer: fine){
  .pageMenu [data-menu-alpha-wrap]{ display:none; } /* A–Z mobile uniquement */
  .pageMenu [data-menu-text-search]{ display:block; }
}
@media (pointer: coarse){
  .pageMenu [data-menu-text-search]{ display:none; }
  .pageMenu [data-menu-alpha-wrap]{ display:block; }
}
.menuHeader__filters{
  display:grid;
  gap: 12px;
}
.filterRow{
  position: relative;
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.filterRow--compact{
  padding-left: 10px;
  padding-right: 10px;
}
.filterRow--compact .menuScrollHintWrap{
  width: 100%;
}
.filterRow--help{
  /* Ligne "aide" sans label pour gagner de la place (2 choix visibles) */
  align-items: stretch;
  background: linear-gradient(180deg, rgba(110,198,255,.12), rgba(255,255,255,.06));
}
.filterRow--help .chips{
  width: 100%;
}
.filterRow--help .chips .chip{
  /* encourage 2 chips visibles sur mobile */
  white-space: nowrap;
}
.chips--stack{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.chips--stack .chip{
  width: 100%;
  justify-content: center;
}
@media (min-width: 920px){
  .chips--stack{
    max-width: 460px; /* évite des boutons trop larges sur grand écran */
  }
  .chips--stack .chip{
    width: 100%;
  }
}
.filterLabel{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  min-width: 72px;
  color: rgba(255,255,255,.88);
  font-size: 13px;
  font-weight: 900;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  flex: 0 0 auto;
  line-height: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.filterRow .chips{
  flex: 1 1 auto;
  min-width: 0;
}
.menuHeader .chip:not(.menuActionBtn){
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
}
.menuHeader .chip:not(.menuActionBtn):hover{
  filter: brightness(1.05);
}
.menuHeader .chip:not(.menuActionBtn).is-active{
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.96);
  color: #111;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}
.menuHeader .chip:not(.menuActionBtn).is-active .chip__badge{
  background: rgba(11,42,91,.92);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}

/* Bouton raccourci "allergènes" : volontairement distinct des autres filtres */
.menuHeader .chip.menuAllergyShortcutBtn{
  border-color: rgba(124,58,237,.46);
  background: linear-gradient(180deg, rgba(124,58,237,.30), rgba(91,40,170,.22));
  color: #fff;
  box-shadow:
    0 8px 18px rgba(91,40,170,.24),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.menuHeader .chip.menuAllergyShortcutBtn:hover{
  filter: brightness(1.04);
  border-color: rgba(124,58,237,.62);
}
.menuHeader .chip.menuAllergyShortcutBtn:active{
  transform: translateY(1px);
}
.menuHeader .chip.menuAllergyShortcutBtn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(124,58,237,.18),
    0 8px 18px rgba(91,40,170,.24),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.menuScrollHintWrap{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.menuScrollHintWrap .chips--scroll{
  padding-right: 44px; /* évite que le bouton recouvre la dernière chip visible */
}
.menuScrollHint{
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;

  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(15,15,15,.82);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.24);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menuScrollHint:hover{
  filter: brightness(1.06);
}
.menuScrollHint:active{
  transform: translateY(calc(-50% + 1px)) scale(.98);
}
.menuScrollHint:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(110,198,255,.24), 0 10px 24px rgba(0,0,0,.24);
}
.menuScrollHint__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
}
.menuScrollHint__icon svg{
  display: block;
  width: 18px;
  height: 18px;
}
.menuScrollHint.is-visible{
  animation: menuScrollHintPulse 1.25s ease-in-out infinite;
}
@keyframes menuScrollHintPulse{
  0%   { transform: translateY(-50%) scale(1); }
  50%  { transform: translateY(-50%) scale(1.10); }
  100% { transform: translateY(-50%) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .menuScrollHint.is-visible{ animation: none; }
}

.menuHeader__expand{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* A–Z (réutilise le style .modsAlphaSlider de Mods) */
.menuAlpha{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  width: 100%;
}
.menuAlpha__slider{
  flex: 1 1 auto;
  margin: 32px 0 0; /* plus compact que Mods (dans le header) */
}
.menuAlpha__reset{
  flex: 0 0 auto;
  margin-top: 32px; /* aligne visuellement avec la rangée lettres */
}

/* Menu only: override style A–Z slider (ne pas impacter Mods bottom sheet) */
.pageMenu .menuAlpha .modsAlphaSlider{
  color: #fff; /* lettres + textes */
}
.pageMenu .menuAlpha .modsAlphaSlider *{
  color: inherit;
}

/* Range styling (track + thumb) scoped page Menu */
.pageMenu .menuAlpha .modsAlphaSlider input[type="range"]{
  accent-color: #6ec6ff; /* fallback (browsers support) */
}

/* WebKit */
.pageMenu .menuAlpha .modsAlphaSlider input[type="range"]::-webkit-slider-runnable-track{
  background: rgba(255,255,255,.92);
  height: 4px;
  border-radius: 999px;
}
.pageMenu .menuAlpha .modsAlphaSlider input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6ec6ff; /* thumb bleu clair */
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
  margin-top: -7px; /* centre le thumb sur la track (4px) */
}

/* Firefox */
.pageMenu .menuAlpha .modsAlphaSlider input[type="range"]::-moz-range-track{
  background: rgba(255,255,255,.92);
  height: 4px;
  border-radius: 999px;
}
.pageMenu .menuAlpha .modsAlphaSlider input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6ec6ff; /* thumb bleu clair */
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* Bulle/preview (best effort: rester lisible et cohérent thème) */
.pageMenu .menuAlpha .modsAlphaSlider [data-alpha-bubble],
.pageMenu .menuAlpha .modsAlphaSlider .alphaBubble,
.pageMenu .menuAlpha .modsAlphaSlider .modsAlphaBubble{
  color: #fff;
  border-color: rgba(255,255,255,.9);
}

/* Menu: bulle du slider (lettre) en noir */
.pageMenu .menuAlpha .modsAlphaSlider .modsAlphaSlider__bubble,
.pageMenu .menuAlpha .modsAlphaSlider .modsAlphaSlider__bubble *{
  color: #000 !important;
}
.pageMenu .menuAlpha .modsAlphaSlider [data-alpha-bubble],
.pageMenu .menuAlpha .modsAlphaSlider [data-alpha-bubble] *{
  color: #000 !important;
}

/* Desktop UX: "grab to scroll" sur les rangées horizontales (Type/Affiner) */
@media (pointer: fine){
  .chips--scroll{
    cursor: grab;
  }
  .chips--scroll.is-dragging{
    cursor: grabbing;
    user-select: none;
  }
}

/* Minification supprimée: on garde le header toujours complet. */
.menuHeader .menuHeader__expand{
  display:none !important;
}

/* Floating "back to top" button (FAB) */
.menuBackTop{
  position: fixed;
  right: 16px;
  bottom: 86px; /* au-dessus de la bottom nav */
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.9);
  background: #8f0000; /* rouge plus foncé */
  color: #fff;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.menuBackTop:hover{
  filter: brightness(1.06);
}
.menuBackTop:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 12px 35px rgba(0,0,0,.35);
}
.menuBackTop:active{
  transform: translateY(1px);
}
.menuBackTop__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
}
.menuBackTop__icon svg{
  display:block;
}
/* Animation cyclique légère pour attirer l'attention */
.menuBackTop.is-visible{
  animation: menuBackTopPulse 1.7s ease-in-out infinite;
}
@keyframes menuBackTopPulse{
  0%   { transform: translateY(0) scale(1);    box-shadow: 0 12px 35px rgba(0,0,0,.35); }
  35%  { transform: translateY(-4px) scale(1.04); box-shadow: 0 16px 42px rgba(0,0,0,.42); }
  70%  { transform: translateY(0) scale(1);    box-shadow: 0 12px 35px rgba(0,0,0,.35); }
  100% { transform: translateY(0) scale(1);    box-shadow: 0 12px 35px rgba(0,0,0,.35); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .menuBackTop.is-visible{ animation: none; }
}

@media (max-width: 520px){
  .menuBackTop{
    right: 12px;
    bottom: 84px;
    width: 50px;
    height: 50px;
  }
}

.menuSectionTitle{
  color: rgba(255,255,255,.92);
  font-weight: 950;
  margin: 14px 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.menuSectionTitle--results{
  width: min(790px, 100%);
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;
}
.menuList{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* =========================
   Menu cards: "Ajouter/Personnaliser" button
   ========================= */
.pageMenu [data-item] .itemCard__actions [data-add]{
  background: #8f0000; /* bordeaux */
  color: #fff;
  border-color: #8f0000;
}
.pageMenu [data-item] .itemCard__actions [data-add]:hover{
  filter: brightness(1.06);
}
.pageMenu [data-item] .itemCard__actions [data-add]:active{
  transform: translateY(1px);
}
.pageMenu [data-item] .itemCard__actions [data-add]:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(143,0,0,.20);
}
.pageMenu [data-item] .itemCard__actions [data-add][disabled]{
  filter: none;
  opacity: .55;
  cursor: not-allowed;
}

/* Finder (assistant) */
.menuFinderBtn{
  border-color: rgba(110,198,255,.45);
  background: rgba(110,198,255,.14);
  /* IMPORTANT: never allow black text on this button (always white) */
  color: #fff !important;
}
.menuFinderBtn .menuActionBtn__label,
.menuFinderBtn .menuActionBtn__label *{
  color: #fff !important;
}

.menuFinderBtn.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Help action: "Mes pizzas déjà commandées" (affiché uniquement si historique) */
.menuPastOrdersBtn{
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  /* IMPORTANT: always keep white text in the dark menu header */
  color: #fff !important;
}
.menuPastOrdersBtn .menuActionBtn__label,
.menuPastOrdersBtn .menuActionBtn__label *{
  color: #fff !important;
}

.menuPastOrdersBtn.is-active{
  background: rgba(255,255,255,.96);
  border-color: rgba(255,255,255,.96);
  color: #111 !important;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}
.menuPastOrdersBtn.is-active .menuActionBtn__label,
.menuPastOrdersBtn.is-active .menuActionBtn__label *{
  color: #111 !important;
}

/* Help actions (distinct from regular filter chips) */
.menuActionBtn{
  position: relative;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(255,255,255,.26);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
  box-shadow:
    0 12px 28px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.08);
  text-shadow: 0 2px 10px rgba(0,0,0,.40);
}
.menuActionBtn:hover{ filter: brightness(1.04); }
.menuActionBtn:active{ transform: translateY(1px); }
.menuActionBtn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 10px 26px rgba(0,0,0,.22);
}
.menuActionBtn__label{
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

/* Variant: Finder (guided) */
.menuActionBtn--finder{
  border-color: rgba(110,198,255,.55);
  background: rgba(110,198,255,.14);
}
.menuActionBtn--finder.is-active{
  background: rgba(110,198,255,.22);
  border-color: rgba(110,198,255,.85);
}

/* Know-name button: must match Finder aesthetics ("Je ne sais pas quoi choisir") */
.menuKnowNameBtn{
  /* no-op hook for future tweaks; visuals come from menuFinderBtn / menuActionBtn--finder */
}
.menuKnowNameBtn,
.menuKnowNameBtn .menuActionBtn__label,
.menuKnowNameBtn .menuActionSwitch__text{
  /* keep label text white whether switch is ON or OFF */
  color: #fff !important;
}
.menuKnowNameBtn .menuActionSwitch{
  color: #fff; /* ensure inner text inherits correctly if needed */
}

/* Back-compat: if an older template still uses menuActionBtn--know, make it look like Finder */
.menuActionBtn--know{
  border-color: rgba(110,198,255,.45);
  background: rgba(110,198,255,.14);
}
.menuActionBtn--know.is-active{
  background: #111;
  color: #fff;
  border-color: #111;
}

/* Inline switch inside "Je connais le nom..." */
.menuActionSwitch{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 6px;
}
.menuActionSwitch__track{
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(143,0,0,.92); /* OFF = rouge (cohérent avec CTA rouge existant) */
  border: 2px solid rgba(255,255,255,.80);
  position: relative;
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}
.menuActionSwitch__thumb{
  position: absolute;
  top: 50%;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  transform: translateY(-50%);
  transition: left .16s ease;
}
.menuActionSwitch__text{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  opacity: .92;
  min-width: 28px;
  text-align: right;
}
.menuActionSwitch.is-on .menuActionSwitch__track{
  background: rgba(110,198,255,.92); /* ON = bleu */
}
.menuActionSwitch.is-on .menuActionSwitch__thumb{
  left: 20px;
}

/* Section titles should span full width in grid layout */
.menuSectionTitle{
  grid-column: 1 / -1;
}

/* Toast positionné près d'un clic (fallback si UI.toastAt n'existe pas) */
.uiToastAt{
  position: fixed;
  z-index: 80;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.86);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  font-weight: 900;
  font-size: 13px;
  line-height: 1.15;
  max-width: min(320px, calc(100vw - 24px));
  pointer-events: none;
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
}
.uiToastAt.is-on{
  opacity: 1;
  transform: translate(-50%, calc(-100% - 6px));
}
.uiToastAt.is-off{
  opacity: 0;
}

/* Chips "souvent avec" sous la pizza */
.itemCard__often{
  position: relative;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(11,42,91,.12);
}
.itemCard__oftenLabel{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(11,42,91,.76);
  margin: 0 0 8px;
}
.chips--often{
  gap: 6px;
  /* IMPORTANT: pas de scroll horizontal => wrap contrôlé */
  display:flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
.chip--often{
  position: relative;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #0b2a5b, #123a77);
  border-color: rgba(11,42,91,.96);
  color: #fff;
  flex: 0 1 auto; /* autorise wrap naturel */
  box-shadow: 0 8px 16px rgba(11,42,91,.16);
}
.chip--often .chip__label,
.chip--often .chip__label *{
  color: #fff !important;
}
.chip--often .chip__badge{
  background: rgba(11,42,91,.92);
  color: #fff;
  border: 1px solid rgba(255,255,255,.92);
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0,0,0,.20);
}
.chip--often[disabled]{
  cursor: not-allowed;
  opacity: .55;
}
.chip--often:not([disabled]):hover{
  filter: brightness(1.06);
}
.chip--often .chip__badge{
  font-size: 10px;
  height: 16px;
  line-height: 16px;
  min-width: 16px;
  padding: 0 5px;
}

.pageMenu .menuList.menuList--pizzas > .card[data-item]{
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
  border: 1px solid rgba(11,42,91,.10);
  box-shadow:
    0 14px 32px rgba(12,24,48,.10),
    inset 0 1px 0 rgba(255,255,255,.78);
}
.pageMenu .menuList.menuList--pizzas > .card[data-item]:hover{
  box-shadow:
    0 18px 38px rgba(12,24,48,.14),
    inset 0 1px 0 rgba(255,255,255,.82);
}
.pageMenu .menuList.menuList--pizzas > .card[data-item] .card__body{
  padding: 16px;
}
.pageMenu .menuList.menuList--pizzas .itemCard__img{
  box-shadow: 0 12px 24px rgba(12,24,48,.14);
}
.pageMenu .menuList.menuList--pizzas .itemCard__name{
  color: #111;
}
.pageMenu .menuList.menuList--pizzas .itemCard__meta{
  color: rgba(17,17,17,.72);
  font-weight: 800;
}


@media (max-width: 520px){
  .pageMenu .menuList.menuList--pizzas > .card[data-item] .card__body{
    padding: 14px;
  }
  .itemCard__oftenLabel{
    font-size: 10px;
  }
}

/* Empty-state: highlight searched query (desktop text search) */
.menuEmpty__q{
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

/* Empty-state removable filter chips */
.menuEmpty__filters{
  margin-top: 10px;
}
.menuEmpty__filters .chips{
  gap: 10px;
}
.chip--removable{
  position: relative;
  padding-right: 32px; /* room for X */
}
.chip--removable .chip__x{
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(0,0,0,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  font-size: 14px;
  font-weight: 950;
  line-height: 18px;
  text-align: center;
  pointer-events: none; /* click handled by button */
}
.chip--removable:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), var(--shadow);
}
.menuEmpty__hint{
  margin-top: 8px;
}

/* Active "Affiner" selections (removable chips under Affiner row) */
.menuAffinerActive{
  margin-top: 2px;
  width: 100%;
}
.menuAffinerActive__card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  width: 100%;
}
.menuAffinerActive__card .card__body{
  padding: 12px;
}
.menuAffinerActive__title{
  margin: 0 0 10px;
  color: #111;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}
.menuAffinerActive .chips{
  gap: 8px;
}
/* Style dédié EXCLUSIVEMENT aux chips actives du récap "Affiner" */
.menuAffinerActive__chip{
  position: relative;
  padding: 6px 10px;
  padding-right: 32px; /* room for dismiss button */
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(11,42,91,.20);
  background: #0b2a5b;
  color: #fff;
  box-shadow:
    0 8px 18px rgba(11,42,91,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  transition:
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}
.menuAffinerActive__chip .chip__label,
.menuAffinerActive__chip .chip__label *{
  color: #000;
}
.menuAffinerActive__chip:hover{
  background: #123a77;
  border-color: rgba(18,58,119,.92);
  box-shadow:
    0 12px 22px rgba(11,42,91,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.menuAffinerActive__chip:active{
  transform: translateY(1px);
}
.menuAffinerActive__chip:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(110,198,255,.24),
    0 12px 22px rgba(11,42,91,.22),
    inset 0 1px 0 rgba(255,255,255,.10);
}
.menuAffinerActive__chip .chip__x,
.menuAffinerActive__x{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  color: #0b2a5b;
  border: 1px solid rgba(11,42,91,.22);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(11,42,91,.16);
  pointer-events: none; /* click handled by button */
}
.menuAffinerActive__chip:hover .chip__x,
.menuAffinerActive__chip:hover .menuAffinerActive__x{
  background: #fff;
  color: #082047;
  border-color: rgba(8,32,71,.26);
}
.menuAffinerActive__chip:focus-visible .menu__x,
.menuAffinerActive__chip:focus-visible .menuAffinerActive__x{
  background: #fff;
  color: #082047;
  border-color: rgba(8,32,71,.30);
}

/* Active persisted allergies card */
.menuAllergyActive{
  margin-top: 2px;
  width: 100%;
}
.menuAllergyActive__card{
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,241,255,.98));
  border: 1px solid rgba(124,58,237,.16);
  box-shadow: 0 10px 28px rgba(60,24,120,.14);
  width: 100%;
}
.menuAllergyActive__card .card__body{
  padding: 12px;
}
.menuAllergyActive__title{
  margin: 0 0 10px;
  color: #3f1f7a;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}
.menuAllergyActive .chips{
  gap: 8px;
}
.menuAllergyActive__chip{
  position: relative;
  padding: 6px 10px;
  padding-right: 32px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,.22);
  background: #7c3aed;
  color: #fff;
  box-shadow:
    0 8px 18px rgba(124,58,237,.20),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.menuAllergyActive__chip .chip__label,
.menuAllergyActive__chip .chip__label *{
  color: #000000 !important;
}
.menuAllergyActive__chip:hover{
  filter: brightness(1.05);
}
.menuAllergyActive__chip:active{
  transform: translateY(1px);
}
.menuAllergyActive__chip:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(124,58,237,.18),
    0 8px 18px rgba(124,58,237,.20),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.menuAllergyActive__chip .chip__x,
.menuAllergyActive__x{
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,.98);
  color: #5b28aa;
  border: 1px solid rgba(91,40,170,.24);
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(91,40,170,.16);
  pointer-events: none;
}

/* Modal de portée pour Affiner après "Trouver ma pizza" */
.v1ConfirmModal{
  position: fixed;
  inset: 0;
  z-index: 120;
}
.v1ConfirmModal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(6,16,34,.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.v1ConfirmModal__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, calc(100vw - 28px));
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,252,.98));
  border: 1px solid rgba(11,42,91,.12);
  box-shadow: 0 28px 56px rgba(12,24,48,.28);
}
.v1ConfirmModal__msg{
  margin: 0;
  color: #111;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 950;
}
.v1ConfirmModal__actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
}
.v1ConfirmModal__actions .btn{
  min-width: 170px;
  justify-content: center;
}
@media (max-width: 520px){
  .v1ConfirmModal__panel{
    width: calc(100vw - 22px);
    padding: 16px;
    border-radius: 18px;
  }
  .v1ConfirmModal__msg{
    font-size: 15px;
  }
  .v1ConfirmModal__actions{
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .v1ConfirmModal__actions .btn{
    width: 100%;
    min-width: 0;
  }
}

/* Confort visuel + place écran sur grands écrans */
.pageMenu .container{
  max-width: 740px;
}

@media (min-width: 920px){
  .pageMenu .container{
    max-width: 980px;
  }
  .menuList{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}
@media (min-width: 1240px){
  .menuList{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* =========================================================
   Pizzas: TOUJOURS 1 card par ligne (centré)
   - largeur du bloc cards: entre 370px et 790px
   - ne jamais afficher 2 colonnes sur la même largeur d’écran
   ========================================================= */
.pageMenu .menuList.menuList--pizzas{
  display: grid;
  gap: 12px;

  /* centre le bloc et borne la largeur de rendu */
  width: min(790px, 100%);
  max-width: 790px;
  margin-left: auto;
  margin-right: auto;

  /* 1 seule colonne, card centrée */
  grid-template-columns: minmax(min(370px, 100%), 1fr);
  justify-content: center;
}

/* Défense: empêcher les règles desktop globales (>=920 / >=1240) de forcer 2/3 colonnes */
@media (min-width: 920px){
  .pageMenu .menuList.menuList--pizzas{
    grid-template-columns: minmax(min(370px, 100%), 1fr);
  }
}
@media (min-width: 1240px){
  .pageMenu .menuList.menuList--pizzas{
    grid-template-columns: minmax(min(370px, 100%), 1fr);
  }
}

/* Ajustements mobiles: label plus court + header plus compact */
@media (max-width: 520px){
  .menuHeader{
    padding: 12px;
    border-radius: 18px;
  }
  .filterRow{
    padding: 10px;
    gap: 10px;
    border-radius: 14px;
  }
  .menuHeader__search--underKnow{
    padding: 9px;
    border-radius: 14px;
  }
  .menuScrollHint{
    right: 4px;
    width: 32px;
    height: 32px;
  }
  .menuScrollHintWrap .chips--scroll{
    padding-right: 40px;
  }
  .menuAlpha__slider{
    margin-top: 30px;
  }
  .menuAlpha__reset{
    margin-top: 30px;
  }
  .finderFooterCard{
    bottom: calc(-10px - env(safe-area-inset-bottom));
  }
  .finderFooterCard__actions{
    flex-direction: column;
    align-items: stretch !important;
  }
  .finderFooterCard__actions .btnInline,
  .finderFooterCard__actions .btnPrimary{
    width: 100%;
    justify-content: center;
  }
  .menuNoFilterPlaceholder__body{
    padding: 26px 16px 24px;
  }
  .menuNoFilterPlaceholder__body::before{
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .menuNoFilterPlaceholder__title{
    font-size: 22px;
  }
  .menuAffinerActive__chip{
    padding: 6px 9px;
    padding-right: 30px;
    font-size: 11px;
  }
}

