/* Papànozzo — compléments propres au thème WordPress : pastille du panier, pages de contenu,
   habillage des pages WooCommerce (panier, commande en blocs ou classique, compte, fiche produit). */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.entete-logo .logo-perso { height: 37px; width: auto; display: block; }

/* bouton Commander : nombre d'articles */
.nav .btn { position: relative; }
.pastille-panier { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--vert); color: #fff; border: 2px solid var(--encre); font: 800 .78rem/20px var(--cap); text-align: center; }
.pastille-panier[hidden] { display: none; }

/* plats sans prix */
.btn-inactif { --fond: var(--creme-fonce); --texte: var(--encre-doux); box-shadow: none; cursor: default; opacity: .8; }
.btn-inactif:hover, .btn-inactif:active { transform: none; box-shadow: none; }
.article-inactif .article-nom b { opacity: .6; }
.qte button:disabled { opacity: .35; cursor: not-allowed; }
.recap .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.recap .btn[aria-busy="true"] { opacity: .7; }
.prix-a-venir { font: 800 .9rem var(--cap); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-doux); }
.plat-pied .prix .woocommerce-Price-amount { font-weight: 800; }
.papa-avis:empty { display: none; }
.contenu-page { margin-top: 1.4rem; max-width: 40em; }

/* pages de contenu */
.page-tete-seule { padding-top: calc(var(--entete) + clamp(30px, 5vw, 70px)); }
.zone-texte, .zone-wc { position: relative; z-index: 2; padding: 10px 0 clamp(60px, 8vw, 120px); }
.texte { max-width: 820px; }
.texte h2, .mentions h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 1.6em 0 .5em; }
.texte h3 { font-size: 1.4rem; margin: 1.4em 0 .4em; }
.texte a, .contenu-page a, .mentions a { color: var(--rouge-fonce); text-underline-offset: 3px; }
.texte img { max-width: 100%; height: auto; border-radius: 20px; }
.resume { padding: 20px 0; border-bottom: 1.5px solid rgba(20,20,20,.12); }
.resume h2 { font-size: 1.8rem; margin: 0 0 .3em; }
.resume h2 a { text-decoration: none; }
.nav-links { display: flex; gap: 10px; margin-top: 30px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid var(--encre); text-decoration: none; font-weight: 800; }
.page-numbers.current { background: var(--encre); color: var(--creme); }
.commentaires { margin-top: 50px; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption, .gallery-caption { font-size: .9rem; color: var(--encre-doux); }
.bypostauthor, .sticky { outline: 0; }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }

/* ===== WooCommerce : habillage commun ===== */
.ariane, .woocommerce-breadcrumb { font: 700 .82rem var(--cap); letter-spacing: .1em; text-transform: uppercase; color: var(--encre-doux); margin: 0; }
.ariane a, .woocommerce-breadcrumb a { color: inherit; }
.page-tete-wc { padding-top: calc(var(--entete) + 26px); padding-bottom: 10px; }
.papa-wc { --wc-red: var(--rouge-fonce); --wc-highlight: var(--vert); }
.papa-wc .woocommerce, .papa-wc .wp-block-woocommerce-cart, .papa-wc .wp-block-woocommerce-checkout { font-family: var(--sans); }
.papa-wc h2, .papa-wc h3 { font-family: var(--serif); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link), .wp-element-button.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: .7em 1.5em;
  font: 800 1rem/1.1 var(--sans); color: #fff; background: var(--rouge); border: 2.5px solid var(--encre); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--encre); text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--rouge-fonce); color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--encre); }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; padding: .7em 1.5em; color: #fff; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { color: #fff; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .woocommerce .quantity .qty,
.papa-wc select, .woocommerce-input-wrapper input {
  min-height: 48px; border: 2px solid rgba(20,20,20,.35); border-radius: 14px; background: #fffaf3; padding: 10px 14px; font: 500 1rem var(--sans); color: var(--encre);
}
.woocommerce form .form-row textarea { min-height: 110px; }
.woocommerce form .form-row label { font-weight: 700; }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .wc-block-components-notice-banner {
  border-radius: 18px; border: 2px solid var(--encre); background: var(--creme-clair); color: var(--encre); box-shadow: 4px 4px 0 var(--encre);
}
.woocommerce-info::before, .woocommerce-message::before { color: var(--vert); }
.woocommerce-error::before { color: var(--rouge); }
.woocommerce-error { list-style: none; }
.papa-avis .woocommerce-error, .papa-avis .woocommerce-message, .papa-avis .woocommerce-info { margin: 0 0 6px; padding: 14px 18px 14px 50px; }
.woocommerce table.shop_table { border: 2px solid var(--encre); border-radius: 20px; background: var(--creme-clair); overflow: hidden; }
.woocommerce table.shop_table th { font: 800 .8rem var(--cap); letter-spacing: .12em; text-transform: uppercase; }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review, .woocommerce-checkout #customer_details {
  background: var(--creme-clair); border: 2.5px solid var(--encre); border-radius: 28px; padding: clamp(16px, 2.4vw, 30px); box-shadow: 6px 6px 0 var(--encre);
}
.woocommerce-checkout #order_review_heading { margin-top: 30px; font-size: 2rem; }
.woocommerce-checkout #payment { background: #fff8ee; border-radius: 20px; }
.woocommerce-checkout #payment div.payment_box { background: var(--creme-fonce); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--creme-fonce); }
.woocommerce .woocommerce-customer-details address, .woocommerce-order-overview { border-radius: 18px; }
.woocommerce-order .woocommerce-thankyou-order-received { font: 900 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--serif); }
.woocommerce ul.order_details { padding: 0; }

/* commande en blocs */
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { padding-top: 6px; }
.wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar-layout .wc-block-components-sidebar { box-sizing: border-box; }
.wc-block-checkout__sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper { border-color: rgba(20,20,20,.15); }
.wp-block-woocommerce-checkout-order-summary-block, .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
  background: var(--creme-clair); border: 2.5px solid var(--encre) !important; border-radius: 24px; box-shadow: 6px 6px 0 var(--encre); padding: 6px 4px;
}
.wc-block-components-checkout-step__title, .wc-block-components-title.wc-block-components-title { font-family: var(--serif); font-weight: 900; }
.wc-block-components-text-input input, .wc-block-components-select .wc-block-components-select__select, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-textarea {
  border-radius: 14px !important; border: 2px solid rgba(20,20,20,.35) !important; background-color: #fffaf3 !important;
}
.wc-block-components-radio-control__option, .wc-block-checkout__shipping-method-option, .wc-block-components-radio-control-accordion-option { border-radius: 16px; }
.wc-block-checkout__shipping-method-option--selected, .wc-block-components-radio-control__option-checked { box-shadow: 3px 3px 0 var(--rouge); }
.wc-block-components-address-card { border-radius: 16px; }
.wc-block-components-product-name { font-weight: 800; }

/* fiche produit */
.papa-wc div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: start; }
.papa-wc div.product div.images, .papa-wc div.product div.summary { width: auto; float: none; margin: 0; }
.papa-wc div.product div.images img { border: 2.5px solid var(--encre); border-radius: 28px; box-shadow: 6px 6px 0 var(--encre); }
.papa-wc div.product .product_title { font-size: clamp(2.4rem, 5vw, 4.4rem); margin-bottom: .3em; }
.papa-wc div.product p.price, .papa-wc div.product span.price { color: var(--rouge-fonce); font: 900 1.8rem var(--serif); }
.papa-wc div.product .woocommerce-product-details__short-description { font-size: 1.15rem; color: var(--encre-doux); }
.papa-wc div.product form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.papa-wc div.product form.cart .quantity .qty { width: 80px; }
.papa-wc div.product .woocommerce-tabs, .papa-wc div.product .related, .papa-wc div.product .upsells { grid-column: 1 / -1; }
.papa-wc .product_meta { font-size: .9rem; color: var(--encre-doux); margin-top: 18px; }
.papa-wc .woocommerce-tabs ul.tabs { padding-left: 0; }
.papa-wc .woocommerce-tabs ul.tabs li { border-radius: 14px 14px 0 0; background: var(--creme-fonce); }
.woocommerce ul.products li.product .price { color: var(--rouge-fonce); }
.woocommerce ul.products li.product a img { border-radius: 20px; border: 2px solid var(--encre); }
.woocommerce span.onsale { background: var(--vert); }
@media (max-width: 780px) {
  .papa-wc div.product { grid-template-columns: 1fr; }
}
.wp-caption-text { font-size: .9rem; color: var(--encre-doux); }
/* images limitées à leur résolution d'origine : centrées dans leur cadre */
.papa-wc div.product div.images .woocommerce-product-gallery__image { text-align: center; }
.papa-wc div.product div.images img { display: inline-block; }
.woocommerce ul.products li.product a img, .wc-block-grid__product-image img { margin-inline: auto; }
.wc-block-components-product-image img, .wc-block-cart-item__image img { max-width: 100%; }

/* panier commun (js/panier.js, panier WooCommerce) : message d'erreur renvoyé par le serveur (choix refusé) */
.pn-message.pn-message-erreur { background: var(--rouge-fonce, #9F2025); color: #fff; white-space: normal; text-align: center; border-radius: 22px; }
.pn-feuille .pn-ajouter:disabled, .composeur-pied .btn:disabled { opacity: .6; cursor: progress; }

/* page Commander : vignette d'une boisson = sa photo produit détourée, entière sur fond crème (26/10/2026).
   La maquette cible .article-img[src*="img/boissons/"] (panino.css) ; les images de la médiathèque n'ont pas ce chemin, d'où cette classe. */
.article-img.article-img-produit { object-fit: contain; background: radial-gradient(70% 70% at 50% 45%, #FFF7EA, #F3E2C8); }
