/*
Theme Name: RefTrade
Theme URI: https://reftrad.com
Author: RefTrade Madagascar
Description: Thème bloc sur mesure de RefTrade — machines et consommables sous vide, Madagascar. Contenu 100 % blocs natifs, éditable dans Gutenberg.
Version: 1.11.5
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reftrade
Tags: block-theme, full-site-editing, business
*/

/* Couleurs du logo client : marine #012063, jaune #FED102. Fond blanc. En-tête et pied
   dans le bleu fourni par le client (#0A6EB4), bandeau des métiers en vert (#0B7A52).
   Les icônes sont des masques CSS (assets/icones.css) : --ico porte l'icône de l'élément. */

:root {
  --bleu: #012063;
  --bleu-vif: #12337F;
  --bleu-fonce: #00164A;
  --jaune: #FED102;
  --fond: #FFFFFF;
  --fond-fonce: #F1F2F5;
  --vert: #0B7A52;
  --cadre: 3px solid var(--bleu);
  --bleu-entete: #0A6EB4;
  --bleu-entete-fonce: #0561A2;
  --nuit: #1B1B1B;
  --encre: #1C1C1C;
  --texte: #3B3B3B;
  --gris: #6B6B6B;
  --rayon: 12px;
  --large: 1340px;
  --etroit: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--texte); background: var(--fond); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; } /* height:auto obligatoire : sinon l'attribut height des blocs image l'emporte */
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Espacement automatique de Gutenberg : coupé à la source (theme.json blockGap 0px),
   filet de sécurité à spécificité nulle — jamais en .wp-block-group > *. */
:where(.wp-block-group) > :where(*), :where(.wp-block-buttons) { margin-block: 0; }
figure.wp-block-image { margin: 0; }
:where(a, button, input, textarea, [tabindex]):focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; border-radius: 6px; }

.conteneur { width: min(var(--large), 100% - 40px); margin-inline: auto; }
.conteneur.etroit { width: min(var(--etroit), 100% - 40px); }

/* Lien étiré : toute la carte devient cliquable sans être un lien dans le contenu. */
.carte-laterale__titre a::after, .promo__titre a::after, .tuile__lien a::before, .canal__titre a::after { content: ''; position: absolute; inset: 0; z-index: 3; }

/* ---------- Bandeau haut ---------- */
.bandeau-haut { background: linear-gradient(90deg, var(--bleu), var(--bleu-vif) 50%, var(--bleu)); color: #fff; font-size: 12.5px; font-weight: 500; }
.bandeau-haut__inner { display: flex; justify-content: center; gap: 72px; height: 32px; align-items: center; }
.bandeau-haut__inner > p { display: inline-flex; align-items: center; gap: 7px; }
.bandeau-haut__inner > p::before { content: ''; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ---------- En-tête ---------- */
.entete { background: var(--bleu-entete); color: #fff; position: relative; z-index: 20; }
.entete__haut { display: grid; grid-template-columns: auto minmax(260px, 540px) 1fr auto; align-items: center; gap: 36px; height: 92px; }
.wp-block-site-logo.logo { line-height: 0; }
.wp-block-site-logo.logo img { width: 226px; height: auto; }
.wp-block-site-logo.logo--pied img { width: 190px; }

.wp-block-search.recherche { margin: 0; }
.wp-block-search.recherche .wp-block-search__inside-wrapper { position: relative; border: 0; padding: 0; background: transparent; }
.wp-block-search.recherche .wp-block-search__input { width: 100%; height: 48px; margin: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-size: 14px; padding: 0 60px 0 20px; outline: none; }
.wp-block-search.recherche .wp-block-search__input::placeholder { color: rgba(255,255,255,.78); }
.wp-block-search.recherche .wp-block-search__button { position: absolute; right: 7px; top: 7px; width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: var(--bleu); color: #fff; display: grid; place-items: center; }
.wp-block-search.recherche .wp-block-search__button svg { width: 20px; height: 20px; min-width: 0; fill: currentColor; }

.entete__contacts { display: flex; justify-content: flex-end; gap: 30px; }
.contact-mini { position: relative; padding-left: 49px; line-height: 1.15; white-space: nowrap; font-size: 11px; color: rgba(255,255,255,.8); }
.contact-mini::before { content: ''; position: absolute; left: 0; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%; background: rgba(255,255,255,.16); }
.contact-mini::after { content: ''; position: absolute; left: 10.5px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.contact-mini a { display: block; }
.contact-mini strong { display: block; font-size: 15px; font-weight: 600; color: #fff; }

.wp-block-buttons.entete__commande { margin: 0; }
.wp-block-button.bouton-commande .wp-block-button__link { position: relative; display: block; padding: 9px 18px 9px 46px; border-radius: 9px; background: var(--bleu); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); font-size: 11px; font-weight: 400; line-height: 1.1; text-align: left; }
.wp-block-button.bouton-commande .wp-block-button__link::before { content: ''; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; background: currentColor; -webkit-mask: var(--i-panier) center / contain no-repeat; mask: var(--i-panier) center / contain no-repeat; }
.wp-block-button.bouton-commande strong { display: block; font-size: 15px; font-weight: 600; }

/* ---------- Navigation (core/navigation, éditable dans l'éditeur de site) ---------- */
.nav { border-top: 1px solid rgba(255,255,255,.16); }
.nav__inner { display: flex; align-items: center; height: 54px; }
.wp-block-navigation.nav-principale { width: 100%; font-size: 15px; color: #fff; }
.wp-block-navigation.nav-principale .wp-block-navigation__container { width: 100%; gap: 0; flex-wrap: nowrap; align-items: center; }
.wp-block-navigation.nav-principale .wp-block-navigation-item__content { padding: 0; color: inherit; }
.wp-block-navigation.nav-principale .nav-gamme { margin-right: 46px; }
.wp-block-navigation.nav-principale .nav-gamme > .wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.wp-block-navigation.nav-principale .nav-gamme > .wp-block-navigation-item__content::before { content: ''; width: 20px; height: 20px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-navigation.nav-principale .nav-gamme > .wp-block-navigation-item__content::after { content: ''; width: 15px; height: 15px; background: currentColor; opacity: .7; -webkit-mask: var(--i-chevron) center / contain no-repeat; mask: var(--i-chevron) center / contain no-repeat; }
.wp-block-navigation.nav-principale .nav-page { font-size: 13.5px; color: rgba(255,255,255,.9); }
.wp-block-navigation.nav-principale .nav-page + .nav-page { margin-left: 32px; }
.wp-block-navigation.nav-principale .nav-page--premier { margin-left: auto; }
.wp-block-navigation.nav-principale .nav-page.ico-carte > .wp-block-navigation-item__content { display: inline-flex; align-items: center; gap: 5px; }
.wp-block-navigation.nav-principale .nav-page.ico-carte > .wp-block-navigation-item__content::before { content: ''; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-navigation.nav-principale .wp-block-navigation-item__content:hover { color: var(--jaune); }
.wp-block-navigation.nav-principale .est-courant > .wp-block-navigation-item__content { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--jaune); padding-bottom: 3px; }

/* Sous-menus des gammes (Professionnel / Particulier, les quatre « Matériel ») : panneau blanc au survol.
   Le <li> occupe toute la hauteur de la barre pour que le survol ne se perde pas avant le panneau. */
.wp-block-navigation.nav-principale .wp-block-navigation__container > .has-child { padding-block: 16px; }
.wp-block-navigation.nav-principale .nav-gamme.has-child > .wp-block-navigation-item__content::after { content: none; }
.wp-block-navigation.nav-principale .nav-gamme .wp-block-navigation__submenu-icon { width: 13px; height: 13px; margin-left: 6px; opacity: .75; }
.wp-block-navigation.nav-principale .nav-gamme .wp-block-navigation__submenu-icon svg { width: 13px; height: 13px; stroke-width: 2px; }
.wp-block-navigation.nav-principale .has-child > .wp-block-navigation__submenu-container { left: -14px; padding: 8px; border: 0; border-radius: 10px; background: #fff; color: var(--bleu); box-shadow: 0 16px 36px rgba(1,32,99,.24); }
.wp-block-navigation.nav-principale .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 7px; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--bleu); }
.wp-block-navigation.nav-principale .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before { content: ''; width: 18px; height: 18px; flex-shrink: 0; background: var(--bleu-entete); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-navigation.nav-principale .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-block-navigation.nav-principale .has-child > .wp-block-navigation__submenu-container .est-courant > .wp-block-navigation-item__content { background: var(--fond-fonce); color: var(--bleu); box-shadow: none; padding-bottom: 10px; }

/* ---------- Héros ---------- */
.heros { padding: 40px 0 0; }
.heros__grille { display: grid; grid-template-columns: 1.62fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; height: 300px; }
.heros__principal { grid-row: span 2; position: relative; border-radius: var(--rayon); overflow: hidden; border: var(--cadre); background: linear-gradient(100deg, var(--bleu-vif), var(--bleu) 60%); }
.wp-block-image.heros__photo { position: absolute; right: 0; top: 0; width: 58%; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.wp-block-image.heros__photo img { width: 100%; height: 100%; object-fit: cover; }
.heros__texte { position: relative; padding: 46px 0 0 48px; max-width: 52%; }
.pastilles { display: flex; gap: 6px; margin-bottom: 18px; }
.pastilles > p { background: var(--bleu-fonce); color: #fff; font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); }
.heros h1 { font-size: 40px; line-height: 1.1; font-weight: 600; color: #fff; letter-spacing: -.01em; text-wrap: balance; hyphens: none; }
.heros h1 strong { font-weight: inherit; white-space: nowrap; }
.heros h1 strong::before { content: ''; display: inline-block; width: 36px; height: 34px; margin-right: 10px; vertical-align: -3px; background: url("assets/img/logo-monogramme-clair.png") center / contain no-repeat; }
.heros__texte > p:last-child { margin-top: 18px; font-size: 16px; line-height: 1.35; color: rgba(255,255,255,.88); max-width: 300px; }

.carte-laterale { position: relative; border-radius: var(--rayon); overflow: hidden; background: #fff; border: var(--cadre); display: flex; align-items: center; }
.carte-laterale .wp-block-image { position: absolute; right: 0; top: 0; height: 100%; width: 50%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.carte-laterale .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.carte-laterale__texte { position: relative; padding: 0 28px; max-width: 60%; }
.carte-laterale__titre { font-size: 22px; font-weight: 600; color: var(--encre); line-height: 1.15; }
.carte-laterale__texte > p:last-child { margin-top: 8px; font-size: 13.5px; line-height: 1.35; color: #4A4A4A; }

.heros__promos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 22px; }
.promo { position: relative; height: 118px; border-radius: var(--rayon); overflow: hidden; background: #fff; display: flex; align-items: center; border: var(--cadre); }
.promo .wp-block-image { position: absolute; right: 0; top: 0; height: 100%; width: 40%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.promo .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.promo .wp-block-image.promo__portrait img { object-position: center 20%; }
.promo__texte { position: relative; z-index: 1; padding: 0 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.promo__titre { font-size: 22px; font-weight: 600; color: var(--encre); line-height: 1.1; }
.promo__texte > p:last-child { font-size: 12.5px; color: #4A4A4A; }
.pastille { background: var(--bleu); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }

/* ---------- Sections & titres ---------- */
.section { padding: 110px 0 0; }
.tete-section { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: end; margin-bottom: 34px; }
.tete-section--trois { grid-template-columns: 1fr 1.6fr .6fr; align-items: center; }
.tete-section__texte { font-size: 14.5px; line-height: 1.5; color: var(--texte); max-width: 470px; }
.surtitre { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--encre); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.surtitre::before { content: ''; width: 6px; height: 6px; background: var(--encre); transform: rotate(45deg); }
.titre-bicolore { font-size: 42px; line-height: 1.02; font-weight: 600; text-transform: uppercase; color: var(--encre); letter-spacing: -.005em; }
.titre-bicolore em { display: block; font-style: normal; color: var(--jaune); }
.titre-bicolore--ligne em { display: inline; }

/* ---------- Vitrine produits ---------- */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--fond-fonce); border-radius: 10px; padding: 16px; }
.produit { position: relative; background: #fff; border-radius: 8px; padding: 10px 10px 16px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(80,40,30,.05); }
.wp-block-image.produit__image { border-radius: 6px; overflow: hidden; aspect-ratio: 1 / .92; border: var(--cadre); background: #fff; }
.wp-block-image.produit__image img { width: 100%; height: 100%; object-fit: contain; padding: 8px; } /* photo entière, jamais rognée */
/* Gammes de la carte : sous la photo, jamais par-dessus ; deux lignes au plus pour garder les noms alignés. */
.produit__badge { margin: 12px 6px 0; min-height: 2.9em; color: var(--bleu-entete); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.produit__badge .wp-block-post-terms__separator { font-size: 0; } /* la virgule disparaît, son espace garde la coupure de ligne */
.produit__badge .wp-block-post-terms__separator::before { content: "·"; margin: 0 5px; font-size: 10.5px; color: #A9B4C8; }
/* Barre de scellage des machines (functions.php, sous le nom) */
.produit__scellage { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; margin: 10px 6px 0; padding: 6px 10px; border-radius: 6px; background: var(--fond-fonce); color: var(--bleu); font-size: 12px; font-weight: 500; line-height: 1.3; }
.produit__scellage::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; background: var(--bleu-entete); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.produit__scellage strong { color: var(--encre); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.produit h3 { font-size: 15px; font-weight: 600; color: #2A2A2A; margin: 18px 6px 0; min-height: 44px; line-height: 1.3; }
.produit__prix { margin: 14px 6px 0; font-size: 22px; font-weight: 700; color: #2A2A2A; display: flex; align-items: baseline; gap: 8px; }
.produit__prix s { font-size: 11px; font-weight: 400; color: #A9A0A0; text-decoration: none; }
.produit__note { margin: 4px 6px 18px; font-size: 11px; color: #A9A0A0; }
.wp-block-buttons.produit__actions { margin-top: auto; display: flex; }
.wp-block-button.bouton { width: 100%; }
.wp-block-button.bouton .wp-block-button__link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; padding: 0 12px; border-radius: 6px; background: linear-gradient(180deg, var(--bleu-vif), var(--bleu)); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.2; box-shadow: 0 3px 8px rgba(31,78,121,.28); }
.wp-block-button.bouton.ico-panier .wp-block-button__link::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

/* ---------- Produits WooCommerce (page Produits, bloc « Collection de produits ») ----------
   Les cartes viennent de Produits → Tous les produits : image, catégorie, nom, prix (prix promo :
   ancien prix barré), description courte, bouton « Demander un devis ». */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.vitrine.vitrine--produits { display: block; }
.vitrine--produits .wc-block-product-template.grille-produits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vitrine--produits .grille-produits > .wc-block-product { position: relative; margin: 0; background: #fff; border-radius: 8px; padding: 10px 10px 16px; display: flex; flex-direction: column; text-align: left; box-shadow: 0 1px 2px rgba(80,40,30,.05); }
.vitrine--produits .wc-block-components-product-image.produit__image { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 1 / .92; border: var(--cadre); background: #fff; }
.vitrine--produits .wc-block-components-product-image.produit__image img { width: 100%; height: 100%; object-fit: contain !important; padding: 8px; aspect-ratio: auto; } /* photo entière, jamais rognée (le bloc écrit object-fit:cover en ligne) */
.vitrine--produits .wc-block-components-product-sale-badge { top: 8px; left: 8px; right: auto; margin: 0; border: 0; border-radius: 999px; padding: 4px 10px; background: var(--jaune); color: var(--bleu); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vitrine--produits .produit__badge a { color: inherit; pointer-events: none; }
.vitrine--produits .produit__titre { font-size: 15px; font-weight: 600; color: #2A2A2A; margin: 18px 6px 0; min-height: 44px; line-height: 1.3; }
.vitrine--produits .produit__badge + .produit__titre { margin-top: 6px; }
.vitrine--produits .produit__prix { display: block; margin: 14px 6px 0; }
.vitrine--produits .produit__prix .wc-block-components-product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 22px; font-weight: 700; line-height: 1.25; color: #2A2A2A; }
.vitrine--produits .produit__prix ins { order: 1; text-decoration: none; background: none; color: inherit; }
.vitrine--produits .produit__prix del { order: 2; font-size: 13px; font-weight: 400; color: #8E8686; text-decoration: line-through; }
.vitrine--produits .produit__prix .prix-sur-devis { font-weight: 700; }
.vitrine--produits .produit__note { margin: 4px 6px 18px; font-size: 11px; color: #8E8686; }
.vitrine--produits .produit__note p { margin: 0; }
.vitrine--produits > .produit--autre { margin-top: 16px; flex-direction: row; justify-content: space-between; align-items: center; gap: 22px; text-align: left; padding: 20px 24px; }
.vitrine--produits > .produit--autre::before { width: 40px; height: 40px; flex-shrink: 0; }
.vitrine--produits > .produit--autre h3, .vitrine--produits > .produit--autre h2 { white-space: nowrap; }
.vitrine--produits > .produit--autre > p { flex: 1; }
.vitrine--produits > .produit--autre .wp-block-buttons.produit__actions { width: 220px; margin: 0; flex-shrink: 0; }
.vitrine--produits .collection-vide { padding: 30px; text-align: center; color: var(--gris); }

/* ---------- Mosaïque gammes ---------- */
.mosaique { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 380px 390px; grid-template-areas: "a b b c" "d d e e"; gap: 24px; padding: 0 16px; }
.tuile--a { grid-area: a; } .tuile--b { grid-area: b; } .tuile--c { grid-area: c; } .tuile--d { grid-area: d; } .tuile--e { grid-area: e; }
.tuile { position: relative; border-radius: 16px; overflow: hidden; color: #fff; border: var(--cadre); }
.tuile .wp-block-image { position: absolute; inset: 0; }
.tuile .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tuile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(0,0,0,.5)); pointer-events: none; }
.tuile:hover .wp-block-image img { transform: scale(1.04); }
.tuile__titre { position: absolute; z-index: 1; top: 26px; left: 28px; font-size: 34px; line-height: 1.05; font-weight: 500; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.tuile__lien { position: absolute; z-index: 2; bottom: 24px; left: 28px; font-size: 13px; }
.tuile__lien a { display: inline-flex; gap: 6px; align-items: center; }
.tuile__lien a::after { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--i-fleche) center / contain no-repeat; mask: var(--i-fleche) center / contain no-repeat; }
.tuile--b .tuile__titre { left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tuile--b .tuile__lien { left: 50%; transform: translateX(-50%); top: 120px; bottom: auto; white-space: nowrap; }
.tuile--d .tuile__titre, .tuile--e .tuile__titre { font-size: 36px; }
.tuile--e .tuile__titre { left: 150px; }
/* Médaillon central : décor pur, donc pseudo-élément (un groupe vide serait supprimé par erreur). */
.mosaique::after { content: ''; position: absolute; left: 50%; top: 392px; width: 216px; height: 216px; transform: translate(-50%, -50%); border-radius: 50%; z-index: 4; pointer-events: none;
  background: url("assets/img/logo-monogramme.png") center / 104px auto no-repeat, url("assets/img/rayons.svg") center / 100% no-repeat, var(--fond); }

/* ---------- Métiers (bande verte) ---------- */
.metiers { margin-top: 110px; padding: 78px 0; background: var(--vert); position: relative; overflow: hidden; }
.metiers::before { content: ''; position: absolute; inset: 0; background: url("assets/img/sachet-texture.jpg") center / cover; filter: grayscale(1); opacity: .09; mix-blend-mode: luminosity; }
.metiers .surtitre, .metiers .titre-bicolore { color: #fff; }
.metiers .surtitre::before { background: #fff; }
.metiers__grille { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; gap: 80px; align-items: center; }
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logos > p { height: 78px; background: #fff; border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.05); display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15.5px; font-weight: 600; color: #3E3E3E; letter-spacing: -.01em; text-align: center; }
.logos > p::before { content: ''; width: 22px; height: 22px; flex-shrink: 0; background: var(--bleu); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.logos > p:nth-child(3n+2) { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .06em; }
.logos > p:nth-child(4n+3) { font-weight: 400; font-size: 17px; }
.logos > p.logos__vous { background: transparent; box-shadow: none; border: 1.5px dashed rgba(255,255,255,.65); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.logos > p.logos__vous::before { content: none; }
.metiers__texte { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.92); max-width: 260px; }

/* ---------- Duo expert / présence ---------- */
.duo { padding-top: 46px; }
.duo__grille { display: grid; grid-template-columns: 1.72fr 1fr; gap: 22px; height: 450px; }
.duo__expert, .duo__presence { position: relative; border-radius: 14px; overflow: hidden; color: #fff; border: var(--cadre); }
.duo__expert .wp-block-image { position: absolute; inset: 0; }
.duo__expert .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.duo__expert::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.25) 45%, rgba(10,10,10,.55) 100%); z-index: 1; }
.duo__contenu { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 36px 40px 34px; }
.duo__contenu h2 { font-size: 27px; font-weight: 500; line-height: 1.15; display: flex; align-items: center; gap: 12px; color: #fff; }
.duo__contenu h2.duo__titre--logo::before { content: ''; width: 41px; height: 38px; flex-shrink: 0; background: url("assets/img/logo-monogramme-clair.png") center / contain no-repeat; }
.duo__contenu h2.ico-camion::before { content: ''; width: 26px; height: 26px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.duo__contenu > p { margin-top: 18px; font-size: 13.5px; line-height: 1.55; max-width: 560px; color: rgba(255,255,255,.88); }
.duo__contenu > p.lien-fleche { margin-top: auto; color: #fff; }
.lien-fleche { font-size: 14px; font-weight: 500; }
.lien-fleche a { display: inline-flex; align-items: center; gap: 8px; }
.lien-fleche a::after { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-fleche) center / contain no-repeat; mask: var(--i-fleche) center / contain no-repeat; }
.lien-fleche--sombre { color: var(--encre); font-weight: 600; justify-self: end; }
.duo__presence { background: var(--nuit); }
.duo__presence::before { content: ''; position: absolute; right: 14px; top: 26px; width: 214px; height: 400px; background: url("assets/img/carte-madagascar.svg") center / contain no-repeat; opacity: .95; }
.duo__presence .duo__contenu { padding-right: 34px; }
.duo__presence .duo__contenu > p { max-width: 250px; }

/* Variante carte : panneau d'adresse à gauche, Google Maps à droite (shortcode [reftrade_carte]). */
.duo__expert--carte { display: grid; grid-template-columns: minmax(300px, 40%) 1fr; background: var(--bleu); }
.duo__expert--carte::before { content: none; }
.duo__expert--carte .duo__contenu { grid-column: 1; grid-row: 1; padding: 34px 32px 32px; background: linear-gradient(160deg, var(--bleu-vif), var(--bleu)); }
.duo__expert--carte .duo__contenu h2 { font-size: 23px; align-items: flex-start; }
.duo__expert--carte .duo__contenu > p.carte-adresse__lignes, .duo__expert--carte .duo__contenu > p.carte-adresse__tel { position: relative; padding-left: 28px; color: #fff; font-size: 14.5px; line-height: 1.55; }
.duo__expert--carte .duo__contenu > p.carte-adresse__lignes { margin-top: 24px; }
.duo__expert--carte .duo__contenu > p.carte-adresse__tel { margin-top: 14px; font-weight: 600; }
.duo__expert--carte .duo__contenu > p.lien-fleche { padding-top: 20px; }
.carte-adresse__lignes::before, .carte-adresse__tel::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.duo__expert--carte .carte-google { position: relative; grid-column: 2; grid-row: 1; min-height: 100%; background: var(--fond-fonce); }
.carte-google__cadre { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.carte-google__itineraire { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 6px; background: linear-gradient(180deg, var(--bleu-vif), var(--bleu)); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.carte-google__itineraire::before { content: ''; width: 16px; height: 16px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

.engagements { display: flex; align-items: center; gap: 48px; padding: 38px 0 0; }
.engagements h3 { font-size: 20px; font-weight: 600; color: var(--encre); margin-right: 30px; }
/* Bloc et non flex : en flex, chaque <strong> du texte deviendrait une colonne à part. */
.engagement { position: relative; display: block; min-height: 46px; padding: 4px 0 4px 80px; max-width: 470px; font-size: 12.5px; line-height: 1.5; color: #4A4A4A; }
.engagement::before { content: ''; position: absolute; left: 0; top: 50%; width: 62px; height: 46px; margin-top: -23px; border-radius: 8px; background: var(--fond-fonce); }
.engagement::after { content: ''; position: absolute; left: 19px; top: 50%; width: 24px; height: 24px; margin-top: -12px; background: var(--bleu); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.engagement strong { color: var(--encre); font-weight: 600; }

/* ---------- Arc ---------- */
.arc { position: relative; margin-top: 20px; overflow: hidden; padding: 20px 0; }
.arc::before, .arc::after { content: ''; position: absolute; left: -8%; right: -8%; height: 190px; background: var(--fond); border-radius: 50%; z-index: 2; }
.arc::before { top: -118px; }
.arc::after { bottom: -118px; }
.arc__piste { display: flex; gap: 22px; justify-content: center; perspective: 1200px; margin-inline: -120px; }
.arc__piste .wp-block-image { width: 300px; height: 420px; flex-shrink: 0; border: var(--cadre); }
.arc__piste .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.arc__piste .wp-block-image:nth-child(1) { transform: rotateY(28deg); transform-origin: right center; }
.arc__piste .wp-block-image:nth-child(2) { transform: rotateY(14deg); }
.arc__piste .wp-block-image:nth-child(5) { transform: rotateY(-14deg); }
.arc__piste .wp-block-image:nth-child(6) { transform: rotateY(-28deg); transform-origin: left center; }

/* ---------- Conseils ---------- */
.conseils { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 30px; }
.conseil { background: #fff; border: 1px solid #F0F0F0; border-radius: 8px; padding: 12px 12px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.04); display: flex; flex-direction: column; }
.conseil .wp-block-image img, .conseil .wp-block-post-featured-image img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; border: var(--cadre); }
.conseil__tag { align-self: flex-start; margin: 16px 6px 0; background: #EEF0F8; color: #5865A8; font-size: 10.5px; font-weight: 500; padding: 3px 9px; border-radius: 5px; }
.conseil h3 { margin: 12px 6px 0; font-size: 17px; line-height: 1.32; font-weight: 600; color: #1F1F1F; }
.conseil__auteur { margin: 18px 6px 0; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--gris); }
.conseil__auteur::before { content: ''; width: 24px; height: 22px; background: url("assets/img/logo-monogramme.png") center / contain no-repeat; }
.conseil > p:not(.conseil__tag):not(.conseil__auteur) { margin: 8px 6px 0; font-size: 13.5px; line-height: 1.5; color: #555; }

/* ---------- Pied de page ---------- */
.pied { padding-top: 90px; }
.atouts { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 10px 22px; }
.atout { position: relative; min-height: 34px; padding-left: 46px; display: flex; flex-direction: column; justify-content: center; font-size: 11.5px; color: #555; line-height: 22.5px; } /* interligne de la maquette (porte 4) */
.atout::before { content: ''; position: absolute; left: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--bleu); }
.atout::after { content: ''; position: absolute; left: 8.5px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: #fff; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.atout strong { display: block; font-size: 17px; font-weight: 600; color: var(--encre); line-height: 1.1; }

.pied__bloc { margin: 0 20px; border-radius: 16px; background: linear-gradient(160deg, var(--bleu-entete-fonce) 0%, var(--bleu-entete) 55%, #2A7DBA 100%); color: #fff; padding: 52px 60px 30px; }
.pied__grille { display: grid; grid-template-columns: 1.4fr .9fr 1fr .9fr 1.1fr; gap: 40px; }
.pied__marque > p { margin-top: 22px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.92); max-width: 280px; }
.pied .pied__titre { font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-bottom: 16px; line-height: 1.5; }
.pied__col .wp-block-list { list-style: none; margin: 0; padding: 0; }
.pied__col li { font-size: 13.5px; line-height: 2.05; }
.pied__col a:hover { color: var(--jaune); }
.pied__contact { text-align: right; font-size: 12px; line-height: 1.6; color: rgba(255,255,255,.92); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wp-block-button.bouton-blanc .wp-block-button__link { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--bleu); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-bottom: 10px; }
.pied__bas { margin-top: 56px; display: flex; justify-content: space-between; align-items: center; }
.pied .pied__bas .wp-block-social-links.reseaux { gap: 10px; margin: 0; padding: 0; }
.pied .pied__bas .wp-block-social-links.reseaux .wp-social-link { width: 36px; height: 36px; margin: 0; border-radius: 50%; background: var(--bleu); color: #fff; }
.pied .pied__bas .wp-block-social-links.reseaux .wp-social-link a { width: 100%; height: 100%; padding: 0; display: grid; place-items: center; }
.pied .pied__bas .wp-block-social-links.reseaux .wp-social-link svg { width: 18px; height: 18px; }
.pied__mention { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.92); }

.lettre { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; padding: 64px 30px 0; }
.lettre .lettre__titre { font-size: 38px; line-height: 1.18; font-weight: 600; color: var(--encre); text-wrap: balance; }
.lettre__titre em { font-style: normal; color: var(--jaune); }
.lettre .wpcf7-form { position: relative; }
.champ-lettre { display: block; background: #fff; border: 1px solid #D5D9E2; border-radius: 10px; padding: 10px 70px 10px 18px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.champ-lettre small, .champ small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.champ-lettre .wpcf7-form-control-wrap, .champ .wpcf7-form-control-wrap { display: block; }
.champ-lettre input { width: 100%; border: 0; outline: none; font: inherit; font-size: 15px; color: var(--encre); padding: 2px 0; background: transparent; }
.lettre .wpcf7-submit.lettre__envoyer { position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: var(--bleu); color: #fff; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }

/* Bouton WhatsApp flottant, présent sur toutes les pages (pied de page). Vert WhatsApp vif #25D366 avec halo pulsé
   et petit sursaut régulier pour attirer l'œil ; texte et icône marine pour rester lisibles (7,6:1).
   app.js le rend déplaçable à la souris ou au doigt : il garde la place choisie par chaque visiteur. */
.wp-block-buttons.whatsapp-flottant { position: fixed; right: 22px; bottom: 22px; z-index: 60; margin: 0; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: opacity .2s ease, visibility .2s; }
.wp-block-buttons.whatsapp-flottant.est-ecarte { opacity: 0; visibility: hidden; pointer-events: none; }
.wp-block-button.whatsapp-flottant__bouton .wp-block-button__link { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px 12px 16px; border-radius: 999px; background: #25D366; color: var(--bleu); font-size: 15px; font-weight: 700; line-height: 1.2; box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 2px 6px rgba(1,32,99,.25); -webkit-user-drag: none; animation: whatsapp-sursaut 4s ease-in-out infinite; transition: background .2s, transform .2s; }
.wp-block-button.whatsapp-flottant__bouton .wp-block-button__link::before { content: ''; width: 26px; height: 26px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-button.whatsapp-flottant__bouton .wp-block-button__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: whatsapp-onde 2s ease-out infinite; pointer-events: none; }
.wp-block-button.whatsapp-flottant__bouton .wp-block-button__link:hover { background: #4AE485; }
.whatsapp-flottant.est-deplace .wp-block-button__link { cursor: grabbing; transform: scale(1.08); animation: none; }
.whatsapp-flottant.est-deplace .wp-block-button__link::after { animation: none; }
@keyframes whatsapp-onde { from { box-shadow: 0 0 0 0 rgba(37,211,102,.75); } to { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@keyframes whatsapp-sursaut { 0%, 84%, 100% { transform: none; } 88% { transform: translateY(-7px) rotate(-6deg); } 92% { transform: translateY(0) rotate(5deg); } 96% { transform: rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) {
  .wp-block-button.whatsapp-flottant__bouton .wp-block-button__link, .wp-block-button.whatsapp-flottant__bouton .wp-block-button__link::after { animation: none; }
}

.legal { display: flex; justify-content: space-between; align-items: center; padding: 56px 0 40px; font-size: 11px; color: var(--gris); }

/* Contact Form 7 aux couleurs du thème */
.wpcf7 .wpcf7-not-valid-tip { font-size: 11.5px; color: #B42318; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 13px; border-width: 1.5px; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--vert); color: var(--vert); }
.wpcf7-spinner { display: none; }

/* ---------- Pages intérieures ---------- */
.heros-page__carte { position: relative; height: 270px; border-radius: var(--rayon); overflow: hidden; border: var(--cadre); background: linear-gradient(100deg, var(--bleu-vif), var(--bleu) 60%); }
.heros-page .heros__texte { padding-top: 44px; }
.heros-page h1 { font-size: 46px; }
.fil { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.8); margin-bottom: 16px; }
.fil a:hover { text-decoration: underline; }
.heros-page .heros__texte > p:last-child { margin-top: 18px; }
.wp-block-buttons.ancres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wp-block-button.ancre .wp-block-button__link { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; background: var(--bleu); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; box-shadow: 0 3px 8px rgba(31,78,121,.22); }
.wp-block-button.ancre .wp-block-button__link::before { content: ''; width: 19px; height: 19px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-button.ancre .wp-block-button__link:hover { background: var(--bleu-vif); }
.section--gamme { scroll-margin-top: 10px; }
.section--serree { padding-top: 46px; }
.wp-block-buttons.ancres.ancres--gammes { margin: 0 0 30px; }

/* Sous-catégories Professionnel / Particulier : boutons de la page Produits (bloc Boutons)
   et liens des pages catégorie ([reftrade_sous_categories]). */
.sous-gammes { display: flex; flex-wrap: wrap; gap: 8px; margin: -16px 0 18px; }
a.sous-gamme, .wp-block-button.sous-gamme .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1.5px solid var(--bleu); border-radius: 999px; background: #fff; color: var(--bleu); font-size: 13.5px; font-weight: 600; line-height: 1.3; transition: background .15s, color .15s; }
a.sous-gamme::before, .wp-block-button.sous-gamme .wp-block-button__link::before { content: ''; width: 17px; height: 17px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
a.sous-gamme:hover, a.sous-gamme[aria-current], .wp-block-button.sous-gamme .wp-block-button__link:hover { background: var(--bleu); color: #fff; }

/* Pages catégorie (templates/taxonomy-product_cat.html) : titre, description et produits de la catégorie. */
.entete-gamme { position: relative; overflow: hidden; border-radius: var(--rayon); border: var(--cadre); background: linear-gradient(100deg, var(--bleu-vif), var(--bleu) 60%); color: #fff; padding: 40px 48px 42px; }
.entete-gamme::after { content: ''; position: absolute; right: 48px; top: 50%; width: 170px; height: 160px; transform: translateY(-50%); background: url("assets/img/logo-monogramme-clair.png") center / contain no-repeat; opacity: .14; pointer-events: none; }
.entete-gamme .wc-block-breadcrumbs, .entete-gamme .woocommerce-breadcrumb { margin: 0 0 14px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.8); }
.entete-gamme .woocommerce-breadcrumb a:hover { text-decoration: underline; }
.entete-gamme .wp-block-query-title { position: relative; max-width: 780px; font-size: 42px; line-height: 1.08; font-weight: 600; color: #fff; letter-spacing: -.01em; text-wrap: balance; }
.entete-gamme .wp-block-term-description { position: relative; max-width: 680px; margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.9); }
.entete-gamme .wp-block-term-description p { margin: 0; }
.page-gamme .sous-gammes { margin: 18px 0 0; }
.page-gamme .section--serree { padding-top: 34px; }
.page-gamme .pagination-produits { margin-top: 18px; gap: 14px; font-weight: 600; color: var(--bleu); }
.page-gamme .pagination-produits .current { text-decoration: underline; text-underline-offset: 4px; }

.produit--autre { background: transparent; box-shadow: none; border: 1.5px dashed #A9B1C6; align-items: center; justify-content: center; text-align: center; padding: 28px 20px 16px; gap: 12px; }
.produit--autre::before { content: ''; width: 46px; height: 46px; background: var(--bleu); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.produit--autre h3, .produit--autre h2 { min-height: 0; margin: 0; font-size: 17px; font-weight: 600; color: #2A2A2A; line-height: 1.3; }
.produit--autre > p { font-size: 13px; line-height: 1.45; color: #6A6A6A; }
.produit--autre .wp-block-buttons.produit__actions { width: 100%; margin-top: 12px; }

.pastille-sombre { background: var(--bleu-fonce); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); }
.canaux { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; }
.canal { position: relative; overflow: hidden; min-height: 190px; border-radius: var(--rayon); background: var(--fond-fonce); padding: 30px 110px 28px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.canal--bleu { background: linear-gradient(100deg, var(--bleu-vif), var(--bleu) 70%); }
.canal__titre { margin-top: 6px; font-size: 26px; font-weight: 600; color: var(--encre); line-height: 1.1; }
.canal--bleu .canal__titre { font-size: 34px; color: #fff; }
.canal__texte { font-size: 13.5px; line-height: 1.4; color: #4A4A4A; }
.canal--bleu .canal__texte { color: rgba(255,255,255,.88); }
.canal::before { content: ''; position: absolute; right: 26px; bottom: 26px; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.canal::after { content: ''; position: absolute; right: 44px; bottom: 44px; width: 28px; height: 28px; background: var(--bleu); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 0 16px; }
.etape { display: flex; align-items: flex-start; gap: 18px; }
.etape__num { width: 62px; height: 46px; border-radius: 8px; background: var(--fond-fonce); color: var(--bleu); display: grid; place-items: center; font-size: 21px; font-weight: 700; flex-shrink: 0; }
.etape__titre { font-size: 17px; font-weight: 600; color: var(--encre); line-height: 1.25; margin-bottom: 6px; }
.etape__texte > p:last-child { font-size: 13.5px; line-height: 1.5; color: #4A4A4A; }

.commande { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.formulaire { background: #fff; border: 1px solid #EFEFEF; border-radius: 14px; padding: 36px 40px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.formulaire h2 { font-size: 27px; font-weight: 500; color: var(--encre); line-height: 1.15; }
.formulaire > p { margin-top: 8px; font-size: 13.5px; color: #555; }
.formulaire__grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.champ { display: block; border: 1px solid #DCDCDC; border-radius: 10px; padding: 9px 16px; }
.champ:focus-within { border-color: var(--bleu); }
.champ--large { grid-column: span 2; }
.champ input, .champ textarea { width: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--encre); padding: 3px 0; resize: vertical; }
.champ textarea { height: 112px; }
.formulaire .wpcf7-submit.bouton-envoyer { width: 100%; height: 50px; margin-top: 18px; border: 0; border-radius: 6px; background: linear-gradient(180deg, var(--bleu-vif), var(--bleu)); color: #fff; font: inherit; font-size: 15px; font-weight: 500; box-shadow: 0 3px 8px rgba(31,78,121,.28); cursor: pointer; }
.commande .duo__presence { min-height: 560px; }

/* Avis clients (motif « Avis client » de l'éditeur, à remplir avec de vrais avis) */
.avis-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.avis-carte { background: #fff; border: 1px solid #ECECEC; border-radius: 6px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.035); }
.avis-carte__note { color: var(--bleu); font-weight: 600; letter-spacing: .08em; }
.avis-carte > p { color: #4A4A4A; line-height: 1.45; }
.avis-carte .avis-carte__auteur { margin-top: auto; font-size: 12px; color: var(--gris); }

/* Archives, recherche, 404 */
.principal.liste-articles, .principal.page-404 { padding: 80px 0 0; }
.liste-articles .wp-block-query-title { margin-bottom: 34px; }
.liste-articles .wp-block-post-template { list-style: none; margin: 0; padding: 0; }
.page-404 .tete-section__texte { margin-top: 18px; }
.page-404__actions { margin-top: 26px; max-width: 260px; }

/* ---------- Fenêtre surgissante « Produit vedette » (Popup Maker, thème « Contenu uniquement ») ----------
   Tout le décor est porté par le contenu (.popup-vedette) ; Popup Maker ne fournit que le voile et la croix. */
.pum-container:has(.popup-vedette) { max-width: min(860px, calc(100vw - 24px)) !important; }
.pum-container:has(.popup-vedette) .pum-content:focus { outline: none; }
.pum-container:has(.popup-vedette) .pum-content + .pum-close { top: 14px; right: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); color: #fff; font-size: 22px; line-height: 36px; text-shadow: none; }
.pum-container:has(.popup-vedette) .pum-content + .pum-close:hover { background: var(--jaune); color: var(--bleu); }
.popup-vedette { position: relative; overflow: hidden; border-radius: 18px; border: 3px solid var(--bleu); background: #fff; color: var(--texte); font-family: 'Outfit', system-ui, sans-serif; font-size: 15px; line-height: 1.5; text-align: left; box-shadow: 0 30px 70px rgba(0,10,40,.45); }
.popup-vedette__bandeau { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 66px 16px 28px; background: linear-gradient(100deg, var(--bleu-vif), var(--bleu) 65%); }
.wp-block-image.popup-vedette__logo { margin: 0; line-height: 0; }
.wp-block-image.popup-vedette__logo img { width: 168px; height: auto; }
.popup-vedette__pastille { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: var(--jaune); color: var(--bleu); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.popup-vedette__pastille::before { content: '★'; font-size: 13px; line-height: 1; }
.popup-vedette__corps { display: grid; grid-template-columns: 1fr 1.08fr; }
.popup-vedette__visuel { position: relative; display: grid; place-items: center; padding: 36px 28px; overflow: hidden; background: radial-gradient(circle at 50% 46%, #fff 0, #fff 36%, var(--fond-fonce) 72%); }
.popup-vedette__visuel::before { content: ''; position: absolute; inset: -8%; background: url("assets/img/rayons.svg") center / 92% no-repeat; opacity: .6; pointer-events: none; }
.wp-block-image.popup-vedette__photo { position: relative; z-index: 1; width: 100%; max-width: 310px; margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: var(--cadre); background: #fff; box-shadow: 0 16px 34px rgba(1,32,99,.24); }
.wp-block-image.popup-vedette__photo img { width: 100%; height: 100%; object-fit: cover; }
.popup-vedette__sceau { position: absolute; z-index: 2; top: 18px; left: 18px; width: 94px; height: 94px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--jaune); color: var(--bleu); font-size: 10px; font-weight: 700; line-height: 1.15; letter-spacing: .05em; text-transform: uppercase; transform: rotate(-12deg); box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(1,32,99,.3); }
.popup-vedette__sceau strong { display: block; font-size: 27px; letter-spacing: -.02em; }
.popup-vedette__infos { display: flex; flex-direction: column; padding: 30px 32px 28px; }
.popup-vedette__titre { font-size: 27px; line-height: 1.15; font-weight: 600; color: var(--encre); letter-spacing: -.01em; }
.popup-vedette__titre em { font-style: normal; white-space: nowrap; padding: 0 8px; border-radius: 6px; background: var(--jaune); color: var(--bleu); }
.popup-vedette__atouts { list-style: none; display: grid; gap: 7px; margin: 16px 0 0; padding: 0; }
.popup-vedette__atouts li, .points-cles li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.4; color: #3B3B3B; }
.popup-vedette__atouts li::before, .points-cles li::before { content: ''; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: #E3F3EC; }
.popup-vedette__atouts li::after, .points-cles li::after { content: ''; position: absolute; left: 3px; top: 3px; width: 13px; height: 13px; background: var(--vert); -webkit-mask: var(--i-coche) center / contain no-repeat; mask: var(--i-coche) center / contain no-repeat; }

/* Code promo façon ticket (bouton « Copier » : assets/app.js) */
.code-promo { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 14px; margin-top: 20px; padding: 12px 14px 12px 18px; border: 2px dashed var(--bleu); border-radius: 12px; background: #FFF8D1; }
.code-promo__libelle { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.code-promo__code { grid-column: 1; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: .16em; color: var(--bleu); }
.wp-block-buttons.code-promo__actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.wp-block-button.code-promo__copier .wp-block-button__link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 8px; background: var(--bleu); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; }
.wp-block-button.code-promo__copier .wp-block-button__link::before { content: ''; width: 15px; height: 15px; background: var(--jaune); -webkit-mask: var(--i-copie) center / contain no-repeat; mask: var(--i-copie) center / contain no-repeat; }
.code-promo__note { grid-column: 1 / -1; margin-top: 6px; font-size: 12.5px; color: #4A4A4A; }

/* Prix et boutons de l'offre ([reftrade_offre]) */
.offre { margin-top: 18px; }
.offre__prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 25px; font-weight: 700; line-height: 1.2; color: var(--encre); }
.offre__prix ins { order: 1; text-decoration: none; background: none; }
.offre__prix del { order: 2; font-size: 14px; font-weight: 400; color: #8E8686; }
.offre__remise { margin-top: 4px; font-size: 13.5px; color: var(--vert); }
.offre__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 14px; }
.offre__bouton { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 10px; background: linear-gradient(180deg, var(--bleu-vif), var(--bleu)); color: #fff; font-size: 15.5px; font-weight: 600; box-shadow: 0 8px 18px rgba(1,32,99,.3); transition: transform .15s, box-shadow .15s; }
.offre__bouton::before { content: ''; width: 20px; height: 20px; background: var(--jaune); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.offre__bouton:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(1,32,99,.35); }
.offre__fiche { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--bleu); }
.offre__fiche::after { content: ''; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--i-droite) center / contain no-repeat; mask: var(--i-droite) center / contain no-repeat; }
.offre__fiche:hover { text-decoration: underline; text-underline-offset: 3px; }

.offre__whatsapp { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #0E7C46; }
.offre__whatsapp::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.offre__whatsapp:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Produit à variantes ([reftrade_offre] + formulaire WooCommerce) : boutons de dimension (assets/app.js),
   quantité et « Ajouter au panier ». Sans JavaScript, la liste déroulante d'origine reste affichée. */
.offre--variantes .variations_form { margin: 16px 0 0; }
.offre--variantes table.variations { display: block; width: 100%; margin: 0; border: 0; border-collapse: collapse; }
.offre--variantes table.variations tbody, .offre--variantes table.variations tr, .offre--variantes table.variations th, .offre--variantes table.variations td { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.offre--variantes table.variations tr + tr { margin-top: 14px; }
.offre--variantes table.variations th.label { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.offre--variantes table.variations select { width: 100%; height: 46px; padding: 0 12px; border: 1.5px solid #D5D9E2; border-radius: 10px; background: #fff; font: inherit; color: var(--encre); }
.offre--variantes form.a-variantes table.variations select, .offre--variantes .reset_variations { display: none !important; }
.variantes { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.variante { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 11px 30px 11px 14px; border: 1.5px solid #D5D9E2; border-radius: 10px; background: #fff; color: var(--encre); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.variante__nom { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.variante__prix { font-size: 12.5px; line-height: 1.3; color: var(--gris); }
.variante__prix del { margin-right: 4px; font-size: 11px; }
.variante__prix ins { text-decoration: none; background: none; }
.variante:hover { border-color: var(--bleu); }
.variante.est-choisie { border-color: var(--bleu); background: #EEF1FA; box-shadow: inset 0 0 0 1px var(--bleu); }
.variante.est-choisie .variante__prix { color: var(--bleu); font-weight: 600; }
.variante.est-choisie::after { content: ''; position: absolute; top: 9px; right: 9px; width: 16px; height: 16px; background: var(--bleu); -webkit-mask: var(--i-coche) center / contain no-repeat; mask: var(--i-coche) center / contain no-repeat; }
.variante:focus-visible { outline: 3px solid var(--jaune); outline-offset: 2px; }
.variante.est-indisponible { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.offre--variantes .woocommerce-variation-price { display: none; } /* le prix de la variante s'affiche en haut de l'offre */
.offre--variantes .woocommerce-variation-availability p { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--vert); }
.offre--variantes .woocommerce-variation-availability p.out-of-stock { color: #B42318; }
.offre--variantes .woocommerce-variation-description p { margin-top: 8px; font-size: 13.5px; }
.offre--variantes .woocommerce-variation-add-to-cart, .offre form.cart:not(.variations_form) { display: flex; gap: 10px; margin-top: 16px; }
.offre--sans-panier .woocommerce-variation-add-to-cart { display: none !important; }
.offre form.cart .quantity input.qty, .calcul-paliers__qte { width: 74px; height: 50px; padding: 0 6px; border: 1.5px solid #D5D9E2; border-radius: 10px; font: inherit; font-size: 16px; text-align: center; color: var(--encre); }
.offre p.stock { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--vert); }
.offre form.cart .single_add_to_cart_button.button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; margin: 0; padding: 0 24px; border: 0; border-radius: 10px; background: linear-gradient(180deg, var(--bleu-vif), var(--bleu)); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600; box-shadow: 0 8px 18px rgba(1,32,99,.3); cursor: pointer; }
.offre form.cart .single_add_to_cart_button.button::before { content: ''; width: 20px; height: 20px; background: var(--jaune); -webkit-mask: var(--i-panier) center / contain no-repeat; mask: var(--i-panier) center / contain no-repeat; }
.offre form.cart .single_add_to_cart_button.button.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.offre__indisponible { margin-top: 12px; font-size: 14px; color: #B42318; }

/* Catalogue de prix : unité de vente, référence, prix dégressifs et estimateur de quantité */
.prix-unite { font-size: .62em; font-weight: 500; color: var(--gris); white-space: nowrap; }
.variante__prix .prix-unite { display: none; }
.offre__reference { margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--gris); }
.paliers { width: 100%; margin-top: 16px; border: 1px solid #E3E6EE; border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 13.5px; }
.paliers caption { margin-bottom: 8px; padding: 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--bleu); }
.paliers th { padding: 8px 14px; background: var(--fond-fonce); color: var(--bleu); font-size: 11.5px; font-weight: 600; text-align: left; }
.paliers td { padding: 9px 14px; border-top: 1px solid #E3E6EE; color: var(--encre); }
.paliers td:last-child { font-weight: 600; text-align: right; white-space: nowrap; }
.paliers th:last-child { text-align: right; }
.paliers td small { color: var(--gris); }
.paliers tr.est-actif td { background: #EEF1FA; color: var(--bleu); }
.paliers tr.est-actif td:first-child { box-shadow: inset 3px 0 0 var(--bleu); }
.calcul-paliers { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
.calcul-paliers label { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bleu); }
.calcul-paliers__qte { height: 44px; }
.calcul-paliers__resultat { font-size: 14px; color: var(--texte); }
.calcul-paliers__resultat strong { color: var(--encre); }

/* ---------- Cartes produit cliquables : tout le cadre mène à la fiche (lien du titre étiré) ---------- */
.vitrine--produits .produit__titre a { color: inherit; }
.vitrine--produits .produit__titre a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 8px; }
.vitrine--produits .grille-produits > .wc-block-product { transition: transform .2s, box-shadow .2s; }
.vitrine--produits .grille-produits > .wc-block-product:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(1,32,99,.14); }
.vitrine--produits .grille-produits > .wc-block-product:hover .produit__titre { color: var(--bleu-entete); }
.vitrine--produits .produit__badge, .vitrine--produits .wc-block-components-product-sale-badge { pointer-events: none; }
.vitrine--produits .grille-produits .produit__actions { position: relative; z-index: 2; }

/* ---------- Fiche produit (templates/single-product.html) : galerie, offre, fiche technique, détails, catalogue ---------- */
.page-produit .produit-entete { padding-top: 30px; }
.page-produit .woocommerce-breadcrumb { margin: 0 0 20px; font-size: 12.5px; font-weight: 500; color: var(--gris); }
.page-produit .woocommerce-breadcrumb a:hover { color: var(--bleu); text-decoration: underline; }
.produit-entete__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.produit-galerie { position: relative; padding: 14px; border: var(--cadre); border-radius: var(--rayon); background: #fff; }
.produit-galerie .woocommerce-product-gallery { position: relative; width: 100% !important; float: none !important; margin: 0 !important; }
.produit-galerie .woocommerce-product-gallery__image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.produit-galerie .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0 !important; padding: 0; list-style: none; }
.produit-galerie .flex-control-thumbs li { width: 72px !important; float: none !important; margin: 0 !important; }
.produit-galerie .flex-control-thumbs img { border: 2px solid #E3E6EE; border-radius: 6px; opacity: .65; cursor: pointer; transition: opacity .15s, border-color .15s; }
.produit-galerie .flex-control-thumbs img.flex-active, .produit-galerie .flex-control-thumbs img:hover { opacity: 1; border-color: var(--bleu); }
.produit-galerie .woocommerce-product-gallery__trigger { z-index: 5; }
.page-produit .produit-galerie span.onsale { position: absolute; top: 18px; left: 18px; z-index: 6; min-width: 0; min-height: 0; margin: 0; padding: 5px 12px; border-radius: 999px; background: var(--jaune); color: var(--bleu); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.produit-resume__gammes { display: flex; flex-wrap: wrap; gap: 6px; }
.produit-resume__gammes .wp-block-post-terms__separator { display: none; }
.produit-resume__gammes a { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--fond-fonce); color: var(--bleu); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.produit-resume__gammes a:hover { background: var(--bleu); color: #fff; }
.produit-resume__titre { margin-top: 14px; font-size: 34px; line-height: 1.12; font-weight: 600; color: var(--encre); letter-spacing: -.01em; text-wrap: balance; }
/* Barre de scellage des machines, sous le nom ([reftrade_barre_scellage] ; app.js suit le modèle choisi) */
.barre-scellage { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 14px; padding: 9px 15px; border-radius: 10px; background: var(--fond-fonce); color: var(--bleu); font-size: 14px; font-weight: 600; line-height: 1.35; }
.barre-scellage::before { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: var(--bleu-entete); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.barre-scellage__valeur { color: var(--encre); font-size: 16px; font-weight: 700; }
.points-cles { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; padding: 0; }
.produit-resume .points-cles { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E3E6EE; }
.points-cles li { font-size: 14.5px; }
.produit-resume .offre { margin-top: 14px; } /* le prix juste sous le nom du produit */
.produit-resume .offre__prix { font-size: 30px; }
.produit-resume__rassurance { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; padding: 13px 16px; border-radius: 10px; background: var(--fond-fonce); font-size: 12.5px; font-weight: 600; color: var(--bleu); }
.produit-resume__rassurance span { display: inline-flex; align-items: center; gap: 7px; }
.produit-resume__rassurance span::before { content: ''; width: 16px; height: 16px; background: var(--bleu-entete); -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }

.onglets-produit { position: sticky; top: 0; z-index: 15; margin-top: 46px; padding: 12px 0; background: rgba(255,255,255,.96); border-bottom: 1px solid #E3E6EE; }
.onglets-produit .wp-block-buttons.ancres { margin-top: 0; }
.produit-section { scroll-margin-top: 80px; }
.page-produit .section--serree { padding-top: 54px; }
.produit-section__tete { margin-bottom: 22px; }
.produit-section .titre-bicolore { font-size: 32px; }

.fiche-technique { width: 100%; border: 1px solid #E3E6EE; border-radius: 12px; border-collapse: separate; border-spacing: 0; overflow: hidden; font-size: 14.5px; }
.fiche-technique th { width: 36%; padding: 13px 18px; background: var(--fond-fonce); color: var(--bleu); font-weight: 600; text-align: left; vertical-align: top; }
.fiche-technique td { padding: 13px 18px; color: var(--encre); }
.fiche-technique tr + tr th, .fiche-technique tr + tr td { border-top: 1px solid #E3E6EE; }
.fiche-technique a { color: var(--bleu); text-decoration: underline; text-underline-offset: 3px; }
.fiche-technique__note { margin-top: 14px; font-size: 13.5px; color: var(--gris); }
.fiche-technique__pdf { margin-top: 14px; }
.wp-block-buttons.fiche-actions { margin-top: 16px; }
.wp-block-button.bouton-imprimer .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--bleu); border-radius: 8px; background: #fff; color: var(--bleu); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.wp-block-button.bouton-imprimer .wp-block-button__link::before { content: ''; width: 17px; height: 17px; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.wp-block-button.bouton-imprimer .wp-block-button__link:hover { background: var(--bleu); color: #fff; }

.details-grille { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.details-produit { font-size: 15px; line-height: 1.7; color: var(--texte); }
.details-produit p + p, .details-produit ul, .details-produit ol, .details-produit h3 { margin-top: 12px; }
.details-produit ul, .details-produit ol { padding-left: 20px; }
.details-produit strong { color: var(--encre); }
.details-grille > .produit--autre { position: sticky; top: 90px; }

/* Mode d'emploi en images (fiche produit, après « Détails du produit ») : étapes en cartes sobres, photo 4:3,
   numéro d'étape en pastille jaune ; une colonne sur téléphone. */
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 30px 24px; }
.etape { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.etape__image { position: relative; margin: 0 0 10px; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden; background: var(--fond-fonce); }
.etape__photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.etape__numero { margin: 0; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--jaune); color: var(--bleu); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.etape__titre { margin: 4px 0 0; font-size: 19px; line-height: 1.25; font-weight: 600; color: var(--encre); text-wrap: balance; }
.etape__texte { margin: 0; color: var(--texte); font-size: 15px; line-height: 1.6; }
.etapes__note { margin: 22px 0 0; font-size: 12.5px; color: var(--gris); }
.etape--texte { padding: 20px 20px 22px; border: 1px solid #E3E6EE; border-top: 3px solid var(--bleu); border-radius: var(--rayon); background: var(--fond); }

.documents { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.document { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--bleu); border-radius: 12px; background: #fff; color: var(--bleu); font-size: 15px; font-weight: 600; line-height: 1.3; transition: background .15s, color .15s; }
.document::before { content: ''; width: 26px; height: 26px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.document small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--gris); }
.document:hover { background: var(--bleu); color: #fff; }
.document:hover small { color: rgba(255,255,255,.8); }
.document--demande { border-style: dashed; border-color: #0E7C46; color: #0E6B3A; }
.document--demande:hover { background: #0E7C46; }
.document--court { display: inline-flex; padding: 10px 16px; font-size: 14px; }
.document--court::before { width: 20px; height: 20px; }
.catalogue-gamme { margin: 24px 0 14px; }
/* Produit seul dans sa gamme : WooCommerce rend une collection vide, on n'affiche pas le cadre gris. */
#catalogue .vitrine--produits:not(:has(.wc-block-product)):not(:has(.collection-vide)) { display: none; }
.fiche-impression { display: none; }

/* ---------- Adaptatif ---------- */
/* Héros de l'accueil (300 px de haut) : sous 1400 px, le titre à 40 px passait sur trois lignes et coupait le sous-titre. */
@media (max-width: 1400px) {
  .heros__principal .heros__texte h1 { font-size: 36px; }
  .heros__principal .heros__texte { padding-top: 40px; }
}

@media (max-width: 1180px) {
  .entete__contacts { display: none; }
  .entete__haut { grid-template-columns: auto 1fr auto; }
  .wp-block-navigation.nav-principale .nav-gamme { margin-right: 26px; }
  .pied__grille { grid-template-columns: 1.4fr 1fr 1fr; }
  .pied__contact { grid-column: span 3; align-items: flex-start; text-align: left; }
  .wp-block-navigation.nav-principale .nav-page + .nav-page { margin-left: 24px; }
}

/* Entre 901 et 1040 px, les icônes des gammes cèdent leur place pour que le menu tienne sur une ligne. */
@media (min-width: 901px) and (max-width: 1040px) {
  .wp-block-navigation.nav-principale .nav-gamme > .wp-block-navigation-item__content::before { display: none; }
  .wp-block-navigation.nav-principale .nav-gamme { margin-right: 22px; }
}

@media (max-width: 900px) {
  body { font-size: 14.5px; }
  .bandeau-haut__inner { gap: 18px; font-size: 11px; justify-content: space-between; }
  .bandeau-haut__note { display: none !important; }
  .entete__haut { grid-template-columns: 1fr auto; height: 74px; gap: 12px; padding-right: 56px; }
  .wp-block-site-logo.logo img { width: 180px; }
  .wp-block-search.recherche { display: none; }
  .wp-block-button.bouton-commande .wp-block-button__link { width: 44px; height: 44px; padding: 0; font-size: 0; }
  .wp-block-button.bouton-commande .wp-block-button__link::before { left: 11px; }
  .wp-block-button.bouton-commande strong { display: none; }

  /* Menu : le bouton du bloc Navigation prend la place du burger de la maquette,
     dès 900 px (le bloc ne bascule qu'à 600 px d'origine). */
  .nav { border-top: 0; }
  .nav__inner { height: 0; }
  /* Le bloc Navigation est en position relative : le bouton s'ancrerait sous l'en-tête. */
  .wp-block-navigation.nav-principale { position: static; }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; position: absolute; top: 15px; right: 20px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; background: var(--bleu); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
  /* Le panneau s'ouvre blanc sur blanc sans ceci (CSS du bloc imprimé après le thème) : seul !important justifié. */
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--bleu-entete) !important; color: #fff !important; padding: 28px 24px !important; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }
  .wp-block-navigation.nav-principale .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 40px; }
  .wp-block-navigation.nav-principale .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .wp-block-navigation.nav-principale .is-menu-open .nav-gamme, .wp-block-navigation.nav-principale .is-menu-open .nav-page, .wp-block-navigation.nav-principale .is-menu-open .nav-page + .nav-page { margin: 0; font-size: 17px; }
  /* Menu mobile : les sous-menus sont dépliés sous leur gamme, en blanc sur le bleu du panneau. */
  .wp-block-navigation.nav-principale .wp-block-navigation__container > .has-child { padding-block: 0; }
  .wp-block-navigation.nav-principale .is-menu-open .has-child > .wp-block-navigation__submenu-container { padding: 10px 0 2px 29px !important; gap: 10px; background: transparent !important; box-shadow: none; border-radius: 0; }
  .wp-block-navigation.nav-principale .is-menu-open .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 0; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.92); }
  .wp-block-navigation.nav-principale .is-menu-open .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content::before { width: 16px; height: 16px; background: var(--jaune); }
  .wp-block-navigation.nav-principale .is-menu-open .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: transparent; color: var(--jaune); }

  .heros { padding-top: 20px; }
  .heros__grille { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 12px; }
  .heros__principal { grid-column: span 2; grid-row: auto; min-height: 340px; }
  .wp-block-image.heros__photo { width: 100%; height: 55%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%); mask-image: linear-gradient(180deg, transparent, #000 40%); }
  .heros__texte { max-width: none; padding: 28px 24px 0; }
  .heros h1, .heros__principal .heros__texte h1 { font-size: 31px; }
  .heros__principal .heros__texte { padding-top: 28px; }
  .heros__texte > p:last-child { font-size: 14.5px; margin-top: 10px; }
  .carte-laterale { min-height: 150px; align-items: flex-start; }
  .carte-laterale .wp-block-image { width: 100%; height: 55%; top: auto; bottom: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%); mask-image: linear-gradient(180deg, transparent, #000 50%); }
  .carte-laterale__texte { max-width: none; padding: 16px; }
  .carte-laterale__titre { font-size: 17px; }
  .carte-laterale__texte > p:last-child { display: none; }
  .heros__promos { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .promo { height: 104px; }
  .promo__titre { font-size: 18px; }
  .promo__texte { padding: 0 18px; max-width: 68%; }

  .section { padding-top: 70px; }
  .tete-section, .tete-section--trois { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .lien-fleche--sombre { justify-self: start; }
  .titre-bicolore { font-size: 32px; }
  .vitrine { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
  .produit h3 { font-size: 13.5px; margin: 12px 2px 0; min-height: 52px; }
  .produit__prix { font-size: 18px; margin: 8px 2px 0; flex-direction: column; gap: 0; }
  .produit__note { margin: 2px 2px 12px; }
  .wp-block-button.bouton .wp-block-button__link { font-size: 12px; height: 38px; gap: 5px; }
  .wp-block-button.bouton.ico-panier .wp-block-button__link::before { display: none; }

  .mosaique { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; grid-template-areas: "a c" "b b" "d e"; gap: 10px; padding: 0; }
  .mosaique::after { display: none; }
  .tuile__titre, .tuile--d .tuile__titre, .tuile--e .tuile__titre { font-size: 22px; top: 16px; left: 16px; }
  .tuile__lien { font-size: 11.5px; left: 16px; bottom: 14px; }
  .tuile--b .tuile__titre { left: 16px; transform: none; }
  .tuile--b .tuile__lien { left: 16px; transform: none; top: auto; bottom: 14px; }

  .metiers { margin-top: 70px; padding: 50px 0; }
  .metiers__grille { grid-template-columns: 1fr; gap: 30px; }
  .metiers__titre { order: -1; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .logos > p { height: 58px; font-size: 13.5px; }
  .logos > p:nth-child(3n+2) { font-size: 11.5px; }

  .duo__grille { grid-template-columns: 1fr; height: auto; }
  .duo__expert, .duo__presence { min-height: 420px; }
  .duo__contenu { padding: 26px 22px; }
  .duo__contenu h2 { font-size: 22px; }
  .duo__expert--carte { grid-template-columns: 1fr; grid-template-rows: auto 300px; }
  .duo__expert--carte .carte-google { grid-column: 1; grid-row: 2; }
  .duo__presence::before { height: 260px; width: 140px; right: 8px; top: auto; bottom: 16px; opacity: .6; }
  .duo__presence .duo__contenu > p { max-width: 60%; }
  .engagements { flex-direction: column; align-items: flex-start; gap: 18px; }

  .arc__piste { margin-inline: -300px; gap: 12px; }
  .arc__piste .wp-block-image { width: 190px; height: 270px; }
  .arc::before, .arc::after { height: 90px; }
  .arc::before { top: -60px; } .arc::after { bottom: -60px; }

  .conseils { grid-template-columns: 1fr; padding: 0; }

  .pied { padding-top: 60px; }
  .atouts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .pied__bloc { margin: 0 10px; padding: 36px 22px 24px; }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pied__marque, .pied__contact { grid-column: span 2; }
  .pied__bas { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lettre { grid-template-columns: 1fr; gap: 24px; padding: 48px 0 0; }
  .lettre .lettre__titre { font-size: 27px; }
  .legal { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 90px; }
  .wp-block-buttons.whatsapp-flottant { right: 16px; bottom: 16px; }
  .wp-block-button.whatsapp-flottant__bouton .wp-block-button__link { width: 58px; height: 58px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .wp-block-button.whatsapp-flottant__bouton .wp-block-button__link::before { width: 30px; height: 30px; }

  .heros-page__carte { height: auto; min-height: 330px; }
  .heros-page .heros__texte { padding-top: 26px; }
  .heros-page h1 { font-size: 34px; }
  .wp-block-buttons.ancres { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .wp-block-button.ancre { flex-shrink: 0; }
  .wp-block-button.ancre .wp-block-button__link { padding: 9px 16px; font-size: 13px; }
  .produit--autre { grid-column: span 2; padding: 22px 18px 14px; }
  .variantes { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .variante { padding: 9px 8px; }
  .variante__nom { font-size: 12.5px; white-space: nowrap; }
  .variante__prix { padding-right: 16px; font-size: 11.5px; }
  .variante.est-choisie::after { top: auto; bottom: 10px; right: 7px; width: 13px; height: 13px; }
  .produit-entete__grille { grid-template-columns: 1fr; gap: 24px; }
  .produit-galerie { padding: 10px; }
  .produit-resume__titre { font-size: 26px; }
  .produit-resume .offre__prix { font-size: 24px; }
  .onglets-produit { margin-top: 30px; padding: 10px 0; }
  .page-produit .section--serree { padding-top: 40px; }
  .produit-section .titre-bicolore { font-size: 26px; }
  .fiche-technique { font-size: 13.5px; }
  .fiche-technique th { width: 44%; padding: 11px 12px; }
  .fiche-technique td { padding: 11px 12px; }
  .details-grille { grid-template-columns: 1fr; }
  .details-grille > .produit--autre { position: static; grid-column: auto; }
  .vitrine--produits .grille-produits > .wc-block-product:hover { transform: none; }
  .popup-vedette { border-radius: 14px; }
  .popup-vedette__bandeau { padding: 12px 58px 12px 18px; }
  .wp-block-image.popup-vedette__logo img { width: 128px; }
  .popup-vedette__pastille { padding: 5px 10px; font-size: 10px; }
  .popup-vedette__corps { grid-template-columns: 1fr; }
  .popup-vedette__visuel { padding: 20px; }
  .wp-block-image.popup-vedette__photo { max-width: 180px; }
  .popup-vedette__sceau { top: 12px; left: 12px; width: 72px; height: 72px; font-size: 8.5px; }
  .popup-vedette__sceau strong { font-size: 20px; }
  .popup-vedette__infos { padding: 20px 20px 22px; }
  .popup-vedette__titre { font-size: 21px; }
  .popup-vedette__atouts li { font-size: 13.5px; }
  .code-promo__code { font-size: 24px; }
  .offre__prix { font-size: 21px; }
  .offre__bouton { width: 100%; }
  .sous-gammes { margin: -10px 0 16px; }
  a.sous-gamme, .wp-block-button.sous-gamme .wp-block-button__link { padding: 7px 14px; font-size: 13px; }
  .entete-gamme { padding: 26px 22px 28px; }
  .entete-gamme::after { display: none; }
  .entete-gamme .wp-block-query-title { font-size: 30px; }
  .entete-gamme .wp-block-term-description { font-size: 14px; }
  .vitrine--produits .wc-block-product-template.grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vitrine--produits .produit__badge { display: none; } /* le titre de section nomme déjà la gamme */
  .vitrine--produits .produit__titre { font-size: 13.5px; margin: 12px 2px 0; min-height: 52px; }
  .vitrine--produits .produit__prix { margin: 8px 2px 0; }
  .produit__scellage { margin: 8px 2px 0; padding: 5px 8px; gap: 1px 5px; font-size: 11px; }
  .produit__scellage::before { width: 13px; height: 13px; }
  .produit__scellage span { flex: 1 1 0; min-width: 0; } /* le libellé reste à côté de l’icône et passe à la ligne */
  .produit__scellage strong { flex-basis: 100%; font-size: 12.5px; }
  .barre-scellage { font-size: 13px; padding: 8px 12px; }
  .vitrine--produits .produit__prix .wc-block-components-product-price { font-size: 18px; }
  .vitrine--produits .produit__note { margin: 2px 2px 12px; }
  .vitrine--produits > .produit--autre { flex-direction: column; text-align: center; margin-top: 10px; }
  .vitrine--produits > .produit--autre h3, .vitrine--produits > .produit--autre h2 { white-space: normal; }
  .vitrine--produits > .produit--autre .wp-block-buttons.produit__actions { width: 100%; }
  .avis-grille { grid-template-columns: 1fr; gap: 10px; }
  .canaux { grid-template-columns: 1fr; gap: 12px; }
  .canal { min-height: 150px; padding: 22px 96px 22px 22px; }
  .canal--bleu .canal__titre { font-size: 28px; }
  .canal::before { width: 54px; height: 54px; right: 20px; bottom: 20px; }
  .canal::after { right: 33px; bottom: 33px; }
  .etapes { grid-template-columns: 1fr; gap: 22px; padding: 0; }
  .commande { grid-template-columns: 1fr; }
  .formulaire { padding: 26px 20px; }
  .formulaire__grille { grid-template-columns: 1fr; }
  .champ--large { grid-column: auto; }
  .commande .duo__presence { min-height: 440px; }
}

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

/* Fiche produit imprimée ou enregistrée en PDF (bouton « Imprimer / enregistrer en PDF ») :
   bandeau au logo, photo, titre, prix, fiche technique et détails ; coordonnées RefTrade en bas de page. */
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  #wpadminbar, .bandeau-haut, .nav, .entete__haut > :not(.logo), .pied, .lettre, .legal, .whatsapp-flottant, .pum, .pum-overlay,
  .onglets-produit, .offre__actions, .produit-resume__rassurance, #catalogue, .fiche-actions, .details-grille > .produit--autre,
  .woocommerce-breadcrumb, .flex-control-thumbs, .woocommerce-product-gallery__trigger, .wc-block-store-notices { display: none !important; }
  html { margin-top: 0 !important; }
  .entete, .fiche-technique th, .produit-galerie .onsale { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .entete__haut { display: block; height: auto; padding: 10px 0; }
  .page-produit .produit-entete { padding-top: 14px; }
  .produit-entete__grille { grid-template-columns: 38% 1fr; gap: 22px; }
  .produit-galerie { padding: 6px; border-width: 2px; }
  .produit-resume__titre { font-size: 20pt; }
  .page-produit .section--serree { padding-top: 14px; }
  .produit-section__tete { margin-bottom: 8px; }
  .produit-section .titre-bicolore { font-size: 15pt; }
  .fiche-technique, .fiche-technique tr { break-inside: avoid; }
  .details-grille { display: block; }
  .fiche-impression { display: block !important; width: min(var(--etroit), 100% - 40px); margin: 18px auto 0; padding-top: 10px; border-top: 1px solid #ccc; font-size: 9pt; color: #444; }
}
