/* =====================================================================
   JeuDerm Maroc — habillage WooCommerce
   Reprend les variables de main.css du theme parent :
   --navy (boutons), --anthracite (titres), --gris (texte secondaire),
   --argent (bordures), --gold (accent), --bg, --separateur, --radius, --ombre.
   Regle de charte : aucun rouge, aucun vert vif, aucun violet WooCommerce.
   ===================================================================== */

/* ---------- Conteneur ---------- */
.jd-woo { max-width: var(--max, 1200px); margin: 0 auto; padding: 140px 20px 80px; }
.jd-woo h1, .jd-woo h2, .jd-woo h3 { color: var(--anthracite); font-weight: 500; letter-spacing: -.01em; }
.jd-woo h1.woocommerce-products-header__title, .jd-woo h1.product_title { font-size: 2rem; margin: 0 0 18px; }

/* ---------- Boutons : identiques aux .btn-primary du site ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce button.button.alt, .woocommerce a.button.alt,
.woocommerce input.button.alt, .woocommerce .single_add_to_cart_button,
.woocommerce #payment #place_order, .woocommerce-cart .checkout-button {
  display: inline-block; background: var(--navy); border: 1.5px solid var(--navy); color: #fff !important;
  padding: 14px 34px; border-radius: 50px; font-family: inherit; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover, .woocommerce #payment #place_order:hover,
.woocommerce-cart .checkout-button:hover {
  background: #283344; border-color: #283344; color: #fff !important; transform: translateY(-2px); box-shadow: var(--ombre);
}
.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ---------- Prix + suffixe HT (prix en NOIR, demande Loubna 2026-09-08) ---------- */
.woocommerce div.product p.price, .woocommerce div.product span.price,
.woocommerce ul.products li.product .price { color: #111214; font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.woocommerce .price .woocommerce-price-suffix { color: var(--gris); font-size: .7em; font-weight: 400; margin-left: 5px; letter-spacing: .02em; }
.woocommerce .price del { color: var(--argent); font-weight: 400; }
.woocommerce .price ins { text-decoration: none; }

/* ---------- Grille de produits (boutique, categories) ----------
   Cadre photo carre identique pour tous les produits : la photo est contenue dans le cadre,
   jamais rognee, jamais zoomee. Titre en gris, prix en noir (demande Loubna 2026-09-08). */
.woocommerce ul.products { margin-top: 26px; }
.woocommerce ul.products li.product {
  background: var(--blanc, #fff); border: 1px solid var(--separateur); border-radius: var(--radius, 16px);
  padding: 14px 14px 22px; text-align: center; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte, var(--ombre)); border-color: transparent; }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; }
.woocommerce ul.products li.product a img {
  display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain;
  background: transparent; border-radius: 12px; padding: 4%; margin: 0 0 16px; box-sizing: border-box;
  transition: none;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  color: var(--gris); font-size: .95rem; font-weight: 500; padding: 0 6px 6px; line-height: 1.4; min-height: 2.8em;
}
.woocommerce ul.products li.product .price { display: block; margin: 2px 0 0; font-size: 1.05rem; }
.woocommerce ul.products li.product .button { margin-top: 14px; padding: 11px 26px; font-size: .85rem; }
.woocommerce ul.products li.product .jd-prix-masque { display: block; margin-top: 4px; }

/* ---------- Badges : promo et stock (jamais de rouge / vert) ---------- */
.woocommerce span.onsale {
  background: var(--gold); color: #fff; border-radius: 999px; min-height: 0; min-width: 0; line-height: 1;
  padding: 7px 12px; font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.woocommerce div.product .stock, .woocommerce ul.products li.product .stock { color: var(--gris); font-size: .88rem; }
.woocommerce div.product .stock.in-stock { color: var(--gold); }
.woocommerce div.product .stock.out-of-stock { color: var(--gris); }

/* ---------- Bandeaux de message (succes / info / erreur) ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  background: var(--bg); color: var(--anthracite); border-top: 0; border-left: 3px solid var(--argent);
  border-radius: 10px; padding: 16px 20px 16px 48px;
}
.woocommerce-message { border-left-color: var(--gold); }
.woocommerce-message::before { color: var(--gold); }
.woocommerce-info::before { color: var(--argent); }
.woocommerce-error { border-left-color: var(--anthracite); }
.woocommerce-error::before { color: var(--anthracite); }
.woocommerce-message a.button, .woocommerce-info a.button { padding: 9px 18px; font-size: .85rem; }

/* ---------- Fil d'Ariane, compteur, tri ---------- */
.woocommerce .woocommerce-breadcrumb { color: var(--gris); font-size: .85rem; margin-bottom: 26px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--gris); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--anthracite); }
.woocommerce .woocommerce-result-count { color: var(--gris); font-size: .9rem; }
.woocommerce .woocommerce-ordering select, .woocommerce div.product form.cart .quantity .qty,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea,
.woocommerce form .form-row select, .woocommerce-cart .coupon .input-text {
  padding: 11px 14px; border: 1px solid var(--separateur); border-radius: 10px; font-family: inherit; font-size: .92rem;
  color: var(--anthracite); background: var(--bg); transition: border-color .2s;
}
.woocommerce form .form-row input.input-text:focus, .woocommerce form .form-row textarea:focus,
.woocommerce div.product form.cart .quantity .qty:focus { outline: none; border-color: var(--gold); background: #fff; }
.woocommerce div.product form.cart .quantity .qty { width: 80px; text-align: center; }
.woocommerce div.product form.cart { margin: 22px 0 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Fiche produit : onglets et details ---------- */
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 22px; border-bottom: 1px solid var(--separateur); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0; margin: 0 22px 0 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--gris); font-weight: 500; padding: 12px 2px; border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--anthracite); border-bottom-color: var(--gold); }
.woocommerce div.product .woocommerce-tabs .panel { color: var(--gris); line-height: 1.75; }
.woocommerce div.product .woocommerce-tabs .panel h2 { font-size: 1.15rem; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--separateur); color: var(--gris); }
.woocommerce div.product .product_meta { color: var(--gris); font-size: .85rem; }
.woocommerce div.product .product_meta a { color: var(--anthracite); }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--gris); line-height: 1.75; }

/* ---------- Fiche produit : photo dans un cadre carre, sans zoom ---------- */
.woocommerce div.product div.images { margin-bottom: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image {
  background: transparent; border-radius: var(--radius, 16px); aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 4%; box-sizing: border-box;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img {
  width: 100%; height: 100%; object-fit: contain; border-radius: 0; margin: 0; display: block;
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { display: none !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__image a { pointer-events: none; cursor: default; }
.woocommerce div.product div.images .flex-control-thumbs { margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li img { border-radius: 10px; background: transparent; object-fit: contain; aspect-ratio: 1/1; padding: 2%; box-sizing: border-box; }

/* ---------- Fiche produit : colonne de droite ---------- */
.woocommerce div.product div.summary { padding-left: 24px; }
.woocommerce div.product .jd-gamme {
  color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 6px 0 10px;
}
.woocommerce div.product h1.product_title { color: var(--gris); font-size: 1.85rem; font-weight: 500; line-height: 1.2; margin: 0 0 16px; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--gris); line-height: 1.75; font-size: .97rem; margin-bottom: 26px; }

/* Bloc achat : prix + quantite + bouton, separes par un filet, comme sur une boutique classique */
.woocommerce div.product .jd-achat { border-top: 1px solid var(--separateur); padding-top: 22px; margin: 0 0 26px; }
.woocommerce div.product .jd-achat p.price { color: #111214; font-size: 1.75rem; font-weight: 600; margin: 0 0 16px; line-height: 1.1; }
.woocommerce div.product .jd-achat p.price .woocommerce-price-suffix { font-size: .5em; vertical-align: middle; }
.woocommerce div.product .jd-achat form.cart { margin: 0 0 14px; }
.woocommerce div.product .jd-achat form.cart .single_add_to_cart_button { padding: 15px 38px; font-size: .92rem; }
/* Produits reserves au medecin : le bouton remplace le formulaire d'ajout au panier,
   il doit donc avoir la meme allure et le meme aplomb que « Ajouter au panier ». */
.woocommerce div.product .jd-achat a.jd-bouton-medecin { display: inline-block; padding: 15px 38px; font-size: .92rem; margin: 0 0 14px; }
.woocommerce div.product .jd-achat .jd-achat-note { color: var(--argent); font-size: .78rem; margin: 0; letter-spacing: .01em; }
.woocommerce div.product .jd-achat .jd-prix-masque { display: block; margin-bottom: 8px; font-size: 1rem; }
.woocommerce div.product .product_meta { color: var(--argent); font-size: .8rem; letter-spacing: .02em; }
.woocommerce div.product .product_meta > span { display: block; margin-bottom: 4px; }
.woocommerce div.product .product_meta a { color: var(--gris); }
.woocommerce div.product .product_meta a:hover { color: var(--gold); }
.woocommerce div.product .woocommerce-tabs { margin-top: 48px; }

/* ---------- Pagination ---------- */
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 999px; padding: 8px 14px; color: var(--gris); background: transparent;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--bg); color: var(--anthracite); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--navy); color: #fff; }

/* ---------- Panier, commande, compte ---------- */
.woocommerce table.shop_table { border: 1px solid var(--separateur); border-radius: var(--radius, 16px); border-collapse: separate; overflow: hidden; }
.woocommerce table.shop_table th { color: var(--anthracite); font-weight: 500; background: var(--bg); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--separateur); }
.woocommerce-cart .cart-collaterals .cart_totals h2, .woocommerce-checkout #order_review_heading { font-size: 1.15rem; }
.woocommerce #payment { background: var(--bg); border-radius: var(--radius, 16px); }
.woocommerce #payment div.payment_box { background: #fff; color: var(--gris); border-radius: 10px; }
.woocommerce #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--gris); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a { background: var(--bg); color: var(--anthracite); }
.woocommerce a.remove { color: var(--gris) !important; }
.woocommerce a.remove:hover { background: var(--anthracite); color: #fff !important; }

/* ---------- Divers ---------- */
.woocommerce .star-rating span::before, .woocommerce .star-rating::before { color: var(--gold); }
.woocommerce a { color: var(--anthracite); }
.woocommerce a:hover { color: var(--gold-hover, var(--gold)); }
.woocommerce .woocommerce-products-header { margin-bottom: 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .woocommerce div.product div.summary { padding-left: 0; margin-top: 24px; }
  .woocommerce div.product h1.product_title { font-size: 1.5rem; }
  .woocommerce div.product .jd-achat p.price { font-size: 1.5rem; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 0; }
  .woocommerce div.product .jd-achat form.cart { flex-direction: column; align-items: stretch; }
  .woocommerce div.product .jd-achat form.cart .quantity { width: 100%; margin: 0 0 10px; }
  .woocommerce div.product .jd-achat form.cart .quantity .qty { width: 100%; }
  .woocommerce div.product .jd-achat form.cart .single_add_to_cart_button { width: 100%; padding: 15px 20px; text-align: center; }
  .woocommerce div.product .jd-achat a.jd-bouton-medecin { display: block; width: 100%; padding: 15px 20px; text-align: center; box-sizing: border-box; }
}


/* Titre centre + specificite en haut des pages categorie (demande Loubna, 2026-09-12) */
.jd-cat-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.jd-cat-intro h1 {
  font-size: 34px;
  margin: 0 0 14px;
  color: #2f3338;
  line-height: 1.15;
  text-wrap: balance;
}
/* Le chapeau de la categorie suit le meme format que les intertitres de famille :
   lisible, en gras, pas un petit sous-titre decoratif (demande de Loubna, 2026-09-13). */
.jd-cat-intro p {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.7;
  color: #3a3f45;
  margin: 0;
  text-wrap: pretty;
}


/* Onglets Par gamme / Par categorie sur /boutique/ (demande Loubna, 2026-09-12) */
.cat-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}
.cat-tab {
  font: inherit;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  background: #fff;
  color: #767b81;
  cursor: pointer;
  transition: all .2s ease;
}
.cat-tab.is-active {
  background: #2f3338;
  border-color: #2f3338;
  color: #fff;
}
.cat-card--plain {
  display: block;
  padding: 28px 24px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.cat-card--plain:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transform: translateY(-2px);
}
.cat-card--plain h3 {
  margin: 0 0 6px;
  color: #2f3338;
  font-size: 19px;
}
.cat-card--plain p {
  margin: 0 0 14px;
  color: #767b81;
  font-size: 14px;
}
.cat-card--plain .arrow {
  color: #a4854f;
  font-size: 14px;
}


/* Fix : garantit que le panneau masque des onglets reste bien invisible (override display:grid) */
.cat-grid[hidden], [data-panel][hidden] {
  display: none !important;
}


/* Les grilles de la boutique reprennent les cartes .gamme-card de la page /produits/.
   Le panneau masque doit rester invisible malgre le display:grid de .gammes-grid. */
.gammes-grid[hidden], .cat-grid[hidden], [data-panel][hidden] {
  display: none !important;
}


/* Intertitres de famille sur les pages categorie (2026-09-13).
   Titre centre, en gros, suivi d'un paragraphe en gras qui explique ce que fait la famille
   (demande de Loubna : c'est ce format qu'elle veut pour tous les titres de section).
   Sur ces pages, la grille passe en CSS grid : le bloc de titre peut alors occuper toute
   la largeur sans casser l'alignement des cartes (en flottants, les classes first/last de
   WooCommerce tomberaient au mauvais endroit). */
/* Flex plutôt que grid : une famille qui ne contient qu'un ou deux produits voit ses
   cartes CENTRÉES au lieu d'être collées à gauche avec du vide à droite
   (demande de Loubna, 2026-09-13, pour les peelings présentés seuls). */
body.tax-categorie_fonctionnelle .woocommerce ul.products,
body.tax-categorie_fonctionnelle ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}
body.tax-categorie_fonctionnelle ul.products li.product:not(.jd-famille) {
  flex: 0 1 258px;
  min-width: 0;
}
body.tax-categorie_fonctionnelle ul.products::before,
body.tax-categorie_fonctionnelle ul.products::after { content: none; }
body.tax-categorie_fonctionnelle ul.products li.product {
  float: none; clear: none; width: auto; margin: 0;
}
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille {
  flex: 0 0 100%;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; margin: 46px 0 6px; text-align: center;
}
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille:first-child { margin-top: 6px; }
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille:hover { transform: none; box-shadow: none; }
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille::before {
  content: ''; display: block; width: 54px; height: 2px;
  margin: 0 auto 20px; background: #a4854f;
}
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille h2 {
  margin: 0; padding: 0; min-height: 0;
  color: #2f3338; font-size: 1.75rem; font-weight: 600;
  line-height: 1.2; letter-spacing: -.01em; text-transform: none; text-wrap: balance;
}
body.tax-categorie_fonctionnelle ul.products li.product.jd-famille p {
  max-width: 700px; margin: 14px auto 0;
  color: #3a3f45; font-size: 1.02rem; font-weight: 600;
  line-height: 1.7; text-wrap: pretty;
}
@media (max-width: 640px) {
  body.tax-categorie_fonctionnelle ul.products li.product.jd-famille { margin-top: 34px; }
  body.tax-categorie_fonctionnelle ul.products li.product.jd-famille h2 { font-size: 1.4rem; }
}


/* Page Revente Pro : les trois etapes du systeme de revente (2026-09-13). */
.jd-revente-intro {
  max-width: 1000px;
  margin: 0 auto 40px;
}
.jd-revente-etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.jd-revente-etape {
  background: #fff;
  border: 1px solid var(--separateur);
  border-radius: var(--radius, 16px);
  padding: 26px 24px 24px;
}
.jd-revente-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #a4854f;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 14px;
}
.jd-revente-etape h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2f3338;
  line-height: 1.3;
}
.jd-revente-etape p {
  margin: 0;
  color: #3a3f45;
  font-size: .98rem;
  line-height: 1.65;
}
.jd-revente-note {
  margin: 24px 0 0;
  text-align: center;
  color: #767b81;
  font-size: .95rem;
}
.jd-revente-note a { color: #a4854f; }


/* =====================================================================
   Page Revente Pro (/categorie-produit/homecare/), 2026-09-14.
   Maquette validee par Loubna : familles par problematique avec bandeau photo,
   calculateur de rendement, menu a miniatures, revelation plein ecran.
   ===================================================================== */
body.term-homecare .jd-woo { padding-top: 120px; }
.jd-rv-surtitre { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #a4854f; font-weight: 600; }
.jd-rv-intro { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.jd-rv-intro h1 { margin: 8px 0 14px; font-size: 38px; font-weight: 600; color: #2f3338; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.jd-rv-intro p { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.7; color: #3a3f45; text-wrap: pretty; }

.jd-rv-hero { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 10px; height: 250px; margin: 0 auto 46px; border-radius: 24px; overflow: hidden; }
.jd-rv-hero-photo { background-size: cover; background-repeat: no-repeat; transform: scale(1.02); animation: jd-rv-respire 14s ease-in-out infinite alternate; }
.jd-rv-hero-photo:nth-child(2) { animation-delay: -4s; }
.jd-rv-hero-photo:nth-child(3) { animation-delay: -8s; }
.jd-rv-hero-photo:nth-child(4) { animation-delay: -11s; }
.jd-rv-hero-legende { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); color: #2f3338; border-radius: 99px; padding: 9px 20px; font-size: .86rem; font-weight: 500; white-space: nowrap; box-shadow: 0 8px 24px rgba(47,51,56,.12); }
.jd-rv-hero-legende b { color: #a4854f; font-weight: 600; }
@keyframes jd-rv-respire { from { transform: scale(1.02); } to { transform: scale(1.1); } }

/* Encart pour les visiteurs non valides : aucun chiffre */
.jd-rv-verrou { max-width: 760px; margin: 0 auto 30px; background: #f5f6f7; border-radius: 26px; padding: 36px 34px; text-align: center; }
.jd-rv-verrou h2 { margin: 8px 0 10px; font-size: 1.5rem; font-weight: 600; color: #2f3338; }
.jd-rv-verrou p { margin: 0 auto 20px; max-width: 520px; color: #3a3f45; }

/* Calculateur */
.jd-rv-rendement { position: relative; isolation: isolate; overflow: hidden; max-width: 1040px; margin: 0 auto 40px; background: #f5f6f7; border-radius: 26px; padding: 38px 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; text-align: left; }
.jd-rv-fond { position: absolute; z-index: -1; right: -40px; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); opacity: .09; transition: opacity .5s ease; pointer-events: none; }
.jd-rv-fond img { width: 100%; height: 100%; object-fit: contain; }
.jd-rv-choix h2 { margin: 8px 0 12px; font-size: 1.55rem; font-weight: 600; color: #2f3338; line-height: 1.25; text-wrap: balance; }
.jd-rv-choix > p { margin: 0 0 22px; font-size: .95rem; color: #3a3f45; }
.jd-rv-champ { display: grid; gap: 6px; margin-bottom: 14px; position: relative; }
.jd-rv-libelle { font-size: .8rem; font-weight: 500; color: #767b81; }
.jd-rv-bouton { width: 100%; font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; background: #fff; border: 1px solid #e6e8ea; border-radius: 14px; padding: 8px 14px 8px 8px; color: #2f3338; }
.jd-rv-bouton img { width: 52px; height: 52px; object-fit: contain; background: #f5f6f7; border-radius: 10px; padding: 3px; }
.jd-rv-cb-nom { display: block; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.jd-rv-cb-fmt { display: block; font-size: .78rem; color: #767b81; }
.jd-rv-fleche { width: 10px; height: 10px; border-right: 2px solid #767b81; border-bottom: 2px solid #767b81; transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.jd-rv-bouton[aria-expanded="true"] .jd-rv-fleche { transform: rotate(-135deg) translateY(-2px); }
.jd-rv-liste { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 380px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #e6e8ea; border-radius: 16px; box-shadow: 0 24px 60px rgba(47,51,56,.18); }
.jd-rv-liste:focus { outline: none; }
.jd-rv-opt-groupe { position: sticky; top: -6px; z-index: 1; background: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #a4854f; font-weight: 600; padding: 10px 10px 6px; }
.jd-rv-liste [role="option"] { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; cursor: pointer; }
.jd-rv-liste [role="option"] img { grid-row: 1 / 3; width: 44px; height: 44px; object-fit: contain; background: #f5f6f7; border-radius: 9px; padding: 2px; }
.jd-rv-opt-nom { font-size: .88rem; font-weight: 500; color: #2f3338; line-height: 1.25; }
.jd-rv-opt-fmt { grid-column: 2; font-size: .74rem; color: #767b81; }
.jd-rv-opt-marge { grid-column: 3; grid-row: 1 / 3; font-size: .78rem; font-weight: 600; color: #a4854f; font-variant-numeric: tabular-nums; }
.jd-rv-liste [role="option"].is-active { background: #f5f6f7; }
.jd-rv-liste [role="option"][aria-selected="true"] { background: #f3ede3; }
.jd-rv-qte { display: flex; gap: 8px; }
.jd-rv-qte input { font: inherit; font-size: .95rem; color: #2f3338; background: #fff; border: 1px solid #e6e8ea; border-radius: 12px; padding: 11px 14px; width: 100%; text-align: center; font-variant-numeric: tabular-nums; }
.jd-rv-qte button { flex: 0 0 46px; font: inherit; font-size: 1.2rem; border-radius: 12px; cursor: pointer; border: 1px solid #e6e8ea; background: #fff; color: #2f3338; }
.jd-rv-aide { font-size: .78rem; color: #767b81; margin: 2px 0 0; }
.jd-rv-bouton:focus-visible, .jd-rv-qte input:focus-visible, .jd-rv-qte button:focus-visible, .jd-rv-marge:focus-visible { outline: 2px solid #a4854f; outline-offset: 2px; }
.jd-rv-barres { display: grid; gap: 18px; }
.jd-rv-barre-ligne { display: grid; gap: 7px; }
.jd-rv-barre-libelle { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .86rem; color: #767b81; }
.jd-rv-barre-libelle b { color: #2f3338; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jd-rv-barre { height: 16px; border-radius: 99px; background: #fff; overflow: hidden; }
.jd-rv-barre span { display: block; height: 100%; border-radius: 99px; transform-origin: left center; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.jd-rv-barre-achat span { background: #b3b8bd; transform: scaleX(.5); }
.jd-rv-barre-revente span { background: linear-gradient(90deg, #b3b8bd 0 50%, #a4854f 50% 100%); transform: scaleX(1); }
.jd-rv-gain { margin-top: 6px; background: #fff; border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jd-rv-gain div + div { border-left: 1px solid #e6e8ea; padding-left: 18px; }
.jd-rv-gain small { display: block; font-size: .78rem; color: #767b81; line-height: 1.4; }
.jd-rv-gain strong { display: block; margin-top: 4px; font-size: 1.9rem; font-weight: 600; color: #a4854f; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.jd-rv-gain strong.jd-rv-sombre { color: #2f3338; }
.jd-rv-regle { margin: 14px 0 0; font-size: .8rem; color: #767b81; }

/* Revelation plein ecran */
body.jd-rv-fige { overflow: hidden; }
.jd-rv-revelation { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(245,246,247,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; cursor: pointer; overflow: hidden; }
.jd-rv-revelation.is-visible { opacity: 1; }
.jd-rv-rev-fond { position: absolute; inset: -12%; background-size: cover; background-position: center; filter: blur(46px) saturate(1.25); opacity: .5; transform: scale(1.1); }
.jd-rv-rev-centre { position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px; text-align: center; transform: translateY(18px) scale(.94); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.jd-rv-revelation.is-visible .jd-rv-rev-centre { transform: none; }
.jd-rv-rev-centre img { height: min(58vh, 520px); width: auto; max-width: 90vw; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(47,51,56,.22)); }
.jd-rv-rev-gamme { margin-top: 10px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #a4854f; font-weight: 600; }
.jd-rv-rev-nom { font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 600; color: #2f3338; line-height: 1.15; text-wrap: balance; }
.jd-rv-rev-gain { margin-top: 6px; background: #2f3338; color: #fff; border-radius: 99px; padding: 10px 22px; font-size: 1rem; font-variant-numeric: tabular-nums; }
.jd-rv-rev-gain b { color: #e2cfa9; font-weight: 600; }

/* Grille et familles */
body.term-homecare .woocommerce ul.products,
body.term-homecare ul.products { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
body.term-homecare ul.products::before,
body.term-homecare ul.products::after { content: none; }
body.term-homecare ul.products li.product { float: none; clear: none; width: auto; margin: 0; }
body.term-homecare ul.products li.product:not(.jd-famille) { flex: 0 1 258px; min-width: 0; display: flex; flex-direction: column; }
body.term-homecare ul.products li.product.jd-famille { flex: 0 0 100%; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 64px 0 4px; text-align: center; }
body.term-homecare ul.products li.product.jd-famille:first-child { margin-top: 10px; }
body.term-homecare ul.products li.product.jd-famille:hover { transform: none; box-shadow: none; }
body.term-homecare ul.products li.product.jd-famille h2 { margin: 0; padding: 0; min-height: 0; color: #2f3338; font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; text-transform: none; text-wrap: balance; }
body.term-homecare ul.products li.product.jd-famille h2::before { content: ''; display: block; width: 54px; height: 2px; margin: 0 auto 18px; background: #a4854f; }
body.term-homecare ul.products li.product.jd-famille p { max-width: 700px; margin: 14px auto 0; color: #3a3f45; font-size: 1.02rem; font-weight: 600; line-height: 1.7; text-wrap: pretty; }
.jd-rv-bandeau { position: relative; display: grid; gap: 8px; height: 240px; border-radius: 22px; overflow: hidden; margin: 0 auto 30px; }
.jd-rv-bandeau-1 { grid-template-columns: 1fr; max-width: 900px; }
.jd-rv-bandeau-2 { grid-template-columns: 1fr 1fr; max-width: 1080px; }
.jd-rv-bandeau-3 { grid-template-columns: 1fr 1fr 1fr; }
.jd-rv-bandeau-photo { background-size: cover; background-repeat: no-repeat; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.jd-rv-famille:hover .jd-rv-bandeau-photo { transform: scale(1.04); }
.jd-rv-bandeau-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47,51,56,0) 45%, rgba(47,51,56,.42) 100%); pointer-events: none; }
.jd-rv-bandeau-chiffre { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; background: rgba(255,255,255,.93); color: #2f3338; border-radius: 99px; padding: 8px 18px; font-size: .84rem; box-shadow: 0 8px 24px rgba(47,51,56,.14); }
.jd-rv-bandeau-chiffre b { color: #a4854f; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Cartes : infos revente */
body.term-homecare.jd-prix-ok ul.products li.product .price { display: none; }
.jd-rv-infos { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: auto; padding-top: 4px; }
.jd-rv-fmt { font-size: .78rem; color: #767b81; }
.jd-rv-prix { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e6e8ea; padding-top: 12px; }
.jd-rv-prix > span + span { border-left: 1px solid #e6e8ea; }
.jd-rv-prix small { display: block; font-size: .7rem; color: #767b81; }
.jd-rv-prix b { display: block; font-size: 1rem; font-weight: 600; color: #111214; font-variant-numeric: tabular-nums; }
.jd-rv-marge { font: inherit; cursor: pointer; border: 0; font-size: .78rem; font-weight: 600; color: #a4854f; background: #f3ede3; border-radius: 99px; padding: 7px 14px; font-variant-numeric: tabular-nums; transition: background .2s ease, color .2s ease; }
.jd-rv-marge:hover { background: #a4854f; color: #fff; }
body.term-homecare ul.products li.product:not(.jd-famille) .button { margin-top: 14px; }

@media (max-width: 860px) {
  .jd-rv-rendement { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .jd-rv-fond { width: 260px; height: 260px; top: auto; bottom: -40px; transform: none; }
  .jd-rv-hero { grid-template-columns: 1fr 1fr; height: 300px; }
  .jd-rv-bandeau-3 { grid-template-columns: 1fr 1fr; }
  .jd-rv-bandeau-3 .jd-rv-bandeau-photo:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .jd-rv-intro h1 { font-size: 29px; }
  .jd-rv-hero { height: 220px; }
  .jd-rv-hero-legende, .jd-rv-bandeau-chiffre { white-space: normal; width: max-content; max-width: calc(100% - 28px); text-align: center; }
  .jd-rv-bandeau { height: 190px; }
  .jd-rv-bandeau-2, .jd-rv-bandeau-3 { grid-template-columns: 1fr; }
  .jd-rv-bandeau-2 .jd-rv-bandeau-photo:nth-child(2), .jd-rv-bandeau-3 .jd-rv-bandeau-photo:nth-child(n+2) { display: none; }
  body.term-homecare ul.products li.product.jd-famille h2 { font-size: 1.4rem; }
  .jd-rv-gain { grid-template-columns: 1fr; }
  .jd-rv-gain div + div { border-left: 0; padding-left: 0; border-top: 1px solid #e6e8ea; padding-top: 14px; }
  body.term-homecare ul.products li.product:not(.jd-famille) { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .jd-rv-hero-photo { animation: none; }
  .jd-rv-barre span, .jd-rv-bandeau-photo, .jd-rv-revelation, .jd-rv-rev-centre { transition: none; }
}


/* Elements masques par l'attribut hidden : nos classes fixent un display (grid, flex),
   qui l'emporterait sur le display:none du navigateur. Sans cette regle, le calque
   transparent de la revelation plein ecran recouvre la page et capte tous les clics,
   et la pastille « Ma proforma » reste affichee a zero (constate le 2026-09-14). */
.jd-rv-revelation[hidden], .jd-rv-liste[hidden], .jd-pf-pastille[hidden], .jd-pf-voile[hidden],
.jd-pf-tiroir[hidden], .jd-pf-toast[hidden], .jd-pf-vide[hidden], .jd-pf-pied[hidden] { display: none !important; }

/* =====================================================================
   Commandes revente sur proforma (2026-09-14) : bloc « Comment commander »,
   bouton de fiche, pastille « Ma proforma », panneau, confirmation.
   ===================================================================== */
.jd-rv-commander { max-width: 1040px; margin: 0 auto 44px; text-align: center; }
.jd-rv-commander h2 { margin: 8px 0 12px; font-size: 1.55rem; font-weight: 600; color: #2f3338; text-wrap: balance; }
.jd-rv-commander > p { max-width: 680px; margin: 0 auto 26px; font-size: 1rem; font-weight: 600; line-height: 1.7; color: #3a3f45; }
.jd-rv-commander-etapes { list-style: none; counter-reset: jdpf; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: left; }
.jd-rv-commander-etapes li { counter-increment: jdpf; position: relative; background: #fff; border: 1px solid #e6e8ea; border-radius: 18px; padding: 24px 22px 22px 70px; }
.jd-rv-commander-etapes li::before { content: counter(jdpf); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: #a4854f; color: #fff; font-weight: 700; display: grid; place-items: center; }
.jd-rv-commander-etapes b { display: block; color: #2f3338; font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.jd-rv-commander-etapes span { display: block; color: #3a3f45; font-size: .94rem; line-height: 1.6; }
.jd-rv-proforma { width: 100%; margin-top: 4px; }

.jd-pf-fiche { margin: 0 0 14px; }
.jd-pf-fiche-ligne { display: flex; gap: 10px; align-items: stretch; }
.jd-pf-fiche .jd-pf-qte { width: 96px; font: inherit; text-align: center; border: 1px solid #e6e8ea; border-radius: 12px; padding: 10px; }
.jd-pf-fiche-note { margin: 10px 0 0; font-size: .82rem; color: #767b81; line-height: 1.5; }

.jd-pf-pastille { position: fixed; left: 22px; bottom: 26px; z-index: 9990; display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: .9rem; font-weight: 500; color: #fff; background: #2f3338; border: 0; border-radius: 99px; padding: 12px 14px 12px 20px; cursor: pointer; box-shadow: 0 14px 34px rgba(47,51,56,.28); }
.jd-pf-pastille-nb { min-width: 26px; height: 26px; border-radius: 99px; background: #a4854f; color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; padding: 0 7px; font-variant-numeric: tabular-nums; }
.jd-pf-pastille.is-pulse { animation: jd-pf-pulse .6s ease; }
@keyframes jd-pf-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.jd-pf-voile { position: fixed; inset: 0; z-index: 9991; background: rgba(47,51,56,.36); opacity: 0; transition: opacity .3s ease; }
.jd-pf-voile.is-ouvert { opacity: 1; }
.jd-pf-tiroir { position: fixed; top: 0; right: 0; bottom: 0; z-index: 9992; width: min(460px, 100vw); background: #fff; box-shadow: -24px 0 60px rgba(47,51,56,.2); transform: translateX(104%); transition: transform .32s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.jd-pf-tiroir.is-ouvert { transform: none; }
.jd-pf-tiroir form { display: flex; flex-direction: column; min-height: 100%; padding: 26px 24px 30px; }
.jd-pf-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.jd-pf-tete h2 { margin: 6px 0 0; font-size: 1.35rem; font-weight: 600; color: #2f3338; }
.jd-pf-fermer { font: inherit; font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e6e8ea; background: #fff; color: #2f3338; cursor: pointer; }
.jd-pf-vide { color: #767b81; font-size: .95rem; }
.jd-pf-lignes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.jd-pf-ligne { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid #e6e8ea; border-radius: 14px; }
.jd-pf-ligne img { width: 56px; height: 56px; object-fit: contain; background: #f5f6f7; border-radius: 10px; padding: 3px; }
.jd-pf-nom { display: block; font-weight: 500; color: #2f3338; font-size: .92rem; line-height: 1.3; }
.jd-pf-fmt { display: block; font-size: .76rem; color: #767b81; margin-top: 2px; }
.jd-pf-alerte { display: block; font-size: .76rem; color: #a4854f; font-weight: 600; margin-top: 3px; }
.jd-pf-ctl { display: flex; gap: 6px; margin-top: 8px; }
.jd-pf-ctl button { width: 32px; height: 32px; font: inherit; border-radius: 9px; border: 1px solid #e6e8ea; background: #fff; color: #2f3338; cursor: pointer; }
.jd-pf-ctl input { width: 64px; height: 32px; font: inherit; text-align: center; border: 1px solid #e6e8ea; border-radius: 9px; font-variant-numeric: tabular-nums; }
.jd-pf-droite { display: grid; justify-items: end; gap: 8px; }
.jd-pf-ligne-total { font-size: .95rem; color: #111214; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jd-pf-suppr { font: inherit; font-size: .76rem; color: #767b81; background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 0; }
.jd-pf-pied { margin-top: auto; border-top: 1px solid #e6e8ea; padding-top: 16px; }
.jd-pf-total { display: flex; justify-content: space-between; align-items: baseline; }
.jd-pf-total span { color: #767b81; font-size: .9rem; }
.jd-pf-total b { font-size: 1.5rem; font-weight: 600; color: #2f3338; font-variant-numeric: tabular-nums; }
.jd-pf-tva { margin: 2px 0 14px; font-size: .78rem; color: #767b81; }
.jd-pf-etapes { margin: 0 0 16px; padding: 14px 16px 14px 34px; background: #f5f6f7; border-radius: 14px; display: grid; gap: 6px; font-size: .86rem; color: #3a3f45; }
.jd-pf-label { display: block; font-size: .8rem; color: #767b81; margin-bottom: 6px; }
.jd-pf-tiroir textarea { width: 100%; font: inherit; font-size: .9rem; border: 1px solid #e6e8ea; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; resize: vertical; box-sizing: border-box; }
.jd-pf-envoyer { width: 100%; }
.jd-pf-toast { position: fixed; left: 50%; bottom: 96px; z-index: 9993; transform: translate(-50%, 12px); background: #2f3338; color: #fff; border-radius: 99px; padding: 11px 20px; font-size: .88rem; box-shadow: 0 14px 34px rgba(47,51,56,.28); opacity: 0; transition: opacity .25s ease, transform .25s ease; max-width: calc(100vw - 32px); text-align: center; }
.jd-pf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.jd-pf-confirme { position: fixed; inset: 0; z-index: 99998; display: grid; place-items: center; background: rgba(47,51,56,.45); padding: 16px; }
.jd-pf-confirme-boite { background: #fff; border-radius: 24px; padding: 32px 30px; max-width: 520px; width: 100%; text-align: left; box-shadow: 0 30px 80px rgba(47,51,56,.3); }
.jd-pf-confirme-boite h2 { margin: 8px 0 16px; font-size: 1.45rem; font-weight: 600; color: #2f3338; text-wrap: balance; }
.jd-pf-pastille:focus-visible, .jd-pf-fermer:focus-visible, .jd-pf-ctl button:focus-visible, .jd-pf-suppr:focus-visible { outline: 2px solid #a4854f; outline-offset: 2px; }
@media (max-width: 760px) {
  .jd-rv-commander-etapes { grid-template-columns: 1fr; }
  .jd-pf-pastille { left: 14px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .jd-pf-tiroir, .jd-pf-voile, .jd-pf-toast { transition: none; }
  .jd-pf-pastille.is-pulse { animation: none; }
}
