/* Digitalmuz — compléments du thème : ce qui n'existe pas dans les maquettes
   (barre d'administration, pages ordinaires, formulaire du filtre côté serveur, pages WooCommerce). */

/* L'en-tête fixe se place sous la barre d'administration de WordPress. */
.admin-bar .entete { top: 32px; }
@media (max-width: 782px) { .admin-bar .entete { top: 46px; } }
@media (max-width: 600px) { .admin-bar .entete { position: static; } }

.pastille-panier { display: inline-flex; align-items: center; gap: 8px; }
.pastille-panier b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 999px; background: var(--brume); color: var(--azur-fonce); font-size: .75rem; font-weight: 600; }

/* ---------- Pages ordinaires ---------- */
/* « main.page » et non « .page » : WordPress donne aussi la classe « page » au <body> de chaque page, ce qui ajoutait des marges blanches au-dessus de l'en-tête et sous le pied de page. */
main.page { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.page-titre { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: clamp(20px, 3vw, 36px); }
.dmz-contenu .page-corps > :where(p, ul, ol, h2, h3, h4, table, blockquote) { max-width: 78ch; }
.dmz-contenu .page-corps :where(p, ul, ol) + :where(p, ul, ol, h2, h3) { margin-top: 1em; }
.dmz-contenu .page-corps :where(ul, ol):not([class]) { padding-left: 1.3em; list-style: revert; }
.dmz-contenu .page-corps :where(h2, h3) { margin-top: 1.6em; margin-bottom: .5em; }
.elementor-page .page-corps > .page-titre { display: none; } /* les pages faites avec Elementor portent déjà leur titre */

/* ---------- Filtre : thématiques en cases à cocher ---------- */
label.puce { position: relative; cursor: pointer; user-select: none; }
label.puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
label.puce:has(input:checked) { background: var(--azur); border-color: var(--azur); color: var(--blanc); }
label.puce:has(input:focus-visible) { outline: 3px solid var(--ambre); outline-offset: 2px; }
.puces .puce.puce-suite { display: none; }
.puces.tout .puce.puce-suite { display: inline-flex; }
.raccourcis { margin-top: 10px; }
fieldset.champ[disabled] { opacity: .6; }
.filtre-valider { padding: 0 20px 20px; }
.filtre.js .filtre-valider { display: none; }
.filtre fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#resultats[aria-busy="true"] { opacity: .55; transition: opacity .15s; }

.actif a { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--gris); font-size: 1rem; line-height: 1; text-decoration: none; }
.actif a:hover { background: var(--trait); color: var(--encre); }
.vue a { padding: 8px 14px; font-size: .875rem; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; color: var(--encre); text-decoration: none; }
.vue a[aria-current="true"] { background: var(--nuit); color: var(--blanc); }
.suite { gap: 12px; }
.suite a[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------- Rappel de l'accompagnement offert, dans le panier ---------- */
.rappel-offre { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 24px; padding: 14px 18px; border-radius: 16px; background: var(--ambre-clair); }
.rappel-offre b { padding: 4px 12px; border-radius: 999px; background: var(--ambre); font-weight: 700; white-space: nowrap; }
.rappel-offre a { font-weight: 600; color: var(--encre); }

/* ---------- Pages WooCommerce pas encore redessinées : mise à niveau minimale ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  border-radius: 999px; padding: 12px 24px; font-family: inherit; font-weight: 600; background: var(--azur); color: var(--blanc);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--azur-fonce); color: var(--blanc); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 46px; padding: 8px 12px; border: 1px solid #b9cedb; border-radius: var(--rayon-petit); font: inherit;
}
.single-product #primary, .single-product .content-area { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding: clamp(32px, 5vw, 64px) var(--marge); }

/* ---------- Bandeau d'aperçu (visible du seul administrateur) ---------- */
.dmz-apercu { position: fixed; z-index: 99990; right: 88px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 999px; background: var(--encre); color: var(--blanc); font-size: .8125rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
@media (max-width: 1020px) {
  .dmz-apercu { left: 12px; right: 96px; bottom: 12px; justify-content: space-between; border-radius: 16px; font-size: .75rem; }
  /* Sur la fiche, le bandeau d'aperçu et le bouton WhatsApp remontent au-dessus de la barre du total. */
  body:has(.commande) .dmz-apercu { bottom: 112px; }
  body:has(.commande) .qlwapp__container { bottom: 104px !important; }
}
.dmz-apercu a { padding: 6px 12px; border-radius: 999px; background: var(--ambre); color: var(--encre); font-weight: 600; text-decoration: none; }
