/* ==========================================================================
   YAO FILS OR — feuille de style maison
   Habillage de la boutique (Phoca Cart) et éléments communs au site.
   Les couleurs reprennent la charte : or, brun chaud, crème.
   ========================================================================== */

:root{
  --yfo-or:         #A77725;
  --yfo-or-clair:   #C9953A;
  --yfo-or-pale:    #EADFC6;
  --yfo-brun:       #3E3429;
  --yfo-brun-doux:  #6B5B49;
  --yfo-creme:      #FBF8F4;
  --yfo-creme-2:    #FAF0EC;
  --yfo-ligne:      #E7DFD5;
  --yfo-wa:         #25D366;
  --yfo-serif:      'Cormorant', Georgia, serif;
}

/* --------------------------------------------------------------------------
   1. BOUTONS DE LA BOUTIQUE
   Le gabarit livrait des boutons bleus/violets ; on les repasse en or.
   -------------------------------------------------------------------------- */
.com-phocacart .btn,
.com-phocacart .btn-primary,
.com-phocacart .btn-secondary,
.com-phocacart button.btn,
.com-phocacart input[type="submit"].btn,
.com-phocacart .phCheckoutButton,
.com-phocacart .ph-btn{
  background-color: var(--yfo-or);
  border: 1px solid var(--yfo-or);
  color: #fff;
  border-radius: 2px;
  padding: .72rem 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.com-phocacart .btn:hover,
.com-phocacart .btn:focus,
.com-phocacart .btn-primary:hover,
.com-phocacart .btn-secondary:hover,
.com-phocacart button.btn:hover,
.com-phocacart .phCheckoutButton:hover{
  background-color: var(--yfo-brun);
  border-color: var(--yfo-brun);
  color: #fff;
}
/* Bouton secondaire : contour seul */
.com-phocacart .ph-top .btn-secondary,
.com-phocacart .btn-outline-secondary{
  background-color: transparent;
  color: var(--yfo-brun-doux);
  border-color: var(--yfo-ligne);
}
.com-phocacart .ph-top .btn-secondary:hover{
  background-color: var(--yfo-creme-2);
  color: var(--yfo-brun);
  border-color: var(--yfo-or-pale);
}

/* --------------------------------------------------------------------------
   2. TITRES ET INTRODUCTION DES PAGES BOUTIQUE
   -------------------------------------------------------------------------- */
.com-phocacart .ph-header{
  font-family: var(--yfo-serif);
  color: var(--yfo-brun);
  font-weight: 500;
  letter-spacing: .01em;
  margin: 0 0 .6rem;
}
.com-phocacart .pc-view > .ph-header,
.com-phocacart .pc-category-view > .ph-header{
  font-size: clamp(2rem, 4vw, 2.9rem);
  text-align: center;
}
.com-phocacart .pc-category-view > .ph-desc{
  max-width: 46rem;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--yfo-brun-doux);
  font-size: 1.02rem;
  line-height: 1.75;
}
.com-phocacart .ph-top{ margin-bottom: 1.6rem; }

/* --------------------------------------------------------------------------
   3. SOUS-CATÉGORIES : la liste à puces devient une rangée d'étiquettes
   -------------------------------------------------------------------------- */
.com-phocacart .ph-subcategories{
  font-family: 'Lato', sans-serif;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yfo-brun-doux);
  text-align: center;
  margin-bottom: .6rem;
}
.com-phocacart .ph-subcategories + ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  padding: 0;
  margin: 0 0 2rem;
}
.com-phocacart .ph-subcategories + ul > li{ margin: 0; }
.com-phocacart .ph-subcategories + ul > li > a{
  display: inline-block;
  padding: .42rem 1.05rem;
  border: 1px solid var(--yfo-ligne);
  border-radius: 999px;
  background: #fff;
  color: var(--yfo-brun-doux);
  font-size: .86rem;
  letter-spacing: .02em;
  text-decoration: none;
  transition: all .22s ease;
}
.com-phocacart .ph-subcategories + ul > li > a:hover{
  border-color: var(--yfo-or);
  color: var(--yfo-or);
  background: var(--yfo-creme-2);
}

/* --------------------------------------------------------------------------
   4. GRILLE DE PRODUITS ET DE CATÉGORIES
   -------------------------------------------------------------------------- */
.com-phocacart .ph-items .row-item{ margin-bottom: 2.4rem; }

.com-phocacart .ph-item-box,
.com-phocacart .ph-thumbnail{
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.com-phocacart .ph-item-content{
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--yfo-ligne);
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.com-phocacart .ph-item-content:hover{
  border-color: var(--yfo-or-pale);
  box-shadow: 0 14px 34px -18px rgba(62,52,41,.45);
  transform: translateY(-3px);
}

/* Visuel : format carré régulier pour toute la grille */
.com-phocacart .phIBoxOH,
.com-phocacart .phIBox{ overflow: hidden; }
.com-phocacart .ph-item-content .ph-image,
.com-phocacart .ph-item-content img.img-responsive{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--yfo-creme);
  transition: transform .6s ease;
}
.com-phocacart .ph-item-content:hover .ph-image{ transform: scale(1.045); }

/* Icône panier au survol du visuel */
.com-phocacart .ph-category-action-icons{
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.com-phocacart .jf_ph_cat_item_grid{ position: relative; }
.com-phocacart .ph-item-content:hover .ph-category-action-icons{ opacity: 1; }
.com-phocacart .ph-category-item-addtocart a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: #fff;
  color: var(--yfo-brun);
  border: 1px solid var(--yfo-ligne);
  box-shadow: 0 6px 16px -8px rgba(62,52,41,.5);
}
.com-phocacart .ph-category-item-addtocart a:hover{
  background: var(--yfo-or);
  border-color: var(--yfo-or);
  color: #fff;
}

/* Textes de la vignette */
.com-phocacart .ph-product-header,
.com-phocacart h3.ph-product-header{
  font-family: var(--yfo-serif);
  font-size: 1.32rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 1.15rem 1.25rem .5rem;
  text-transform: none;
}
.com-phocacart .ph-product-header a{ color: var(--yfo-brun); text-decoration: none; }
.com-phocacart .ph-product-header a:hover{ color: var(--yfo-or); }

.com-phocacart .ph-item-desc{
  margin: 0 1.25rem .9rem;
  color: var(--yfo-brun-doux);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1 1 auto;
}

.com-phocacart .ph-item-action-box{
  margin: 0;
  padding: 0 1.25rem 1.35rem;
  border: 0;
  background: transparent;
}
.com-phocacart .ph-category-price-box{
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .95rem;
  padding-top: .85rem;
  border-top: 1px solid var(--yfo-ligne);
}
.com-phocacart .ph-price-txt{
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yfo-brun-doux);
  float: none;
}
.com-phocacart .ph-price-brutto,
.com-phocacart .ph-price-netto{
  font-family: var(--yfo-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--yfo-or);
  float: none;
  white-space: nowrap;
}
.com-phocacart .ph-category-action-buttons .btn{ width: 100%; }
.com-phocacart .ph-category-action-buttons form{ margin: 0; }

/* --------------------------------------------------------------------------
   5. FICHE PRODUIT
   -------------------------------------------------------------------------- */
.com-phocacart .ph-item-view-image-box .ph-image-full,
.com-phocacart .phImageFull{
  width: 100%;
  height: auto;
  border: 1px solid var(--yfo-ligne);
  border-radius: 2px;
  padding: 0;
  background: var(--yfo-creme);
}
.com-phocacart .ph-item-view-data-box{ padding-left: 2.5rem; }
.com-phocacart .ph-item-price-panel > .ph-header{
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  text-align: left;
  margin-bottom: 1rem;
}
.com-phocacart .ph-item-price-box{
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .9rem 0 1.1rem;
  border-top: 1px solid var(--yfo-ligne);
  border-bottom: 1px solid var(--yfo-ligne);
  margin-bottom: 1.4rem;
}
.com-phocacart .ph-item-price-box .ph-price-brutto{ font-size: 2rem; }
.com-phocacart .pc-item-view .ph-desc{
  color: var(--yfo-brun-doux);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.6rem;
}
.com-phocacart .ph-item-add-to-cart-box{
  float: none !important;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .9rem;
}
.com-phocacart .ph-form-quantity label,
.com-phocacart .ph-form-quantity .control-label{
  display: block;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yfo-brun-doux);
  margin-bottom: .35rem;
}
.com-phocacart .ph-form-quantity input[type="text"],
.com-phocacart .ph-form-quantity input[type="number"]{
  width: 5.5rem;
  height: 2.95rem;
  text-align: center;
  border: 1px solid var(--yfo-ligne);
  border-radius: 2px;
}
.com-phocacart .ph-form-button{ margin: 0; }

/* Onglets sous la fiche */
.com-phocacart #PcItemTab{ border-bottom: 1px solid var(--yfo-ligne); margin-top: 3rem; }
.com-phocacart #PcItemTab .nav-link{
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--yfo-brun-doux);
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .8rem 1.1rem;
}
.com-phocacart #PcItemTab .nav-link.active{
  color: var(--yfo-brun);
  background: transparent;
  border-bottom-color: var(--yfo-or);
}
.com-phocacart .ph-tab-pane{ padding: 1.8rem 0; color: var(--yfo-brun-doux); line-height: 1.8; }
.com-phocacart .ph-tab-pane ul{ padding-left: 1.1rem; }
.com-phocacart .ph-tab-pane li{ margin-bottom: .35rem; }
.com-phocacart .ph-tab-pane strong{ color: var(--yfo-brun); }

/* --------------------------------------------------------------------------
   6. PANIER ET TUNNEL DE COMMANDE
   -------------------------------------------------------------------------- */
.com-phocacart .pc-checkout-view .ph-header{ text-align: center; }
.com-phocacart .ph-checkout-box,
.com-phocacart .phCheckoutBox{ max-width: 56rem; margin: 0 auto; }

.com-phocacart fieldset,
.com-phocacart .ph-checkout-panel,
.com-phocacart .ph-panel{
  background: #fff;
  border: 1px solid var(--yfo-ligne);
  border-radius: 2px;
  padding: 1.6rem 1.7rem;
  margin-bottom: 1.3rem;
}
.com-phocacart legend,
.com-phocacart .ph-checkout-header,
.com-phocacart .ph-legend{
  font-family: var(--yfo-serif);
  font-size: 1.35rem;
  color: var(--yfo-brun);
  border: 0;
  padding: 0;
  margin-bottom: 1.1rem;
  width: auto;
  float: none;
  text-transform: none;
}
.com-phocacart label,
.com-phocacart .control-label{
  font-size: .88rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--yfo-brun-doux);
  font-weight: 600;
  margin-bottom: .32rem;
}
/* Cases à cocher : libellé en texte courant, aligné sur la case */
.com-phocacart .form-check-label,
.com-phocacart label.checkbox,
.com-phocacart label:has(input[type="checkbox"]),
.com-phocacart .form-check label{
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: .95rem;
  color: var(--yfo-brun);
}
.com-phocacart input[type="checkbox"],
.com-phocacart input[type="radio"]{
  width: auto;
  min-height: 0;
  margin-right: .5rem;
  accent-color: var(--yfo-or);
}
.com-phocacart input[type="text"],
.com-phocacart input[type="email"],
.com-phocacart input[type="tel"],
.com-phocacart input[type="password"],
.com-phocacart textarea,
.com-phocacart select,
.com-phocacart .form-control,
.com-phocacart .form-select{
  width: 100%;
  min-height: 2.95rem;
  border: 1px solid var(--yfo-ligne);
  border-radius: 2px;
  padding: .55rem .9rem;
  background-color: #fff;
  color: var(--yfo-brun);
  font-size: .98rem;
  box-shadow: none;
}
.com-phocacart input:focus,
.com-phocacart select:focus,
.com-phocacart textarea:focus,
.com-phocacart .form-control:focus,
.com-phocacart .form-select:focus{
  border-color: var(--yfo-or);
  box-shadow: 0 0 0 3px rgba(167,119,37,.12);
  outline: none;
}
.com-phocacart .form-group,
.com-phocacart .control-group{ margin-bottom: 1.05rem; }

/* Tableau du panier */
.com-phocacart table{ width: 100%; border-collapse: collapse; }
.com-phocacart table th{
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yfo-brun-doux);
  font-weight: 600;
  border-bottom: 1px solid var(--yfo-ligne);
  padding: .8rem .6rem;
  background: var(--yfo-creme);
}
.com-phocacart table td{
  border-bottom: 1px solid var(--yfo-ligne);
  padding: .9rem .6rem;
  vertical-align: middle;
}
.com-phocacart table img{ max-width: 72px; height: auto; border-radius: 2px; }

/* Étapes numérotées du tunnel */
.com-phocacart .ph-checkout-number,
.com-phocacart .phCheckoutNumber{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--yfo-or);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-right: .7rem;
}

/* --------------------------------------------------------------------------
   7. ÉLÉMENTS À MASQUER (bruit du gabarit de démonstration)
   -------------------------------------------------------------------------- */
.com-phocacart .ph-pagination-top,
.com-phocacart .ph-pagination,
.com-phocacart .phPaginationBox,
.com-phocacart .ph-powered,
.com-phocacart .ph-copyright,
.com-phocacart .ph-item-id-box,
.com-phocacart .ph-label-box:empty{ display: none !important; }
.com-phocacart a[href*="phoca.cz"]{ display: none !important; }

/* --------------------------------------------------------------------------
   8. BOUTON WHATSAPP
   -------------------------------------------------------------------------- */
.yfo-wa-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .72rem 1.5rem;
  border: 1px solid var(--yfo-wa);
  border-radius: 2px;
  background: #fff;
  color: #128C45;
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s ease;
}
.yfo-wa-btn:hover{ background: var(--yfo-wa); color: #fff; border-color: var(--yfo-wa); }
.yfo-wa-btn svg{ width: 1.1rem; height: 1.1rem; fill: currentColor; }
.yfo-wa-note{
  margin-top: .75rem;
  font-size: .86rem;
  color: var(--yfo-brun-doux);
  line-height: 1.6;
}

/* Bouton flottant, présent sur tout le site */
.yfo-wa-float{
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  background: var(--yfo-wa);
  color: #fff;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  box-shadow: 0 10px 26px -10px rgba(18,140,69,.75);
  transition: transform .22s ease, box-shadow .22s ease;
}
.yfo-wa-float:hover{ color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(18,140,69,.85); }
.yfo-wa-float svg{ width: 1.25rem; height: 1.25rem; fill: currentColor; }
@media (max-width: 575px){
  .yfo-wa-float{ right: 1rem; bottom: 1rem; padding: .85rem; }
  .yfo-wa-float .yfo-wa-float-txt{ display: none; }
}

/* --------------------------------------------------------------------------
   9. BANDEAU DES RÉFÉRENCES (page d'accueil)
   -------------------------------------------------------------------------- */
.yfo-refs{ padding: .5rem 0 0; }
.yfo-refs-piste{
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.yfo-refs-defile{
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: yfo-defile 46s linear infinite;
}
.yfo-refs-piste:hover .yfo-refs-defile{ animation-play-state: paused; }
.yfo-refs-defile img{
  height: 52px;
  width: auto;
  flex: 0 0 auto;
  filter: grayscale(100%);
  opacity: .62;
  transition: filter .3s ease, opacity .3s ease;
}
.yfo-refs-defile img:hover{ filter: none; opacity: 1; }
@keyframes yfo-defile{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .yfo-refs-defile{ animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
@media (max-width: 575px){ .yfo-refs-defile img{ height: 38px; } .yfo-refs-defile{ gap: 2.2rem; } }

/* --------------------------------------------------------------------------
   10. RETOUCHES GÉNÉRALES
   -------------------------------------------------------------------------- */
/* Le gabarit mettait une majuscule à chaque mot des boutons */
.com-phocacart .btn,
.sppb-btn{ text-transform: none; }
.com-phocacart .btn{ text-transform: uppercase; }

/* Lien webmail du pied de page : réservé à la maison, discret */
#sp-bottom a[href*="webmail"],
#sp-footer a[href*="webmail"]{ opacity: .55; font-size: .82rem; }

/* Mobile : fiche produit sur une colonne */
@media (max-width: 767px){
  .com-phocacart .ph-item-view-data-box{ padding-left: 15px; margin-top: 1.6rem; }
  .com-phocacart .ph-item-add-to-cart-box{ width: 100%; }
  .com-phocacart .ph-form-button,
  .com-phocacart .ph-form-button .btn{ width: 100%; }
}

/* --------------------------------------------------------------------------
   11. HIÉRARCHIE DES DEUX BOUTONS DE LA VIGNETTE
   « Voir ce bijou » en contour, « Ajouter au panier » en plein.
   -------------------------------------------------------------------------- */
.com-phocacart .ph-category-action-buttons a.btn{
  background: #fff;
  color: var(--yfo-brun);
  border-color: var(--yfo-ligne);
  margin-bottom: .55rem;
}
.com-phocacart .ph-category-action-buttons a.btn:hover{
  background: var(--yfo-creme-2);
  color: var(--yfo-or);
  border-color: var(--yfo-or-pale);
}
.com-phocacart .ph-category-action-buttons button.btn{ width: 100%; }
.com-phocacart .ph-category-action-buttons .btn .fa{ margin-right: .4rem; opacity: .7; }

/* Titre et description de la vignette alignés à gauche, plus lisibles */
.com-phocacart .ph-item-content .ph-product-header,
.com-phocacart .ph-item-content .ph-item-desc,
.com-phocacart .ph-item-content .ph-item-action-box{ text-align: left; }

/* --------------------------------------------------------------------------
   12. FENÊTRE « PRODUIT AJOUTÉ AU PANIER »
   Le gabarit y imposait encore ses boutons bleus.
   -------------------------------------------------------------------------- */
.pc-modal .modal-content{
  border: 0;
  border-radius: 3px;
  box-shadow: 0 30px 70px -30px rgba(62,52,41,.6);
}
.pc-modal .modal-header{
  border-bottom: 1px solid var(--yfo-ligne);
  background: var(--yfo-creme);
  padding: 1.1rem 1.5rem;
}
.pc-modal .modal-title{
  font-family: var(--yfo-serif);
  font-size: 1.3rem;
  color: var(--yfo-brun);
}
.pc-modal .modal-body{ padding: 1.6rem 1.5rem; }
.pc-modal .modal-body .row{ gap: .7rem 0; }

.pc-modal .btn,
.pc-modal .btn-primary,
.pc-modal a.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  padding: .78rem 1.3rem !important;
  border-radius: 2px !important;
  font-family: 'Lato', sans-serif;
  font-size: .8rem !important;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  background-color: var(--yfo-or) !important;
  border: 1px solid var(--yfo-or) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.pc-modal .btn:hover{
  background-color: var(--yfo-brun) !important;
  border-color: var(--yfo-brun) !important;
}
/* « Poursuivre mes achats » reste secondaire */
.pc-modal .modal-body .row > div:first-child .btn{
  background-color: #fff !important;
  color: var(--yfo-brun) !important;
  border-color: var(--yfo-ligne) !important;
}
.pc-modal .modal-body .row > div:first-child .btn:hover{
  background-color: var(--yfo-creme-2) !important;
  color: var(--yfo-or) !important;
  border-color: var(--yfo-or-pale) !important;
}

/* Renfort : certains boutons du gabarit gardaient la couleur bleue */
.com-phocacart #sp-component .btn-primary,
.com-phocacart .pc-view .btn-primary,
.com-phocacart .pc-view button.btn-primary,
.com-phocacart .pc-view a.btn-primary{
  background-color: var(--yfo-or) !important;
  border-color: var(--yfo-or) !important;
  color: #fff !important;
}
.com-phocacart .pc-view .ph-category-action-buttons a.btn-primary{
  background-color: #fff !important;
  color: var(--yfo-brun) !important;
  border-color: var(--yfo-ligne) !important;
}
.com-phocacart .pc-view .ph-category-action-buttons a.btn-primary:hover{
  background-color: var(--yfo-creme-2) !important;
  color: var(--yfo-or) !important;
  border-color: var(--yfo-or-pale) !important;
}
.com-phocacart .pc-view .ph-top a.btn-secondary{
  background-color: #fff !important;
  color: var(--yfo-brun-doux) !important;
  border-color: var(--yfo-ligne) !important;
}

/* --------------------------------------------------------------------------
   13. PANIER : ligne produit, quantité, sous-total
   -------------------------------------------------------------------------- */
.com-phocacart .input-group.bootstrap-touchspin{
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: auto;
  gap: .3rem;
}
.com-phocacart .bootstrap-touchspin .input-group-btn{ display: inline-flex; }
.com-phocacart .bootstrap-touchspin .btn{
  width: 2.5rem;
  min-width: 2.5rem;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem !important;
  letter-spacing: 0;
}
.com-phocacart .ph-input-quantity{
  width: 3.6rem !important;
  min-width: 3.6rem;
  text-align: center;
  padding: .4rem .3rem !important;
}
/* Actualiser / supprimer : en retrait, sans couleurs d'alerte */
.com-phocacart .bootstrap-touchspin .btn-success,
.com-phocacart .bootstrap-touchspin .btn-danger{
  background-color: #fff !important;
  border-color: var(--yfo-ligne) !important;
  color: var(--yfo-brun-doux) !important;
}
.com-phocacart .bootstrap-touchspin .btn-danger:hover{
  background-color: #fff !important;
  border-color: #C0392B !important;
  color: #C0392B !important;
}
.com-phocacart .bootstrap-touchspin .btn-success:hover{
  background-color: var(--yfo-creme-2) !important;
  border-color: var(--yfo-or-pale) !important;
  color: var(--yfo-or) !important;
}

/* Récapitulatif */
.com-phocacart table td a{ color: var(--yfo-brun); text-decoration: none; font-family: var(--yfo-serif); font-size: 1.1rem; }
.com-phocacart table td a:hover{ color: var(--yfo-or); }
.com-phocacart table img{ max-width: 90px; border-radius: 2px; }

/* En-têtes des étapes du tunnel */
.com-phocacart .ph-checkout-title,
.com-phocacart .pc-checkout-view h3,
.com-phocacart .pc-checkout-view .ph-checkout-step-title{
  font-family: var(--yfo-serif);
  color: var(--yfo-brun);
  font-size: 1.25rem;
  text-transform: none;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   14. PAGE DE REMERCIEMENT APRÈS COMMANDE
   -------------------------------------------------------------------------- */
.com-phocacart .pc-info-view{ max-width: 44rem; margin: 2rem auto 4rem; text-align: center; }
.com-phocacart .pc-info-view .ph-header{ display: none; }
.yfo-merci h2{
  font-family: var(--yfo-serif);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--yfo-brun);
  margin-bottom: 1.1rem;
}
.yfo-merci p{ color: var(--yfo-brun-doux); line-height: 1.8; margin-bottom: .9rem; }
.yfo-merci .yfo-merci-contact{
  background: var(--yfo-creme-2);
  border: 1px solid var(--yfo-or-pale);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  color: var(--yfo-brun);
}
.yfo-merci .btn{ margin-top: .6rem; }
.com-phocacart .pc-info-view .alert{
  background: var(--yfo-creme);
  border: 1px solid var(--yfo-or-pale);
  color: var(--yfo-brun);
  border-radius: 2px;
  padding: 1rem 1.2rem;
}
.yfo-merci-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-top: 1.8rem;
}
.yfo-merci-actions .btn{
  background: var(--yfo-or);
  border: 1px solid var(--yfo-or);
  color: #fff;
  border-radius: 2px;
  padding: .72rem 1.5rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.yfo-merci-actions .btn:hover{ background: var(--yfo-brun); border-color: var(--yfo-brun); color: #fff; }
.yfo-refs-intro{
  color: var(--yfo-brun-doux);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   15. ACCUEIL : le visuel débordait sur le texte entre 992 et 1400 px
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1399px){
  #sppb-addon-wrapper-1608276201522,
  #sppb-addon-wrapper-1608276242310,
  #sppb-addon-wrapper-1608276252728{
    max-width: 100%;
  }
  #sppb-addon-wrapper-1608276201522 img{ width: 100%; height: auto; }
}

/* --------------------------------------------------------------------------
   16. PAGE D'ACCUEIL DE LA BOUTIQUE : les trois métiers
   -------------------------------------------------------------------------- */
.com-phocacart .ph-categories .ph-item-content{ padding-bottom: .4rem; }
.com-phocacart .ph-categories .ph-item-content > a{ display: block; }
.com-phocacart .ph-categories .ph-item-content img{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--yfo-creme);
  transition: transform .6s ease;
}
.com-phocacart .ph-categories .ph-item-content:hover img{ transform: scale(1.04); }
.com-phocacart .ph-category-header{
  font-family: var(--yfo-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 1.2rem 1.3rem .55rem;
  text-transform: none;
}
.com-phocacart .ph-category-header a{ color: var(--yfo-brun); text-decoration: none; }
.com-phocacart .ph-category-header a:hover{ color: var(--yfo-or); }

/* La liste des sous-catégories devient une rangée d'étiquettes */
.com-phocacart .ph-categories .ph-item-content > ul{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0 1.3rem .9rem;
}
.com-phocacart .ph-categories .ph-item-content > ul > li{ margin: 0; }
.com-phocacart .ph-categories .ph-item-content > ul > li > a{
  display: inline-block;
  padding: .3rem .8rem;
  border: 1px solid var(--yfo-ligne);
  border-radius: 999px;
  color: var(--yfo-brun-doux);
  font-size: .8rem;
  text-decoration: none;
  transition: all .2s ease;
}
.com-phocacart .ph-categories .ph-item-content > ul > li > a:hover{
  border-color: var(--yfo-or);
  color: var(--yfo-or);
  background: var(--yfo-creme-2);
}
.com-phocacart .ph-cat-desc{
  margin: 0 1.3rem 1.1rem;
  color: var(--yfo-brun-doux);
  font-size: .92rem;
  line-height: 1.65;
  flex: 1 1 auto;
}
.com-phocacart .ph-categories .ph-item-action-box{
  margin: 0;
  padding: 0 1.3rem 1.2rem;
  border: 0;
  background: transparent;
}
.com-phocacart .ph-categories .ph-item-action-box .btn{ width: 100%; }
/* Les libellés de boutons doivent pouvoir passer à la ligne */
.com-phocacart .btn{ white-space: normal; line-height: 1.3; }
.com-phocacart .ph-categories .ph-item-action-box .btn{ letter-spacing: .1em; padding-left: .9rem; padding-right: .9rem; }
.com-phocacart .ph-categories .ph-item-box,
.com-phocacart .ph-categories .ph-thumbnail{ height: 100%; }
.com-phocacart .ph-categories .ph-item-content{ height: 100%; display: flex; flex-direction: column; }

/* --------------------------------------------------------------------------
   17. PANIER SUR TÉLÉPHONE : la quantité chevauchait le prix
   -------------------------------------------------------------------------- */
@media (max-width: 575px){
  .com-phocacart table th,
  .com-phocacart table td{ padding: .6rem .35rem; font-size: .9rem; }
  .com-phocacart table img{ max-width: 54px; }
  .com-phocacart .input-group.bootstrap-touchspin{ flex-wrap: wrap; gap: .25rem; }
  .com-phocacart .bootstrap-touchspin .btn{ width: 2.1rem; min-width: 2.1rem; }
  .com-phocacart .ph-input-quantity{ width: 2.8rem !important; min-width: 2.8rem; }
  .com-phocacart .ph-price-brutto,
  .com-phocacart .ph-price-netto{ font-size: 1.1rem; }
}
