/* Vitrine (2.32.14) — réglages WooCommerce → 🪟 Caftan Vitrine.
   Couleurs du site : or #d4af37, brun #8b5e3c, crème #fffdf8, bordure #e4d9c4.
   921 px = seuil « téléphone et tablette » d'Astra. */

/* ===== A1 : haut de l'accueil ===== */
body.wco-accueil-compact .ast-breadcrumbs-wrapper,
body.wco-accueil-masque .ast-breadcrumbs-wrapper { display: none !important; }

body.wco-accueil-compact .ast-archive-description {
	margin-top: 14px !important; margin-bottom: 0 !important;
	padding-top: 4px !important; padding-bottom: 4px !important;
}
body.wco-accueil-compact .ast-archive-description .page-title {
	font-size: clamp(21px, 1.2vw + 16px, 30px) !important;
	line-height: 1.25 !important; margin: 0 !important; text-wrap: balance;
}

/* Titre invisible à l'écran, toujours lu par Google et les lecteurs d'écran. */
body.wco-accueil-masque .ast-archive-description {
	position: absolute !important; width: 1px !important; height: 1px !important;
	margin: -1px !important; padding: 0 !important; overflow: hidden !important;
	clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important;
}
body.wco-accueil-masque .woocommerce-result-count { margin-top: 16px; }

/* ===== A2, option « un seul bouton d'aide » ===== */
.wco-aide { display: none; }

@media (max-width: 921px) {
	body.wco-boutons-aide #ht-ctc-chat,
	body.wco-boutons-aide #wco-lang-switcher-float,
	body.wco-boutons-aide #cf-chatbot-toggle { display: none !important; }
	body.wco-boutons-aide .wco-aide { display: flex; }
	/* Le panneau de l'assistant s'ouvre juste au-dessus du bouton d'aide. */
	body.wco-boutons-aide #cf-chatbot { --cf-bas: 16px; }
}
body.wco-boutons-aide.wco-boutons-partout #ht-ctc-chat,
body.wco-boutons-aide.wco-boutons-partout #wco-lang-switcher-float,
body.wco-boutons-aide.wco-boutons-partout #cf-chatbot-toggle { display: none !important; }
body.wco-boutons-aide.wco-boutons-partout .wco-aide { display: flex; }
body.wco-boutons-aide.wco-boutons-partout #cf-chatbot { --cf-bas: 16px; }

.wco-aide {
	position: fixed; z-index: 9998;
	right: calc(14px + env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	flex-direction: column; align-items: flex-end; gap: 10px;
	font-size: 14px; line-height: 1.25;
}
.wco-aide[dir="rtl"] { right: auto; left: calc(14px + env(safe-area-inset-left, 0px)); align-items: flex-start; }

.wco-aide-bouton {
	position: relative; width: 54px; height: 54px; padding: 0; border: none; border-radius: 50%;
	background: #8b5e3c; color: #fffdf8; display: grid; place-items: center; cursor: pointer;
	box-shadow: 0 6px 18px rgba(46, 40, 35, .28);
}
.wco-aide-bouton:focus-visible { outline: 2px solid #d4af37; outline-offset: 3px; }
.wco-aide-bouton .wco-aide-fermer { display: none; }
.wco-aide.wco-aide-actif .wco-aide-bouton .wco-aide-ouvrir { display: none; }
.wco-aide.wco-aide-actif .wco-aide-bouton .wco-aide-fermer { display: block; }
/* Point vert : WhatsApp est dans le menu. */
.wco-aide-point {
	position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; border-radius: 50%;
	background: #25d366; border: 2px solid #fffdf8;
}
.wco-aide.wco-aide-actif .wco-aide-point { display: none; }

.wco-aide-menu {
	width: min(270px, calc(100vw - 28px)); padding: 6px; border-radius: 14px;
	background: #fffdf8; border: 1px solid #e4d9c4; box-shadow: 0 10px 30px rgba(46, 40, 35, .22);
	color: #2e2823;
}
.wco-aide-menu[hidden] { display: none; }

/* Le thème met tous les boutons en majuscules espacées : on rétablit un
   texte normal, pour que les trois lignes (2 boutons, 1 lien) soient pareilles. */
.wco-aide-ligne, .wco-aide-ligne strong, .wco-aide-ligne small,
.wco-aide-bouton, .wco-langue-pastille {
	text-transform: none !important; letter-spacing: normal !important;
}
.wco-aide-ligne {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 0; padding: 9px 8px; margin: 0;
	border: none; border-radius: 10px; background: transparent; color: inherit; text-align: start;
	text-decoration: none; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.25;
	box-shadow: none; cursor: pointer;
}
.wco-aide-ligne[hidden] { display: none; }
.wco-aide-ligne:hover, .wco-aide-ligne:focus-visible { background: #faf3e3; color: inherit; }
.wco-aide-ligne:focus-visible { outline: 2px solid #d4af37; outline-offset: 0; }
.wco-aide-ico {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; color: #fff;
}
.wco-aide-ico-question { background: #8b5e3c; }
.wco-aide-ico-wa { background: #25d366; }
.wco-aide-ico-langue { background: #b8941f; }
.wco-aide-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wco-aide-txt strong { font-weight: 600; color: #241d13; }
.wco-aide-txt small { font-size: 12px; color: #7a6e60; }

.wco-aide-langues {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
	padding: 4px 6px 6px 52px;
}
.wco-aide[dir="rtl"] .wco-aide-langues { padding: 4px 52px 6px 6px; }
.wco-aide-langues[hidden] { display: none; }
.wco-aide-langue {
	padding: 7px 8px; border-radius: 8px; color: #5c4f42; text-decoration: none; font-size: 13.5px;
}
.wco-aide-langue:hover, .wco-aide-langue:focus-visible { background: #faf3e3; color: #241d13; }
.wco-aide-langue[aria-current="true"] { background: #d4af37; color: #241d13; font-weight: 600; }

/* ===== A2, option « langue en haut, boutons discrets » ===== */
.wco-langue-barre { position: relative; flex: 0 0 auto; }
.wco-langue-pastille {
	display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px;
	border: none; border-radius: 999px; background: #d4af37; color: #241d13;
	font: 600 11px/1 inherit; letter-spacing: .05em; cursor: pointer;
}
.wco-langue-pastille:focus-visible { outline: 2px solid #8b5e3c; outline-offset: 2px; }
.wco-langue-liste {
	position: absolute; top: calc(100% + 6px); right: 0; z-index: 10000; min-width: 150px;
	display: grid; gap: 2px; padding: 6px; border-radius: 12px;
	background: #fffdf8; border: 1px solid #e4d9c4; box-shadow: 0 10px 30px rgba(46, 40, 35, .2);
}
[dir="rtl"] .wco-langue-liste { right: auto; left: 0; }
.wco-langue-liste[hidden] { display: none; }
/* #ines-whatsapp-bar met ses liens en doré gras : l'identifiant est repris
   ici pour que la liste des langues garde son propre style. */
#ines-whatsapp-bar .wco-langue-lien, .wco-langue-lien {
	padding: 7px 10px; border-radius: 8px; color: #5c4f42; text-decoration: none;
	font-size: 13.5px; font-weight: 400; text-align: start;
}
#ines-whatsapp-bar .wco-langue-lien:hover, #ines-whatsapp-bar .wco-langue-lien:focus-visible { background: #faf3e3; color: #241d13; }
#ines-whatsapp-bar .wco-langue-lien[aria-current="true"] { background: #d4af37; color: #241d13; font-weight: 600; }
#ines-whatsapp-bar.wco-barre-avec-langue {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
#ines-whatsapp-bar.wco-barre-avec-langue .wco-barre-texte {
	min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

@media (max-width: 921px) {
	body.wco-boutons-discrets.wco-langue-dans-barre #wco-lang-switcher-float { display: none !important; }
	body.wco-boutons-discrets #cf-chatbot-toggle { width: 46px !important; height: 46px !important; min-width: 46px !important; }
	body.wco-boutons-discrets #cf-chatbot-toggle svg { width: 22px; height: 22px; }
	body.wco-boutons-discrets #ht-ctc-chat { transform: scale(.84); transform-origin: 100% 100%; }
	body.wco-boutons-discrets.wco-defile #cf-chatbot-toggle,
	body.wco-boutons-discrets.wco-defile #ht-ctc-chat { opacity: 0 !important; pointer-events: none !important; }
	body.wco-boutons-discrets #cf-chatbot-toggle,
	body.wco-boutons-discrets #ht-ctc-chat { transition: opacity .25s ease; }
}
body.wco-boutons-discrets.wco-boutons-partout.wco-langue-dans-barre #wco-lang-switcher-float { display: none !important; }
body.wco-boutons-discrets.wco-boutons-partout.wco-defile #cf-chatbot-toggle,
body.wco-boutons-discrets.wco-boutons-partout.wco-defile #ht-ctc-chat { opacity: 0 !important; pointer-events: none !important; }

@media (prefers-reduced-motion: reduce) {
	body.wco-boutons-discrets #cf-chatbot-toggle,
	body.wco-boutons-discrets #ht-ctc-chat { transition: none; }
}

/* ===== A6 : texte de présentation sous les pièces (2.32.21) ===== */
.wco-accueil-texte {
	clear: both; max-width: 760px; margin: 28px auto 8px; padding: 18px 16px 4px;
	border-top: 1px solid #e4d9c4; color: #5c4f42; font-size: 15px; line-height: 1.65;
}
.wco-accueil-texte h2 {
	margin: 0 0 10px; color: #241d13; font-size: clamp(18px, 0.8vw + 15px, 22px);
	line-height: 1.3; text-wrap: balance;
}
.wco-accueil-texte p { margin: 0 0 12px; }
.wco-accueil-texte strong { color: #241d13; font-weight: 600; }
/* 2.32.23 : sous-titre « Livraison » et pastilles (infos pratiques d'un coup d'œil). */
.wco-accueil-texte h3 {
	margin: 18px 0 6px; color: #241d13; font-size: 17px; line-height: 1.3;
}
.wco-accueil-pastilles {
	display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; padding: 0; list-style: none;
}
.wco-accueil-pastilles li {
	margin: 0; padding: 6px 12px; border: 1px solid #d4af37; border-radius: 999px;
	background: #fffdf8; color: #241d13; font-size: 14px; line-height: 1.35;
}
.wco-accueil-pastilles a { text-decoration: none; color: #8b5e3c; font-weight: 600; }
@media (max-width: 544px) {
	.wco-accueil-pastilles { flex-direction: column; align-items: flex-start; }
}
.wco-accueil-texte a { color: #8b5e3c; text-decoration: underline; text-underline-offset: 2px; }
.wco-accueil-texte a:focus-visible { outline: 2px solid #d4af37; outline-offset: 2px; border-radius: 2px; }
