.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 2000;
}
.modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.modal-product {
  background: #fff;
  color: #222;
  width: 90%;
  max-width: 480px;
  max-height: 90%;
  border-radius: 12px;
  overflow-y: auto;
  transform: translateY(50px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  position: relative;
  padding-bottom: 2em;
}
.modal-product.show {
  transform: translateY(0);
  opacity: 1;
}
.modal-close {
  position: absolute;
  top: .4em;
  right: .4em;
  background: none;
  border: none;
  font-size: 1.6em;
  color: #444;
  cursor: pointer;
}
.modal-img {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}
.modal-title {
  font-family: 'LeckerliOne', cursive;
  font-size: 1.4em;
  margin: .6em;
}
.modal-price {
  color: var(--main-texture, #b71c1c);
  font-weight: bold;
  margin: 0 .8em .5em;
}
.modal-ingr {
  display: flex;
  flex-wrap: wrap;
  gap: .3em;
  margin: .8em;
}
.ingr-item {
  background: #eee;
  border-radius: .4em;
  padding: .3em .6em;
  font-size: .85em;
}
.modal-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: .6em;
  text-align: center;
}
.btn-primary {
  background: var(--main-texture, #b71c1c);
  color: #fff;
  border: none;
  border-radius: .5em;
  padding: .6em 1.2em;
  font-size: 1em;
  cursor: pointer;
}
.modal-header {
  display: flex;
  justify-content: center;
  align-items: baseline; /* <- aligne le texte du prix avec la ligne de base du titre */
  margin: .5em 0;
  
}
.modal-title {
  margin: 0;
  font-size: 1.2em;
  line-height: 1.25em;
}
.modal-price {
  font-weight: bold;
  font-size: 1.1em;
}
.modal-product {
  background: #fff;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,0,0,0.1) 0,
    rgba(0,0,0,0.05) 5px,
    transparent 1px,
    transparent 8px
  );
  border-radius: 1em;
}
.modal-product {
  transition: opacity 0.25s ease;
}
.modal-product.fade-out {
  opacity: 0;
  pointer-events: none;
}
.modal-product.fade-in {
  opacity: 1;
}
.modal-img {
  transition: background-image 0.4s ease, opacity 0.4s ease;
}
.modal-product.fade-out .modal-img {
  opacity: 0;
}
.ingr-grid .icon-button.added {
  border: 2px solid var(--accent-color, #f90);
  box-shadow: 0 0 4px #f90a;
}
.ingr-grid .icon-button.disabled {
  opacity: 0.5;
  hfilter: grayscale(0);
}
.icon-button.disabled::after {
  filter: none;
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 9px;
  background: rgba(255,0,0,0.6);
  transform: translateY(-50%) rotate(-15deg);
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.icon-button-add > .icon-btn-label {
  
  font-size: 1.25em;
  color: #900;
}
.icon-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  border-radius: .5em;
  padding: .3em;
  width: 3.4em;
  min-height: 3.4em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform .2s ease, box-shadow .3s ease, filter .3s ease, opacity .3s ease;
  cursor: pointer;
}

.icon-button.added {
  border: 2px solid rgb(236,144,0);
  box-shadow: 0 0px 9px rgb(236,144,0);
}

.icon-button.disabled {
  filter: grayscale(100%) opacity(0.5);
  background: rgba(200,200,200,0.5);
  cursor: not-allowed;
  position: relative;
}
