/*
Theme Name: Fall War Tech
Theme URI: https://fallwartech.com
Author: Fall War Tech
Description: Thème bloc sur mesure de la boutique Fall War Tech (composants électroniques, Guédiawaye). Construit à partir des maquettes V2 validées. Blocs natifs WordPress et blocs WooCommerce officiels.
Version: 0.4.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fall-war-tech
Tags: block-theme, full-site-editing, e-commerce
*/

/* ==========================================================================
   Jetons — identiques à la maquette V2 (styles.css). Les couleurs sont
   aussi déclarées dans theme.json pour l'éditeur.
   ========================================================================== */
:root {
  --bleu: #1E79BF;
  --bleu-fonce: #155E97;
  --bleu-pale: #E3EEF8;
  --vert: #0C8E36;
  --vert-fonce: #0A7430;
  --vert-pale: #E2F2E7;
  --encre: #0D1B2E;
  --encre-2: #15273F;
  --encre-trait: #243A58;
  --gris: #EDEFF2;
  --gris-2: #E1E5EA;
  --blanc: #FFFFFF;
  --texte: #0D1B2E;
  --texte-2: #4A5A70;
  --texte-3: #7A889B;

  --sans: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r: 10px;
  --r-lg: 16px;
  --largeur: 1280px;
  --gouttiere: 16px;
  --ombre: 0 1px 2px rgba(13,27,46,.06), 0 8px 24px rgba(13,27,46,.08);
  --h-bandeau: 36px;
  --barre-admin: var(--wp-admin--admin-bar--height, 0px);
}
@media (min-width: 768px) { :root { --gouttiere: 32px; } }

/* icônes (masques CSS), tracées d’après la maquette */
:root {
  --i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  --i-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
  --i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 11.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.1'/%3E%3Ccircle cx='9.5' cy='20' r='1.3'/%3E%3Ccircle cx='17' cy='20' r='1.3'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --i-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='1.5'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='1.5'/%3E%3C/svg%3E");
  --i-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 10.5 12 4l8 6.5V20h-5.5v-6h-5v6H4z'/%3E%3C/svg%3E");
  --i-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
  --i-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
  --i-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12.04 2a9.9 9.9 0 0 0-8.5 14.98L2 22l5.16-1.5A9.9 9.9 0 1 0 12.04 2zm0 18.1a8.2 8.2 0 0 1-4.2-1.15l-.3-.18-3.06.9.9-2.98-.2-.31a8.2 8.2 0 1 1 6.86 3.72zm4.5-6.14c-.25-.12-1.46-.72-1.69-.8-.23-.08-.39-.12-.55.12-.16.25-.63.8-.78.97-.14.16-.29.18-.53.06a6.7 6.7 0 0 1-3.34-2.92c-.25-.43.25-.4.72-1.34.08-.16.04-.3-.02-.42-.06-.12-.55-1.33-.76-1.82-.2-.48-.4-.41-.55-.42h-.47a.9.9 0 0 0-.65.3c-.22.25-.86.84-.86 2.05s.88 2.38 1 2.54c.12.16 1.73 2.64 4.2 3.7 1.56.67 2.17.73 2.95.61.47-.07 1.46-.6 1.66-1.17.2-.58.2-1.07.14-1.17-.06-.1-.22-.16-.47-.28z'/%3E%3C/svg%3E");
}


/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55;
  color: var(--texte); background: var(--blanc);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: 64px; /* barre mobile */
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; hyphens: none; text-wrap: balance; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }

/* Espacement automatique de Gutenberg : coupé dans theme.json (blockGap 0),
   filet de sécurité ici à spécificité nulle — jamais `.wp-block-group > *`. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
:where(.wp-site-blocks) > * { margin-block: 0; }
figure.wp-block-image { margin: 0; }
:where(ul.wp-block-list) { margin: 0; padding: 0; list-style: none; }

.enveloppe { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }

/* icône par masque CSS (substitution n° 1 : aucune balise SVG dans le contenu) */
.ico::before, .b-gauche li::before, .action-wa a::before, .btn-cats::before, .btn-cats::after,
.nav-aide::before, .pied-coord li::before, .wa-flottant a::before, .bm a::before {
  content: ""; display: inline-block; flex: none; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}

/* étiquette mono au-dessus des titres */
.sur-titre {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bleu);
}
.sur-titre::before {
  content: ""; width: 12px; height: 13px; flex: none; background: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* boutons (core/button : la classe est sur le conteneur, le style sur le lien) */
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-weight: 600; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.wp-block-button.btn-bleu .wp-block-button__link { background: var(--bleu); color: #fff; }
.wp-block-button.btn-bleu .wp-block-button__link:hover { background: var(--bleu-fonce); }
.wp-block-button.btn-vert .wp-block-button__link, .wp-block-button.btn-wa .wp-block-button__link { background: var(--vert); color: #fff; }
.wp-block-button.btn-vert .wp-block-button__link:hover, .wp-block-button.btn-wa .wp-block-button__link:hover { background: var(--vert-fonce); }
.wp-block-button.btn-clair .wp-block-button__link { background: #fff; color: var(--encre); }

/* ==========================================================================
   EN-TÊTE — le bandeau défile, la ligne principale reste collée en haut
   ========================================================================== */
.wp-site-blocks > header.site-entete {
  position: sticky; z-index: 50;
  top: calc(var(--barre-admin) - var(--h-bandeau));
}
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.site-entete { top: calc(0px - var(--h-bandeau)); } }

.bandeau { background: var(--encre); color: #C9D4E3; font-size: 12.5px; }
.bandeau .bandeau-l { display: flex; align-items: center; justify-content: space-between; height: var(--h-bandeau); gap: 16px; }
.bandeau ul.wp-block-list { display: flex; gap: 22px; }
.bandeau li { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.bandeau a:hover { color: #fff; }
.b-gauche li::before { width: 14px; height: 14px; background: var(--vert); }
.b-gauche li.b-wa::before { -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.b-gauche li.b-adresse::before { -webkit-mask-image: var(--i-pin); mask-image: var(--i-pin); }
.bandeau ul.b-droite, .bandeau li.b-adresse { display: none; }
@media (min-width: 768px) { .bandeau li.b-adresse { display: flex; } }
@media (min-width: 1024px) { .bandeau ul.b-droite { display: flex; } }

.entete { background: #fff; border-bottom: 1px solid var(--gris-2); }
.entete-l1 {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "recherche recherche";
  align-items: center; gap: 10px 16px; padding-top: 10px; padding-bottom: 12px;
}
.entete-l1 > .logo { grid-area: logo; }
.entete-l1 > .logo a { display: block; }
.entete-l1 > .logo img { height: 46px; width: auto; }
.recherche-aide { display: none; }

/* ---------- recherche : core/search, variante « recherche de produits » WooCommerce ---------- */
.entete-l1 > .recherche { grid-area: recherche; position: relative; min-width: 0; margin: 0; }
.wp-block-search.recherche .wp-block-search__inside-wrapper {
  display: flex; align-items: stretch; height: 50px; min-width: 0; padding: 0;
  border: 2px solid var(--bleu); border-radius: var(--r); background: #fff;
}
.wp-block-search.recherche .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 4px rgba(30,121,191,.14); }
.wp-block-search.recherche select {
  display: none; flex: none; width: 188px; border: 0; border-right: 1px solid var(--gris-2); background-color: var(--gris);
  border-radius: 8px 0 0 8px; padding: 0 34px 0 16px; font: 500 13.5px var(--sans); color: var(--texte);
  appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1B2E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;
}
.wp-block-search.recherche .wp-block-search__input {
  flex: 1; min-width: 0; height: auto; margin: 0; border: 0; border-radius: 0; padding: 0 14px;
  font: 400 15px var(--sans); color: var(--texte); outline: none; background: transparent; text-overflow: ellipsis;
}
.wp-block-search.recherche .wp-block-search__input::placeholder { color: var(--texte-3); }
.wp-block-search.recherche .wp-block-search__button {
  flex: none; margin: 0; border: 0; border-radius: 0 7px 7px 0; background: var(--bleu); color: #fff;
  padding: 0 16px; display: flex; align-items: center; gap: 8px; font: 600 15px var(--sans); white-space: nowrap;
}
.wp-block-search.recherche .wp-block-search__button:hover { background: var(--bleu-fonce); }
.wp-block-search.recherche .wp-block-search__button svg { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }

/* icône de loupe de la maquette à la place de celle du bloc */
.wp-block-search.recherche .wp-block-search__button svg { display: none; }
.wp-block-search.recherche .wp-block-search__button::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat; }
@media (min-width: 1024px) { .wp-block-search.recherche .wp-block-search__button::before { width: 22px; height: 22px; } }

/* suggestions : produits et catégories réels lus dans WooCommerce (Store API) */
.suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
  background: #fff; border: 1px solid var(--gris-2); border-radius: var(--r);
  box-shadow: 0 24px 50px rgba(13,27,46,.18); padding: 14px; max-height: min(70vh, 520px); overflow-y: auto;
}
.suggestions[hidden] { display: none; }
.suggestions .recherche-aide { display: block; }
.suggestions.a-requete .recherche-aide { display: none; }
.sg-titre { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); margin-bottom: 10px; }
.sg-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-puces a { border: 1px solid var(--gris-2); background: var(--gris); border-radius: 8px; padding: 7px 12px; font: 500 13px var(--mono); color: var(--texte); }
.sg-puces a:hover { border-color: var(--bleu); color: var(--bleu); }
.sg-aide { margin-top: 12px; font-size: 13px; color: var(--texte-2); }
.sg-res:empty { display: none; }
.sg-groupe + .sg-groupe { margin-top: 14px; }
.sg-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--texte); }
.sg-item:hover, .sg-item.actif { background: var(--bleu-pale); }
.sg-item b { font-weight: 600; font-size: 14px; }
.sg-item b mark { background: none; color: var(--bleu); }
.sg-item .sg-meta { grid-column: 1; font: 400 12px var(--mono); color: var(--texte-3); }
.sg-item .sg-via { grid-column: 2; grid-row: 1 / span 2; font: 500 11px var(--mono); color: var(--vert-fonce); background: var(--vert-pale); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }
.sg-cat { display: inline-flex; margin: 0 6px 6px 0; padding: 6px 10px; border-radius: 7px; background: var(--gris); font-size: 13px; font-weight: 500; }
.sg-cat:hover { background: var(--bleu-pale); color: var(--bleu); }
.sg-pied { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gris); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; font-size: 13.5px; }
.sg-pied a { font-weight: 600; color: var(--bleu); }
.sg-pied .sg-wa { color: var(--vert-fonce); display: inline-flex; align-items: center; gap: 6px; }
.sg-pied .sg-wa::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-wa) center / contain no-repeat; mask: var(--i-wa) center / contain no-repeat; }
.sg-rien { font-size: 14px; color: var(--texte-2); padding: 4px 2px 2px; }
.sg-charge { font-size: 13px; color: var(--texte-3); padding: 4px 2px; }

/* ---------- actions : WhatsApp, compte (bloc WooCommerce), mini-panier (bloc WooCommerce) ---------- */
.entete-l1 > .actions { grid-area: actions; display: flex; align-items: center; gap: 2px; justify-self: end; }
.actions > * { margin: 0; }
.action-wa { display: none; }
.action-wa a {
  display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 8px 10px;
  border-radius: var(--r); color: var(--vert); font-size: 0; line-height: 0;
}
.action-wa a::before { width: 24px; height: 24px; -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.action-wa a:hover { background: var(--vert-pale); }

.wp-block-woocommerce-customer-account.action-compte a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 10px; border-radius: var(--r);
  color: var(--texte); white-space: nowrap;
}
.wp-block-woocommerce-customer-account.action-compte a:hover { background: var(--gris); }
.action-compte .wc-block-customer-account__visual { display: block; width: 24px; height: 24px; position: relative; }
.action-compte .wc-block-customer-account__visual svg,
.action-compte .wc-block-customer-account__account-icon { display: none !important; }
.action-compte .wc-block-customer-account__visual::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: var(--i-user) center / contain no-repeat; mask: var(--i-user) center / contain no-repeat;
}
.action-compte .wc-block-customer-account__avatar { display: none !important; }
.action-compte .label { display: none; font-size: 13.5px; font-weight: 600; line-height: 1.2; padding: 0; }

.wp-block-woocommerce-mini-cart.action-panier { display: flex; }
.action-panier .wc-block-mini-cart__button {
  position: relative; display: flex; align-items: center; gap: 0; min-height: 44px; padding: 8px 10px;
  border-radius: var(--r); color: var(--texte); background: none; border: 0; font: inherit;
}
.action-panier .wc-block-mini-cart__button:hover { background: var(--gris); }
.action-panier .wc-block-mini-cart__quantity-badge { position: static; display: flex; order: 0; }
.action-panier .wc-block-mini-cart__icon { width: 24px; height: 24px; margin: 0; }
.action-panier .wc-block-mini-cart__badge {
  position: absolute; top: 2px; left: 26px; right: auto; transform: none; margin: 0;
  min-width: 19px; height: 19px; padding: 0 5px; border: 0;
  border-radius: 10px; background: var(--vert) !important; color: #fff !important; font: 600 11px/19px var(--mono); text-align: center;
}
.action-panier .wc-block-mini-cart__badge:empty { display: block; }
.action-panier .wc-block-mini-cart__amount {
  display: none; order: 1; margin-left: 16px; font: 600 13.5px var(--mono); color: var(--texte); white-space: nowrap;
}

@media (min-width: 768px) {
  .entete-l1 > .logo img { height: 56px; }
  .action-wa { display: block; }
}
@media (min-width: 1024px) {
  .entete-l1 { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo recherche actions"; gap: 0 28px; padding-top: 14px; padding-bottom: 14px; }
  .entete-l1 > .logo img { height: 64px; }
  .wp-block-search.recherche .wp-block-search__inside-wrapper { height: 54px; }
  .wp-block-search.recherche select { display: block; width: 176px; }
  .wp-block-search.recherche .wp-block-search__button { padding: 0 26px; }
  .wp-block-search.recherche .wp-block-search__button svg { width: 22px; height: 22px; min-width: 22px; min-height: 22px; }
}
@media (min-width: 1280px) {
  .entete-l1 { gap: 0 36px; }
  .entete-l1 > .logo img { height: 72px; }
  .wp-block-search.recherche select { width: 186px; }
  .action-compte .label, .action-panier .wc-block-mini-cart__amount { display: block; }
  .entete-l1 > .actions { gap: 4px; }
}
@media (min-width: 1600px) {
  .wp-block-search.recherche .wp-block-search__button::after { content: "Rechercher"; }
}

/* ---------- navigation ---------- */
.entete .nav { display: none; border-top: 1px solid var(--gris-2); }
@media (min-width: 1024px) { .entete .nav { display: block; } }
.nav .nav-l { display: flex; align-items: stretch; gap: 8px; position: relative; }
.nav .cats { flex: none; }
.btn-cats {
  display: flex; align-items: center; gap: 12px; width: 248px; height: 50px; padding: 0 18px; margin: 0;
  background: var(--encre); color: #fff; font-weight: 600; font-size: 14.5px; white-space: nowrap; cursor: pointer; user-select: none;
}
.btn-cats::before { width: 20px; height: 20px; -webkit-mask-image: var(--i-grid); mask-image: var(--i-grid); }
.btn-cats::after { order: 2; margin-left: auto; width: 16px; height: 16px; -webkit-mask-image: var(--i-chev); mask-image: var(--i-chev); transition: transform .2s; }
.nav.ouvert .btn-cats::after { transform: rotate(180deg); }

.wp-block-navigation.nav-liens { display: flex; align-items: center; gap: 2px; margin-left: 8px; min-width: 0; font-size: 14.5px; }
.wp-block-navigation.nav-liens .wp-block-navigation__container { gap: 2px; }
.wp-block-navigation.nav-liens .wp-block-navigation-item__content { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500; color: var(--texte); white-space: nowrap; }
.wp-block-navigation.nav-liens .wp-block-navigation-item__content:hover { background: var(--gris); }
.wp-block-navigation.nav-liens .nav-promo .wp-block-navigation-item__content { color: var(--bleu); font-weight: 600; }
.nav-aide { display: none; margin-left: auto; align-items: center; gap: 8px; font-size: 13px; color: var(--texte-2); white-space: nowrap; }
.nav-aide::before { width: 20px; height: 20px; background: var(--vert); -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.nav-aide strong { font-family: var(--mono); color: var(--texte); font-weight: 600; }
@media (min-width: 1280px) { .btn-cats { width: 272px; } .wp-block-navigation.nav-liens .wp-block-navigation-item__content { padding: 8px 14px; } }
@media (min-width: 1360px) { .nav-aide { display: flex; } }

/* méga-menu : toutes les familles sont dans le contenu, le script bascule la classe */
.mega {
  position: absolute; top: 100%; left: var(--gouttiere); right: var(--gouttiere); z-index: 60;
  display: grid; grid-template-columns: 248px 1fr; background: #fff;
  border: 1px solid var(--gris-2); border-top: 0; box-shadow: 0 30px 60px rgba(13,27,46,.18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.nav.ouvert .mega { opacity: 1; visibility: visible; transform: none; }
.mega-familles { background: var(--gris); padding: 8px 0; grid-row: 1 / span 9; }
.mega-famille {
  display: flex; align-items: center; padding: 11px 18px; font-size: 14px; font-weight: 500; cursor: pointer; line-height: 1.4;
}
.mega-famille.actif { background: #fff; color: var(--bleu); font-weight: 600; box-shadow: inset 3px 0 0 var(--bleu); }
.mega-panneau { display: none; grid-column: 2; grid-row: 1; position: relative; min-height: 340px; padding: 26px 300px 26px 30px; }
.mega-panneau.actif { display: block; }
.mega-titre { font-size: 18px; margin-bottom: 8px; }
.mega-liens { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.mega-liens li a { display: block; padding: 11px 0; font-size: 14px; color: var(--texte-2); border-bottom: 1px solid var(--gris); }
.mega-liens li a:hover { color: var(--bleu); }
.mega-figure { position: absolute; top: 24px; right: 26px; bottom: 24px; width: 244px; border-radius: var(--r); overflow: hidden; }
.mega-figure .mega-visuel, .mega-figure .mega-visuel img { width: 100%; height: 100%; }
.mega-figure .mega-visuel img { object-fit: cover; }
.mega-figure .mega-voir { position: absolute; left: 12px; right: 12px; bottom: 12px; }
.mega-figure .mega-voir .wp-block-button { width: 100%; }
.mega-figure .mega-voir .wp-block-button__link { width: 100%; }
@media (min-width: 1280px) { .mega { grid-template-columns: 272px 1fr; } }

/* ==========================================================================
   CONTENU GÉNÉRIQUE (pages, articles, 404) — en attendant les gabarits dédiés
   ========================================================================== */
.site-principal { background: var(--gris); min-height: 50vh; }
.page-corps { padding-top: 40px; padding-bottom: 64px; }
.page-titre { font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.page-corps .wp-block-post-content > * + * { margin-top: 16px; }
.liste-articles .wp-block-post-title { font-size: 22px; margin-top: 24px; }
.page-404 { padding-top: 72px; padding-bottom: 96px; }
.page-404 h1 { font-size: clamp(30px, 4.4vw, 52px); margin-top: 14px; }
.page-404-texte { margin-top: 14px; max-width: 560px; color: var(--texte-2); }
.page-404-boutons { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   PIED DE PAGE
   ========================================================================== */
.pied { background: var(--encre); color: #B9C6D8; padding: 64px 0 0; font-size: 14px; position: relative; overflow: hidden; }
.pied::before { /* pistes du circuit (substitution n° 5 : couche décorative en pseudo-élément) */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 180px; opacity: .7; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 180' preserveAspectRatio='xMidYMin slice'%3E%3Cg fill='none' stroke='%232A4263' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1460 30 H1260 L1220 70 H1100'/%3E%3Cpath d='M1000 -10 V20 L960 60 H860'/%3E%3C/g%3E%3Cpolygon points='1092,62 1099,66 1099,74 1092,78 1085,74 1085,66' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='852,52 859,56 859,64 852,68 845,64 845,56' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3C/svg%3E") center top / cover no-repeat;
}
.pied .enveloppe { position: relative; }
.pied-grille { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.pied-marque { grid-column: 1 / -1; }
.pied-logo.wp-block-image { display: inline-block; background: #fff; border-radius: var(--r); padding: 12px 16px; }
.pied-logo a { display: block; }
.pied-logo img { height: 84px; width: auto; }
.pied-texte { margin-top: 18px; max-width: 340px; line-height: 1.6; }
.pied .pied-titre { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.pied li a { display: inline-block; padding: 5px 0; }
.pied a:hover { color: #fff; }
.pied-contact { grid-column: 1 / -1; }
.pied-coord li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.pied-coord li::before { width: 18px; height: 18px; margin-top: 2px; background: #3DBA63; }
.pied-coord li.c-adresse::before { -webkit-mask-image: var(--i-pin); mask-image: var(--i-pin); }
.pied-coord li.c-wa::before { -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.pied-coord li.c-mail::before { -webkit-mask-image: var(--i-mail); mask-image: var(--i-mail); }
.pied-coord li.c-wa a { font-family: var(--mono); color: #fff; }

/* réseaux : bloc natif « Icônes de réseaux sociaux » ; un lien sans URL n'est pas affiché */
.wp-block-social-links.reseaux { display: flex; gap: 8px; margin: 14px 0 0; padding: 0; }
.wp-block-social-links.reseaux .wp-social-link {
  width: 40px; height: 40px; margin: 0; border-radius: 9px; border: 1px solid var(--encre-trait);
  background: transparent !important; color: #B9C6D8 !important; display: grid; place-items: center; transform: none !important;
}
.wp-block-social-links.reseaux .wp-social-link:hover { border-color: #7FB6E6; }
.wp-block-social-links.reseaux .wp-block-social-link-anchor { padding: 0; display: grid; place-items: center; width: 100%; height: 100%; }
.wp-block-social-links.reseaux .wp-social-link svg { width: 18px; height: 18px; fill: currentColor; }

.pied-bas {
  margin-top: 52px; border-top: 1px solid var(--encre-trait); padding: 22px 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: #7A8BA3;
}
.pied-legal { display: flex; flex-wrap: wrap; gap: 18px; }
.pied .pied-legal li a { display: inline; padding: 0; }
@media (min-width: 768px) {
  .pied-grille { grid-template-columns: repeat(3, 1fr); }
  .pied-contact { grid-column: auto; }
}
@media (min-width: 1024px) {
  .pied-grille { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.3fr; gap: 40px; }
  .pied-marque { grid-column: auto; }
}

/* ==========================================================================
   WHATSAPP flottant (ordinateur) + barre mobile
   ========================================================================== */
.wa-flottant { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: none; transition: opacity .2s, transform .2s; }
.wa-flottant a {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border-radius: 22px;
  background: var(--vert); color: #fff; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(12,142,54,.28);
}
.wa-flottant a::before { width: 20px; height: 20px; -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.wa-flottant a:hover { background: var(--vert-fonce); }
.wa-flottant.compact a { width: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
.wa-flottant.masque { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (min-width: 1024px) { .wa-flottant { display: block; } }

.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px; background: #fff;
  border-top: 1px solid var(--gris-2); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); box-sizing: content-box;
  box-shadow: 0 -6px 20px rgba(13,27,46,.06);
}
.barre-mobile .bm { display: flex; }
.barre-mobile .bm a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; line-height: 1.2; color: var(--texte-2); position: relative; }
.barre-mobile .bm a::before { width: 22px; height: 22px; }
.bm-accueil a::before { -webkit-mask-image: var(--i-home); mask-image: var(--i-home); }
.bm-categories a::before { -webkit-mask-image: var(--i-grid); mask-image: var(--i-grid); }
.bm-recherche a::before { -webkit-mask-image: var(--i-search); mask-image: var(--i-search); }
.bm-panier a::before { -webkit-mask-image: var(--i-cart); mask-image: var(--i-cart); }
.bm-wa a::before { -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.barre-mobile .bm.actif a { color: var(--bleu); }
.barre-mobile .bm-wa a { color: var(--vert); }
.bm-panier a[data-nb]::after {
  content: attr(data-nb); position: absolute; top: 8px; left: calc(50% + 4px); min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--vert); color: #fff; font: 600 10px/17px var(--mono); text-align: center;
}
@media (min-width: 1024px) { .barre-mobile { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ==========================================================================
   ACCUEIL — sections de la page d'accueil (contenu en blocs natifs)
   ========================================================================== */
/* pistes du circuit (couches décoratives) et icônes des sections */
:root {
  --pistes-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 760' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%232A4263' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-20 612 H180 L230 562 H420'/%3E%3Cpath d='M-20 680 H260 L300 640 H520 L560 600'/%3E%3Cpath d='M80 -10 V60 L130 110 H330'/%3E%3Cpath d='M560 -10 V40 L610 90 H700'/%3E%3C/g%3E%3Cpolygon points='420,554 427,558 427,566 420,570 413,566 413,558' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='560,592 567,596 567,604 560,608 553,604 553,596' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='330,102 337,106 337,114 330,118 323,114 323,106' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='700,82 707,86 707,94 700,98 693,94 693,86' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cg fill='none' stroke='%231E79BF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M760 -10 V70 L820 130 V250'/%3E%3Cpath d='M900 -10 V40 L950 90 H1060 L1110 140 V190'/%3E%3Cpath d='M1260 -10 V90 L1210 140 V150'/%3E%3Cpath d='M1460 300 H1360 L1320 340 H1290'/%3E%3Cpath d='M1460 470 H1400 L1360 510'/%3E%3C/g%3E%3Cpolygon points='820,250 827,254 827,262 820,266 813,262 813,254' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='1110,190 1117,194 1117,202 1110,206 1103,202 1103,194' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='1210,150 1217,154 1217,162 1210,166 1203,162 1203,154' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='1282,332 1289,336 1289,344 1282,348 1275,344 1275,336' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='1354,508 1361,512 1361,520 1354,524 1347,520 1347,512' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cg fill='none' stroke='%230C8E36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1010 -10 V20 L1040 50 H1150 L1180 80'/%3E%3Cpath d='M1460 210 H1380 L1340 170 V120'/%3E%3C/g%3E%3Cpolygon points='1186,78 1193,82 1193,90 1186,94 1179,90 1179,82' fill='%230D1B2E' stroke='%230C8E36' stroke-width='2.2'/%3E%3Cpolygon points='1340,104 1347,108 1347,116 1340,120 1333,116 1333,108' fill='%230D1B2E' stroke='%230C8E36' stroke-width='2.2'/%3E%3C/svg%3E");
  --pistes-pop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 420' preserveAspectRatio='xMaxYMax slice'%3E%3Cg fill='none' stroke='%231E79BF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M380 60 H300 L260 100 V180'/%3E%3Cpath d='M380 250 H320 L290 280'/%3E%3C/g%3E%3Cpolygon points='260,180 267,184 267,192 260,196 253,192 253,184' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='284,278 291,282 291,290 284,294 277,290 277,282' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cg fill='none' stroke='%230C8E36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M200 440 V380 L230 350 H290'/%3E%3C/g%3E%3Cpolygon points='298,342 305,346 305,354 298,358 291,354 291,346' fill='%230D1B2E' stroke='%230C8E36' stroke-width='2.2'/%3E%3C/svg%3E");
  --pistes-promos: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520' preserveAspectRatio='xMidYMid slice'%3E%3Cg fill='none' stroke='%232A4263' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M-20 80 H120 L170 30 H380'/%3E%3Cpath d='M1460 460 H1240 L1190 510'/%3E%3Cpath d='M1460 40 H1320 L1280 80 H1200'/%3E%3C/g%3E%3Cpolygon points='388,22 395,26 395,34 388,38 381,34 381,26' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='1192,72 1199,76 1199,84 1192,88 1185,84 1185,76' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3C/svg%3E");
  --pistes-intro: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 260' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke='rgba(255,255,255,.2)' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1220 40 H1080 L1040 80 H940'/%3E%3Cpath d='M1220 150 H1120 L1080 190 V270'/%3E%3Cpath d='M860 -10 V40 L820 80 H760'/%3E%3C/g%3E%3Cpolygon points='932,72 939,76 939,84 932,88 925,84 925,76' fill='%230C8E36' stroke='rgba(255,255,255,.28)' stroke-width='2.2'/%3E%3Cpolygon points='752,72 759,76 759,84 752,88 745,84 745,76' fill='%230C8E36' stroke='rgba(255,255,255,.28)' stroke-width='2.2'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M3.5 7.5 12 3l8.5 4.5v9L12 21l-8.5-4.5z'/%3E%3Cpath d='M3.5 7.5 12 12l8.5-4.5M12 12v9'/%3E%3C/svg%3E");
  --i-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M2.5 6h11v10h-11zM13.5 9.5h4l3 3.5V16h-7'/%3E%3Ccircle cx='6.5' cy='17.5' r='1.8'/%3E%3Ccircle cx='17' cy='17.5' r='1.8'/%3E%3C/svg%3E");
  --i-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 9.5h19M6 15h4'/%3E%3C/svg%3E");
  --i-chip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='6' y='6' width='12' height='12' rx='1.5'/%3E%3Crect x='9.5' y='9.5' width='5' height='5'/%3E%3Cpath d='M9 2.5V6M15 2.5V6M9 18v3.5M15 18v3.5M2.5 9H6M2.5 15H6M18 9h3.5M18 15h3.5'/%3E%3C/svg%3E");
  --i-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 9.5V20h16V9.5M3 9.5 5 4h14l2 5.5a2.5 2.5 0 0 1-4.5 1.5 2.5 2.5 0 0 1-4.5 0 2.5 2.5 0 0 1-4.5 0A2.5 2.5 0 0 1 3 9.5z'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E");
}

/* éléments communs aux sections */
.tete-section { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
@media (min-width: 768px) { .tete-section { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; } }
.tete-section .tete-titre { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin-top: 12px; }
.tete-section .tete-texte { color: var(--texte-2); margin-top: 10px; max-width: 520px; }
.demo { display: inline-flex; margin-top: 10px; font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--texte-3); border: 1px dashed #B8C3D1; border-radius: 6px; padding: 3px 8px; }
.tete-section .demo { display: flex; width: max-content; }
.promos .demo { color: #9FB0C6; border-color: #3A5270; }
.lien-fleche { white-space: nowrap; flex: none; }
p.lien-fleche { display: flex; }
.lien-fleche a, .wp-block-button.lien-fleche .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bleu); font-size: 14px;
}
.lien-fleche a::after, .wp-block-button.lien-fleche .wp-block-button__link::after {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor; transition: transform .15s;
  -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat;
}
.lien-fleche a:hover, .wp-block-button.lien-fleche .wp-block-button__link:hover { color: var(--bleu-fonce); }
.lien-fleche a:hover::after, .wp-block-button.lien-fleche .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.lien-fleche .wp-block-button__link { min-height: 0; padding: 0; background: none; border: 0; }

/* variantes de bouton propres à l'accueil */
.wp-block-button.btn-contour .wp-block-button__link { border-color: rgba(255,255,255,.28); color: #fff; background: none; }
.wp-block-button.btn-contour .wp-block-button__link:hover { border-color: #fff; }
.wp-block-button.btn-blanc .wp-block-button__link { background: #fff; color: var(--vert-fonce); }
.wp-block-button.btn-blanc .wp-block-button__link:hover { background: var(--encre); color: #fff; }
.wp-block-button.btn-fleche .wp-block-button__link::after,
.wp-block-button.btn-ico-wa .wp-block-button__link::before {
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.wp-block-button.btn-fleche .wp-block-button__link::after { -webkit-mask-image: var(--i-arrow); mask-image: var(--i-arrow); }
.wp-block-button.btn-ico-wa .wp-block-button__link::before { -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.wp-block-button.btn-contour.btn-ico-wa .wp-block-button__link::before { background: #3DBA63; }

/* ---------- HÉROS : champ Encre, pistes du logo, photo qui déborde ---------- */
.hero { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--pistes-hero) center / 100% 100% no-repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: var(--gris); }
.hero .hero-l { position: relative; z-index: 2; display: grid; gap: 40px; padding-top: 44px; padding-bottom: 0; }
.hero-texte { position: relative; z-index: 3; }
.hero .sur-titre { color: #7FB6E6; }
.hero .hero-titre { font-size: clamp(34px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.03em; margin: 18px 0 22px; }
.hero .hero-titre em { font-style: italic; font-weight: 800; color: #3DBA63; }
.hero-sous { font-size: 17px; line-height: 1.6; color: #B9C6D8; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .wp-block-button { flex: 1 1 auto; margin: 0; }
.hero-cta .wp-block-button__link { width: 100%; }
@media (min-width: 560px) { .hero-cta .wp-block-button { flex: 0 0 auto; } }
.recherches { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.recherches strong { background: var(--encre); padding: 4px 0; font: 600 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #7A8BA3; margin-right: 6px; }
.recherches a { font: 500 13px var(--mono); color: #D6E0EC; padding: 7px 12px; border: 1px solid var(--encre-trait); border-radius: 8px; background: var(--encre); }
.recherches a:hover { border-color: var(--bleu); color: #fff; }

.hero-visuel { position: relative; z-index: 2; margin: 0 -4px; }
.hero .hero-photo.wp-block-image { margin: 15px 40px; }
.hero-photo.wp-block-image { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 24px 60px rgba(4,12,24,.45); border: 6px solid #fff; }
.hero .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-fiche {
  position: absolute; left: -10px; bottom: 34px; width: 240px; z-index: 3;
  background: #fff; color: var(--texte); border-radius: var(--r); padding: 12px; box-shadow: 0 24px 60px rgba(4,12,24,.45);
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; align-items: center;
}
.hero-fiche .hf-img { grid-row: 1 / span 4; }
.hero-fiche .hf-img img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.hero-fiche .hf-nom { font-size: 13.5px; line-height: 1.25; font-weight: 700; }
.hero-fiche .hf-nom a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.hero-fiche .hf-specs { font: 500 11px var(--mono); color: var(--texte-2); }
.hero-fiche .hf-dispo { font: 600 11px var(--mono); color: var(--vert); display: flex; align-items: center; gap: 6px; }
.hero-fiche .hf-dispo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); }
.hero-fiche .demo-fiche { margin: 2px 0 0; padding: 1px 6px; font-size: 10px; justify-self: start; }
.hero-etiquette {
  position: absolute; top: -14px; right: 18px; z-index: 3;
  background: var(--vert); color: #fff; font: 600 12px var(--mono); padding: 8px 12px; border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
}
.hero-etiquette::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-chip) center / contain no-repeat; mask: var(--i-chip) center / contain no-repeat; }
@media (min-width: 1024px) {
  .hero .hero-l { grid-template-columns: 1.18fr 1fr; align-items: center; gap: 56px; padding-top: 72px; }
  .hero-texte { padding-bottom: 150px; }
  .hero-visuel { margin: 0; align-self: end; }
  .hero-photo.wp-block-image { aspect-ratio: 5 / 4; }
  .hero-fiche { left: -54px; bottom: 120px; width: 270px; }
  .hero::after { height: 120px; }
}
@media (min-width: 1440px) { .hero-visuel { margin-right: -40px; } }

/* ---------- FAMILLES ---------- */
.familles { background: var(--gris); padding: 56px 0 72px; position: relative; }
.familles-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.famille {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--gris-2); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.famille:hover { border-color: var(--bleu); box-shadow: var(--ombre); transform: translateY(-2px); }
.famille .famille-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gris-2); }
.famille .famille-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.famille:hover .famille-img img { transform: scale(1.04); }
.famille-corps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.famille-num { font: 600 11px var(--mono); color: var(--bleu); letter-spacing: .06em; }
.famille .famille-titre { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.famille .famille-titre a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.famille .famille-sous { display: none; }
@media (min-width: 768px) {
  .familles-grille { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .famille-corps { padding: 18px 18px 16px; }
  .famille .famille-titre { font-size: 17px; }
  .famille .famille-sous { display: block; margin-top: 6px; }
  .famille .famille-sous li { font: 400 12px/1.9 var(--mono); color: var(--texte-2); }
  .famille-corps::after { content: ""; display: block; flex: none; width: 18px; height: 28px; margin-top: auto; background: var(--bleu); -webkit-mask: var(--i-arrow) left bottom / 18px 18px no-repeat; mask: var(--i-arrow) left bottom / 18px 18px no-repeat; }
}
@media (min-width: 1024px) {
  .familles-grille { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .famille .famille-img { width: 100%; aspect-ratio: 16 / 10; }
  .famille.grande { grid-column: span 2; grid-row: span 2; }
  .famille.grande .famille-img { aspect-ratio: auto; flex: 1; }
  .famille.grande .famille-corps { flex: none; padding: 22px 24px; }
  .famille.grande .famille-titre { font-size: 24px; }
  .famille.grande .famille-sous { columns: 2; }
}

/* ---------- PAR PROJET : toutes les variantes sont dans la page ---------- */
.projets { padding: 80px 0; background: #fff; position: relative; }
.projets-grille { display: grid; gap: 24px; }
.projets-onglets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere); counter-reset: onglet; }
.projets-onglets::-webkit-scrollbar { display: none; }
.onglet {
  flex: none; display: flex; align-items: center; gap: 12px; cursor: pointer; counter-increment: onglet;
  padding: 12px 16px; border: 1.5px solid var(--gris-2); border-radius: var(--r); background: #fff;
  font-weight: 600; font-size: 14.5px; text-align: left; line-height: 1.55; user-select: none;
}
.onglet::before { content: counter(onglet, decimal-leading-zero); font: 600 11.5px var(--mono); color: var(--texte-3); }
.onglet br, .onglet em { display: none; }
.onglet.actif { border-color: var(--encre); background: var(--encre); color: #fff; }
.onglet.actif::before { color: #3DBA63; }
.projet { display: none; }
.projet.actif { display: grid; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--gris); }
.projet .projet-img { aspect-ratio: 16 / 10; position: relative; }
.projet .projet-img img { width: 100%; height: 100%; object-fit: cover; }
.projet-corps { padding: 24px; }
.projet-corps .projet-titre { font-size: 24px; font-weight: 700; }
.projet-corps .projet-texte { color: var(--texte-2); margin-top: 10px; }
.besoins { margin-top: 20px; display: grid; gap: 8px; }
.besoins li a {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; background: #fff; border-radius: 8px; font-size: 14px; font-weight: 500; border: 1px solid transparent;
}
.projets-grille > *, .projet.actif > * { min-width: 0; }
.besoins li a:hover { border-color: var(--bleu); }
.besoins li a::before { content: ""; width: 14px; height: 15px; background: var(--vert); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); justify-self: center; }
.besoins em { font: 400 12px var(--mono); font-style: normal; color: var(--texte-3); }
.projet-cta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.projet-cta .wp-block-button { margin: 0; }
.projet-cta .wp-block-button.lien-fleche { margin-left: 8px; }
@media (min-width: 1024px) {
  .projets-grille { grid-template-columns: 300px 1fr; gap: 32px; }
  .projets-onglets { flex-direction: column; margin: 0; padding: 0; overflow: visible; }
  .onglet { padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; gap: 2px 8px; align-items: start; }
  .onglet::before { grid-row: span 2; line-height: 22px; }
  .onglet br { display: none; }
  .onglet em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; line-height: 1.55; color: var(--texte-3); grid-column: 2; }
  .onglet.actif em { color: #9FB0C6; }
  .projet.actif { grid-template-columns: 1fr 1.05fr; }
  .projet .projet-img { aspect-ratio: auto; }
  .projet-corps { padding: 36px 36px 34px; }
  .projet-corps .projet-titre { font-size: 30px; }
}

/* ---------- PRODUITS (exemples de maquette et Collection de produits WooCommerce) ---------- */
.produits { padding: 72px 0; background: var(--gris); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere) 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: 44%; } }
@media (min-width: 1024px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; } }

.carte { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid var(--gris-2); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.carte:hover { border-color: #C3D3E4; box-shadow: var(--ombre); }
.carte .carte-img { margin: 10px 10px 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--gris); }
.carte .carte-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 18px; left: 18px; z-index: 2; font: 600 11px var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; }
.badge-neuf { background: var(--encre); color: #fff; }
.carte-corps { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-cat, .carte-cat a { font: 500 11px var(--mono); color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.carte .carte-titre { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; min-height: 2.7em; }
.puces { display: flex; flex-wrap: wrap; gap: 5px; }
.puces li { font: 500 11px var(--mono); color: var(--bleu-fonce); background: var(--bleu-pale); padding: 3px 7px; border-radius: 5px; }
.carte-pied { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.prix { font: 600 17px var(--mono); letter-spacing: -.02em; }
.prix sub { font-size: 11px; font-weight: 500; color: var(--texte-2); margin-left: 2px; vertical-align: baseline; }
.prix-barre { display: block; font: 400 12px var(--mono); color: var(--texte-3); text-decoration: line-through; }
.stock { font: 500 11px var(--mono); color: var(--vert); display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.faible { color: var(--bleu); }
.ajout { flex: none; }
.ajout a {
  width: 42px; height: 42px; border-radius: 9px; background: var(--vert); color: #fff; font-size: 0;
  display: grid; place-items: center;
}
.ajout a::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; }
.ajout a:hover { background: var(--vert-fonce); }

/* populaires : liste classée, autre gabarit */
.populaires { padding: 80px 0; background: #fff; }
.populaires-grille { display: grid; gap: 28px; }
.classement { display: grid; gap: 10px; counter-reset: rang; }
.ligne-prod {
  position: relative; display: grid; grid-template-columns: 26px 84px 1fr auto; align-items: center; gap: 14px; counter-increment: rang;
  padding: 10px 14px 10px 10px; border: 1px solid var(--gris-2); border-radius: var(--r); background: #fff;
}
.ligne-prod:hover { border-color: var(--bleu); }
.ligne-prod::before { content: counter(rang, decimal-leading-zero); font: 600 13px var(--mono); color: var(--texte-3); text-align: center; }
.ligne-prod .ligne-img img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; }
.ligne-prod .ligne-titre { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.ligne-prod .ref { font: 400 11.5px var(--mono); color: var(--texte-3); margin-top: 3px; }
.ligne-prod .puces { margin-top: 6px; }
.ligne-prod .ajout a { width: 38px; height: 38px; }
.ligne-prod .p-ligne { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; flex-wrap: nowrap; white-space: nowrap; }
.ligne-prod .p-ligne .prix { font-size: 15.5px; }
.pop-encart { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--encre); color: #fff; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.pop-encart::before { content: ""; position: absolute; inset: 0; opacity: .35; background: var(--pistes-pop) center / 100% 100% no-repeat; pointer-events: none; }
.pop-encart > * { position: relative; }
.pop-encart .sur-titre { color: #7FB6E6; }
.pop-encart .encart-titre { font-size: 26px; font-weight: 700; margin-top: 4px; }
.pop-encart .encart-texte { color: #B9C6D8; }
.pop-encart .encart-cta { margin-top: auto; }
@media (min-width: 1024px) {
  .populaires-grille { grid-template-columns: 1fr 1fr 340px; gap: 16px 20px; align-items: stretch; }
  .populaires-grille > .pc-populaires { grid-column: span 2; }
  .classement { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .pop-encart { min-height: 0; padding: 32px 30px; }
}
@media (max-width: 767px) {
  .ligne-prod { grid-template-columns: 72px 1fr auto; padding: 10px; gap: 12px; }
  .ligne-prod::before, .ligne-prod .puces { display: none; }
  .ligne-prod .ligne-img img { width: 72px; height: 72px; }
}
/* 320-359 px : la ligne prix + disponibilité passe sur deux lignes au lieu de déborder */
@media (max-width: 359px) { .ligne-prod .p-ligne { flex-wrap: wrap; gap: 0 10px; } }

/* promos : bande Encre */
.promos { position: relative; padding: 80px 0; background: var(--encre); color: #fff; overflow: hidden; }
.promos::before { content: ""; position: absolute; inset: 0; background: var(--pistes-promos) center / 100% 100% no-repeat; pointer-events: none; }
.promos > .enveloppe { position: relative; }
.promos .tete-titre { color: #fff; }
.promos .tete-texte { color: #B9C6D8; }
.promos .sur-titre, .promos .lien-fleche a { color: #7FB6E6; }
.promos-grille { position: relative; display: grid; gap: 14px; }
.promo { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: var(--encre-2); border: 1px solid var(--encre-trait); border-radius: var(--r); padding: 12px; }
.promo:hover { border-color: var(--bleu); }
.promo-visuel { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; }
.promo-visuel .promo-img, .promo-visuel .promo-img img { width: 100%; height: 100%; }
.promo-visuel .promo-img img { object-fit: cover; }
.promo .remise { position: absolute; top: 8px; left: 8px; font: 600 12px var(--mono); background: var(--bleu); color: #fff; padding: 4px 8px; border-radius: 6px; }
.promo .carte-cat { color: #7A8BA3; line-height: 23.25px; }
.promo .promo-titre { font-size: 15px; font-weight: 600; margin: 5px 0 10px; line-height: 1.35; }
.promo .prix { font-size: 19px; color: #fff; }
.promo .prix sub { color: #9FB0C6; }
.promo .prix-barre { color: #7A8BA3; }
.promo .ajout { margin-left: auto; }
.promo .p-pied { display: flex; align-items: flex-end; gap: 10px; }
@media (min-width: 768px) { .promos-grille { gap: 16px; } .promo { grid-template-columns: 132px 1fr; padding: 12px; } }
@media (min-width: 1024px) { .promos-grille { grid-template-columns: repeat(3, 1fr); } }

/* Collection de produits : les vrais produits prennent l'allure des cartes de la maquette */
.wp-block-woocommerce-product-collection { margin: 0; }
.pc-nouveautes .wc-block-product-template, .pc-promos .wc-block-product-template { gap: 16px; }
.pc-carte .wc-block-product { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: var(--r); border: 1px solid var(--gris-2); padding: 10px 10px 16px; }
.pc-carte .wc-block-product:hover { border-color: #C3D3E4; box-shadow: var(--ombre); }
.pc-carte .pc-img { border-radius: 8px; overflow: hidden; background: var(--gris); margin: 0; }
.pc-carte .carte-cat, .pc-carte .pc-titre, .pc-carte .pc-prix, .pc-carte .pc-stock { padding: 0 6px; margin: 0; text-align: left; }
.pc-titre, .pc-titre a { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pc-prix, .pc-prix .woocommerce-Price-amount { font: 600 17px var(--mono); letter-spacing: -.02em; }
.pc-prix del { font: 400 12px var(--mono); color: var(--texte-3); }
.pc-stock, .pc-stock p { font: 500 11px var(--mono); color: var(--vert); margin: 0; }
.pc-ajout .wp-block-button__link, .pc-ajout .add_to_cart_button { background: var(--vert); color: #fff; border-radius: 9px; font-weight: 600; }
.pc-ajout { margin: 0 6px; }
.promos .pc-carte .wc-block-product { background: var(--encre-2); border-color: var(--encre-trait); color: #fff; }
.pc-ligne .wc-block-product { display: grid; grid-template-columns: 84px 1fr auto; gap: 4px 14px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid var(--gris-2); border-radius: var(--r); background: #fff; }
.pc-ligne .pc-img { grid-row: span 4; width: 84px; margin: 0; border-radius: 8px; overflow: hidden; }
.pc-ligne .pc-titre, .pc-ligne .pc-ref, .pc-ligne .pc-prix, .pc-ligne .pc-stock { grid-column: 2; margin: 0; text-align: left; }
.pc-ligne .pc-ajout { grid-column: 3; grid-row: 1 / span 4; }
.pc-ref { font: 400 11.5px var(--mono); color: var(--texte-3); }

/* ---------- RÉASSURANCE ---------- */
.assurance { padding: 64px 0 56px; background: #fff; border-bottom: 1px solid var(--gris-2); }
.assurance-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.garantie { display: grid; gap: 10px; align-content: start; }
.garantie::before {
  content: ""; width: 50px; height: 56px; background: var(--bleu-pale);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.garantie::after {
  content: ""; position: absolute; top: 17px; left: 14px; width: 22px; height: 22px; background: var(--bleu);
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.garantie { position: relative; }
.garantie.vert::before { background: var(--vert-pale); }
.garantie.vert::after { background: var(--vert); }
.g-box::after { -webkit-mask-image: var(--i-box); mask-image: var(--i-box); }
.g-truck::after { -webkit-mask-image: var(--i-truck); mask-image: var(--i-truck); }
.g-card::after { -webkit-mask-image: var(--i-card); mask-image: var(--i-card); }
.g-store::after { -webkit-mask-image: var(--i-store); mask-image: var(--i-store); }
.g-chip::after { -webkit-mask-image: var(--i-chip); mask-image: var(--i-chip); }
.g-wa::after { -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.garantie .garantie-titre { font-size: 15.5px; font-weight: 600; }
.garantie .garantie-texte { font-size: 13.5px; color: var(--texte-2); line-height: 1.5; }
.garantie code { font-family: var(--mono); font-size: inherit; background: none; padding: 0; }
@media (min-width: 768px) { .assurance-grille { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .assurance-grille { grid-template-columns: repeat(6, 1fr); } }

/* ---------- À PROPOS ---------- */
.apropos { padding: 88px 0; background: var(--gris); position: relative; overflow: hidden; }
.apropos-grille { display: grid; gap: 40px; align-items: center; }
.apropos-visuel { position: relative; }
.apropos-visuel .apropos-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; }
.apropos-visuel .apropos-photo img { width: 100%; height: 100%; object-fit: cover; }
.apropos-visuel .apropos-logo { position: absolute; right: -12px; bottom: -22px; width: 58%; max-width: 300px; background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--ombre); }
.apropos .apropos-titre { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; margin: 14px 0 18px; }
.apropos .apropos-titre em { font-style: italic; font-weight: 800; color: var(--vert); }
.apropos-texte .apropos-p { color: var(--texte-2); font-size: 16px; }
.apropos-texte .apropos-p + .apropos-p { margin-top: 12px; }
.publics { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.publics li { font: 500 12.5px var(--mono); padding: 8px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--gris-2); }
.apropos-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.apropos-cta .wp-block-button { margin: 0; }
@media (min-width: 1024px) {
  .apropos-grille { grid-template-columns: 1fr 1.1fr; gap: 80px; }
  .apropos-visuel .apropos-photo { aspect-ratio: 5 / 6; }
}

/* ---------- APPEL WHATSAPP ---------- */
.introuvable { padding: 0 0 88px; background: var(--gris); }
.introuvable-boite { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--vert); color: #fff; padding: 36px 26px; display: grid; gap: 22px; }
.introuvable-boite::before { content: ""; position: absolute; inset: 0; background: var(--pistes-intro) center / 100% 100% no-repeat; pointer-events: none; }
.introuvable-boite > * { position: relative; }
.introuvable-boite .intro-titre { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; max-width: 18ch; }
.introuvable-boite .intro-p { color: #D9F0E0; max-width: 560px; margin-top: 10px; }
.introuvable-boite .intro-cta .wp-block-button { margin: 0; }
.introuvable-boite .num { font: 600 15px var(--mono); color: #fff; opacity: .9; margin-top: 12px; }
@media (min-width: 1024px) {
  .introuvable-boite { grid-template-columns: 1fr auto; align-items: center; padding: 48px 52px; }
  .introuvable-boite .cote { display: grid; justify-items: end; gap: 12px; }
  .introuvable-boite .num { margin-top: 0; }
}
@media (max-width: 767px) { .introuvable-boite .cote { display: grid; gap: 12px; justify-items: start; } .introuvable-boite .num { margin-top: 0; } }
@media (min-width: 768px) and (max-width: 1023px) { .introuvable-boite .cote { display: flex; align-items: baseline; gap: 4px; } .introuvable-boite .num { margin-top: 0; } }

/* gabarit d'accueil : pas de fond gris global, les sections portent leur fond */
.site-accueil { background: #fff; }

/* ==========================================================================
   BOUTIQUE — catalogue, catégories, recherche (maquette-v2/boutique.css)
   Même feuille pour l'état « Exemple de maquette » (blocs natifs) et pour
   les vrais produits (blocs WooCommerce) : les classes sont communes.
   ========================================================================== */
:root {
  --pistes-bq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='xMaxYMid slice'%3E%3Cg fill='none' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='%232A4263' d='M1460 60 H1300 L1260 100 H1120'/%3E%3Cpath stroke='%232A4263' d='M980 -10 V30 L1020 70 H1060'/%3E%3Cpath stroke='%231E79BF' d='M1460 170 H1360 L1320 210 H1240'/%3E%3Cpath stroke='%230C8E36' d='M1180 -10 V40 L1210 70 H1290 L1320 40'/%3E%3C/g%3E%3Cpolygon points='1112,92 1119,96 1119,104 1112,108 1105,104 1105,96' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='1068,62 1075,66 1075,74 1068,78 1061,74 1061,66' fill='%230D1B2E' stroke='%232A4263' stroke-width='2.2'/%3E%3Cpolygon points='1232,202 1239,206 1239,214 1232,218 1225,214 1225,206' fill='%230D1B2E' stroke='%231E79BF' stroke-width='2.2'/%3E%3Cpolygon points='1326,26 1333,30 1333,38 1326,42 1319,38 1319,30' fill='%230D1B2E' stroke='%230C8E36' stroke-width='2.2'/%3E%3C/svg%3E");
  --i-filtre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E");
  --i-liste: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Crect x='3.5' y='4.5' width='3' height='3' rx='.5'/%3E%3Crect x='3.5' y='10.5' width='3' height='3' rx='.5'/%3E%3Crect x='3.5' y='16.5' width='3' height='3' rx='.5'/%3E%3C/svg%3E");
  --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}

.boutique { --h-entete: 124px; }
:is(.boutique, .editor-styles-wrapper) [hidden] { display: none !important; }
:is(.boutique, .editor-styles-wrapper) .prix { white-space: nowrap; }
:is(.boutique, .editor-styles-wrapper) .demo { margin-top: 0; }

/* ---------- bandeau de titre : Encre compact ---------- */
.bq-bandeau { position: relative; background: var(--encre); color: #fff; overflow: hidden; }
.bq-bandeau::before { content: ""; position: absolute; inset: 0; background: var(--pistes-bq) center / 100% 100% no-repeat; opacity: .9; pointer-events: none; }
.bq-bandeau > .enveloppe { position: relative; z-index: 2; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
:is(.boutique, .editor-styles-wrapper) .ariane, :is(.boutique, .editor-styles-wrapper) .ariane .woocommerce-breadcrumb { margin: 0; font-size: 13px; line-height: 1.55; color: #fff; }
:is(.boutique, .editor-styles-wrapper) .ariane.wc-block-breadcrumbs nav.woocommerce-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; }
:is(.boutique, .editor-styles-wrapper) .ariane a { color: #9FB0C6; }
:is(.boutique, .editor-styles-wrapper) .ariane a:hover { color: #fff; }
:is(.boutique, .editor-styles-wrapper) .ariane .sep { color: #5E7290; }
.bq-titre { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.bq-titre .bq-h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.03em; margin: 0; }
.bq-titre .bq-intro { color: #B9C6D8; margin-top: 8px; max-width: 620px; font-size: 15px; }
.bq-titre .bq-intro p { margin: 0; }
.bq-total { display: flex; align-items: center; gap: 10px; margin: 0 !important; color: #D6E0EC; white-space: nowrap; }
.bq-total b { font-size: 20px; color: #fff; }
.bq-bandeau .demo { color: #9FB0C6; border-color: #3A5270; }

.bq-familles { margin: 0 calc(var(--gouttiere) * -1); }
.bq-familles ul { list-style: none; margin: 0; padding: 0 var(--gouttiere) 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.bq-familles ul::-webkit-scrollbar { display: none; }
.bq-familles a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 40px;
  padding: 8px 14px; border: 1px solid var(--encre-trait); border-radius: 9px; background: var(--encre-2);
  font-size: 14px; font-weight: 500; color: #D6E0EC; line-height: 1.55;
}
.bq-familles a .n { font: 500 11.5px var(--mono); color: #7A8BA3; }
.bq-familles a:hover { border-color: var(--bleu); color: #fff; }
.bq-familles a.actif { background: #fff; border-color: #fff; color: var(--encre); font-weight: 600; }
.bq-familles a.actif .n { color: var(--bleu); }
@media (min-width: 1024px) {
  .bq-bandeau > .enveloppe { padding-top: 28px; padding-bottom: 26px; gap: 22px; }
  .bq-familles { margin: 0; }
  .bq-familles ul { padding: 0; flex-wrap: wrap; overflow: visible; }
}

/* ---------- zone catalogue ---------- */
.bq-zone { background: var(--gris); padding: 20px 0 64px; }
.bq-grille { display: block; }
@media (min-width: 1024px) {
  .bq-zone { padding-top: 28px; }
  .bq-grille { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: start; }
}
.bq-resultats, .bq-collection { min-width: 0; }

/* ---------- filtres ---------- */
.filtres { background: #fff; }
.f-tete { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--gris-2); }
.f-tete .f-titre { font-size: 18px; font-weight: 700; }
.f-fermer .wp-block-button__link {
  width: 44px; height: 44px; min-height: 0; padding: 0; border: 0; background: var(--gris); border-radius: 10px;
  font-size: 0; color: var(--texte); display: grid; place-items: center;
}
.f-fermer .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-x) center / contain no-repeat; mask: var(--i-x) center / contain no-repeat; }
.filtres .f-corps { display: block; padding: 4px 16px 16px; }
.filtres .f-corps .wc-block-product-filters__content { display: block; gap: 0; }
.filtres .f-demo-avis { display: flex; width: max-content; margin: 10px 0 2px; }
.f-groupe { border-bottom: 1px solid var(--gris-2); padding: 4px 0 12px; margin: 0; }
.f-groupe:last-of-type { border-bottom: 0; }
.f-groupe > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 8px; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte);
}
.f-groupe > summary::-webkit-details-marker { display: none; }
.f-groupe > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--texte-3); border-bottom: 2px solid var(--texte-3); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.f-groupe[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.f-groupe > summary code { font: inherit; background: none; padding: 0; margin-left: 6px; margin-right: auto; color: var(--texte-3); font-weight: 500; }
.f-seul { padding: 14px 0; }

/* cases à cocher (exemple de maquette et interrupteur promotions) */
:is(.boutique, .editor-styles-wrapper) .case {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; min-height: 36px;
  padding: 4px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--texte);
}
:is(.boutique, .editor-styles-wrapper) .case:hover { background: var(--gris); }
:is(.boutique, .editor-styles-wrapper) .case::before { content: ""; width: 18px; height: 18px; border: 1.5px solid #B8C3D1; border-radius: 5px; background: #fff center / 11px no-repeat; }
:is(.boutique, .editor-styles-wrapper) .case.coche::before { background-color: var(--bleu); border-color: var(--bleu); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M9.25 1.2 3.75 6.7 1 3.95' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
:is(.boutique, .editor-styles-wrapper) .case code { font: 500 12px var(--mono); color: var(--texte-3); background: none; padding: 0; }
:is(.boutique, .editor-styles-wrapper) .case.vide { opacity: .42; }
:is(.boutique, .editor-styles-wrapper) .case.interrupteur { font-weight: 600; }
:is(.boutique, .editor-styles-wrapper) .case.interrupteur code { font-weight: 500; }
.f-promo { margin: 0; }
.f-promo .case { margin: 0 -6px; }
.filtres .f-corps .f-demo { display: grid; gap: 1px; }
.filtres .f-corps .f-demo .plus { display: none; }
.filtres .f-corps .f-demo.tout-voir .plus { display: grid; }
.filtres .f-corps .f-famille { position: relative; display: grid; gap: 1px; }
.f-famille > .f-parent { margin-right: 28px; }
.f-famille::after {
  content: ""; position: absolute; top: 2px; right: 0; width: 32px; height: 32px; border-radius: 7px; cursor: pointer;
  background: var(--texte-3); -webkit-mask: var(--i-chev) center / 16px no-repeat; mask: var(--i-chev) center / 16px no-repeat; transition: transform .15s;
}
.f-famille.deplie::after { transform: rotate(180deg); }
.filtres .f-corps .f-sous { display: none; gap: 1px; padding-left: 26px; margin: 2px 0 6px 8px; border-left: 1px solid var(--gris-2); }
.filtres .f-corps .f-famille.deplie > .f-sous { display: grid; }
.f-sous .case { font-size: 13.5px; color: var(--texte-2); }
:is(.boutique, .editor-styles-wrapper) .case.f-separe { margin-top: 6px; padding-top: 10px; min-height: 43px; border-top: 1px dashed var(--gris-2); border-radius: 0 0 7px 7px; }

/* prix (exemple) */
.f-prix { padding: 6px 2px 0; }
.f-prix .curseur { position: relative; height: 28px; }
.f-prix .curseur::before, .f-prix .curseur::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: var(--gris-2); }
.f-prix .curseur::after { background: var(--bleu); }
.f-prix .poignee { position: absolute; top: 5px; left: 0; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); box-shadow: 0 1px 4px rgba(13,27,46,.2); }
.f-prix .poignee + .poignee { left: auto; right: 0; }
.filtres .f-corps .f-prix .bornes { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-top: 10px; }
.filtres .f-corps .f-prix .borne { display: grid; gap: 4px; }
.f-prix .borne-l { font: 500 11px var(--mono); color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.f-prix .borne-v { height: 38px; padding: 0 10px; border: 1px solid var(--gris-2); border-radius: 8px; font: 500 14px/36px var(--mono); color: var(--texte); }
.f-prix .borne-sep { padding-bottom: 10px; color: var(--texte-3); }

.f-chercher { width: 100%; height: 38px; margin: 2px 0 8px; padding: 0 12px; border: 1px solid var(--gris-2); border-radius: 8px; font: 400 14px var(--sans); }
.f-chercher:focus { outline: none; border-color: var(--bleu); }
.f-demo .voir-plus, .wc-block-product-filter-checkbox-list__show-more-button { border: 0; background: none; padding: 6px 0; font-weight: 600; font-size: 13.5px; color: var(--bleu); cursor: pointer; }
.f-note { margin-top: 14px; padding: 12px; border-radius: 8px; background: var(--gris); font-size: 12.5px; color: var(--texte-2); line-height: 1.5; }

/* vrais filtres WooCommerce : même allure que la maquette */
.filtres .wc-block-product-filter-checkbox-list fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filtres .wc-block-product-filter-checkbox-list__items { display: grid; gap: 1px; }
.filtres .wc-block-product-filter-checkbox-list__item { position: relative; }
.filtres .wc-block-product-filter-checkbox-list__label {
  display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 10px; min-height: 36px;
  padding: 4px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--texte);
}
.filtres .wc-block-product-filter-checkbox-list__label:hover { background: var(--gris); }
.filtres .wc-block-product-filter-checkbox-list__input-wrapper { position: relative; width: 18px; height: 18px; display: grid; place-items: center; }
.filtres .wc-block-product-filter-checkbox-list__input {
  appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #B8C3D1; border-radius: 5px; background: #fff; cursor: pointer;
}
.filtres .wc-block-product-filter-checkbox-list__input:checked { background: var(--bleu); border-color: var(--bleu); }
.filtres .wc-block-product-filter-checkbox-list__input:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.filtres .wc-block-product-filter-checkbox-list__mark { position: absolute; width: 10px; height: 8px; color: #fff; pointer-events: none; display: none; }
.filtres .wc-block-product-filter-checkbox-list__input:checked + .wc-block-product-filter-checkbox-list__mark { display: block; }
.filtres .wc-block-product-filter-checkbox-list__text-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.filtres .wc-block-product-filter-checkbox-list__count { font-size: 0; }
.filtres .wc-block-product-filter-checkbox-list__count span { font: 500 12px var(--mono); color: var(--texte-3); }
.filtres .wc-block-product-filter-checkbox-list__input:disabled ~ * , .filtres .wc-block-product-filter-checkbox-list__label:has(:disabled) { opacity: .42; }
/* arbre des catégories (profondeur lue par app.js) */
.filtres .f-cats .wc-block-product-filter-checkbox-list__item.est-parent { padding-right: 34px; }
.filtres .f-cats .f-bascule { position: absolute; top: 2px; right: 0; width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--texte-3); display: grid; place-items: center; cursor: pointer; }
.filtres .f-cats .f-bascule:hover { background: var(--gris); color: var(--texte); }
.filtres .f-cats .f-bascule::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; transition: transform .15s; }
.filtres .f-cats .f-bascule[aria-expanded="true"]::before { transform: rotate(180deg); }
.filtres .f-cats .wc-block-product-filter-checkbox-list__item.est-enfant { padding-left: 26px; margin-left: 8px; border-left: 1px solid var(--gris-2); }
.filtres .f-cats .wc-block-product-filter-checkbox-list__item.est-enfant .wc-block-product-filter-checkbox-list__label { font-size: 13.5px; color: var(--texte-2); }
.filtres .f-cats .wc-block-product-filter-checkbox-list__item.replie { display: none; }
/* curseur de prix WooCommerce */
.filtres .wc-block-product-filter-price-slider__content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 10px 8px; padding: 6px 2px 0; }
.filtres .wc-block-product-filter-price-slider__content::after { content: "—"; grid-column: 2; grid-row: 2; padding-bottom: 10px; color: var(--texte-3); }
.filtres .wc-block-product-filter-price-slider__range { grid-column: 1 / -1; position: relative; height: 28px; margin: 0; }
.filtres .wc-block-product-filter-price-slider__range .range-bar { position: absolute; left: 0; right: 0; top: 13px; height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--gris-2) var(--low), var(--bleu) var(--low), var(--bleu) var(--high), var(--gris-2) var(--high)); }
.filtres .wc-block-product-filter-price-slider__range input[type="range"] { position: absolute; left: 0; right: 0; top: 6px; width: 100%; height: 16px; margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; }
.filtres .wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); cursor: pointer; box-shadow: 0 1px 4px rgba(13,27,46,.2); }
.filtres .wc-block-product-filter-price-slider__range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--bleu); cursor: pointer; }
.filtres .wc-block-product-filter-price-slider__left { grid-column: 1; grid-row: 2; }
.filtres .wc-block-product-filter-price-slider__right { grid-column: 3; grid-row: 2; }
.filtres .wc-block-product-filter-price-slider__left::before, .filtres .wc-block-product-filter-price-slider__right::before { display: block; margin-bottom: 4px; font: 500 11px var(--mono); color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; }
.filtres .wc-block-product-filter-price-slider__left::before { content: "Min"; }
.filtres .wc-block-product-filter-price-slider__right::before { content: "Max"; }
.filtres .wc-block-product-filter-price-slider input.min[type="text"], .filtres .wc-block-product-filter-price-slider input.max[type="text"] { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--gris-2); border-radius: 8px; font: 500 14px var(--mono); color: var(--texte); }

.f-pied { display: block; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--gris-2); background: #fff; }
.f-pied-btns { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.f-pied-btns .wp-block-button { margin: 0; }
.f-pied-btns .f-effacer .wp-block-button__link { border: 1px solid var(--gris-2); background: #fff; color: var(--texte); padding: 0 18px; }
.f-pied-btns .f-appliquer .wp-block-button__link { width: 100%; }

/* mobile et tablette : panneau plein écran */
@media (max-width: 1023px) {
  .filtres {
    position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
    padding-top: env(safe-area-inset-top, 0px);
    transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .filtres.ouvert { transform: none; visibility: visible; }
  .filtres .f-corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
  .f-voile { position: fixed; inset: 0; z-index: 85; background: rgba(13,27,46,.5); }
  .admin-bar .filtres { top: var(--wp-admin--admin-bar--height, 0px); }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .filtres { left: auto; width: 420px; transform: translateX(100%); box-shadow: -20px 0 60px rgba(13,27,46,.25); }
  .filtres.ouvert { transform: none; }
}
@media (min-width: 1024px) {
  .filtres { position: sticky; top: calc(var(--h-entete) + 16px); max-height: calc(100vh - var(--h-entete) - 32px); overflow-y: auto; border: 1px solid var(--gris-2); border-radius: var(--r); scrollbar-width: thin; }
  .f-tete { padding: 14px 16px 10px; border-bottom: 0; }
  .f-fermer, .f-pied, .f-voile { display: none !important; }
  .filtres .f-corps { padding-top: 0; }
}

/* ---------- barre d'outils ---------- */
.bq-outils {
  position: sticky; top: var(--h-entete); z-index: 20; background: var(--gris);
  margin: 0 calc(var(--gouttiere) * -1); padding: 10px var(--gouttiere);
}
.o-ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-filtres .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid var(--encre); background: var(--encre); color: #fff; border-radius: var(--r); font-weight: 600; font-size: 14px; line-height: 1.55;
}
.btn-filtres .wp-block-button__link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-filtre) center / contain no-repeat; mask: var(--i-filtre) center / contain no-repeat; }
.btn-filtres .nb { min-width: 20px; height: 20px; border-radius: 10px; background: var(--vert); font: 600 11px/20px var(--mono); text-align: center; padding: 0 5px; }
.o-compte { font-size: 14px; color: var(--texte-2); margin: 0 auto 0 0; white-space: nowrap; }
.o-compte b { font-family: var(--mono); color: var(--texte); }
:is(.boutique, .editor-styles-wrapper) .o-tri, :is(.boutique, .editor-styles-wrapper) .o-tri form, .o-par, .o-par label { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--texte-3); white-space: nowrap; }
:is(.boutique, .editor-styles-wrapper) .o-tri label { font-size: 13px; color: var(--texte-3); margin: 0; }
:is(.boutique, .editor-styles-wrapper) .o-tri select, .o-par select {
  appearance: none; -webkit-appearance: none; min-height: 44px; margin: 0; padding: 0 34px 0 12px; border: 1px solid var(--gris-2); border-radius: var(--r);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1B2E' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center / 14px;
  font: 600 14px var(--sans); color: var(--texte); cursor: pointer;
}
.o-par { display: none; }
.o-vue { display: inline-flex; flex-wrap: nowrap; gap: 0; border: 1px solid var(--gris-2); border-radius: var(--r); background: #fff; padding: 3px; }
.o-vue .wp-block-button { margin: 0; }
.o-vue .wp-block-button__link { width: 38px; height: 36px; min-height: 0; padding: 0; border: 0; background: none; border-radius: 7px; display: grid; place-items: center; font-size: 0; color: var(--texte-3); }
.o-vue .wp-block-button__link::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-grid) center / contain no-repeat; mask: var(--i-grid) center / contain no-repeat; }
.o-vue .vue-liste .wp-block-button__link::before { -webkit-mask-image: var(--i-liste); mask-image: var(--i-liste); }
.o-vue .wp-block-button__link[aria-pressed="true"] { background: var(--encre); color: #fff; }
.o-actifs { display: flex; align-items: center; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.o-actifs::-webkit-scrollbar { display: none; }
.puce-filtre { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 12px; border-radius: 8px; border: 1px solid #C7D6E6; background: var(--bleu-pale); color: var(--bleu-fonce); font-size: 13px; font-weight: 500; white-space: nowrap; }
.puce-filtre::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-x) center / contain no-repeat; mask: var(--i-x) center / contain no-repeat; }
.puce-filtre:hover { border-color: var(--bleu); }
.tout-effacer { flex: none; font-size: 13px; font-weight: 600; color: var(--texte-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px; white-space: nowrap; }

@media (max-width: 639px) {
  .o-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "filtres tri" "compte vue"; gap: 8px; }
  .btn-filtres { grid-area: filtres; }
  .btn-filtres .wp-block-button__link { padding: 0 12px; gap: 6px; }
  :is(.boutique, .editor-styles-wrapper) .o-tri { grid-area: tri; min-width: 0; }
  :is(.boutique, .editor-styles-wrapper) .o-tri form { width: 100%; }
  :is(.boutique, .editor-styles-wrapper) .o-tri label { display: none; }
  :is(.boutique, .editor-styles-wrapper) .o-tri select { width: 100%; min-width: 0; }
  .o-compte { grid-area: compte; align-self: center; margin: 0; font-size: 13px; }
  .o-vue { grid-area: vue; justify-self: end; }
  .o-vue .wp-block-button__link { width: 34px; height: 32px; }
  .bq-bandeau::before { opacity: .35; }
}
@media (min-width: 1024px) {
  .bq-outils { margin: 0 0 4px; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--gris-2); top: calc(var(--h-entete) + 16px); }
  .bq-outils::before { content: ""; position: absolute; left: -2px; right: -2px; top: -18px; height: 17px; background: var(--gris); }
  .wp-block-buttons.btn-filtres { display: none; }
  .o-par { display: inline-flex; }
}

:is(.boutique, .editor-styles-wrapper) .bq-avis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 14px; font-size: 13px; color: var(--texte-2); }
.bq-avis strong { display: inline-flex; font: 500 11.5px var(--mono); letter-spacing: .04em; color: var(--texte-3); border: 1px dashed #B8C3D1; border-radius: 6px; padding: 3px 8px; }

/* ---------- grille de produits (exemple : groupes ; réel : modèle de produit) ---------- */
:is(.boutique, .editor-styles-wrapper) .produits, :is(.boutique, .editor-styles-wrapper) .wc-block-product-template.produits {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: auto; max-width: none;
}
.bq-collection > .wc-block-product-template.produits { margin-top: 12px; }
@media (min-width: 768px) { :is(.boutique, .editor-styles-wrapper) .produits, :is(.boutique, .editor-styles-wrapper) .wc-block-product-template.produits { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1280px) { :is(.boutique, .editor-styles-wrapper) .produits, :is(.boutique, .editor-styles-wrapper) .wc-block-product-template.produits { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.produits > .carte, .produits > .wc-block-product {
  position: relative; display: flex; flex-direction: column; min-width: 0; width: auto; margin: 0; background: #fff;
  border-radius: var(--r); border: 1px solid var(--gris-2); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.produits > .carte:hover, .produits > .wc-block-product:hover { border-color: #C3D3E4; box-shadow: var(--ombre); }
.produits .carte-img { margin: 8px 8px 0; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--gris); }
.produits .carte-img img { width: 100%; height: 100%; object-fit: cover; }
.produits .wc-block-components-product-image, .produits .wc-block-components-product-image a { display: block; height: 100%; }
.produits .badge { position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0; font: 600 11px var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; }
.produits .badge-promo { background: var(--bleu); color: #fff; }
.produits .badge-rupture { background: var(--texte-2); color: #fff; }
.produits .carte-corps { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.produits .carte-cat, .produits .carte-cat a { display: block; margin: 0; font: 500 10.5px var(--mono); color: var(--texte-3); text-transform: uppercase; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.produits .carte-titre, .produits .carte-titre a { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
.produits .carte-titre { min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.produits .carte-titre a:hover { color: var(--bleu); }
.produits .ref, .produits .ref .sku { margin: 0; font: 500 11.5px var(--mono); color: var(--texte-3); }
.produits .puces { display: flex; flex-wrap: wrap; gap: 5px; }
.produits .puces li, .produits .puces a { font: 500 10.5px var(--mono); color: var(--bleu-fonce); background: var(--bleu-pale); padding: 3px 7px; border-radius: 5px; }
.produits .puces .wp-block-post-terms { display: contents; }
.produits .puces .wp-block-post-terms__separator { display: none; }
.produits .specs { display: none; margin: 0; }
.produits .carte-pied { margin-top: auto; padding-top: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.produits .prix-bloc { display: grid; gap: 1px; min-width: 0; }
.produits .prix, .produits .prix .woocommerce-Price-amount { margin: 0; font: 600 16px var(--mono); letter-spacing: -.02em; text-align: left; }
.produits .prix sub, .produits .prix .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 500; color: var(--texte-2); margin-left: 2px; vertical-align: baseline; }
.produits .prix-barre, .produits .prix del, .produits .prix del .woocommerce-Price-amount { display: block; margin: 0; font: 400 12px var(--mono); color: var(--texte-3); text-decoration: line-through; }
.produits .prix ins { text-decoration: none; }
.produits .stock, .produits .stock p { margin: 3px 0 0; font: 500 11px var(--mono); color: var(--vert); display: flex; align-items: center; gap: 5px; }
.produits .stock p { margin: 0; }
.produits .stock::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.produits .stock.faible { color: var(--bleu); }
.produits .stock.commande, .produits .wc-block-components-product-stock-indicator--available-on-backorder { color: var(--texte-2); }
.produits .stock.commande::before, .produits .wc-block-components-product-stock-indicator--available-on-backorder::before { background: none; border: 1.5px solid currentColor; width: 5px; height: 5px; }
.produits .wc-block-components-product-stock-indicator--out-of-stock { color: var(--texte-3); }
.produits .stock.rupture { color: var(--texte-3); }
.produits .prix .woocommerce-Price-currencySymbol { margin-left: 0; }
.produits .actions-carte { display: flex; align-items: center; gap: 6px; flex: none; }
.produits .ajout { flex: none; margin: 0; }
.produits .ajout a, .produits .ajout .wp-block-button__link, .produits .ajout .add_to_cart_button {
  width: 42px; height: 42px; min-height: 0; padding: 0; border: 0; border-radius: 9px; background: var(--vert); color: #fff; font-size: 0;
  display: grid; place-items: center; text-decoration: none;
}
.produits .ajout a::before, .produits .ajout .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; }
.produits .ajout a:hover, .produits .ajout .wp-block-button__link:hover { background: var(--vert-fonce); }
.produits .ajout .wc-block-components-product-button__button { margin: 0; }
.produits .ajout .added_to_cart, .produits .ajout .wc-block-components-product-button__spinner { display: none; }
.produits .qte, .produits .wa-mini { display: none; margin: 0; }
.produits .btn-demande {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px;
  border: 1.5px solid var(--vert); border-radius: 9px; color: var(--vert-fonce); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.produits .btn-demande::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i-wa) center / contain no-repeat; mask: var(--i-wa) center / contain no-repeat; }
.produits .btn-demande:hover { background: var(--vert); color: #fff; }
.produits .btn-demande span { display: none; }
.produits .btn-demande::after { content: "Demander"; }
.produits > .wc-block-product:has(.badge-rupture) .carte-img img { filter: grayscale(1); opacity: .55; }
.produits > .wc-block-product:has(.badge-rupture) .prix { color: var(--texte-3); }

@media (max-width: 479px) {
  .produits .carte-corps { padding: 10px; }
  .produits .carte-titre, .produits .carte-titre a { font-size: 13.5px; }
  .produits .puces > :nth-child(2) { display: none; }
  .produits .carte-pied { flex-wrap: wrap; }
  .produits .prix, .produits .prix .woocommerce-Price-amount { font-size: 15px; }
  .produits .btn-demande { width: 100%; }
}

/* encart « Référence introuvable » (une seule fois dans la liste) */
.bq-encart {
  grid-column: 1 / -1; display: grid; gap: 16px; align-items: center;
  padding: 22px; border-radius: var(--r); background: var(--encre); color: #fff;
}
.bq-encart .sur-titre { color: #7FB6E6; }
.bq-encart .t { font-size: 19px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.01em; line-height: 1.55; }
.bq-encart .bq-encart-p { color: #B9C6D8; font-size: 14px; }
.bq-encart .bq-encart-cta { justify-self: start; }
.bq-encart-reel { margin-top: 12px; }
.produits .bq-encart-reel { margin-top: 0; }
@media (min-width: 768px) { .bq-encart { grid-template-columns: 1fr auto; padding: 22px 26px; } }

/* ---------- vue liste : comparer des composants ---------- */
.produits.vue-liste { grid-template-columns: 1fr !important; gap: 8px !important; }
.produits.vue-liste > .carte, .produits.vue-liste > .wc-block-product { display: grid; grid-template-columns: 88px 1fr; align-items: center; }
.produits.vue-liste .carte-img { margin: 8px; aspect-ratio: 1; width: 72px; }
.produits.vue-liste .badge { top: 6px; left: 6px; font-size: 9.5px; padding: 3px 6px; }
.produits.vue-liste .carte-corps { padding: 10px 12px 10px 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.produits.vue-liste .carte-titre { min-height: 0; -webkit-line-clamp: 2; }
.produits.vue-liste .carte-pied { padding-top: 4px; }
@media (min-width: 768px) {
  .produits.vue-liste > .carte, .produits.vue-liste > .wc-block-product { grid-template-columns: 112px 1fr; }
  .produits.vue-liste .carte-img { width: 96px; }
  .produits.vue-liste .carte-corps {
    grid-template-columns: minmax(170px, 1fr) minmax(0, 1.5fr) auto;
    grid-template-areas: "cat specs pied" "titre specs pied" "ref specs pied";
    column-gap: 20px; row-gap: 3px; align-items: center; padding: 12px 16px 12px 0;
  }
  .produits.vue-liste .carte-cat { grid-area: cat; }
  .produits.vue-liste .carte-titre { grid-area: titre; }
  .produits.vue-liste .carte-titre, .produits.vue-liste .carte-titre a { font-size: 15px; }
  .produits.vue-liste .ref { grid-area: ref; }
  .produits.vue-liste .puces { display: none; }
  .produits.vue-liste .specs { grid-area: specs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 12px; }
  .produits .spec { min-width: 0; }
  .produits .spec .dt, .produits .spec .wp-block-post-terms__prefix { display: block; margin: 0; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--texte-3); }
  .produits .spec .dd, .produits .spec a { display: block; margin: 2px 0 0; font: 600 12.5px/1.35 var(--mono); color: var(--texte); overflow-wrap: break-word; hyphens: none; }
  .produits .spec .wp-block-post-terms__separator { display: none; }
  .produits.vue-liste .carte-pied { grid-area: pied; display: grid; grid-template-columns: 104px auto; align-items: center; gap: 12px; padding: 0; margin: 0; }
  .produits.vue-liste .qte { display: block; width: 50px; height: 42px; border: 1px solid var(--gris-2); border-radius: 9px; text-align: center; font: 600 14px/40px var(--mono); }
  .produits.vue-liste .ajout a, .produits.vue-liste .ajout .wp-block-button__link { width: auto; padding: 0 14px; gap: 6px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; }
  .produits.vue-liste .ajout a::before, .produits.vue-liste .ajout .wp-block-button__link::before { width: 18px; height: 18px; }
  .produits.vue-liste .wa-mini { display: block; }
  .produits.vue-liste .wa-mini a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; border: 1.5px solid var(--vert); color: var(--vert); font-size: 0; }
  .produits.vue-liste .wa-mini a::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--i-wa) center / contain no-repeat; mask: var(--i-wa) center / contain no-repeat; }
  .produits.vue-liste .wa-mini a:hover { background: var(--vert); color: #fff; }
  .produits.vue-liste .btn-demande span { display: inline; }
  .produits.vue-liste .btn-demande::after { content: none; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .produits.vue-liste .carte-corps { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cat pied" "titre pied" "ref pied" "specs specs"; }
  .produits.vue-liste .specs { margin-top: 6px; }
}

/* ---------- aucun résultat ---------- */
:is(.boutique, .editor-styles-wrapper) .bq-vide { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; margin-top: 12px; background: #fff; border: 1px solid var(--gris-2); border-radius: var(--r); }
.bq-vide::before { content: ""; width: 34px; height: 34px; background: var(--texte-3); -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat; }
.bq-vide .bq-vide-titre { font-size: 20px; }
.bq-vide .bq-vide-p { color: var(--texte-2); max-width: 460px; }
.bq-vide-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.bq-vide-actions .v-tout .wp-block-button__link { border-color: var(--gris-2); background: #fff; color: var(--texte); }

/* ---------- pagination (exemple : paragraphes ; réel : bloc Pagination) ---------- */
:is(.boutique, .editor-styles-wrapper) .pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
:is(.boutique, .editor-styles-wrapper) .pagination .pg, :is(.boutique, .editor-styles-wrapper) .pagination a, :is(.boutique, .editor-styles-wrapper) .pagination .page-numbers {
  min-width: 44px; height: 44px; padding: 0 12px; margin: 0; border: 1px solid var(--gris-2); border-radius: var(--r); background: #fff;
  font: 600 14px var(--mono); color: var(--texte); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
:is(.boutique, .editor-styles-wrapper) .pagination .wp-block-query-pagination-numbers { display: flex; gap: 6px; margin: 0; }
:is(.boutique, .editor-styles-wrapper) .pagination a:hover { border-color: var(--bleu); color: var(--bleu); }
:is(.boutique, .editor-styles-wrapper) .pagination .courant, :is(.boutique, .editor-styles-wrapper) .pagination .page-numbers.current { background: var(--encre); border-color: var(--encre); color: #fff; }
:is(.boutique, .editor-styles-wrapper) .pagination .inactif { opacity: .4; }
:is(.boutique, .editor-styles-wrapper) .pagination .pg-prec, :is(.boutique, .editor-styles-wrapper) .pagination .pg-suiv, :is(.boutique, .editor-styles-wrapper) .pagination .wp-block-query-pagination-previous, :is(.boutique, .editor-styles-wrapper) .pagination .wp-block-query-pagination-next { font: 500 13px var(--sans); }
:is(.boutique, .editor-styles-wrapper) .pagination .pg-info { display: none; margin: 0; font-size: 14px; color: var(--texte-2); padding: 0 8px; }
@media (max-width: 639px) {
  :is(.boutique, .editor-styles-wrapper) .pagination { justify-content: space-between; }
  :is(.boutique, .editor-styles-wrapper) .pagination .pg-num, :is(.boutique, .editor-styles-wrapper) .pagination .wp-block-query-pagination-numbers { display: none; }
  :is(.boutique, .editor-styles-wrapper) .pagination .pg-info { display: block; }
  :is(.boutique, .editor-styles-wrapper) .pagination .pg, :is(.boutique, .editor-styles-wrapper) .pagination a { flex: 0 0 auto; padding: 0 16px; }
}

/* ---------- texte de catégorie ---------- */
.bq-texte { background: #fff; padding: 56px 0; border-bottom: 1px solid var(--gris-2); }
.bq-texte > .enveloppe { display: grid; gap: 20px; }
.bq-texte .bq-texte-titre { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin-top: 12px; }
.bq-texte-corps { display: grid; gap: 14px; color: var(--texte-2); max-width: 72ch; }
@media (min-width: 1024px) { .bq-texte > .enveloppe { grid-template-columns: 1fr 1.6fr; gap: 56px; } }

/* la réassurance suit directement le texte */
:is(.boutique, .editor-styles-wrapper) .assurance { border-bottom: 0; }
body.filtres-ouverts { overflow: hidden; }
.produits .ajout.ajoute a { background: var(--encre); }

/* ==========================================================================
   PRODUIT — fiche produit (maquette-v2/produit.css)
   Blocs WooCommerce officiels (galerie, prix, stock, formulaire d'ajout,
   collections) + paragraphes repères remplis par inc/produit.php.
   ========================================================================== */

:root {
  --i-cloche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z'/%3E%3Cpath d='M10 20.5h4'/%3E%3C/svg%3E");
  --i-code: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.5 8-4 4 4 4M15.5 8l4 4-4 4M13 6l-2 12'/%3E%3C/svg%3E");
  --i-copie: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Crect x='8.5' y='8.5' width='11' height='11' rx='2'/%3E%3Cpath d='M15.5 8.5V6a1.5 1.5 0 0 0-1.5-1.5H6A1.5 1.5 0 0 0 4.5 6v8A1.5 1.5 0 0 0 6 15.5h2.5'/%3E%3C/svg%3E");
  --i-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 3.5h8l4 4v13H6z'/%3E%3Cpath d='M14 3.5v4h4M9 12h6M9 15.5h6'/%3E%3C/svg%3E");
  --i-echange: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h13l-3.5-3.5M20 16H7l3.5 3.5'/%3E%3C/svg%3E");
  --i-livre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A1.5 1.5 0 0 1 5.5 4H11v16H5.5A1.5 1.5 0 0 1 4 18.5zM20 5.5A1.5 1.5 0 0 0 18.5 4H13v16h5.5a1.5 1.5 0 0 0 1.5-1.5z'/%3E%3C/svg%3E");
  --i-moins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  --i-ok: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-partage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='17.5' cy='5.5' r='2.5'/%3E%3Ccircle cx='6.5' cy='12' r='2.5'/%3E%3Ccircle cx='17.5' cy='18.5' r='2.5'/%3E%3Cpath d='m8.7 10.7 6.6-3.9M8.7 13.3l6.6 3.9'/%3E%3C/svg%3E");
}

.page-produit { --h-entete: 124px; }
.page-produit [hidden] { display: none !important; }
.page-produit .prix { white-space: nowrap; }
body.fwt-fiche .barre-mobile { display: none !important; }

/* icônes en masque CSS (span.ic + pseudo-éléments) */
.page-produit .ic, .ariane-court a::before, .copier::before, .pp-compat li::before, .pp-rassure li::before,
.pp-partage > span::before, .docs a::before, .ba-wa::before, .wc-block-components-quantity-selector__button::before,
.page-produit .lien-fleche a::after {
  content: ""; display: inline-block; flex: none; background: currentColor;
  -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat;
}
.page-produit .ic { width: 20px; height: 20px; }
.ic-wa { -webkit-mask-image: var(--i-wa) !important; mask-image: var(--i-wa) !important; }
.ic-panier { -webkit-mask-image: var(--i-cart) !important; mask-image: var(--i-cart) !important; }
.ic-cloche { -webkit-mask-image: var(--i-cloche) !important; mask-image: var(--i-cloche) !important; }
.ic-echange { -webkit-mask-image: var(--i-echange) !important; mask-image: var(--i-echange) !important; }

/* boutons de la fiche (liens rendus par le thème) */
.page-produit .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r);
  font-weight: 600; font-size: 15px; line-height: 1.2; border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap; text-decoration: none;
}
.page-produit .btn-vert { background: var(--vert); color: #fff; }
.page-produit .btn-vert:hover { background: var(--vert-fonce); color: #fff; }
.page-produit .btn-wa { border-color: var(--vert); color: var(--vert-fonce); background: #fff; }
.page-produit .btn-wa:hover { background: var(--vert); color: #fff; }
.page-produit .ref { font: 500 11.5px var(--mono); color: var(--texte-3); }

/* visuel temporaire, clairement générique */
.photo-attente { display: grid; place-items: center; text-align: center; color: #8A97A8; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase;
  background: repeating-linear-gradient(135deg, #EEF1F4 0 10px, #E7EBF0 10px 20px); }
.produits .carte-img.photo-attente { display: grid; align-content: center; justify-items: center; gap: 8px; margin: 10px 10px 0; aspect-ratio: 1; border-radius: 8px; }
.photo-attente::before { content: ""; width: 34px; height: 34px; background: currentColor; -webkit-mask: var(--i-chip) center / contain no-repeat; mask: var(--i-chip) center / contain no-repeat; }

/* ---------- fil d'Ariane ---------- */
.pp-ariane { background: #fff; border-bottom: 1px solid var(--gris-2); }
.pp-ariane > .enveloppe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 48px; padding-top: 4px; padding-bottom: 4px; }
.pp-ariane .ariane { display: none; margin: 0; font-size: 13px; line-height: 1.55; color: var(--texte-3); }
.pp-ariane .ariane { flex: 1 1 0; min-width: 0; }
.pp-ariane .ariane nav.woocommerce-breadcrumb { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; white-space: nowrap; margin: 0; padding: 0; font-size: 13px; color: var(--texte); font-weight: 500; }
.pp-ariane .ariane a { color: var(--texte-3); font-weight: 400; }
.pp-ariane .ariane a:hover { color: var(--bleu); }
.pp-ariane .ariane .sep { color: #B8C3D1; font-weight: 400; }
.pp-ariane .ariane .crumb { flex: none; }
.pp-ariane .ariane .crumb:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ariane-court { margin: 0; }
.ariane-court a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--bleu); white-space: nowrap; }
.ariane-court a::before { width: 16px; height: 16px; transform: rotate(90deg); -webkit-mask-image: var(--i-chev); mask-image: var(--i-chev); }
.pp-demo-label { margin: 0; flex: none; }
.pp-demo-label .demo { margin: 0; }
@media (min-width: 768px) { .pp-ariane .ariane { display: block; } .ariane-court { display: none; } }

/* ---------- zone d'achat ---------- */
.pp-haut { background: #fff; padding: 16px 0 40px; }
.pp-grille { display: grid; gap: 24px; }
.pp-notices:empty, .pp-notices:has(.woocommerce-notices-wrapper:empty) { display: none; }
.pp-notices { grid-column: 1 / -1; }
.pp-notices .wc-block-components-notice-banner { margin: 0; }
@media (min-width: 768px) { .pp-haut { padding-top: 28px; } .pp-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; } }
@media (min-width: 1024px) { .pp-haut { padding: 36px 0 56px; } .pp-grille { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }

/* galerie : bloc « Galerie de produit » de WooCommerce */
.pp-galerie { position: relative; min-width: 0; margin: 0 calc(var(--gouttiere) * -1); }
@media (min-width: 768px) { .pp-galerie { margin: 0; position: sticky; top: calc(var(--h-entete) + 20px); } }
.pp-galerie > .badge { position: absolute; top: 16px; left: 16px; z-index: 3; margin: 0; }
.pp-galerie > .badge-promo, .pp-galerie .wc-block-components-product-sale-badge { background: var(--bleu); color: #fff; font: 600 11px var(--mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 6px; border: 0; }
.pp-galerie .wp-block-woocommerce-product-sale-badge { position: absolute; top: 16px; left: 16px; z-index: 3; margin: 0; }
.pp-galerie > .badge-neuf + .wp-block-woocommerce-product-sale-badge { left: 112px; }
.pp-galerie .wc-block-product-gallery.pp-galerie-wc { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; }
.pp-galerie .wc-block-product-gallery-large-image { order: 0; position: relative; width: 100%; background: var(--gris); overflow: hidden; }
@media (min-width: 768px) { .pp-galerie .wc-block-product-gallery-large-image { border-radius: var(--r-lg); border: 1px solid var(--gris-2); } }
.pp-galerie .wc-block-product-gallery-large-image__wrapper { aspect-ratio: 1; }
.pp-galerie .wc-block-product-gallery-large-image .wc-block-components-product-image img { width: 100%; height: 100%; object-fit: cover !important; }
.pp-galerie .wc-block-product-gallery-large-image .wc-block-components-product-image img[src*="woocommerce-placeholder"] { object-fit: contain !important; opacity: .5; }
.pp-galerie .wc-block-components-product-image__inner-container { display: none; }
/* boutons précédent / suivant : ronds blancs, visibles au survol */
.pp-galerie .wc-block-product-gallery-large-image__inner-blocks { top: 0; left: 0; width: 100%; height: 100%; }
.pp-galerie .wc-block-next-previous-buttons { padding: 0 12px; }
.pp-galerie .wc-block-next-previous-buttons__button {
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; box-shadow: var(--ombre); color: var(--encre); opacity: 0 !important; transition: opacity .15s;
}
.pp-galerie .wc-block-next-previous-buttons__button[aria-disabled="true"] { opacity: 0 !important; pointer-events: none; }
.pp-galerie .wc-block-product-gallery-large-image:hover .wc-block-next-previous-buttons__button:not([aria-disabled="true"]), .pp-galerie .wc-block-next-previous-buttons__button:focus-visible { opacity: 1 !important; }
.pp-galerie .wc-block-next-previous-buttons__icon { width: 9px; height: 14px; }
/* compteur « 1 / 4 » et loupe (ajoutés par assets/produit.js) */
.g-compteur { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 4px 9px; border-radius: 6px; background: rgba(13,27,46,.78); color: #fff; font: 400 12px var(--mono); pointer-events: none; }
.g-zoom { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--ombre); color: var(--encre); }
.g-zoom::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-search) center / contain no-repeat; mask: var(--i-search) center / contain no-repeat; }
.g-points { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; }
.g-points i { width: 7px; height: 7px; border-radius: 50%; background: #C3CCD7; transition: width .15s; }
.g-points i.actif { background: var(--bleu); width: 18px; border-radius: 4px; }
/* miniatures : 76 px sous l'image (ordinateur), masquées sur mobile (points) */
.pp-galerie .wc-block-product-gallery-thumbnails { display: none; order: 1; aspect-ratio: auto !important; height: auto !important; width: 100% !important; flex-basis: auto !important; margin-top: 12px; -webkit-mask-image: none !important; mask-image: none !important; }
.pp-galerie .wc-block-product-gallery-thumbnails__scrollable { display: flex !important; flex-direction: row !important; gap: 10px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; height: auto; }
.pp-galerie .wc-block-product-gallery-thumbnails__thumbnail { flex: 0 0 76px !important; width: 76px !important; height: 76px !important; border: 1.5px solid var(--gris-2); border-radius: 10px; background: var(--gris); overflow: hidden; }
.pp-galerie .wc-block-product-gallery-thumbnails__thumbnail:has(.wc-block-product-gallery-thumbnails__thumbnail__image--is-active) { border-color: var(--bleu); box-shadow: 0 0 0 2px var(--bleu-pale); }
.pp-galerie .wc-block-product-gallery-thumbnails__thumbnail__image { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; filter: none !important; }
@media (min-width: 768px) { .g-points { display: none; } .pp-galerie .wc-block-product-gallery-thumbnails { display: block; } }
.pp-galerie .wc-block-product-gallery.is-single-product-gallery-image ~ .g-points,
.pp-galerie:has(.is-single-product-gallery-image) .g-compteur { display: none; }
/* visionneuse plein écran (dialogue WooCommerce) aux couleurs du site */
.wc-block-product-gallery-dialog { background: rgba(8,16,28,.96) !important; }
.wc-block-product-gallery-dialog__close-button { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12) !important; fill: #fff !important; display: grid; place-items: center; }
.wc-block-product-gallery-dialog__close-button:hover { background: rgba(255,255,255,.22) !important; }
.wc-block-product-gallery-dialog .wc-block-product-gallery-dialog__content img { max-width: min(900px, 100%); border-radius: var(--r); background: var(--gris); }

/* informations et achat */
.pp-achat { min-width: 0; display: grid; gap: 16px; align-content: start; }
.pp-cat { justify-self: start; margin: 0; }
.pp-cat a { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.pp-cat a:hover { color: var(--bleu-fonce); }
.pp-achat .pp-titre { font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -.025em; margin: -6px 0 0; line-height: 1.12; }
.pp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; color: var(--texte-2); margin-top: -6px; }
.pp-meta:empty { display: none; }
.pp-ref { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pp-ref b { color: var(--texte); font-weight: 600; }
.pp-meta .pp-ref + .pp-marque::before { content: "·"; color: #B8C3D1; margin-right: 10px; }
.pp-marque { margin: 0; font-size: 13.5px; }
.pp-meta .pp-marque a { color: inherit; }
.pp-meta .pp-marque a:hover { color: var(--bleu); }
.copier { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--gris-2); background: #fff; border-radius: 7px; min-height: 30px; padding: 0 8px; font-size: 12.5px; font-weight: 600; color: var(--texte-2); cursor: pointer; }
.copier::before { width: 15px; height: 15px; -webkit-mask-image: var(--i-copie); mask-image: var(--i-copie); }
.copier:hover { border-color: var(--bleu); color: var(--bleu); }
.copier.fait { border-color: var(--vert); color: var(--vert-fonce); }
.copier.fait::before { -webkit-mask-image: var(--i-ok); mask-image: var(--i-ok); }
.pp-ref .copier { min-height: 30px; width: 30px; padding: 0; justify-content: center; }
.pp-partage .copier::before { content: none; }
.code-tete .copier::before { width: 15px; height: 15px; -webkit-mask-image: var(--i-copie); mask-image: var(--i-copie); content: ""; }

.pp-stock { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 13.5px var(--mono); }
.pp-stock i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.pp-stock.s-stock { color: var(--vert); }
.pp-stock.s-faible { color: var(--bleu); }
.pp-stock.s-commande { color: var(--texte-2); }
.pp-stock.s-commande i { background: none; border: 2px solid currentColor; }
.pp-stock.s-rupture { color: var(--texte-3); }

.pp-prix { margin: 0; }
.pp-prix .wc-block-components-product-price, .pp-prix .woocommerce-Price-amount { font: 600 32px var(--mono); letter-spacing: -.03em; color: var(--encre); line-height: 1.2; text-align: left; white-space: nowrap; }
.pp-prix .woocommerce-Price-currencySymbol { font-size: 14px; font-weight: 500; color: var(--texte-2); }
.pp-prix del, .pp-prix del .woocommerce-Price-amount { font-size: 18px; font-weight: 400; color: var(--texte-3); margin-right: 10px; }
.pp-prix ins { text-decoration: none; }
[data-stock="rupture"] .pp-prix .woocommerce-Price-amount { color: var(--texte-3); }
.pp-resume, .pp-resume p { color: var(--texte-2); font-size: 15.5px; line-height: 1.6; max-width: 60ch; margin: 0; }
.pp-resume p + p { margin-top: 10px; }

.pp-cles { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--gris-2); border-radius: var(--r); overflow: hidden; background: var(--gris-2); gap: 1px; }
.pp-cles div { background: var(--gris); padding: 12px 14px; min-width: 0; }
.pp-cles dt { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.pp-cles dd { margin: 4px 0 0; font: 600 16px var(--mono); color: var(--encre); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-cles.n-1 { grid-template-columns: 1fr; }
.pp-cles.n-3 div:last-child { grid-column: 1 / -1; }
@media (min-width: 1280px) { .pp-cles.n-4 { grid-template-columns: repeat(4, 1fr); } .pp-cles.n-3 { grid-template-columns: repeat(3, 1fr); } .pp-cles.n-3 div:last-child { grid-column: auto; } }

.pp-compat { display: grid; gap: 8px; }
.pp-compat-t { margin: 0; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.pp-compat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-compat li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500; background: var(--vert-pale); color: var(--vert-fonce); }
.pp-compat li::before { width: 15px; height: 15px; -webkit-mask-image: var(--i-ok); mask-image: var(--i-ok); }

/* actions : formulaire WooCommerce (quantité + Ajouter au panier) puis WhatsApp */
.pp-actions { display: grid; gap: 10px; padding-top: 4px; }
.pp-actions .btn { min-height: 52px; font-size: 15.5px; }
.pp-panier { margin: 0; }
.pp-panier > .stock, .pp-panier p.stock { display: none; }
.pp-panier form.cart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin: 0 !important; padding: 0 !important; }
.pp-panier form.cart::before, .pp-panier form.cart::after { content: none !important; display: none !important; }
.pp-panier form.cart.variations_form { grid-template-columns: 1fr; }
.pp-panier .single_variation_wrap .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.pp-panier form.cart .quantity.wc-block-components-quantity-selector {
  display: inline-flex; margin: 0 !important; align-items: stretch; width: auto; height: 52px; margin: 0; border: 1.5px solid var(--gris-2); border-radius: var(--r); overflow: hidden; background: #fff;
}
.pp-panier .quantity.wc-block-components-quantity-selector::after { content: none; border: 0; }
.pp-panier .wc-block-components-quantity-selector__button {
  width: 44px; min-width: 44px; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--gris); color: transparent; font-size: 0;
  display: flex; align-items: center; justify-content: center; opacity: 1; cursor: pointer;
}
.pp-panier .wc-block-components-quantity-selector__button:hover { background: var(--gris-2); }
.pp-panier .wc-block-components-quantity-selector__button::before { display: block; width: 16px; height: 16px; background: var(--texte); }
.pp-panier .wc-block-components-quantity-selector__button { line-height: 0; align-self: stretch; }
.pp-panier .wc-block-components-quantity-selector__button--minus::before { -webkit-mask-image: var(--i-moins); mask-image: var(--i-moins); }
.pp-panier .wc-block-components-quantity-selector__button--plus::before { -webkit-mask-image: var(--i-plus); mask-image: var(--i-plus); }
.pp-panier .wc-block-components-quantity-selector__button:disabled::before { opacity: .35; }
.pp-panier form.cart input.qty.wc-block-components-quantity-selector__input {
  order: 0; width: 48px !important; min-width: 0; height: auto; margin: 0; padding: 0 !important; font-size: 16px !important; border: 0; border-radius: 0; box-shadow: none; background: #fff;
  text-align: center; font: 600 16px var(--mono); color: var(--texte); -moz-appearance: textfield; appearance: textfield;
}
.pp-panier .wc-block-components-quantity-selector__button--minus { order: -1; }
.pp-panier .wc-block-components-quantity-selector__button--plus { order: 1; }
.pp-panier input.qty::-webkit-outer-spin-button, .pp-panier input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-panier input.qty:focus { outline: none; }
.pp-panier .quantity:focus-within { border-color: var(--bleu); }
.pp-panier form.cart .single_add_to_cart_button, .pp-panier form.cart button.button.alt {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; height: auto; margin: 0; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r); background: var(--vert); color: #fff; font: 600 15.5px var(--sans); line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background .15s;
}
.pp-panier .single_add_to_cart_button::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; -webkit-mask: var(--i-cart) center / contain no-repeat; mask: var(--i-cart) center / contain no-repeat; }
.pp-panier .single_add_to_cart_button:hover { background: var(--vert-fonce); color: #fff; }
.pp-panier .single_add_to_cart_button.disabled, .pp-panier .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
/* variantes (produits variables : lot, version, capacité…) */
.pp-panier table.variations { width: 100%; border-collapse: collapse; margin: 0 0 4px; }
.pp-panier table.variations th, .pp-panier table.variations td { display: block; padding: 0; text-align: left; }
.pp-panier table.variations th label { font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); }
.pp-panier table.variations td { padding: 6px 0 12px; }
.pp-panier table.variations select { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--gris-2); border-radius: var(--r); background: #fff; font: inherit; }
.pp-panier .reset_variations { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--bleu); }
.pp-panier .woocommerce-variation-price .price { font: 600 20px var(--mono); }
.pp-wa { margin: 0; }
.pp-wa .btn { width: 100%; }
.pp-rupture { display: grid; gap: 10px; }
@media (min-width: 1280px) { .pp-rupture { grid-template-columns: 1fr 1fr; } }
.pp-confirme { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--vert-pale); color: var(--vert-fonce); font-size: 14px; font-weight: 500; }
.pp-confirme::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i-ok) center / contain no-repeat; mask: var(--i-ok) center / contain no-repeat; }
.pp-confirme a { margin-left: auto; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.pp-confirme.erreur { background: #FDECEC; color: #A3261B; }

.page-produit .pp-rassure { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--gris-2); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--texte-2); }
.pp-rassure li { display: inline-flex; align-items: center; gap: 7px; }
.pp-rassure li::before { width: 18px; height: 18px; background: var(--bleu); -webkit-mask-image: var(--i-chip); mask-image: var(--i-chip); }
.pp-rassure li.r-retrait::before { -webkit-mask-image: var(--i-store); mask-image: var(--i-store); }
.pp-rassure li.r-livraison::before { -webkit-mask-image: var(--i-truck); mask-image: var(--i-truck); }
.pp-partage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.pp-partage > span { display: inline-flex; align-items: center; gap: 6px; color: var(--texte-3); }
.pp-partage > span::before { width: 16px; height: 16px; -webkit-mask-image: var(--i-partage); mask-image: var(--i-partage); }
.pp-partage a { font-weight: 600; color: var(--vert-fonce); }

.pp-demo { display: grid; gap: 8px; padding: 12px; border: 1px dashed #B8C3D1; border-radius: var(--r); background: #FAFBFC; }
.pp-demo .demo { margin: 0; justify-self: start; }
.pp-demo > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-demo a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--gris-2); border-radius: 7px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--texte-2); }
.pp-demo a[aria-current] { background: var(--encre); border-color: var(--encre); color: #fff; }

/* ---------- menu des sections ---------- */
.pp-onglets { display: none; position: sticky; top: calc(var(--h-entete) + var(--barre-admin)); z-index: 30; background: #fff; border-top: 1px solid var(--gris-2); border-bottom: 1px solid var(--gris-2); }
.pp-onglets ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pp-onglets a { display: block; padding: 15px 14px 13px; font-size: 14.5px; font-weight: 500; color: var(--texte-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.pp-onglets a:hover { color: var(--texte); }
.pp-onglets a.actif { color: var(--encre); font-weight: 600; border-bottom-color: var(--bleu); }
@media (min-width: 1024px) { .pp-onglets { display: block; } }

/* ---------- sections détaillées (description découpée par titres) ---------- */
.pp-sections { background: var(--gris); padding: 16px 0 48px; }
.pp-sections-grille, .pp-contenu { display: grid; gap: 10px; min-width: 0; }
.pp-bloc { background: #fff; border: 1px solid var(--gris-2); border-radius: var(--r); scroll-margin-top: calc(var(--h-entete) + 64px); min-width: 0; }
.pp-bloc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 18px; }
.pp-bloc summary::-webkit-details-marker { display: none; }
.pp-bloc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--texte-3); border-bottom: 2px solid var(--texte-3); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; flex: none; }
.pp-bloc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pp-bloc h2 { font-size: 18px; font-weight: 700; margin: 0; }
.pp-bloc > :not(summary) { padding: 0 18px 20px; min-width: 0; }
@media (min-width: 1024px) {
  .pp-sections { padding: 32px 0 64px; }
  .pp-sections-grille, .pp-contenu { gap: 16px; }
  .pp-bloc summary { cursor: default; pointer-events: none; min-height: 0; padding: 26px 30px 12px; }
  .pp-bloc summary::after { display: none; }
  .pp-bloc h2 { font-size: 24px; }
  .pp-bloc > :not(summary) { padding: 0 30px 30px; }
}

.pp-texte { display: grid; gap: 14px; color: var(--texte-2); font-size: 15.5px; line-height: 1.65; max-width: 78ch; }
.pp-texte > * { margin: 0; }
.pp-texte h3 { font-size: 16px; color: var(--texte); margin-top: 6px; }
.pp-texte a { color: var(--bleu); font-weight: 600; }
.pp-texte img { border-radius: var(--r); }
.puces-hex { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.puces-hex li { display: flex; gap: 10px; align-items: baseline; }
.puces-hex li::before { content: ""; flex: none; width: 10px; height: 11px; background: var(--vert); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transform: translateY(1px); }
.a-savoir { margin: 6px 0 0; padding: 16px 18px; border-radius: var(--r); background: var(--bleu-pale); border-left: 3px solid var(--bleu); display: grid; gap: 8px; }
.a-savoir > * { margin: 0; }
.a-savoir > strong:first-child, .a-savoir > p:first-child > strong:only-child { display: block; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bleu-fonce); }
.a-savoir ul { list-style: none; margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--texte); }
.a-savoir li::before { content: none; }

.pp-tables { display: grid; gap: 18px; }
@media (min-width: 768px) { .pp-tables { grid-template-columns: 1fr 1fr; gap: 20px 32px; } }
.pp-tables > :not(.pp-table) { grid-column: 1 / -1; margin: 0; color: var(--texte-2); }
.pp-table { min-width: 0; }
.pp-table-t { margin: 0; padding-bottom: 6px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.pp-tables table, .t-broches { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.pp-tables th, .pp-tables td { text-align: left; vertical-align: top; padding: 9px 0; border: 0; border-bottom: 1px solid var(--gris); }
.pp-tables th { font-weight: 500; color: var(--texte-2); width: 52%; padding-right: 12px; }
.pp-tables td { font: 600 13.5px var(--mono); color: var(--texte); }

.pp-brochage { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .pp-brochage:has(.pp-schema) { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; } }
.pp-brochage-texte { display: grid; gap: 14px; min-width: 0; color: var(--texte-2); }
.pp-brochage-texte > * { margin: 0; }
.t-broches th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--texte-3); padding: 8px 10px 8px 0; border: 0; border-bottom: 1px solid var(--gris-2); }
.t-broches td { padding: 11px 10px 11px 0; border: 0; border-bottom: 1px solid var(--gris); color: var(--texte-2); vertical-align: middle; }
.t-broches td:last-child { font-family: var(--mono); font-size: 13px; color: var(--texte); }
.pin { display: inline-block; min-width: 58px; text-align: center; padding: 4px 8px; border-radius: 6px; font: 600 12.5px var(--mono); color: #fff; background: var(--bleu); }
.pin.vcc { background: var(--vert); }
.pin.gnd { background: var(--encre); }
.pp-schema { margin: 0; display: grid; gap: 10px; max-width: 360px; }
.pp-schema img { width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--gris-2); }
@media (max-width: 559px) {
  .t-broches thead { display: none; }
  .t-broches tr { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--gris); }
  .t-broches td { padding: 0; border: 0; }
  .t-broches td:first-child { grid-row: span 2; }
  .t-broches td:last-child { font-size: 12.5px; color: var(--texte-3); }
}

.pp-docs { display: grid; gap: 16px; min-width: 0; }
.pp-docs > * { margin: 0; min-width: 0; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { .docs { grid-template-columns: repeat(3, 1fr); } }
.docs a { display: flex; gap: 12px; align-items: center; height: 100%; padding: 14px; border: 1px solid var(--gris-2); border-radius: var(--r); color: var(--texte); }
.docs a:hover { border-color: var(--bleu); }
.docs a::before { width: 26px; height: 26px; background: var(--bleu); -webkit-mask-image: var(--i-livre); mask-image: var(--i-livre); }
.docs a.doc-doc::before { -webkit-mask-image: var(--i-doc); mask-image: var(--i-doc); }
.docs a.doc-code::before { -webkit-mask-image: var(--i-code); mask-image: var(--i-code); }
.docs b { display: block; font-size: 14px; }
.docs small { display: block; font-size: 12px; color: var(--texte-3); margin-top: 2px; }
.code { border-radius: var(--r); overflow: hidden; background: var(--encre); scroll-margin-top: calc(var(--h-entete) + 64px); min-width: 0; }
.code-tete { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 16px; background: var(--encre-2); color: #9FB0C6; font-size: 13px; }
.code-tete .copier { background: transparent; border-color: #2A4263; color: #D6E0EC; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 13px/1.6 var(--mono); color: #D6E0EC; tab-size: 2; background: none; border: 0; white-space: pre; scroll-margin-top: calc(var(--h-entete) + 64px); }

.pp-colis { display: grid; gap: 8px; }
.pp-colis > * { margin: 0; }
.colis { list-style: none; margin: 0; padding: 0; font-size: 15px; display: grid; gap: 6px; }
.colis li { display: flex; gap: 10px; }
.colis b { color: var(--bleu); flex: none; }
.pp-note { font-size: 13px; color: var(--texte-2); line-height: 1.5; }

/* ---------- complémentaires et similaires (collections WooCommerce) ---------- */
.pp-compl { padding: 56px 0; background: #fff; }
.pp-simil { padding: 56px 0; background: var(--gris); }
.page-produit .tete-section { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
@media (min-width: 768px) { .page-produit .tete-section { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; } }
.page-produit .tete-bloc { min-width: 0; }
.page-produit .tete-section .tete-titre { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; margin-top: 12px; }
.pp-demo-avis { display: flex !important; width: max-content; max-width: 100%; margin: -16px 0 18px !important; }
.page-produit .produits { padding: 0; background: none; }
.page-produit .pp-compl .produits, .page-produit .pp-simil .produits,
.page-produit .pp-compl .wc-block-product-template.produits, .page-produit .pp-simil .wc-block-product-template.produits {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gouttiere) * -1); padding: 0 var(--gouttiere) 4px; width: auto; max-width: none;
}
.page-produit .produits::-webkit-scrollbar { display: none; }
.page-produit .produits > * { scroll-snap-align: start; }
@media (min-width: 640px) {
  .page-produit .pp-compl .produits, .page-produit .pp-simil .produits,
  .page-produit .pp-compl .wc-block-product-template.produits, .page-produit .pp-simil .wc-block-product-template.produits { grid-auto-columns: 44%; }
}
@media (min-width: 1024px) {
  .page-produit .pp-compl .produits, .page-produit .pp-simil .produits,
  .page-produit .pp-compl .wc-block-product-template.produits, .page-produit .pp-simil .wc-block-product-template.produits {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 16px;
  }
}
.page-produit .produits .carte-corps { padding: 14px 16px 16px; gap: 8px; }
.page-produit .produits .carte-img { margin: 10px 10px 0; }
.page-produit .produits .carte-titre, .page-produit .produits .carte-titre a { font-size: 14px; }
.page-produit .produits .ajout-demo a { pointer-events: auto; }
.page-produit .produits .puces > :nth-child(2) { display: block; }
.compl-grille { display: grid; gap: 16px; }
.compl-grille > * { min-width: 0; }
.produits > .carte, .produits > .wc-block-product { position: relative; }
.choix { position: absolute; top: 16px; right: 16px; z-index: 3; margin: 0; }
.choix input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; margin: 0; border-radius: 7px; border: 2px solid #fff; background: rgba(13,27,46,.35); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(13,27,46,.25); }
.choix input:checked { background: var(--vert); }
.choix input:checked::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.produits .retire { opacity: .5; }
.selection { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r); background: var(--encre); color: #fff; }
.selection > * { margin: 0; }
.selection .t { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #7FB6E6; }
.selection .s-ligne { color: #B9C6D8; font-size: 14px; }
.selection .s-total .prix { font: 600 26px var(--mono); color: #fff; letter-spacing: -.02em; }
.selection .s-total .prix small { font-size: 13px; font-weight: 500; color: #9FB0C6; margin-left: 4px; }
.selection .btn { white-space: nowrap; padding: 0 16px; width: 100%; }
.selection .s-aide { font-size: 12.5px; color: #7A8BA3; }
.selection .pp-confirme { font-size: 13px; }
@media (min-width: 1024px) {
  .compl-grille { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: stretch; }
  .selection { align-content: center; }
}
.page-produit .lien-fleche { margin: 0; }
.page-produit .lien-fleche a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--bleu); font-size: 14px; white-space: nowrap; }
.page-produit .lien-fleche a::after { width: 16px; height: 16px; -webkit-mask-image: var(--i-arrow); mask-image: var(--i-arrow); transition: transform .15s; }
.page-produit .lien-fleche a:hover::after { transform: translateX(3px); }

/* ---------- question ---------- */
.pp-question { padding: 0 0 56px; background: var(--gris); }
.pp-compl + .pp-question, .pp-sections + .pp-question { padding-top: 56px; }
.q-boite { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--encre); color: #fff; }
.q-boite .sur-titre { color: #7FB6E6; }
.q-boite .t { font-size: 20px; font-weight: 700; margin: 8px 0 4px; line-height: 1.3; letter-spacing: -.01em; }
.q-boite p { color: #B9C6D8; font-size: 14.5px; }
.q-boite .t { color: #fff; }
.q-boite .mono { color: #fff; }
.q-wa { margin: 0; justify-self: start; }
@media (min-width: 768px) { .q-boite { grid-template-columns: 1fr auto; padding: 28px 32px; } }

/* ---------- barre d'achat mobile (remplace la barre de navigation) ---------- */
.barre-achat {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--gris-2);
  box-shadow: 0 -8px 24px rgba(13,27,46,.08); transform: translateY(110%); transition: transform .2s;
}
.barre-achat.visible { transform: none; }
.ba-prix { display: grid; line-height: 1.2; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.ba-prix .prix, .ba-prix .woocommerce-Price-amount { font: 600 18px var(--mono); letter-spacing: -.02em; color: var(--encre); }
.ba-prix .woocommerce-Price-currencySymbol { font-size: 12px; font-weight: 500; color: var(--texte-2); }
.ba-prix del { display: none; }
.ba-prix ins { text-decoration: none; }
.ba-etat { font: 500 11px var(--mono); color: var(--vert); white-space: nowrap; }
.barre-achat[data-etat="faible"] .ba-etat { color: var(--bleu); }
.barre-achat[data-etat="commande"] .ba-etat { color: var(--texte-2); }
.barre-achat[data-etat="rupture"] .ba-etat { color: var(--texte-3); }
.ba-vente { display: flex; gap: 8px; flex: none; }
.barre-achat .ba-ajout { min-height: 46px; padding: 0 18px; border: 0; }
.ba-wa { width: 46px; height: 46px; border-radius: var(--r); border: 1.5px solid var(--vert); color: var(--vert); display: grid; place-items: center; }
.ba-wa::before { width: 22px; height: 22px; -webkit-mask-image: var(--i-wa); mask-image: var(--i-wa); }
.barre-achat .ba-prevenir { min-height: 46px; padding: 0 14px; font-size: 13.5px; }
@media (max-width: 399px) { .barre-achat .ba-ajout { padding: 0 14px; } .ba-prix .prix, .ba-prix .woocommerce-Price-amount { font-size: 16px; } }
@media (min-width: 1024px) { .barre-achat { display: none !important; } }

/* WhatsApp flottant : jamais sur la fiche en mobile (la barre d'achat a déjà WhatsApp) */
@media (max-width: 1023px) { body.fwt-fiche .wa-flottant { display: none; } }

/* produit sans photo : visuel « Photo à venir » plutôt que l'image générique */
.pp-galerie .wc-block-product-gallery-large-image__wrapper:has(img[src*="woocommerce-placeholder"]) {
  position: relative; background: repeating-linear-gradient(135deg, #EEF1F4 0 10px, #E7EBF0 10px 20px);
}
.pp-galerie .wc-block-product-gallery-large-image__wrapper:has(img[src*="woocommerce-placeholder"]) img { opacity: 0 !important; }
.pp-galerie .wc-block-product-gallery-large-image__wrapper:has(img[src*="woocommerce-placeholder"])::after {
  content: "Photo à venir"; position: absolute; inset: 0; display: grid; place-items: center; padding-top: 70px;
  font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #8A97A8;
  background: #8A97A8; -webkit-mask: none; mask: none; background: none;
}
.pp-galerie .wc-block-product-gallery-large-image__wrapper:has(img[src*="woocommerce-placeholder"])::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -30px 0 0 -17px; background: #8A97A8;
  -webkit-mask: var(--i-chip) center / contain no-repeat; mask: var(--i-chip) center / contain no-repeat;
}
.pp-galerie:has(img[src*="woocommerce-placeholder"]) .g-zoom { display: none; }

/* ==========================================================================
   0.4.2 — Accueil : liste « Populaires » avec de vrais produits (débordement mobile)
   ========================================================================== */
/* Populaires avec de vrais produits : même gabarit que la maquette (1 colonne sous 1024 px, 2 au-delà) */
.pc-populaires .wc-block-product-template.pc-ligne { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; }
@media (min-width: 1024px) { .pc-populaires .wc-block-product-template.pc-ligne { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; } }
.pc-ligne .wc-block-product { grid-template-columns: 84px minmax(0, 1fr) auto; min-width: 0; width: auto; margin: 0; }
.pc-ligne .pc-img img { width: 84px; height: 84px; object-fit: cover; }
.pc-ligne .pc-titre, .pc-ligne .pc-titre a { overflow-wrap: anywhere; }
.pc-ligne .pc-ref .wp-block-post-terms__prefix { display: none; }
.pc-ligne .pc-ajout { margin: 0; }
.pc-ligne .pc-ajout .wp-block-button__link { width: 38px; height: 38px; min-height: 0; padding: 0; font-size: 0; display: grid; place-items: center; }
.pc-ligne .pc-ajout .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-plus) center / contain no-repeat; mask: var(--i-plus) center / contain no-repeat; }
@media (max-width: 767px) {
  .pc-ligne .wc-block-product { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 10px; gap: 4px 12px; }
  .pc-ligne .pc-img, .pc-ligne .pc-img img { width: 72px; height: 72px; }
}
.pc-ligne .pc-stock { justify-self: start; text-align: left; }

/* ==========================================================================
   0.4.2 — Pages d'information (contact, livraison, retours, CGV, confidentialité…)
   ========================================================================== */
.page-corps .wp-block-post-content { max-width: 780px; }
.page-corps .wp-block-post-content h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 36px; }
.page-corps .wp-block-post-content h3 { font-size: 18px; margin-top: 24px; }
.page-corps .wp-block-post-content p, .page-corps .wp-block-post-content li { color: var(--texte-2); }
.page-corps .wp-block-post-content strong { color: var(--texte); }
.page-corps .wp-block-post-content a:not(.wp-block-button__link) { color: var(--bleu); text-decoration: underline; text-underline-offset: 2px; }
.page-corps .wp-block-post-content ul { padding-left: 20px; }
.page-corps .wp-block-post-content li + li { margin-top: 6px; }
.page-corps .info-intro { font-size: 17px; color: var(--texte); max-width: 680px; }
.page-corps .info-maj { font: 500 12.5px var(--mono); color: var(--texte-3); }
.page-corps .info-boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.page-corps .info-boutons .wp-block-button.btn-contour .wp-block-button__link { color: var(--encre); border: 1px solid var(--gris-2); background: var(--blanc); }
.page-corps .info-boutons .wp-block-button.btn-contour .wp-block-button__link:hover { border-color: var(--bleu); color: var(--bleu); }
.page-corps .info-tableau { margin: 0; overflow-x: auto; }
.page-corps .info-tableau table { width: 100%; border-collapse: collapse; background: var(--blanc); border-radius: var(--r); overflow: hidden; font-size: 14.5px; }
.page-corps .info-tableau th, .page-corps .info-tableau td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gris-2); vertical-align: top; }
.page-corps .info-tableau th { background: var(--encre); color: #fff; font-weight: 600; }
.page-corps .info-tableau td:last-child { font-weight: 600; color: var(--texte); white-space: nowrap; }
@media (max-width: 599px) { .page-corps .info-tableau td:last-child { white-space: normal; } }
/* Repère « à compléter » : visible tant qu'une information manque (ne pas publier en l'état). */
.page-corps .a-completer { background: #FFF6D6; border: 1px dashed #C9A227; border-radius: 8px; padding: 10px 14px; color: #5C4A00 !important; font-size: 14px; }
