/*
 * Assistant de commande Glaces & Sorbets (module papillaassistant).
 * Mobile d'abord ; à partir de 992 px, mise en page ordinateur.
 * Toutes les classes sont préfixées « pa- » pour ne pas toucher au thème.
 */

:root {
  --pa-rose: #E6007E;
  --pa-rose-fonce: #B80065;
  --pa-rose-pale: #FCE4F1;
  --pa-gris: #E9E9EC;
  --pa-gris-2: #B9B9C2;
  --pa-texte: #2B2B2B;
  --pa-texte-2: #5C5C66;
  --pa-alerte: #8A4B00;
}

html.pa-lock,
html.pa-lock body {
  overflow: hidden !important;
}

/* La fiche d'un produit pris en charge : plus de menu déroulant des parfums */
html.pa-product-managed #main .product-variants,
html.pa-product-managed #main .product-add-to-cart > .control-label,
html.pa-product-managed #main .product-add-to-cart .qty {
  display: none !important;
}

.pa-overlay[hidden],
.pa-overlay [hidden] {
  display: none !important;
}

.pa-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #fff;
  color: var(--pa-texte);
  font-size: 17px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}

.pa-overlay *,
.pa-overlay *::before,
.pa-overlay *::after {
  box-sizing: border-box;
}

.pa-overlay button,
.pa-overlay input {
  font: inherit;
  color: inherit;
}

.pa-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

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

/* --- En-tête --- */

.pa-head {
  flex: none;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--pa-gris);
  background: #fff;
}

.pa-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pa-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

/* Logo du site : l'assistant recouvre l'en-tête du site en plein écran */
.pa-logo {
  display: block;
  flex: none;
  width: auto;
  height: 34px;
  max-width: 150px;
  object-fit: contain;
}

.pa-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--pa-rose);
  text-transform: none;
  letter-spacing: 0;
}

/* « Sorbets » / « Glaces » sur la ligne des étapes, seulement quand le logo
   remplace le titre (téléphone) */
.pa-kind {
  display: none;
}

@media (max-width: 991.98px) {
  .pa-has-logo .pa-kind {
    display: inline;
    color: var(--pa-texte);
    font-weight: 700;
  }

  /* Le logo prend la place du titre, qui reste lu par les lecteurs d'écran
     (il nomme la fenêtre) : l'en-tête garde sa hauteur, la liste des parfums aussi */
  .pa-has-logo .pa-title {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

.pa-close {
  flex: none;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--pa-gris-2);
  border-radius: 22px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.pa-steps-m {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 14px;
  color: var(--pa-texte-2);
}

.pa-cart,
.pa-cart-d {
  font-weight: 700;
  color: var(--pa-rose);
}

.pa-progress {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.pa-progress span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--pa-gris);
}

.pa-progress span.on {
  background: var(--pa-rose);
}

.pa-steps-d {
  display: none;
}

.pa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pa-chip {
  min-height: 36px;
  padding: 4px 12px;
  border: 0;
  border-radius: 18px;
  background: var(--pa-rose-pale);
  color: var(--pa-rose-fonce);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* --- Corps --- */

.pa-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 16px 24px;
}

.pa-q {
  margin: 0 0 16px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--pa-texte);
  text-transform: none;
}

.pa-q:focus {
  outline: none;
}

.pa-count {
  font-size: 15px;
  font-weight: 600;
  color: var(--pa-texte-2);
}

.pa-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--pa-texte-2);
}

.pa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 60px 0;
  font-size: 18px;
  color: var(--pa-texte-2);
}

.pa-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid var(--pa-rose-pale);
  border-top-color: var(--pa-rose);
  border-radius: 50%;
  animation: pa-spin 0.9s linear infinite;
}

@keyframes pa-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pa-spinner { animation-duration: 3s; }
}

/* Étape 1 : taille */

.pa-sizes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pa-size {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  border: 2px solid var(--pa-gris-2);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

/* Survol réservé aux pointeurs qui survolent : sur écran tactile, l'état reste
   collé à l'endroit du dernier toucher et surligne un choix qu'on n'a pas fait */
.pa-size:focus-visible {
  border-color: var(--pa-rose);
}

@media (hover: hover) {
  .pa-size:hover {
    border-color: var(--pa-rose);
  }
}

.pa-size.pa-last {
  border: 3px solid var(--pa-rose);
}

/* Étape « taille » en photos : deux cartes côte à côte, même sur téléphone */
.pa-sizes.pa-sizes-photo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pa-size.pa-size-photo {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.pa-size-img {
  display: block;
  background: var(--pa-gris);
}

.pa-size-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 13;
  object-fit: cover;
}

.pa-size-photo .pa-size-txt {
  padding: 10px 12px 12px;
}

.pa-size-photo .pa-size-t {
  font-size: 18px;
}

.pa-size-photo .pa-size-c {
  font-size: 15px;
}

.pa-size-photo .pa-size-p {
  font-size: 18px;
}

.pa-pot-box {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 64px;
  height: 70px;
}

.pa-pot {
  display: block;
  border: 2px solid var(--pa-rose);
  border-radius: 6px 6px 14px 14px;
  background: repeating-linear-gradient(45deg, #F3C5DF, #F3C5DF 4px, #fff 4px, #fff 9px);
}

.pa-size-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.pa-size-t {
  font-size: 20px;
  font-weight: 800;
}

.pa-size-c {
  font-size: 16px;
  color: var(--pa-texte-2);
}

.pa-size-p {
  margin-top: 2px;
  font-size: 19px;
  font-weight: 800;
  color: var(--pa-rose);
}

.pa-size-last {
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-rose-fonce);
}

.pa-go {
  flex: none;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--pa-rose);
}

/* Étape 2 : parfum (liste sur mobile, grille sur ordinateur) */

.pa-search {
  margin-bottom: 8px;
}

.pa-search-input {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 2px solid var(--pa-gris-2);
  border-radius: 12px;
  background: #fff;
  font-size: 17px;
}

.pa-search-input:focus {
  outline: none;
  border-color: var(--pa-rose);
}

.pa-letter {
  padding: 12px 4px 4px;
  border-bottom: 1px solid var(--pa-rose-pale);
  font-size: 14px;
  font-weight: 800;
  color: var(--pa-rose);
}

.pa-flavor {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 72px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--pa-gris);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pa-flavor:focus-visible {
  background: var(--pa-rose-pale);
}

@media (hover: hover) {
  .pa-flavor:hover {
    background: var(--pa-rose-pale);
  }
}

.pa-thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  /* Blanc : les images PrestaShop sont complétées de blanc au format du type d'image */
  background: #fff;
}

.pa-flavor-n {
  flex: 1;
  font-size: 18px;
  font-weight: 700;
}

.pa-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 17px;
  color: var(--pa-texte-2);
}

/* Étape 3 : quantité */

.pa-detail-img img {
  display: block;
  width: 100%;
  max-height: 34vh;
  object-fit: contain;
  border-radius: 14px;
  /* Blanc, pas de couleur : les marges blanches ajoutées par PrestaShop se fondent */
  background: #fff;
}

.pa-detail-info {
  margin-top: 14px;
}

/* --- Dos du pot : la photo se retourne sur l'étiquette --- */

.pa-flip {
  perspective: 1400px;
}

.pa-flip-in {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.45s ease;
}

.pa-flip.is-flipped .pa-flip-in {
  transform: rotateY(180deg);
}

.pa-face {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Bascule à mi-rotation : la face de dos n'est ni visible ni focalisable */
  transition: visibility 0s linear 0.3s;
}

.pa-face-front {
  position: relative;
}

.pa-face-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--pa-rose-pale);
  transform: rotateY(180deg);
  visibility: hidden;
}

.pa-flip.is-flipped .pa-face-front {
  visibility: hidden;
}

.pa-flip.is-flipped .pa-face-back {
  visibility: visible;
}

/* Une fois par page, le pot pivote un instant : il a un dos */
@keyframes pa-hint {
  0%, 100% { transform: rotateY(0); }
  30% { transform: rotateY(-18deg); }
  62% { transform: rotateY(8deg); }
  84% { transform: rotateY(-2deg); }
}

.pa-flip-in.pa-hint {
  animation: pa-hint 0.95s ease-in-out 1;
}

.pa-ic {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pastille posée sur la photo, en bas à gauche, sur le blanc qui l'entoure */
.pa-label-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--pa-rose) !important;
  font-size: 15px !important;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(43, 43, 43, 0.18);
  cursor: pointer;
}

@media (hover: hover) {
  .pa-label-btn:hover {
    background: var(--pa-rose-pale);
  }
}

/* Bandeau à pois : le motif des pots, au dos */
.pa-label-band {
  flex: none;
  height: 28px;
  background:
    radial-gradient(circle, #fff 0 4px, transparent 4.5px) 0 0 / 22px 22px,
    radial-gradient(circle, #fff 0 4px, transparent 4.5px) 11px 11px / 22px 22px,
    var(--pa-rose);
}

.pa-label {
  flex: 1;
  padding: 14px 16px 8px;
  text-align: left;
}

.pa-label-t {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--pa-texte);
  text-transform: none;
}

.pa-label-t:focus {
  outline: none;
}

.pa-label-s {
  margin: 2px 0 0;
  font-size: 14px;
  font-style: italic;
  color: var(--pa-texte-2);
}

/* Les allergènes d'abord, et en bouton : un lien nommé « ICI » ne dit pas où il mène */
.pa-allerg {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 12px 0 4px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--pa-rose-pale);
  color: var(--pa-rose-fonce) !important;
  text-decoration: none !important;
}

.pa-allerg-t {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.pa-allerg-t b {
  font-size: 16px;
}

.pa-allerg-t small {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pa-texte-2);
}

.pa-ic-ext {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .pa-allerg:hover {
    background: #F9D2E8;
  }
}

.pa-rows {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.pa-row {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--pa-gris);
  font-size: 14.5px;
  line-height: 1.4;
}

.pa-row:first-child {
  border-top: 0;
}

.pa-row .pa-ic {
  margin-top: 1px;
  color: var(--pa-rose);
}

.pa-row-allergenes {
  font-weight: 700;
}

.pa-label-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 2px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--pa-rose-fonce) !important;
  font-size: 15px !important;
  font-weight: 700;
  cursor: pointer;
}

/* Mouvement réduit : pas de rotation, les deux faces s'échangent sur place */
@media (prefers-reduced-motion: reduce) {
  .pa-flip-in,
  .pa-face {
    transition: none;
  }

  .pa-flip.is-flipped .pa-flip-in,
  .pa-face-back {
    transform: none;
  }

  .pa-flip-in.pa-hint {
    animation: none;
  }
}

/* Étape 2 : la liste des allergènes, avant de choisir son parfum */
.pa-allerg-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 2px;
  font-size: 14.5px;
  color: var(--pa-texte-2) !important;
  text-decoration: none !important;
}

.pa-allerg-hint .pa-ic {
  width: 18px;
  height: 18px;
  color: var(--pa-rose);
}

.pa-allerg-hint u {
  color: var(--pa-rose-fonce);
}

.pa-name {
  margin-bottom: 4px;
}

.pa-sub {
  margin: 0;
  font-size: 16px;
  color: var(--pa-texte-2);
}

.pa-unit {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--pa-rose);
}

.pa-q2 {
  margin: 18px 0 0;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
}

.pa-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 12px 0 8px;
}

.pa-step-b {
  width: 60px;
  height: 60px;
  border: 3px solid var(--pa-rose);
  border-radius: 50%;
  background: #fff;
  color: var(--pa-rose) !important;
  font-size: 32px !important;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pa-step-b:disabled {
  border-color: var(--pa-gris);
  color: var(--pa-gris-2) !important;
  cursor: default;
}

.pa-qty {
  width: 84px;
  height: 60px;
  border: 2px solid var(--pa-gris-2);
  border-radius: 12px;
  text-align: center;
  font-size: 30px !important;
  font-weight: 800;
  -moz-appearance: textfield;
}

.pa-qty::-webkit-outer-spin-button,
.pa-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pa-total {
  margin: 4px 0 0;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.pa-stock {
  margin: 6px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--pa-alerte);
}

.pa-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDECEC;
  color: #9B1C1C;
  font-size: 15px;
  font-weight: 600;
}

/* Confirmation */

.pa-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 10px auto 12px;
  border-radius: 50%;
  /* Rose pâle et coche rose : couleurs de la charte. Le rose plein reste réservé
     au bouton « Passer commande », juste en dessous, pour qu'il garde l'attention */
  background: var(--pa-rose-pale);
  color: var(--pa-rose);
  font-size: 38px;
  font-weight: 800;
}

.pa-done {
  text-align: center;
}

.pa-done .pa-q {
  margin-bottom: 6px;
}

.pa-done-s {
  margin: 0;
  font-size: 17px;
  color: var(--pa-texte-2);
}

.pa-recap {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid var(--pa-gris-2);
  border-radius: 14px;
  text-align: left;
  font-size: 15px;
}

.pa-recap-t {
  margin: 0 0 6px;
  font-weight: 800;
}

.pa-recap ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pa-recap li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-height: 52px;
  padding: 4px 0;
  border-bottom: 1px solid var(--pa-gris);
  transition: opacity 0.15s;
}

.pa-line-t {
  flex: 1;
  min-width: 0;
}

/* Requête en cours : la ligne s'estompe, plus aucun bouton du récapitulatif ne répond */
.pa-recap li.is-busy {
  opacity: 0.45;
}

.pa-recap.is-busy .pa-undo {
  pointer-events: none;
}

/* Ligne retirée : elle garde sa place, barrée, avec « Annuler » */
.pa-line-removed .pa-line-t {
  color: var(--pa-texte-2);
}

.pa-line-removed s {
  text-decoration-thickness: 1px;
}

.pa-removed-m {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.pa-undo {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--pa-rose);
  border-radius: 22px;
  background: #fff;
  color: var(--pa-rose) !important;
  font-size: 15px !important;
  font-weight: 800;
  cursor: pointer;
}

.pa-line-err {
  flex-basis: 100%;
  padding-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #9B1C1C;
}

.pa-recap .pa-error {
  margin: 10px 0 0;
}

.pa-q-recap {
  margin-top: 6px;
}

.pa-recap li small {
  display: block;
  color: var(--pa-texte-2);
}

.pa-recap-p {
  flex: none;
  font-weight: 700;
}

.pa-recap-total {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 0;
  font-weight: 800;
}

/* --- Pied --- */

.pa-foot {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--pa-gris);
  background: #fff;
}

.pa-foot-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.pa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
}

.pa-btn-p {
  flex: 1;
  border: 0;
  background: var(--pa-rose);
  color: #fff !important;
}

.pa-btn-p:focus-visible {
  background: var(--pa-rose-fonce);
}

@media (hover: hover) {
  .pa-btn-p:hover {
    background: var(--pa-rose-fonce);
  }
}

.pa-btn-p:disabled {
  opacity: 0.6;
  cursor: wait;
}

.pa-btn-s {
  border: 2px solid var(--pa-gris-2);
  background: #fff;
}

.pa-btn-o {
  border: 2px solid var(--pa-rose);
  background: #fff;
  color: var(--pa-rose) !important;
}

.pa-btn-wide {
  flex: 1;
}

.pa-btn-back {
  flex: none;
  gap: 0.4em;
  min-width: 56px;
}

.pa-btn-back-t {
  display: none;
}

.pa-link {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--pa-rose-fonce);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.pa-overlay :focus-visible {
  outline: 3px solid var(--pa-rose-fonce);
  outline-offset: 2px;
}

/* --- Ordinateur --- */

@media (min-width: 992px) {
  .pa-head,
  .pa-body,
  .pa-foot {
    padding-left: max(40px, calc((100vw - 1140px) / 2));
    padding-right: max(40px, calc((100vw - 1140px) / 2));
  }

  .pa-title {
    font-size: 22px;
  }

  .pa-logo {
    height: 44px;
    max-width: 190px;
  }

  /* Logo puis titre, séparés d'un filet */
  .pa-has-logo .pa-title {
    padding-left: 14px;
    border-left: 1px solid var(--pa-gris-2);
  }

  .pa-steps-m,
  .pa-progress {
    display: none;
  }

  .pa-steps-d {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    color: var(--pa-texte-2);
  }

  .pa-steps-d li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pa-steps-d .pa-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid var(--pa-gris-2);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
  }

  .pa-steps-d .pa-st-done {
    color: var(--pa-texte);
  }

  .pa-steps-d .pa-st-done .pa-n {
    border-color: var(--pa-rose);
    background: var(--pa-rose);
    color: #fff;
  }

  .pa-steps-d .pa-st-cur {
    color: var(--pa-rose);
    font-weight: 800;
  }

  .pa-steps-d .pa-st-cur .pa-n {
    border-color: var(--pa-rose);
  }

  .pa-steps-d .pa-cart-d {
    margin-left: auto;
  }

  .pa-chips {
    display: none;
  }

  .pa-q {
    font-size: 28px;
  }

  .pa-sizes {
    flex-direction: row;
  }

  /* Cartes photo de largeur bornée : étirées sur 1140 px, chaque photo
     dépasserait la hauteur de l'écran */
  .pa-sizes.pa-sizes-photo {
    grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
    gap: 20px;
  }

  .pa-size.pa-size-photo {
    min-height: 0;
    padding: 0;
  }

  .pa-size-photo .pa-size-txt {
    padding: 14px 16px 16px;
  }

  .pa-size-photo .pa-size-t {
    font-size: 20px;
  }

  .pa-size {
    flex: 1;
    min-height: 150px;
    padding: 24px;
  }

  .pa-hint {
    text-align: left;
  }

  .pa-search {
    max-width: 420px;
    margin-bottom: 18px;
  }

  .pa-flavors {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  .pa-letter {
    display: none;
  }

  .pa-flavor {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 0;
    border: 2px solid var(--pa-gris);
    border-radius: 14px;
    overflow: hidden;
  }

  .pa-flavor:focus-visible {
    border-color: var(--pa-rose);
    background: #fff;
  }

  @media (hover: hover) {
    .pa-flavor:hover {
      border-color: var(--pa-rose);
      background: #fff;
    }
  }

  .pa-flavor .pa-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 0;
  }

  .pa-flavor-n {
    padding: 8px 10px 10px;
    font-size: 16px;
  }

  .pa-flavor .pa-go {
    display: none;
  }

  .pa-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .pa-detail-img img {
    max-height: 62vh;
  }

  /* L'étiquette a la hauteur de la photo, plus haute que son texte : contenu centré */
  .pa-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 28px 16px;
  }

  .pa-label-t {
    font-size: 22px;
  }

  .pa-row {
    font-size: 15px;
  }

  .pa-label-back {
    align-self: flex-start;
  }

  .pa-detail-info {
    margin-top: 8px;
  }

  .pa-q2,
  .pa-total,
  .pa-stock {
    text-align: left;
  }

  .pa-stepper {
    justify-content: flex-start;
  }

  .pa-done,
  .pa-recap {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }

  .pa-foot {
    justify-content: space-between;
  }

  .pa-foot .pa-btn {
    flex: none;
    min-width: 240px;
  }

  .pa-btn-back-t {
    display: inline;
  }

  .pa-foot-stack {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pa-foot-stack .pa-link {
    flex-basis: 100%;
  }
}

/* ======================================================================
 * Récapitulatif : quantité de chaque ligne (− / +)
 * Au minimum, « − » devient la corbeille : un seul contrôle par ligne.
 * ==================================================================== */

.pa-recap li.pa-line-q-row {
  padding: 8px 0;
}

.pa-line-q {
  display: flex;
  flex-basis: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.pa-lq-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--pa-rose);
  border-radius: 50%;
  background: #fff;
  color: var(--pa-rose) !important;
  font-size: 24px !important;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pa-lq-b svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Corbeille : bordure grise, pour ne pas la confondre avec « − » d'un coup d'œil */
.pa-lq-b.pa-lq-del {
  border-color: var(--pa-gris-2);
  color: var(--pa-texte-2) !important;
}

/* Plus de stock pour ce parfum (pendant une requête, la ligne s'estompe seule) */
.pa-lq-b[data-full] {
  border-color: var(--pa-gris);
  color: var(--pa-gris-2) !important;
  cursor: default;
}

.pa-lq-b:focus-visible {
  background: var(--pa-rose-pale);
}

@media (hover: hover) {
  .pa-lq-b:not([data-full]):hover {
    background: var(--pa-rose-pale);
  }

  .pa-lq-b.pa-lq-del:hover {
    color: var(--pa-rose-fonce) !important;
  }
}

.pa-lq-n {
  min-width: 34px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.pa-recap.is-busy .pa-lq-b {
  pointer-events: none;
}

@media (min-width: 992px) {
  /* Ordinateur : nom, quantité et prix sur une seule ligne */
  .pa-line-q {
    flex-basis: auto;
    order: 1;
  }

  .pa-line-q-row .pa-recap-p {
    order: 2;
    min-width: 84px;
    text-align: right;
  }
}

/* ======================================================================
 * Les deux portes : la page de la catégorie Glaces & Sorbets
 * Téléphone d'abord : les deux portes tiennent sur un écran (hauteur posée
 * par le script, --pa-door-h). À partir de 992 px, côte à côte.
 * ==================================================================== */

.pa-doors {
  margin: 4px 0 28px;
  color: var(--pa-texte);
}

.pa-doors *,
.pa-doors *::before,
.pa-doors *::after {
  box-sizing: border-box;
}

.pa-doors-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pa-door {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--pa-door-h, 290px);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: var(--pa-texte) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 14px rgba(43, 43, 43, 0.1);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.pa-door:active {
  transform: scale(0.985);
}

.pa-door:focus-visible {
  outline: 3px solid var(--pa-rose-fonce);
  outline-offset: 3px;
}

.pa-door-vis {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--pa-rose-pale);
}

.pa-door-vis img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.pa-door-info {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
}

.pa-door-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.pa-door-count {
  font-size: 17px;
  line-height: 1.2;
}

.pa-door-count b {
  font-weight: 800;
}

/* « aujourd'hui » : la place manque sur téléphone, la ligne garde son sens */
.pa-door-today,
.pa-door-price,
.pa-door-strip {
  display: none;
}

.pa-door-price-s {
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-rose-fonce);
  white-space: nowrap;
}

.pa-door-stack {
  display: flex;
  flex: none;
  align-items: center;
}

.pa-door-stack img,
.pa-door-stack span {
  width: 36px;
  height: 36px;
  margin-left: -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pa-door-stack img {
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
}

.pa-door-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pa-rose-pale);
  color: var(--pa-rose-fonce);
  font-size: 12px;
  font-weight: 800;
}

/* Téléphone : le bouton est une pastille ronde, son texte reste lu */
.pa-door-cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pa-rose);
  color: #fff;
}

.pa-door-cta .pa-ic {
  width: 22px;
  height: 22px;
}

.pa-door-cta-t {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Plus aucun parfum aujourd'hui : la porte mène à la fiche, sans éclat */
.pa-door-out .pa-door-vis img {
  filter: grayscale(0.6);
  opacity: 0.75;
}

.pa-door-out .pa-door-cta {
  background: var(--pa-gris);
  color: var(--pa-texte);
}

.pa-doors-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--pa-texte-2);
}

.pa-doors-more li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pa-doors-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--pa-rose-fonce) !important;
  text-decoration: underline;
}

.pa-doors-more .pa-ic {
  width: 17px;
  height: 17px;
  color: var(--pa-rose);
}

@media (min-width: 992px) {
  /* Bornées et centrées : étirées sur toute la largeur, les photos écrasaient la page */
  .pa-doors {
    max-width: 940px;
    margin: 32px auto 56px;
  }

  .pa-doors-row {
    flex-direction: row;
    align-items: stretch;
    gap: 22px;
  }

  .pa-door {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 1px 10px rgba(43, 43, 43, 0.08);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
  }

  .pa-door:active {
    transform: none;
  }

  /*
   * Photo entière, jamais rognée : 80 % de la largeur d'une carte (367 px sur
   * 459), et la bande prend la hauteur de la photo la plus haute des deux
   * (--pa-vis-ratio, hauteur / largeur, posé par le module). Bords fondus dans
   * le blanc, pour qu'une bannière pleine (fond rose) ne s'arrête pas net.
   */
  .pa-door-vis {
    position: relative;
    flex: none;
    height: calc(367px * var(--pa-vis-ratio, 0.78));
    background: #fff;
  }

  /* Largeur fixe, centrée. Les quatre bords sont fondus : le fond d'une photo,
     rarement d'un blanc pur, ne laisse pas de liseré sur le blanc de la carte. */
  .pa-door-vis img {
    position: absolute;
    top: 0;
    left: 50%;
    width: 367px;
    height: 100%;
    margin-left: -183.5px;
    object-fit: contain;
    object-position: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
    mask-composite: intersect;
  }

  .pa-door-info {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 24px 24px;
  }

  .pa-door-count {
    font-size: 19px;
    white-space: nowrap;
  }

  .pa-door-count b {
    color: var(--pa-rose);
  }

  .pa-door-today {
    display: inline;
    font-weight: 800;
  }

  .pa-door-price {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    color: var(--pa-texte-2);
  }

  .pa-door-price-s,
  .pa-door-stack {
    display: none;
  }

  .pa-door-strip {
    display: block;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }

  .pa-door-strip-in {
    display: flex;
    gap: 10px;
    width: max-content;
    transition: transform 0.6s ease;
  }

  .pa-door-cup {
    flex: none;
    width: 74px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--pa-texte);
  }

  .pa-door-cup img,
  .pa-door-cup-x {
    display: block;
    width: 74px;
    height: 84px;
    max-width: none;
    margin-bottom: 5px;
    border-radius: 12px;
    object-fit: cover;
  }

  /* Parfum sans photo : le pot dessiné de l'assistant */
  .pa-door-cup-x {
    position: relative;
    background: var(--pa-rose-pale);
  }

  .pa-door-cup-x::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 15px;
    width: 36px;
    height: 43px;
    margin-left: -18px;
    border: 2px solid var(--pa-rose);
    border-radius: 5px 5px 12px 12px;
    background: repeating-linear-gradient(45deg, #F3C5DF, #F3C5DF 4px, #fff 4px, #fff 9px);
  }

  .pa-door-cta {
    justify-content: space-between;
    width: auto;
    height: 46px;
    margin-top: auto;
    padding: 0 18px;
    border: 2px solid var(--pa-rose);
    border-radius: 14px;
    background: #fff;
    color: var(--pa-rose);
    font-size: 16px;
    font-weight: 800;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .pa-door-cta .pa-ic {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
  }

  .pa-door-cta-t {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  .pa-door-out .pa-door-cta {
    border-color: var(--pa-gris-2);
    background: #fff;
    color: var(--pa-texte-2);
  }

  /* La porte survolée se soulève, sans changer de taille : la voisine ne bouge
     pas d'un pixel. La photo ne bouge pas non plus : agrandie, elle perdrait sa
     netteté. */
  .pa-door:not(.pa-door-out):focus-visible .pa-door-cta,
  .pa-door.is-opening .pa-door-cta {
    background: var(--pa-rose);
    color: #fff;
  }

  @media (hover: hover) {
    .pa-door:hover {
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(230, 0, 126, 0.18);
    }

    .pa-door:not(.pa-door-out):hover .pa-door-cta {
      background: var(--pa-rose);
      color: #fff;
    }

    .pa-door:not(.pa-door-out):hover .pa-door-cta .pa-ic {
      transform: translateX(4px);
    }

    /* Le comptoir défile vers les parfums suivants (décalage posé par le script) */
    .pa-door:hover .pa-door-strip-in {
      transform: translateX(calc(-1 * var(--pa-strip-shift, 0px)));
      transition-duration: var(--pa-strip-dur, 4s);
      transition-timing-function: linear;
    }
  }

  .pa-doors-more {
    gap: 8px 40px;
    margin-top: 32px;
    font-size: 14px;
  }
}

/*
 * La porte s'ouvre : l'assistant se découvre en cercle depuis le point touché
 * (--pa-rx, --pa-ry, rayon --pa-rr posés par le script), sous un voile rose
 * pâle qui se dissipe, puis le contenu de la première étape monte en place.
 * Rien n'est agrandi : aucune image ne peut pixelliser.
 */
.pa-overlay.pa-reveal {
  -webkit-clip-path: circle(0px at var(--pa-rx, 50%) var(--pa-ry, 50%));
  clip-path: circle(0px at var(--pa-rx, 50%) var(--pa-ry, 50%));
  transition: clip-path 0.6s cubic-bezier(0.7, 0, 0.25, 1), -webkit-clip-path 0.6s cubic-bezier(0.7, 0, 0.25, 1);
}

.pa-overlay.pa-reveal.pa-reveal-on {
  -webkit-clip-path: circle(var(--pa-rr, 150vmax) at var(--pa-rx, 50%) var(--pa-ry, 50%));
  clip-path: circle(var(--pa-rr, 150vmax) at var(--pa-rx, 50%) var(--pa-ry, 50%));
}

.pa-overlay.pa-reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at var(--pa-rx, 50%) var(--pa-ry, 50%), #F9D2E8 0, var(--pa-rose-pale) 45%, #fff 100%);
  pointer-events: none;
  transition: opacity 0.4s ease 0.3s;
}

.pa-overlay.pa-reveal.pa-reveal-on::after {
  opacity: 0;
}

/* Première étape : titre, cartes puis indication montent l'un après l'autre */
@keyframes pa-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.pa-body.pa-enter > :not(.pa-sizes),
.pa-body.pa-enter .pa-sizes > * {
  animation: pa-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.36s;
}

.pa-body.pa-enter .pa-sizes > :nth-child(1) {
  animation-delay: 0.44s;
}

.pa-body.pa-enter .pa-sizes > :nth-child(2) {
  animation-delay: 0.52s;
}

.pa-body.pa-enter .pa-sizes > :nth-child(n + 3),
.pa-body.pa-enter > .pa-hint {
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .pa-door,
  .pa-door-strip-in,
  .pa-door-cta,
  .pa-door-cta .pa-ic {
    transition: none !important;
  }

  .pa-door:hover,
  .pa-door:hover .pa-door-strip-in,
  .pa-door:hover .pa-door-cta .pa-ic {
    transform: none !important;
  }

  .pa-body.pa-enter > *,
  .pa-body.pa-enter .pa-sizes > * {
    animation: none !important;
  }
}
