/* ==========================================================================
   v6 pages : mobile aussi soigné que le PC (pages de contenu, guides, FAQ,
   catégories, boutique, pages légales, compte, panier, 404, recherche).
   Chargé en dernier. Ne touche ni l'accueil, ni la fiche produit, ni le
   menu mobile, ni le checkout, ni le pied de page.
   ========================================================================== */

/* ---------- Garde-fous globaux (pages concernées) ---------- */
body:not(.home):not(.single-product) main img { max-width: 100%; }
body:not(.home):not(.single-product) .prose img { height: auto; }
body:not(.home):not(.single-product) .prose :is(table, pre, iframe, video) { max-width: 100%; }
body:not(.home):not(.single-product) .prose { overflow-wrap: anywhere; hyphens: manual; }
body:not(.home):not(.single-product) .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq6 { max-width: 860px; margin-inline: auto; padding-bottom: clamp(48px, 7vw, 96px); }
.faq6-outils { display: grid; gap: 14px; margin: 0 0 clamp(28px, 4vw, 44px); }
.faq6-recherche { position: relative; display: block; }
.faq6-recherche svg { display: block !important; z-index: 1; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--texte-2, #6b625a); pointer-events: none; }
.faq6-recherche input {
	width: 100%; height: 54px; padding: 0 18px 0 50px; font: inherit; font-size: 16px; color: inherit;
	background: rgba(255, 255, 255, .82); border: 1px solid rgba(60, 45, 30, .14); border-radius: 999px;
	box-shadow: 0 1px 2px rgba(40, 30, 20, .04); -webkit-appearance: none; appearance: none;
}
.faq6-recherche input:focus { outline: none; border-color: rgba(60, 45, 30, .4); box-shadow: 0 0 0 4px rgba(162, 104, 58, .14); }
.faq6-filtres { display: flex; flex-wrap: wrap; gap: 8px; }
.faq6-puce {
	min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(60, 45, 30, .16);
	background: rgba(255, 255, 255, .6); color: inherit; font: inherit; font-size: 15px; font-weight: 550;
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s;
}
.faq6-puce span { font-size: 12px; font-weight: 600; opacity: .55; font-variant-numeric: tabular-nums; }
.faq6-puce[aria-pressed="true"] { background: var(--encre, #1f1a16); border-color: var(--encre, #1f1a16); color: #fff; }
.faq6-puce[aria-pressed="true"] span { opacity: .7; }
.faq6-groupe + .faq6-groupe { margin-top: clamp(32px, 4vw, 48px); }
body .faq6 .faq6-titre {
	font-size: 13px !important; line-height: 1.2 !important; letter-spacing: .14em !important; text-transform: uppercase;
	font-weight: 650 !important; color: var(--texte-2, #6b625a); margin: 0 0 14px !important; opacity: .9; text-transform: uppercase !important;
}
body .faq6 .faq-liste { display: flex; flex-direction: column; gap: 10px; border: 0 !important; max-width: none; }
body .faq6 .faq-item { border-radius: 18px !important; padding: 0 !important; overflow: hidden; }
body .faq6 .faq-item:hover { transform: none; }
body .faq6 .faq-item summary {
	padding: 20px 22px !important; min-height: 64px; gap: 16px; font-size: 1.125rem !important; line-height: 1.35 !important;
	font-weight: 600 !important; letter-spacing: -.01em !important;
}
body .faq6 .faq6-q { flex: 1; min-width: 0; text-wrap: pretty; }
body .faq6 .faq-signe { width: 32px !important; height: 32px !important; }
body .faq6 .faq-reponse { padding: 0 22px 22px !important; max-width: 68ch; font-size: 1rem; line-height: 1.65; }
body .faq6 .faq-reponse p { margin: 0; }
.faq6-vide { padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .6); text-align: center; margin: 0; }
.faq6-aide {
	margin-top: clamp(36px, 5vw, 56px); padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(60, 45, 30, .1); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.faq6-aide p { margin: 0; font-size: 1rem; }
.faq6-bouton {
	min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--encre, #1f1a16); color: #fff !important;
	display: inline-flex; align-items: center; text-decoration: none !important; font-weight: 600;
}
.faq6 [hidden] { display: none !important; }

/* ==========================================================================
   Recherche : résultats en liste nette (vignette, type, titre, extrait)
   ========================================================================== */
body.search .liste-articles { display: grid; gap: 10px; max-width: 860px; }
body.search .article-resume { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.search .resume-lien {
	display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; text-decoration: none !important;
	background: rgba(255, 255, 255, .72); border: 1px solid rgba(60, 45, 30, .08); color: inherit; min-height: 64px;
	transition: background .2s, transform .3s cubic-bezier(.2, .7, .2, 1);
}
body.search .resume-lien:hover { background: #fff; transform: translateY(-1px); }
body.search .resume-img { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; }
body.search .resume-img img { width: 100%; height: 100%; object-fit: contain; }
body.search .resume-texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
body.search .resume-type { font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-2, #6b625a); }
body.search .resume-titre { font-size: 1.125rem; font-weight: 650; line-height: 1.25; letter-spacing: -.01em !important; }
body.search .resume-texte * { letter-spacing: inherit; }
body.search .resume-extrait, body.search .resume-type { letter-spacing: normal !important; }
body.search .resume-type { letter-spacing: .12em !important; }
body.search .page-tete { padding-top: clamp(36px, 6vw, 72px) !important; }
body.blog .bl-carte-titre, body.search .resume-titre { word-spacing: .02em; }
body.search .resume-extrait { font-size: .95rem; line-height: 1.45; color: var(--texte-2, #6b625a); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.search .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
body.search .nav-links :is(a, span) { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 999px; }

/* ==========================================================================
   Mobile (≤ 760 px)
   ========================================================================== */
@media (max-width: 760px) {
	/* En-têtes de page : titres lisibles, pas démesurés, rythme resserré */
	body:not(.home):not(.single-product) .page-tete { padding: 28px 0 18px !important; }
	body:not(.home):not(.single-product) main h1,
	body:not(.home):not(.single-product) .page-tete h1,
	body:not(.home):not(.single-product) h1.titre-xl {
		font-size: clamp(2rem, 9vw, 2.5rem) !important; line-height: 1.04 !important; letter-spacing: -.035em !important;
		max-width: none !important; overflow-wrap: break-word;
	}
	body:not(.home):not(.single-product) .bl-titre,
	body:not(.home):not(.single-product) .bl-titre-article { font-size: clamp(1.9rem, 8.4vw, 2.3rem) !important; line-height: 1.06 !important; }
	body:not(.home):not(.single-product) main h2:not(.faq6-titre):not(.bl-carte-titre):not([class*="carte"]):not(.woocommerce-loop-product__title) {
		font-size: clamp(1.45rem, 6.4vw, 1.75rem); line-height: 1.12;
	}
	body:not(.home):not(.single-product) .chapo,
	body:not(.home):not(.single-product) .bl-chapo { font-size: 1.0625rem !important; line-height: 1.55 !important; margin-top: 12px; }
	body:not(.home):not(.single-product) .surtitre { margin-bottom: 10px; }

	/* Texte courant : 16-17 px, interligne confortable */
	body:not(.home):not(.single-product) .prose,
	body:not(.home):not(.single-product) .page-texte { font-size: 1.0625rem; line-height: 1.65; }
	body:not(.home):not(.single-product) .prose :is(p, li) { font-size: inherit; }
	body:not(.home):not(.single-product) .prose :is(h2) { margin: 1.8em 0 .5em; }
	body:not(.home):not(.single-product) .prose :is(h3) { font-size: 1.2rem; margin: 1.5em 0 .4em; }
	body:not(.home):not(.single-product) .prose > :first-child { margin-top: 0; }

	body:not(.home):not(.single-product) main .page-texte { padding-top: 8px; }

	/* Cibles tactiles */
	body:not(.home):not(.single-product) .bl-fil { align-items: center; margin-bottom: 6px; }
	body:not(.home):not(.single-product) .bl-fil > * { display: inline-flex; align-items: center; min-height: 44px; }
	body:not(.home):not(.single-product) .bl-fil a { border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(0,0,0,.2); text-underline-offset: 4px; }
	body:not(.home):not(.single-product) .prose :is(.sommaire, .bl-sommaire, details) li a { display: inline-block; padding: 6px 0; }
	body:not(.home):not(.single-product) main :is(button, .button, input[type="submit"], select) { min-height: 44px; }
	body:not(.home):not(.single-product) main :is(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], input[type="number"], select, textarea) { font-size: 16px !important; }

	body:not(.home):not(.single-product) .comparateur-note { font-size: 14px !important; line-height: 1.5; }
	body:not(.home):not(.single-product) .v5h-fin-actions a, body.page .bv2-guide { min-height: 44px; display: inline-flex; align-items: center; }

	/* 404 et recherche */
	body.error404 .page-404 { padding-top: 32px !important; min-height: 0 !important; }
	body.error404 .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	body.error404 .hero-actions .bouton { justify-content: center; min-height: 48px; padding-inline: 12px; }
	body.search .resume-lien { padding: 12px 14px; gap: 12px; }
	body.search .resume-img { width: 60px; height: 60px; }
	body.search .resume-titre { font-size: 1.0625rem; }

	/* Lien « Pas sûr ? » et liens de navigation interne : cible tactile */
	body:not(.home):not(.single-product) main :is(a.bv2-guide, .sommaire > a, .v5h-fin-actions a) { display: inline-flex; align-items: center; min-height: 44px; }
	body:not(.home):not(.single-product) main nav.sommaire { row-gap: 0 !important; }

	/* FAQ */
	.faq6-tete .chapo { max-width: 34ch; }
	.faq6-outils { margin-bottom: 26px; position: sticky; top: calc(var(--entete, 60px) + 6px); z-index: 5; padding: 8px 0; background: transparent; }
	.faq6-recherche input { height: 50px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(255, 255, 255, .9); }
	.faq6-filtres { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
	.faq6-filtres::-webkit-scrollbar { display: none; }
	.faq6-puce { background: rgba(255, 255, 255, .9); }
	body .faq6 .faq-item summary { padding: 16px 16px 16px 18px !important; font-size: 1.0625rem !important; min-height: 60px; }
	body .faq6 .faq-reponse { padding: 0 18px 20px !important; }
	.faq6-aide { padding: 20px; flex-direction: column; align-items: stretch; text-align: center; }
	.faq6-bouton { justify-content: center; }

	/* Liste des guides : cartes compactes en ligne (vignette + titre) */
	body.blog .bl-liste .bl-grille, body.blog .bl-liste > div:has(> .bl-carte) { gap: 12px !important; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-lien { display: grid !important; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-img { aspect-ratio: 1 / 1 !important; min-height: 0 !important; width: 104px; border-radius: 14px; background: transparent !important; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-img img { object-fit: cover !important; transform: scale(1.18) !important; }
	body.blog .bl-carte-titre { letter-spacing: -.02em !important; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-texte { padding: 0 4px 0 0 !important; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-meta { font-size: 13px; margin: 0 0 4px; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-titre { font-size: 1.0625rem !important; line-height: 1.22 !important; margin: 0 0 6px; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-carte-extrait { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.45; margin: 0; }
	body.blog .bl-carte:not(.bl-carte-une) .bl-lire { display: none; }
	body.blog .bl-carte-une .bl-carte-img { aspect-ratio: 16 / 10 !important; min-height: 0 !important; background: transparent !important; }
	body.blog .bl-carte-une .bl-carte-img img { object-fit: contain !important; }
	body.blog .bl-carte-une .bl-carte-texte { padding: 16px 20px 22px !important; }
	body.blog .bl-carte-une .bl-carte-titre { font-size: 1.4rem !important; line-height: 1.15 !important; }
	body.blog .bl-carte-lien { min-height: 44px; }
	body.blog .bl-ecoute { font-size: 1rem; }

	/* Article de guide */
	body.single-post .bl-article-img { margin-block: 8px 20px !important; }
	body.single-post .bl-article-img img { max-height: 240px; width: auto !important; margin-inline: auto; object-fit: contain; display: block; }
	body.single-post .bl-sommaire summary { min-height: 48px; display: flex; align-items: center; }
	body.single-post .bl-sommaire ol { padding-left: 26px; list-style-position: outside; }
	body.single-post .bl-sommaire li { font-size: 15px; margin: 2px 0; padding-left: 2px; }
	body.single-post .bl-sommaire li a { display: inline-block; padding-block: 6px; }
	body.single-post .bl-texte { font-size: 1.0625rem; line-height: 1.68; }

	/* Catégories et boutique : cartes produits nettes */
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-sur {
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .06em !important; font-size: 10.5px !important; max-width: 100%;
	}
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-visuel { background: transparent !important; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-img { object-fit: contain; }
	/* bouton écouter : posé dans le coin du visuel, le prix respire sur toute la largeur */
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2 { position: relative; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2 .carte-ecouter.cv2-ecouter {
		position: absolute !important; top: 8px; right: 8px; width: 44px !important; height: 44px !important; min-height: 44px !important;
		border-radius: 50% !important; background: rgba(255, 255, 255, .92) !important; z-index: 2; box-shadow: 0 2px 10px rgba(30, 40, 60, .12);
	}
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-bas { padding: 4px 14px 14px !important; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-prix { font-size: 1.06rem !important; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .cv2-texte { padding-inline: 14px !important; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .comparateur { padding-top: 40px !important; margin-top: 0 !important; }
	body:is(.post-type-archive-product, .tax-product_cat, .woocommerce-shop) .page-tete { text-align: center; }

	/* Panier, compte : pas de débordement de tableau */
	body:is(.woocommerce-cart, .woocommerce-account) .shop_table { font-size: 15px; }
	body.woocommerce-account .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
	body.woocommerce-account .woocommerce-MyAccount-navigation li a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.7); }
}

/* Tablette : titres intermédiaires */
@media (min-width: 761px) and (max-width: 1100px) {
	body:not(.home):not(.single-product) .page-tete h1.titre-xl { font-size: clamp(2.6rem, 6vw, 3.6rem) !important; line-height: 1 !important; }
}
