/*
 * produits.css — page /produits/ (recherche dans les listes de produits autorisés).
 * Complète pages.css (même charte : papier, vert profond, Geist / Newsreader).
 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.prd { --L: #3e75b8; --EL: #5c615a; --N: #a3407f; --B: #14553f; --SG: #b8322f; --SL: #b8641c; --V: #4f8a3a; --rouge: #b3282d; }

/* Barre de recherche + onglets (collée sous l'en-tête) */
.prd__bar {
  position: sticky; top: 63px; z-index: 4;
  background: var(--fond); padding: 6px 0 0; margin: 0 -4px 14px;
}
.prd__search { position: relative; display: block; margin: 0 4px; }
.prd__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--gris-clair); pointer-events: none; }
.prd__search input {
  width: 100%; height: 50px; padding: 0 46px 0 44px;
  font: inherit; font-size: 16px; color: var(--encre);
  background: var(--carte); border: 1px solid var(--trait-fort); border-radius: 12px;
  outline: none; -webkit-appearance: none; appearance: none;
}
.prd__search input:focus { border-color: var(--vert); box-shadow: 0 0 0 3px rgba(20, 85, 63, .12); }
.prd__search input::-webkit-search-cancel-button { display: none; }
.prd__search button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: none;
  font-size: 22px; color: var(--gris); cursor: pointer;
}
.prd__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; border-bottom: 1px solid var(--trait); padding: 0 4px; }
.prd__tabs::-webkit-scrollbar { display: none; }
.prd__tabs button {
  flex: none; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--gris);
  padding: 10px 10px 11px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.prd__tabs button[aria-selected="true"] { color: var(--vert-fonce); border-bottom-color: var(--vert); font-weight: 600; }

.prd__hint { color: var(--gris); font-size: .92rem; margin: 4px 2px 14px; }
.prd__count { color: var(--gris-clair); font-size: .82rem; margin: 0 2px 10px; }
.prd__h { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); margin: 22px 2px 10px; display: flex; align-items: center; gap: 8px; }
.prd__h:first-child { margin-top: 4px; }

.prd__notice { background: var(--creux); border-radius: var(--rayon); padding: 13px 16px; font-size: .92rem; margin: 0 0 14px; }
.prd__notice strong { color: var(--vert-fonce); }
.prd__notice--warn { background: #fbecea; }
.prd__notice--warn strong { color: var(--rouge); }

/* Fiche de la liste du Consistoire */
.prd-card { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 13px 16px; margin: 0 0 10px; }
.prd-card--img { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: start; }
.prd-card__img { width: 78px; aspect-ratio: 1 / 1; border-radius: 8px; background: #fff; border: 1px solid var(--trait); overflow: hidden; display: grid; place-items: center; }
.prd-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
@media (max-width: 420px) { .prd-card--img { grid-template-columns: 62px 1fr; gap: 11px; } .prd-card__img { width: 62px; } }
.prd-card__crumb { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 4px; }
.prd-card__prod { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 600; font-size: 1.05rem; color: var(--vert-fonce); margin-bottom: 4px; }
.prd-card__brand { font-weight: 700; font-size: 1rem; letter-spacing: .01em; margin-bottom: 2px; }
.prd-card__nobrand { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--gris-clair); margin-bottom: 2px; }
.prd-card__body p { margin: 3px 0; color: #2f322e; }
.prd-card__more { margin-top: 8px; border: 1px solid var(--trait-fort); background: var(--carte); color: var(--encre); font: inherit; font-size: .82rem; font-weight: 500; padding: 6px 11px; border-radius: 8px; cursor: pointer; }
.prd-card__more:hover { border-color: var(--gris-clair); }
.prd-rem { color: var(--rouge); font-style: italic; }
.prd-tag { display: inline-block; font-size: .68rem; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 5px; margin-right: 4px; vertical-align: 1px; border: 1.5px solid currentColor; font-style: normal; }
.prd-tag.L { color: var(--L); } .prd-tag.EL { color: var(--EL); } .prd-tag.N { color: var(--N); } .prd-tag.B { color: var(--B); }
.prd-tag.SG { color: var(--SG); } .prd-tag.SL { color: var(--SL); } .prd-tag.V { color: var(--V); }
.prd mark { background: #fbeea2; color: inherit; border-radius: 3px; padding: 0 1px; }
.prd-removed .prd-card { border-style: dashed; border-color: #e3b5b2; }
.prd-removed .prd-card__body p { text-decoration: line-through; text-decoration-color: var(--rouge); }

.prd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--gris); margin: 2px 2px 16px; }

/* Arborescence (onglet Consistoire) */
.prd details { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); margin: 0 0 8px; overflow: hidden; }
.prd summary { list-style: none; cursor: pointer; padding: 13px 16px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.prd summary::-webkit-details-marker { display: none; }
.prd summary::after { content: "›"; color: var(--gris-clair); transition: transform .15s; }
.prd details[open] > summary::after { transform: rotate(90deg); }
.prd summary .n { margin-left: auto; color: var(--gris-clair); font-weight: 400; font-size: .85rem; }
.prd details .inner { padding: 0 10px 6px; }
.prd details details { background: var(--fond); border-radius: 10px; }
.prd details details summary { font-weight: 500; font-size: .95rem; padding: 11px 12px; }
.prd__prodh { font-family: "Newsreader", Georgia, serif; font-style: italic; font-weight: 600; color: var(--vert-fonce); margin: 14px 4px 8px; }

/* Liste Prozis : vignettes produit */
.prd-badge { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a5a00; background: #fbefd5; border-radius: 5px; padding: 3px 6px; }
.prd-pz { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
.prd-pz__item { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; display: flex; flex-direction: column; }
.prd-pz__img { aspect-ratio: 1 / 1; background: var(--creux); display: grid; place-items: center; overflow: hidden; position: relative; }
.prd-pz__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prd-pz__img--none { color: var(--gris-clair); }
.prd-pz__img--none svg { width: 34px; height: 34px; opacity: .55; }
.prd-pz__more { position: absolute; right: 6px; bottom: 6px; background: rgba(27, 29, 26, .72); color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.prd-pz__txt { padding: 9px 11px 11px; }
.prd-pz__name { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.prd-pz__note { color: var(--gris); font-size: .8rem; line-height: 1.35; margin-top: 3px; }
.prd-pz__cat { color: var(--gris-clair); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.prd-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; background: var(--vert); color: #fff; border-radius: var(--rayon); padding: 12px 16px; margin: 0 0 16px; font-size: .92rem; }
.prd-promo code { font-family: inherit; font-weight: 700; letter-spacing: .06em; background: rgba(255, 255, 255, .16); padding: 3px 8px; border-radius: 6px; }

/* Poissons */
.prd-fish { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.prd-fish div { background: var(--carte); border: 1px solid var(--trait); border-radius: 10px; padding: 9px 12px; }
.prd-fish small { display: block; color: var(--rouge); font-style: italic; font-size: .78rem; }

/* Règles */
.prd-rules p { margin: 0 0 9px; }
.prd-rules .h { font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--vert-fonce); margin-top: 18px; }
.prd-rules .li { padding-left: 14px; }

.prd__about { margin-top: 28px; font-size: .92rem; color: var(--gris); }
.prd__about strong { color: var(--encre); }

/* Visionneuse photo Prozis */
.prd-zoom { position: fixed; inset: 0; z-index: 50; background: rgba(20, 22, 19, .82); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.prd-zoom img { max-width: min(92vw, 520px); max-height: 80vh; border-radius: 14px; background: #fff; }
.prd-pz__img img { cursor: zoom-in; }

@media (max-width: 640px) {
  .prd__bar { top: 59px; }
  .prd-pz { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .prd__tabs button { padding: 10px 8px 11px; font-size: .86rem; }
}
.prd__h { scroll-margin-top: 170px; }
