/* ChickFarmCi — boutique : catalogue, fiche produit, panier, confirmation.
   Reprend les jetons du thème (valeurs de secours si le thème change). */

.catalogue, .fiche-achat, .achat, .lien-panier, .calendrier-eclosions, .confirmation-cfc, .woocommerce-cart {
  --b-vert: var(--vert, #1D4A27);
  --b-vert-fonce: var(--vert-fonce, #173E20);
  --b-or: var(--or, #E3B33A);
  --b-or-clair: var(--or-clair, #EBC253);
  --b-or-fonce: var(--or-fonce, #C2962C);
  --b-or-texte: var(--or-texte, #7A5B12);
  --b-encre: var(--encre, #1E241D);
  --b-texte: var(--texte, #3B4338);
  --b-trait: #E6E0D0;
  --b-creme: var(--creme, #FBF4E6);
  --b-serif: var(--serif, Georgia, serif);
  --b-sans: var(--sans, system-ui, sans-serif);
  --b-rouge: #9A4B2A;
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ==========================================================
   Icône du panier (en-tête)
   ========================================================== */
.lien-panier {
  position: relative; display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; margin: 0 14px 0 0; border: 1.5px solid var(--b-trait); border-radius: 50%;
  background: #fff; color: var(--b-vert); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.lien-panier::before {
  content: ""; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: var(--i-cart, none) center / contain no-repeat; mask: var(--i-cart, none) center / contain no-repeat;
}
.lien-panier:hover { border-color: var(--b-vert); background: #F3F6EE; }
.lien-panier-compte {
  position: absolute; top: -5px; right: -6px; display: grid; place-items: center;
  min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px;
  background: var(--b-or); color: var(--b-vert-fonce); font: 800 11.5px/1 var(--b-sans);
}
@media (max-width: 1100px) { .lien-panier { margin: 0; } }

/* ==========================================================
   Catalogue
   ========================================================== */
.catalogue { scroll-margin-top: 110px; font-family: var(--b-sans); }
.catalogue-outils { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 14px; }
.catalogue-recherche { position: relative; flex: 1 1 260px; max-width: 360px; }
.catalogue-recherche input {
  width: 100%; height: 46px; padding: 0 16px 0 46px; border: 1.5px solid var(--b-trait); border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B4338' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E") 17px center / 18px no-repeat;
  font: 500 15px/1 var(--b-sans); color: var(--b-encre); -webkit-appearance: none; appearance: none;
}
.catalogue-recherche input:focus { outline: none; border-color: var(--b-vert); box-shadow: 0 0 0 4px rgba(227, 179, 58, .25); }
.catalogue-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.puce { position: relative; cursor: pointer; }
.puce input { position: absolute; opacity: 0; pointer-events: none; }
.puce span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1.5px solid var(--b-trait); border-radius: 999px;
  background: #fff; font-size: 14.5px; font-weight: 700; color: var(--b-encre); transition: border-color .2s, background-color .2s, color .2s;
}
.puce:hover span { border-color: #CFC7B0; }
.puce input:checked + span { border-color: var(--b-vert); background: var(--b-vert); color: #fff; }
.puce input:focus-visible + span { box-shadow: 0 0 0 4px rgba(227, 179, 58, .35); }
.catalogue-tri { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 14px; font-weight: 700; color: var(--b-texte); }
.catalogue-tri select {
  height: 42px; padding: 0 40px 0 14px; border: 1.5px solid var(--b-trait); border-radius: 12px; background: #fff;
  font: 600 14.5px/1 var(--b-sans); color: var(--b-encre); cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4A27' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.catalogue-appliquer {
  height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--b-vert); color: #fff;
  font: 700 14.5px/1 var(--b-sans); cursor: pointer;
}
.catalogue-outils.est-auto .catalogue-appliquer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.catalogue-compte { margin: 0 0 22px; font-size: 14px; font-weight: 600; color: var(--b-texte); }
.catalogue-compte a { color: var(--b-vert); font-weight: 700; }
.catalogue-vide { padding: 26px; border-radius: 18px; background: rgba(29, 74, 39, .06); text-align: center; }

.grille-produits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.carte-boutique {
  display: flex; flex-direction: column; overflow: hidden; margin: 0; border-radius: 22px; background: #fff;
  box-shadow: 0 6px 22px rgba(30, 36, 29, .07); transition: transform .25s, box-shadow .25s;
}
.carte-boutique:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(30, 36, 29, .11); }
.carte-boutique-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--b-creme); }
.carte-boutique-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.carte-boutique:hover .carte-boutique-image img { transform: scale(1.04); }
.carte-boutique-badge {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 28px);
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 14px rgba(30, 36, 29, .12);
  font-size: 12.5px; font-weight: 800; color: var(--b-vert);
}
.carte-boutique-badge::before {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--b-or-fonce);
  -webkit-mask: var(--i-calendar, none) center / contain no-repeat; mask: var(--i-calendar, none) center / contain no-repeat;
}
.carte-boutique-corps { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.carte-boutique-unite { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--b-or-fonce); }
.carte-boutique h3 { margin: 0 0 10px; font: 700 22px/1.25 var(--b-serif); color: var(--b-encre); }
.carte-boutique h3 a { color: inherit; text-decoration: none; }
.carte-boutique h3 a:hover { color: var(--b-vert); }
.carte-boutique-resume { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--b-texte); }
.carte-boutique-pied { display: grid; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid #EFEADC; }
.carte-boutique-prix { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; color: var(--b-texte); font-size: 14px; font-weight: 600; }
.carte-boutique-prix strong { font: 700 25px/1.1 var(--b-serif); color: var(--b-vert); }
.carte-boutique-prix small { flex: 1 1 100%; font-size: 13px; font-weight: 600; color: var(--b-texte); }
.carte-boutique-prix .carte-boutique-alerte { flex: none; padding: 3px 10px; border-radius: 999px; background: rgba(227, 179, 58, .2); color: var(--b-or-texte); font-size: 12px; font-weight: 800; }
.bouton-boutique {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px;
  background: var(--b-or); color: var(--b-vert-fonce); font: 700 15.5px/1 var(--b-sans); text-decoration: none; transition: background-color .2s, transform .2s;
}
.bouton-boutique::after {
  content: ""; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--i-arrow, none) center / contain no-repeat; mask: var(--i-arrow, none) center / contain no-repeat;
}
.bouton-boutique:hover { background: var(--b-or-clair); transform: translateY(-1px); }

/* ==========================================================
   Fiche produit : galerie + achat
   ========================================================== */
.fiche-achat { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.galerie-produit { position: sticky; top: 104px; display: grid; gap: 12px; }
body.admin-bar .galerie-produit { top: 136px; }
.galerie-vue { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 24px; background: var(--b-creme); box-shadow: 0 10px 34px rgba(30, 36, 29, .08); }
.galerie-image { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .35s; }
.galerie-image.est-active { opacity: 1; }
.galerie-image img { width: 100%; height: 100%; object-fit: cover; }
.galerie-etiquette {
  position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px;
  background: var(--b-vert); color: #fff; font-size: 13.5px; font-weight: 800; box-shadow: 0 6px 16px rgba(23, 62, 32, .25);
}
.galerie-vignettes { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.galerie-vignette {
  flex: none; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px;
  background: var(--b-creme); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s;
}
.galerie-vignette img { width: 100%; height: 100%; object-fit: cover; }
.galerie-vignette:hover { opacity: 1; }
.galerie-vignette.est-active { border-color: var(--b-or); opacity: 1; }
.galerie-vide { aspect-ratio: 1 / 1; border-radius: 24px; background: var(--b-creme); }

.fiche-infos { padding: 32px 34px; border-radius: 24px; background: #fff; box-shadow: 0 10px 34px rgba(30, 36, 29, .07); }
.fiche-infos .produit-resume { margin: 0 0 20px; font-size: 16.5px; line-height: 1.6; color: var(--b-texte); }
.fiche-infos .produit-resume p { margin: 0 0 10px; }
.fiche-infos .produit-resume p:last-child { margin-bottom: 0; }

.achat-prix { margin: 0 0 24px; padding: 0 0 22px; border-bottom: 1px solid #EFEADC; }
.achat-prix-valeur { margin: 0; color: var(--b-texte); font-size: 15px; font-weight: 600; }
.achat-prix-montant { font: 700 36px/1.1 var(--b-serif); color: var(--b-vert); }
.achat-prix-detail { margin: 6px 0 0; font-size: 14.5px; font-weight: 700; color: var(--b-encre); }
.achat-alerte, .achat-vide {
  margin: 16px 0 0; padding: 14px 16px; border-left: 4px solid var(--b-or); border-radius: 12px; background: var(--b-creme);
  font-size: 14.5px; line-height: 1.5; color: var(--b-encre);
}
.achat-vide { margin: 0; }
.achat-vide p { margin: 0 0 6px; }
.achat-vide p:last-child { margin: 0; }
.achat-vide a { color: var(--b-vert); font-weight: 700; }

/* Formulaire d’achat */
.achat { display: grid; gap: 22px; margin: 0; font-family: var(--b-sans); }
.achat fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.achat-etape { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; font: 700 17px/1.3 var(--b-sans); color: var(--b-encre); }
.achat-etape small { font-size: 14px; font-weight: 600; color: var(--b-texte); }
.achat-etape > span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--b-or); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 0 0 4px rgba(227, 179, 58, .2);
}
.achat-liste { display: grid; grid-template-columns: 1fr; gap: 10px; }
.eclosion { position: relative; display: block; cursor: pointer; }
.eclosion input { position: absolute; opacity: 0; pointer-events: none; }
.eclosion-carte {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  padding: 13px 15px; border: 1.5px solid var(--b-trait); border-radius: 14px; background: #FDFCF8;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.eclosion-date { display: grid; line-height: 1.25; color: var(--b-encre); }
.eclosion-jour { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--b-or-fonce); }
.eclosion-date strong { font: 700 17px/1.3 var(--b-serif); white-space: nowrap; }
.eclosion-infos { display: grid; justify-items: end; gap: 2px; text-align: right; }
.eclosion-stock { font-size: 13px; font-weight: 700; color: var(--b-texte); }
.eclosion-prix { font-size: 14px; font-weight: 800; color: var(--b-vert); white-space: nowrap; }
.eclosion-panier { font-size: 12px; font-weight: 700; color: var(--b-or-texte); }
.eclosion:hover .eclosion-carte { border-color: #CFC7B0; }
.eclosion input:checked + .eclosion-carte, .eclosion.est-choisie .eclosion-carte { border-color: var(--b-vert); background: #F3F6EE; box-shadow: inset 0 0 0 1px var(--b-vert); }
.eclosion input:focus-visible + .eclosion-carte { box-shadow: 0 0 0 4px rgba(227, 179, 58, .35); }
.eclosion.est-complete, .eclosion:has(input:disabled) { cursor: not-allowed; }
.eclosion.est-complete .eclosion-carte { opacity: .55; background: #F4F2EC; }
.eclosion.est-complete .eclosion-stock { font-weight: 800; color: var(--b-rouge); }
.achat-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--b-texte); }

.qte { display: inline-flex; align-items: center; gap: 8px; }
.qte button {
  display: grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--b-trait); border-radius: 50%;
  background: #fff; color: var(--b-vert); font: 700 22px/1 var(--b-sans); cursor: pointer; transition: border-color .2s, background-color .2s;
}
.qte button:hover { border-color: var(--b-vert); background: #F3F6EE; }
.achat .achat-qte {
  width: 130px; height: 52px; padding: 0 12px; border: 1.5px solid var(--b-trait); border-radius: 12px; background: #FDFCF8;
  font: 700 19px/1 var(--b-sans); color: var(--b-encre); text-align: center; -moz-appearance: textfield;
}
.achat .achat-qte::-webkit-outer-spin-button, .achat .achat-qte::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.achat .achat-qte:focus { outline: none; border-color: var(--b-vert); box-shadow: 0 0 0 4px rgba(227, 179, 58, .25); }
.achat-aide { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--b-texte); }
.achat-aide.est-erreur { font-weight: 800; color: var(--b-rouge); }

.achat-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 14px; background: rgba(29, 74, 39, .07); }
.achat-total span { font-weight: 800; color: var(--b-encre); }
.achat-total-valeur { font: 700 28px/1.1 var(--b-serif); color: var(--b-vert); }
.achat-bouton {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px; background: var(--b-or); color: var(--b-vert-fonce);
  font: 700 17px/1 var(--b-sans); cursor: pointer; transition: background-color .2s, transform .2s, opacity .2s;
}
.achat-bouton::before {
  content: ""; width: 21px; height: 21px; background: currentColor;
  -webkit-mask: var(--i-cart, none) center / contain no-repeat; mask: var(--i-cart, none) center / contain no-repeat;
}
.achat-bouton:hover { background: var(--b-or-clair); transform: translateY(-1px); }
.achat-bouton:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.achat-bouton.est-envoi { opacity: .8; }
.achat-rassurance { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -8px 0 0; font-size: 13.5px; text-align: center; color: var(--b-texte); }
.achat-rassurance::before {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--b-vert);
  -webkit-mask: var(--i-lock, none) center / contain no-repeat; mask: var(--i-lock, none) center / contain no-repeat;
}

/* ==========================================================
   Calendrier des éclosions
   ========================================================== */
.calendrier-eclosions { overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 6px 22px rgba(30, 36, 29, .06); }
.calendrier-ligne { display: grid; grid-template-columns: 1.5fr 1.3fr .9fr auto; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid #EFEADC; font-size: 15px; }
.calendrier-ligne:last-child { border-bottom: 0; }
.calendrier-entete { padding-block: 12px; background: #FBF8F0; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--b-or-fonce); }
.cal-date strong { font: 700 16.5px/1.3 var(--b-serif); color: var(--b-encre); }
.cal-dispo { font-weight: 800; color: var(--b-vert); }
.calendrier-ligne.est-complete { opacity: .6; }
.calendrier-ligne.est-complete .cal-dispo { color: var(--b-rouge); }
.cal-lien {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--b-or); color: var(--b-vert-fonce); font-size: 14px; font-weight: 700; text-decoration: none;
}
.cal-lien:hover { background: var(--b-or-clair); }
.calendrier-vide { padding: 20px 22px; border-radius: 16px; background: rgba(29, 74, 39, .06); text-align: center; }

/* ==========================================================
   Panier (formulaire WooCommerce classique) — sélecteurs préfixés par body :
   ils doivent l’emporter sur les règles génériques du thème.
   ========================================================== */
body.woocommerce-cart .woocommerce table.cart { border-collapse: separate; box-shadow: 0 6px 22px rgba(30, 36, 29, .06); }
body.woocommerce-cart .woocommerce table.cart th, body.woocommerce-cart .woocommerce table.cart td { padding-inline: 8px; }
body.woocommerce-cart .woocommerce table.cart td { vertical-align: middle; }
body.woocommerce-cart .woocommerce table.cart td.product-thumbnail { width: 88px; }
body.woocommerce-cart .woocommerce table.cart td.product-price, body.woocommerce-cart .woocommerce table.cart td.product-subtotal { white-space: nowrap; font-weight: 700; }
body.woocommerce-cart .woocommerce table.cart td.product-subtotal { color: var(--b-vert); }
body.woocommerce-cart .woocommerce table.cart thead th { white-space: nowrap; }
body.woocommerce-cart .woocommerce table.cart td.product-name a { color: var(--b-encre); font: 700 17px/1.3 var(--b-serif); text-decoration: none; }
body.woocommerce-cart .woocommerce table.cart td.product-name a:hover { color: var(--b-vert); }
body.woocommerce-cart .woocommerce table.cart dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 8px 0 0; }
body.woocommerce-cart .woocommerce table.cart dl.variation dt { display: block; margin: 0; font-weight: 600; color: var(--b-texte); }
body.woocommerce-cart .woocommerce table.cart dl.variation dd { display: block; margin: 0; color: var(--b-encre); font-weight: 700; }
body.woocommerce-cart .woocommerce table.cart dl.variation dd p { margin: 0; }
.woocommerce-cart table.cart td.product-remove a.remove {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--b-rouge) !important; font-size: 20px; font-weight: 400; text-decoration: none; transition: background-color .2s;
}
.woocommerce-cart table.cart td.product-remove a.remove:hover { background: rgba(154, 75, 42, .1); color: var(--b-rouge) !important; }
.woocommerce-cart table.cart td.actions { padding-top: 18px; border-bottom: 0; text-align: right; }
.woocommerce-cart table.cart td.actions .coupon { display: none; }
.woocommerce-cart table.cart td.actions button.button {
  height: 44px; padding: 0 22px; border: 1.5px solid var(--b-vert); background: transparent; color: var(--b-vert); font-size: 14.5px;
}
.woocommerce-cart table.cart td.actions button.button:disabled { opacity: .45; }
.woocommerce-cart table.cart td.actions button.button:not(:disabled):hover { background: var(--b-vert); color: #fff; }
.panier-continuer { margin: 18px 0 0; }
.panier-continuer a { font-weight: 700; color: var(--b-vert); text-decoration: none; }
.panier-continuer a:hover { text-decoration: underline; }
.woocommerce-cart .cart-collaterals .cart_totals table.shop_table th { width: 45%; font-weight: 700; }
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout { padding: 6px 0 0; }
.woocommerce-cart .cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button { margin: 0; font-size: 16.5px; }
.woocommerce-cart .cart-empty.woocommerce-info { text-align: left; }
.woocommerce-cart .return-to-shop .button { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; background: var(--b-or); color: var(--b-vert-fonce); }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { display: none; }

/* ==========================================================
   Validation de commande (paiement)
   ========================================================== */
.cfc-masque { display: none !important; }
body.woocommerce-checkout .page-validation .woocommerce { max-width: none; }
body.woocommerce-checkout #order_review dl.variation, body.woocommerce-cart .cart_totals dl.variation {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 13px;
}
body.woocommerce-checkout #order_review dl.variation dt, body.woocommerce-checkout #order_review dl.variation dd { display: block; margin: 0; }
body.woocommerce-checkout #order_review dl.variation dt { font-weight: 600; color: var(--texte, #3B4338); }
body.woocommerce-checkout #order_review dl.variation dd { font-weight: 700; color: var(--encre, #1E241D); }
body.woocommerce-checkout #order_review dl.variation dd p { margin: 0; }
body.woocommerce-checkout #order_review td.product-total { white-space: nowrap; padding-left: 12px; }
.cfc-rappel {
  position: relative; margin: 0 0 16px; padding: 14px 16px 14px 46px; border-radius: 12px; background: rgba(29, 74, 39, .07);
  font-size: 14px; line-height: 1.5; color: var(--encre, #1E241D);
}
.cfc-rappel::before {
  content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; background: var(--vert, #1D4A27);
  -webkit-mask: var(--i-lock, none) center / contain no-repeat; mask: var(--i-lock, none) center / contain no-repeat;
}

/* ==========================================================
   Confirmation de commande — selon l’état réel du paiement
   ========================================================== */
.confirmation-cfc { display: grid; gap: 22px; font-family: var(--b-sans); color: var(--b-encre); }
.confirmation-tete {
  display: flex; align-items: flex-start; gap: 22px; padding: 28px 30px; border-radius: 22px; background: #fff;
  box-shadow: 0 10px 34px rgba(30, 36, 29, .07);
}
.confirmation-tete h2 { margin: 0 0 8px; font: 700 30px/1.15 var(--b-serif); color: var(--b-encre); }
.confirmation-tete p { margin: 0; font-size: 16.5px; line-height: 1.6; }
.confirmation-pastille { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--b-vert); box-shadow: 0 0 0 6px rgba(29, 74, 39, .1); }
.confirmation-pastille::before {
  content: ""; position: absolute; inset: 14px; background: var(--b-or);
  -webkit-mask: var(--i-check, none) center / contain no-repeat; mask: var(--i-check, none) center / contain no-repeat;
}
.etat-attente .confirmation-pastille { background: var(--b-or); box-shadow: 0 0 0 6px rgba(227, 179, 58, .18); }
.etat-attente .confirmation-pastille::before { background: var(--b-vert-fonce); -webkit-mask-image: var(--i-clock, none); mask-image: var(--i-clock, none); }
.etat-echec .confirmation-pastille, .etat-annule .confirmation-pastille, .etat-inconnu .confirmation-pastille, .etat-rembourse .confirmation-pastille { background: var(--b-rouge); box-shadow: 0 0 0 6px rgba(154, 75, 42, .12); }
.etat-echec .confirmation-pastille::before, .etat-annule .confirmation-pastille::before, .etat-inconnu .confirmation-pastille::before, .etat-rembourse .confirmation-pastille::before { background: #fff; -webkit-mask-image: var(--i-info, none); mask-image: var(--i-info, none); }
.confirmation-resume { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.confirmation-resume li { display: grid; gap: 4px; margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--b-creme); }
.confirmation-resume span { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--b-or-texte); }
.confirmation-resume strong { font-size: 15.5px; }
.confirmation-lignes { width: 100%; padding: 10px 26px; border-collapse: separate; border-spacing: 0; border-radius: 20px; background: #fff; box-shadow: 0 6px 22px rgba(30, 36, 29, .06); }
.confirmation-lignes th, .confirmation-lignes td { padding: 13px 0; border-bottom: 1px dashed #E2D7BC; font-size: 15px; text-align: left; vertical-align: top; }
.confirmation-lignes th + th, .confirmation-lignes td + td { padding-left: 14px; }
.confirmation-lignes thead th { font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--b-or-fonce); }
.confirmation-lignes td small { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--b-texte); }
.confirmation-lignes .num { text-align: right; white-space: nowrap; }
.confirmation-lignes tfoot th, .confirmation-lignes tfoot td { border-bottom: 0; padding-top: 16px; font-weight: 800; }
.confirmation-lignes tfoot td { font: 700 24px/1.1 var(--b-serif); color: var(--b-vert); }
.confirmation-suite { padding: 26px 30px; border-radius: 20px; background: var(--b-vert); color: #fff; }
.confirmation-suite h3 { margin: 0 0 14px; font: 700 23px/1.25 var(--b-serif); color: #fff; }
.confirmation-suite ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: etape; }
.confirmation-suite li { position: relative; padding-left: 40px; font-size: 15.5px; line-height: 1.55; counter-increment: etape; }
.confirmation-suite li::before {
  content: counter(etape); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%;
  background: var(--b-or); color: var(--b-vert-fonce); font-size: 13.5px; font-weight: 800;
}
.confirmation-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: rgba(255, 255, 255, .85); }
.confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 0; }
.confirmation-bouton {
  display: inline-flex; align-items: center; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--b-or);
  color: var(--b-vert-fonce); font-weight: 700; text-decoration: none; transition: background-color .2s;
}
.confirmation-bouton:hover { background: var(--b-or-clair); }
.confirmation-lien { font-weight: 700; color: var(--b-vert); }

/* Aperçus dans l’éditeur */
.cfc-apercu { display: grid; gap: 6px; padding: 18px 20px; border: 1.5px dashed #CFC7B0; border-radius: 14px; background: #FDFCF8; font: 500 14px/1.5 var(--b-sans, system-ui, sans-serif); color: #3B4338; }
.cfc-apercu strong { font-size: 15px; color: #1D4A27; }
.cfc-apercu-panier { display: inline-flex; padding: 0; border: 0; background: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .grille-produits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .fiche-achat { gap: 32px; }
  .fiche-infos { padding: 26px 24px; }
}
@media (max-width: 900px) {
  .fiche-achat { grid-template-columns: 1fr; }
  .galerie-produit { position: static; }
  .galerie-vue { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .catalogue-recherche { flex-basis: 100%; max-width: none; }
  .catalogue-filtres { flex: 1 1 auto; }
  .catalogue-tri { margin-left: 0; }
  .catalogue-tri span { display: none; }
  .grille-produits { gap: 18px; }
  .carte-boutique-corps { padding: 18px 18px 20px; }
  .carte-boutique h3 { font-size: 20px; }
  .fiche-infos { padding: 22px 18px; border-radius: 20px; }
  .achat-prix-montant { font-size: 31px; }
  .achat-liste { grid-template-columns: 1fr; }
  .qte { display: flex; }
  .achat .achat-qte { flex: 1; width: auto; }
  .achat-total-valeur { font-size: 24px; }
  .calendrier-entete { display: none; }
  .calendrier-ligne { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .cal-date { grid-column: 1 / -1; }
  .cal-produit { font-size: 14px; color: var(--b-texte); }
  .cal-dispo::after { content: " disponibles"; font-weight: 600; font-size: 13px; }
  .calendrier-ligne.est-complete .cal-dispo::after { content: ""; }
  .cal-action { grid-column: 1 / -1; }
  .cal-lien { width: 100%; justify-content: center; margin-top: 8px; }

  .woocommerce-cart .cart-collaterals .cart_totals { max-width: none; padding: 20px 18px; }

  .confirmation-tete { flex-direction: column; gap: 16px; padding: 22px 20px; }
  .confirmation-tete h2 { font-size: 25px; }
  .confirmation-lignes { padding: 4px 18px; }
  .confirmation-lignes thead { display: none; }
  .confirmation-lignes tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; border-bottom: 1px dashed #E2D7BC; }
  .confirmation-lignes tbody td { padding: 2px 0 !important; border: 0; }
  .confirmation-lignes tbody td:first-child { grid-column: 1 / -1; }
  .confirmation-lignes tbody td[data-titre="Éclosion prévue"] { grid-column: 1 / -1; font-size: 14px; }
  .confirmation-lignes tbody td[data-titre="Éclosion prévue"]::before { content: "Éclosion prévue : "; font-weight: 700; color: var(--b-texte); }
  .confirmation-lignes tbody td[data-titre="Quantité"] { text-align: left; }
  .confirmation-lignes tbody td[data-titre="Quantité"]::before { content: "Quantité : "; font-weight: 700; color: var(--b-texte); }
  .confirmation-lignes tfoot tr { display: flex; justify-content: space-between; }
  .confirmation-suite { padding: 22px 20px; }
}
/* Panier sur téléphone (WooCommerce passe le tableau en cartes sous 768 px) */
@media (max-width: 768px) {
  body.woocommerce-checkout #order_review dl.variation { grid-template-columns: 1fr; gap: 0; }
  body.woocommerce-checkout #order_review dl.variation dd { margin-bottom: 4px; }
  body.woocommerce-cart .woocommerce table.cart { padding: 4px 16px; }
  body.woocommerce-cart .woocommerce table.cart tr.cart_item { position: relative; display: block; padding: 14px 0; border-bottom: 1px dashed #E2D7BC; }
  body.woocommerce-cart .woocommerce table.cart tr.cart_item td { padding: 5px 0; border: 0; }
  body.woocommerce-cart .woocommerce table.cart td.product-thumbnail { display: none; }
  body.woocommerce-cart .woocommerce table.cart td.product-remove { position: absolute; top: 10px; right: -6px; padding: 0; }
  body.woocommerce-cart .woocommerce table.cart td.product-name { padding-right: 40px; text-align: left !important; }
  body.woocommerce-cart .woocommerce table.cart td.product-name::before { display: none; }
  body.woocommerce-cart .woocommerce table.cart dl.variation { grid-template-columns: auto 1fr; text-align: left; }
  body.woocommerce-cart .woocommerce table.cart dl.variation dd { text-align: left; }
  body.woocommerce-cart .woocommerce table.cart td.product-quantity .quantity { display: inline-block; }
  body.woocommerce-cart .woocommerce table.cart td.actions { padding: 14px 0 6px; }
  body.woocommerce-cart .woocommerce table.cart td.actions button.button { width: 100%; }
}
@media (max-width: 560px) {
  .grille-produits { grid-template-columns: 1fr; }
  .galerie-vignette { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .carte-boutique, .carte-boutique-image img, .galerie-image, .bouton-boutique, .achat-bouton { transition: none; }
  .carte-boutique:hover, .carte-boutique:hover .carte-boutique-image img { transform: none; }
}
