/* Intro */
.catalogue-intro-toggle { display: none; }

.catalogue-intro {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 48px;
  font-size: 14px;
  line-height: 1.65;
}
.catalogue-intro p { margin: 0 0 8px; }
.catalogue-intro .accent { color: var(--orange); font-weight: 600; }
.catalogue-intro .bold { font-weight: 700; }
.catalogue-intro .closing { font-weight: 700; margin-top: 14px; }

/* Filtre magasin */
.store-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.store-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.store-filter-label i { color: var(--orange); }
.store-filter-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.store-filter-btn {
  padding: 7px 18px;
  border-radius: 99px;
  border: 1.5px solid #ddd;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.store-filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.store-filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
@media (max-width: 580px) {
  .store-filter { gap: 10px; padding: 12px 14px; }
  .store-filter-label { font-size: 11px; }
  .store-filter-btn { font-size: 12px; padding: 6px 13px; }
}

/* Section */
.catalogue-section { margin-bottom: 56px; }

.section-heading {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-heading::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card */
.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.13);
}

/* Image cards */
.card-img-wrap { overflow: hidden; }
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.card:hover .card-img { transform: scale(1.06); }

/* No-image visual block */
.card-visual {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.card-visual::after {
  content: "";
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.card-visual-icon {
  font-size: 42px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.card:hover .card-visual-icon { transform: scale(1.12); }
.card-visual-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Gradient presets for no-image cards */
.cv-amber { background: linear-gradient(135deg, #e07b3a 0%, #c05a1a 100%); }
.cv-orange { background: linear-gradient(135deg, #e89b2a 0%, #c97010 100%); }
.cv-gold  { background: linear-gradient(135deg, #f0c040 0%, #d89010 100%); }
.cv-teal  { background: linear-gradient(135deg, #6a9aaa 0%, #3a6a7a 100%); }
.cv-earth { background: linear-gradient(135deg, #9a8060 0%, #7a6040 100%); }
.cv-wine  { background: linear-gradient(135deg, #8a3030 0%, #5a1010 100%); }
.cv-spice { background: linear-gradient(135deg, #d04020 0%, #901000 100%); }

/* Card body */
.card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.25;
}
.card-portions {
  font-size: 12.5px;
  color: #888;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
}
.card-portions i { color: var(--orange); font-size: 10px; }

/* Responsive */
@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .catalogue-intro {
    font-size: 12.5px;
    margin-bottom: 20px;
    line-height: 1.55;
  }
  .catalogue-intro-extra { display: none; }
  .catalogue-intro-extra.open { display: block; }
  .catalogue-intro-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
  }
  .catalogue-intro-toggle i { font-size: 10px; transition: transform 0.2s; }
  .catalogue-intro-toggle.open i { transform: rotate(180deg); }
}
@media (max-width: 580px) {
  .avail-badge { font-size: 9px; padding: 3px 7px; gap: 3px; }
  .avail-badge i { font-size: 8px; }
  .product-grid { gap: 12px; }
  .section-heading { font-size: 21px; margin-bottom: 18px; }
  .card-name { font-size: 17px; }
  .card-visual-icon { font-size: 34px; }
  .card-visual-label { font-size: 11px; }
  .card-body { padding: 12px 14px 16px; }
}
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
  .store-filter { padding: 10px 12px; gap: 8px; }
  .store-filter-label { font-size: 10px; }
  .store-filter-btn { font-size: 11px; padding: 5px 11px; }
  .pmodal-content { padding: 18px 14px 18px; }
  .pmodal-name { font-size: 19px; }
  .pmodal-actions { flex-direction: column; }
  .pmodal-cta--ghost { width: 100%; justify-content: center; }
}

/* ── MODAL ──────────────────────────────────────────────────── */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.pmodal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.pmodal {
  background: #fff;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.pmodal-overlay.open .pmodal {
  transform: translateY(0) scale(1);
}

.pmodal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}
.pmodal-close:hover { background: rgba(0, 0, 0, 0.32); }

.pmodal-img-col { overflow: hidden; }
.pmodal-img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pmodal-img-col .pmodal-visual {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.pmodal-visual-icon {
  font-size: 52px;
  color: rgba(255, 255, 255, 0.88);
}
.pmodal-visual-label {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pmodal-content {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmodal-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
}
.pmodal-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.pmodal-portions {
  font-size: 13px;
  color: #888;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pmodal-portions i { color: var(--orange); font-size: 11px; }
.pmodal-sep {
  height: 1px;
  background: #eee;
  margin: 2px 0;
}
.pmodal-desc {
  font-size: 14.5px;
  color: #444;
  line-height: 1.65;
  flex: 1;
}
.pmodal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: #1d1d1d;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  align-self: flex-start;
  margin-top: 6px;
}
.pmodal-cta:hover {
  background: #f4ae44;
  transform: translateY(-1px);
}
.pmodal-cta i { font-size: 12px; }
/* Deux boutons d'action dans le modal */
.pmodal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.pmodal-actions .pmodal-cta { margin-top: 0; align-self: auto; }
.pmodal-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: #1d1d1d;
  font-family: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 22px; border: none; cursor: pointer;
  min-width: min(196px, 100%);
  transition: background 0.15s, transform 0.15s;
}
.pmodal-add-btn:hover:not(:disabled) { background: #f4ae44; transform: translateY(-1px); }
.pmodal-add-btn:disabled { background: #3d9e4a; color: #fff; cursor: default; transform: none; }
.pmodal-add-btn i { font-size: 12px; }
.pmodal-cta--ghost {
  background: transparent !important;
  border: 1px solid #ccc;
  color: #666 !important;
  padding: 12px 16px;
  font-size: 11.5px;
  letter-spacing: 0.5px;
}
.pmodal-cta--ghost:hover { background: #f8f8f8 !important; border-color: var(--orange); color: var(--orange) !important; transform: none; }

@media (max-width: 640px) {
  .pmodal {
    grid-template-columns: 1fr;
    max-height: 95vh;
  }
  .pmodal-img-col { max-height: 220px; }
  .pmodal-content { padding: 24px 20px 24px; }
  .pmodal-name { font-size: 22px; }
}

/* Alerte planning dans la modale produit */
.pmodal-planning-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f4c842;
  padding: 10px 14px;
  font-size: 13px;
  color: #5a4200;
  line-height: 1.55;
  margin-bottom: 14px;
}
.pmodal-planning-alert i { color: #f4c842; flex-shrink: 0; margin-top: 2px; }

/* ── CARTE : position pour badge absolu ─────────────────────── */
.card { position: relative; }

/* ── BADGE DISPONIBILITÉ SUR CARTE ─────────────────────────── */
.avail-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.avail-badge i { font-size: 9px; }
.avail-badge--dispo   { background: #2e7d32; color: #fff; }
.avail-badge--indispo { background: rgba(40,40,40,0.75); color: #fff; }

/* ── PLANNING SEMAINE DANS LA MODALE ───────────────────────── */
.pmodal-week-schedule {
  background: #f0f7f0;
  border: 1px solid #c3e6cb;
  border-left: 4px solid #2e7d32;
  padding: 12px 16px;
}
.pmodal-week-schedule[hidden] { display: none; }
.pmodal-schedule-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pmodal-schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pmodal-schedule-list li {
  font-size: 12.5px;
  color: #2e4a22;
  padding-left: 14px;
  position: relative;
}
.pmodal-schedule-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  color: #2e7d32;
  font-weight: 700;
}
