/* =========================================================================
   BOUGI — feuille de style principale
   Mobile d'abord. Palette : brun, ambre, cire, crème.
   ========================================================================= */

/* ---------- Polices (hébergées localement, licence SIL OFL) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/Poppins-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variables ---------- */
:root {
	--brun: #5a3a22;
	--brun-fonce: #3e2716;
	--ambre: #c98a3d;
	--ambre-fonce: #87561c;
	--cire: #f7efe4;
	--creme: #fbf7f1;
	--blanc: #ffffff;
	--texte: #3a2c22;
	--texte-doux: #6e5c4f;
	--bordure: #e8dccb;
	--ok: #2f6b3a;
	--erreur: #a0332b;

	--f-titre: "Lora", Georgia, "Times New Roman", serif;
	--f-texte: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--ombre: 0 1px 2px rgba(58, 44, 34, .06), 0 8px 24px rgba(58, 44, 34, .07);
	--ombre-forte: 0 2px 4px rgba(58, 44, 34, .08), 0 16px 40px rgba(58, 44, 34, .12);

	--largeur: 1180px;
	--largeur-texte: 720px;
	--gouttiere: 20px;
	--espace-section: clamp(48px, 8vw, 96px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0;
	background: var(--creme);
	color: var(--texte);
	font-family: var(--f-texte);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--ambre-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brun); }
:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--brun); line-height: 1.22; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
hr { border: 0; border-top: 1px solid var(--bordure); margin: 2em 0; }
::selection { background: #f1d8b3; color: var(--brun-fonce); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: var(--brun); color: var(--blanc); border-radius: var(--r-s); text-decoration: none;
}

.container { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); }
.container--text { max-width: calc(var(--largeur-texte) + 2 * var(--gouttiere)); }
.container--narrow-left > * { max-width: 820px; }

.eyebrow {
	font-family: var(--f-texte); font-size: .78rem; font-weight: 500;
	text-transform: uppercase; letter-spacing: .14em; color: var(--ambre-fonce); margin: 0 0 .7em;
}
.text-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; text-decoration: none; color: var(--brun); }
.text-link svg { transition: transform .2s; }
.text-link:hover svg { transform: translateX(3px); }
.empty-note { color: var(--texte-doux); font-style: italic; }

/* ---------- Boutons ---------- */
.bougi-button, .button, button.button, input[type="submit"].button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .82em 1.5em; border: 2px solid var(--brun); border-radius: 999px;
	background: var(--brun); color: var(--creme); font-family: var(--f-texte); font-size: .95rem; font-weight: 500;
	line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.bougi-button:hover, .button:hover, .wp-block-button__link:hover { background: var(--brun-fonce); border-color: var(--brun-fonce); color: var(--blanc); }
.bougi-button:active { transform: translateY(1px); }
.bougi-button--ghost { background: transparent; color: var(--brun); }
.bougi-button--ghost:hover { background: var(--brun); color: var(--creme); }
.bougi-button--light { background: var(--ambre); border-color: var(--ambre); color: var(--brun-fonce); }
.bougi-button--light:hover { background: #e0a456; border-color: #e0a456; color: var(--brun-fonce); }

.icon-button {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--brun); cursor: pointer; transition: background .2s;
}
.icon-button:hover { background: var(--cire); color: var(--brun); }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(251, 247, 241, .94); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--bordure);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-brand { flex: 0 0 auto; }
.site-brand .custom-logo { max-height: 44px; width: auto; }
.site-brand__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brun); }
.site-brand__flame { color: var(--ambre); }
.site-brand__name { font-family: var(--f-texte); font-weight: 500; font-size: 1.3rem; letter-spacing: .28em; }
.site-brand__link--light { color: var(--creme); }
.site-brand__link--light:hover { color: var(--blanc); }

.site-header__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.header-cart__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--ambre); color: var(--brun-fonce);
	font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
}
.header-cart__count[hidden] { display: none; }

.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; text-decoration: none; color: var(--texte); font-weight: 500; font-size: .95rem; }
.site-nav__list .current-menu-item > a, .site-nav__list .current-menu-ancestor > a, .site-nav__list .current_page_parent > a, .site-nav__list a[aria-current] { color: var(--ambre-fonce); }

/* Menu mobile : panneau déroulant sous l'en-tête */
@media (max-width: 959px) {
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--creme); border-bottom: 1px solid var(--bordure); box-shadow: var(--ombre-forte);
		display: none; max-height: calc(100vh - 68px); overflow-y: auto;
	}
	.site-nav.is-open { display: block; }
	.site-nav__list { padding: 8px var(--gouttiere) 20px; }
	.site-nav__list li + li { border-top: 1px solid var(--bordure); }
	.site-nav__list a { padding: 14px 0; font-size: 1.05rem; }
}
@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.site-nav { margin-left: 28px; }
	.site-nav__list { display: flex; gap: 4px; }
	.site-nav__list a { padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
	.site-nav__list a:hover { background: var(--cire); color: var(--brun); }
}

.site-search { border-top: 1px solid var(--bordure); padding: 14px 0; background: var(--cire); }
.site-search[hidden] { display: none; }

/* ---------- Recherche ---------- */
.search-form { position: relative; display: flex; max-width: 560px; }
.search-form__input {
	flex: 1; width: 100%; min-height: 52px; padding: 0 56px 0 20px;
	border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc);
	font: inherit; font-size: 1rem; color: var(--texte); box-shadow: 0 1px 2px rgba(58, 44, 34, .05);
	-webkit-appearance: none; appearance: none;
}
.search-form__input::placeholder { color: #9b8a7c; }
.search-form__input:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 3px rgba(201, 138, 61, .22); }
.search-form__submit {
	position: absolute; right: 5px; top: 5px; bottom: 5px; width: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: var(--brun); color: var(--creme); cursor: pointer;
}
.search-form__submit:hover { background: var(--brun-fonce); }

/* ---------- Fil d'Ariane ---------- */
.breadcrumb { margin-bottom: 18px; font-size: .82rem; color: var(--texte-doux); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: #b9a690; }
.breadcrumb a { color: var(--texte-doux); text-decoration: none; }
.breadcrumb a:hover { color: var(--brun); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--texte); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-math-breadcrumb { margin-bottom: 18px; font-size: .82rem; }

/* ---------- Sections ---------- */
.section { padding: var(--espace-section) 0; }
.section--tinted { background: var(--cire); }
.section--dark { background: var(--brun); color: #ecdcc6; }
.section--dark h2, .section--dark h3 { color: var(--creme); }
.section--dark .eyebrow { color: #e7b46d; }
.section--dark .section__lead { color: #dcc8af; }
.section--page { padding-top: 8px; }
.section__header { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section__lead { font-size: 1.06rem; color: var(--texte-doux); margin: 0; }
.section__more { margin: 36px 0 0; text-align: center; }

/* ---------- Bandeaux de titre de page ---------- */
.page-hero { padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 48px); background: linear-gradient(180deg, var(--cire), var(--creme)); }
.page-hero--compact { padding-bottom: 24px; }
.page-hero__title { margin-bottom: .35em; }
.page-hero__lead { font-size: 1.1rem; color: var(--texte-doux); max-width: 720px; margin-bottom: 0; }
.page-hero__lead p:last-child { margin: 0; }
.page-hero__search { margin-top: 26px; }
.page-hero__icon {
	display: inline-flex; width: 64px; height: 64px; margin-bottom: 14px; align-items: center; justify-content: center;
	border-radius: 18px; background: var(--blanc); color: var(--ambre-fonce); box-shadow: var(--ombre);
}

/* ---------- Accueil : hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); background: radial-gradient(1200px 500px at 85% 10%, #f3e1c6 0%, transparent 60%), linear-gradient(180deg, var(--cire), var(--creme)); }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.hero__title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.7rem); line-height: 1.12; margin-bottom: .45em; }
.hero__title em { font-style: italic; color: var(--ambre-fonce); font-weight: 500; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--texte-doux); max-width: 560px; }
.hero__search { margin: 26px 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero__visual { display: flex; justify-content: center; }
.hero__candle { width: min(300px, 70vw); filter: drop-shadow(0 30px 40px rgba(90, 58, 34, .18)); }
.hero__flame { transform-origin: 160px 130px; animation: bougi-flamme 3.2s ease-in-out infinite; }
.hero__halo { animation: bougi-halo 3.2s ease-in-out infinite; transform-origin: 160px 120px; }
@keyframes bougi-flamme { 0%, 100% { transform: rotate(-1.5deg) scaleY(1); } 30% { transform: rotate(1.5deg) scaleY(1.04); } 60% { transform: rotate(-.5deg) scaleY(.97); } }
@keyframes bougi-halo { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
@media (min-width: 860px) {
	.hero__inner { grid-template-columns: 1.25fr .75fr; gap: 48px; }
	.hero__candle { width: 340px; }
}

/* ---------- Familles ---------- */
.familles-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.famille-card a {
	display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px;
	background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-m);
	text-decoration: none; color: var(--texte); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.famille-card a:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); border-color: #dcc7a9; color: var(--texte); }
.famille-card__icon {
	display: inline-flex; width: 52px; height: 52px; margin-bottom: 8px; align-items: center; justify-content: center;
	border-radius: 14px; background: var(--cire); color: var(--ambre-fonce);
}
.famille-card__name { font-family: var(--f-titre); font-size: 1.18rem; font-weight: 600; color: var(--brun); }
.famille-card__text { font-size: .9rem; color: var(--texte-doux); line-height: 1.55; }
.famille-card--glossaire a { background: var(--brun); border-color: var(--brun); }
.famille-card--glossaire .famille-card__icon { background: rgba(255, 255, 255, .1); color: #e7b46d; }
.famille-card--glossaire .famille-card__name { color: var(--creme); }
.famille-card--glossaire .famille-card__text { color: #dcc8af; }

/* Teintes par famille (icônes et illustrations) */
[data-famille="types"] { --teinte: #f3e3cf; --teinte-fonce: #83541e; }
[data-famille="cires"] { --teinte: #f6ead2; --teinte-fonce: #81611a; }
[data-famille="meches"] { --teinte: #efe1d6; --teinte-fonce: #7d4a2e; }
[data-famille="contenants"] { --teinte: #e5ebe6; --teinte-fonce: #47695a; }
[data-famille="senteurs"] { --teinte: #f2e1e3; --teinte-fonce: #8e4c5b; }
[data-famille="ambiances"] { --teinte: #e6e4ef; --teinte-fonce: #5b5788; }
[data-famille="bien-utiliser"] { --teinte: #e3ece9; --teinte-fonce: #3f6c63; }
.famille-card[data-famille] .famille-card__icon, .famille-section[data-famille] .famille-section__icon,
.page-hero[data-famille] .page-hero__icon { background: var(--teinte, var(--cire)); color: var(--teinte-fonce, var(--ambre-fonce)); }

/* ---------- Cartes ---------- */
.cards-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { height: 100%; }
.card__link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-m);
	text-decoration: none; color: var(--texte); transition: transform .2s, box-shadow .2s;
}
.card__link:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); color: var(--texte); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cire); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__media--illustration { display: flex; align-items: center; justify-content: center; color: var(--teinte-fonce, var(--ambre)); background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .7), transparent 60%), var(--teinte, var(--cire)); }
.card__media--illustration svg { width: 56px; height: 56px; opacity: .85; }
.card__media--post { background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .6), transparent 60%), #f1e4d2; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__eyebrow { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--ambre-fonce); margin: 0 0 8px; }
.card__title { font-size: 1.18rem; margin: 0 0 8px; }
.card__excerpt { font-size: .92rem; color: var(--texte-doux); line-height: 1.6; margin: 0 0 16px; }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--brun); }
.card__link:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform .2s; }

/* ---------- E-books ---------- */
.bougi-ebooks-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 1.5em 0; }
.bougi-ebooks-grid--home { margin: 0; }
.ebook-card { display: flex; flex-direction: column; min-width: 0; }
.ebook-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.ebook-card__cover {
	width: 100%; aspect-ratio: 300 / 425; margin-bottom: 14px; overflow: hidden; border-radius: 6px;
	background: var(--cire); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 14px 30px rgba(40, 24, 12, .22);
	transition: transform .25s, box-shadow .25s;
}
.ebook-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.ebook-card__link:hover .ebook-card__cover { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 4px 8px rgba(0, 0, 0, .14), 0 22px 40px rgba(40, 24, 12, .28); }
.ebook-card__title { font-size: 1.08rem; margin: 0 0 6px; }
.ebook-card__excerpt { font-size: .88rem; line-height: 1.55; opacity: .85; margin: 0 0 10px; }
.ebook-card__meta { margin: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ebook-card__price { font-weight: 700; font-size: 1.05rem; }
.ebook-card__cta { font-size: .85rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.ebook-card__soon { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; background: rgba(201, 138, 61, .18); color: var(--ambre-fonce); }
.ebook-card--soon .ebook-card__cover { filter: saturate(.85); }
.section--dark .ebook-card__cover { outline: 1px solid rgba(255, 255, 255, .12); }
.section--dark .ebook-card__title { color: var(--creme); }
.section--dark .ebook-card__price { color: #f1c98e; }
.section--dark .ebook-card__soon { background: rgba(241, 201, 142, .16); color: #f1c98e; }
.section--dark .ebook-card__link:hover { color: var(--blanc); }

.ebook-promo {
	display: grid; gap: 22px; align-items: center; margin: 40px 0; padding: 26px;
	border-radius: var(--r-l); background: linear-gradient(135deg, var(--brun), #6e4a2d); color: #ecdcc6;
}
.ebook-promo .eyebrow { color: #e7b46d; }
.ebook-promo__cover { display: block; width: 130px; border-radius: 5px; overflow: hidden; box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transform: rotate(-2deg); }
.ebook-promo__title { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 600; color: var(--creme); line-height: 1.25; margin: 0 0 .4em; }
.ebook-promo__body p:not(.eyebrow):not(.ebook-promo__title) { font-size: .95rem; }
.ebook-promo__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0; }
.ebook-promo__price { font-size: 1.2rem; font-weight: 700; color: #f1c98e; }
.ebook-promo .bougi-button { background: var(--ambre); border-color: var(--ambre); color: var(--brun-fonce); }
.ebook-promo .bougi-button:hover { background: #e0a456; border-color: #e0a456; }
@media (min-width: 640px) { .ebook-promo { grid-template-columns: auto 1fr; padding: 30px 34px; } .ebook-promo--generic { grid-template-columns: 1fr; } }
.famille-ebook { margin-top: 24px; }

/* ---------- Bloc « À propos » de l'accueil ---------- */
.section--about { background: var(--creme); border-top: 1px solid var(--bordure); }
.about-band { display: grid; gap: 18px; }
.about-band p { font-size: 1.05rem; color: var(--texte-doux); }
@media (min-width: 860px) { .about-band { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; } }

/* ---------- Univers : rubrique et familles ---------- */
.page-hero--univers { background: radial-gradient(900px 380px at 90% 0%, #f1dcbd 0%, transparent 60%), linear-gradient(180deg, var(--cire), var(--creme)); }
.famille-section { padding: clamp(36px, 5vw, 56px) 0; }
.famille-section + .famille-section { border-top: 1px solid var(--bordure); }
.famille-section__header { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; margin-bottom: 26px; }
.famille-section__header .section__title { margin-bottom: .2em; }
.famille-section__header .section__title a { color: inherit; text-decoration: none; }
.famille-section__header .section__title a:hover { color: var(--ambre-fonce); }
.famille-section__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; background: var(--cire); color: var(--ambre-fonce); }
.famille-section__all { grid-column: 2; justify-self: start; font-size: .92rem; }
@media (min-width: 760px) { .famille-section__header { grid-template-columns: auto 1fr auto; align-items: center; } .famille-section__all { grid-column: 3; } }
.glossaire-band { display: grid; gap: 18px; grid-template-columns: auto 1fr; align-items: center; }
.glossaire-band p { margin: 0; color: var(--texte-doux); }
.glossaire-band .bougi-button { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .glossaire-band { grid-template-columns: auto 1fr auto; } .glossaire-band .bougi-button { grid-column: auto; } }

.familles-nav { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--bordure); }
.familles-nav__title { font-weight: 500; color: var(--texte-doux); margin-bottom: 12px; }
.familles-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.familles-nav a, .chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
	border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc);
	font-size: .9rem; color: var(--texte); text-decoration: none; transition: border-color .2s, background .2s;
}
.familles-nav a:hover, .chip:hover { border-color: var(--ambre); color: var(--brun); }
.familles-nav a svg { color: var(--ambre-fonce); }
.chips { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip.is-active { background: var(--brun); border-color: var(--brun); color: var(--creme); }

/* ---------- Fiche et article ---------- */
.fiche__header, .article__header { padding: clamp(28px, 5vw, 56px) 0 clamp(22px, 4vw, 36px); background: linear-gradient(180deg, var(--cire), var(--creme)); }
.fiche__famille {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 14px 5px 10px;
	border-radius: 999px; background: var(--teinte, var(--blanc)); color: var(--teinte-fonce, var(--ambre-fonce));
	font-size: .82rem; font-weight: 500; text-decoration: none;
}
.article__header .fiche__famille { padding-left: 14px; background: var(--blanc); }
.fiche__famille:hover { color: var(--brun); }
.fiche__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); margin-bottom: .35em; }
.fiche__chapo { font-family: var(--f-titre); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--texte); margin-bottom: 16px; }
.fiche__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-size: .85rem; color: var(--texte-doux); }
.fiche__meta span { display: inline-flex; align-items: center; gap: 6px; }
.fiche__image { margin: 0 auto 8px; max-width: 1080px; }
.fiche__image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 62%; border-radius: var(--r-l); box-shadow: var(--ombre); }
.page-article .fiche__image { margin-bottom: 0; }

/* Bandeau de famille avec illustration */
.page-hero__grid { display: grid; gap: 28px; align-items: center; }
.page-hero__figure { margin: 0; }
.page-hero__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--ombre-forte); }
@media (min-width: 960px) { .page-hero--image .page-hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* Schémas dans le texte */
.entry-content .bougi-schema { margin: 2em 0; }
.entry-content .bougi-schema img { width: 100%; border-radius: var(--r-m); border: 1px solid var(--bordure); }

.fiche__layout { display: grid; gap: 28px; padding-top: 28px; padding-bottom: var(--espace-section); }
.fiche__content { min-width: 0; max-width: var(--largeur-texte); }
@media (min-width: 1000px) {
	.fiche__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
	.fiche__aside { order: 2; position: sticky; top: 96px; }
	.fiche__content { order: 1; }
}

.en-bref { padding: 22px 24px; margin-bottom: 20px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); border-top: 4px solid var(--ambre); }
.en-bref__title { font-family: var(--f-texte); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--ambre-fonce); margin-bottom: 12px; }
.en-bref dl { margin: 0; }
.en-bref__row { padding: 9px 0; font-size: .9rem; line-height: 1.5; }
.en-bref__row + .en-bref__row { border-top: 1px dashed var(--bordure); }
.en-bref dt { font-weight: 600; color: var(--brun); }
.en-bref dd { margin: 0; color: var(--texte-doux); }

.toc { padding: 18px 22px; border-radius: var(--r-m); background: var(--cire); font-size: .9rem; }
.toc__title { font-weight: 600; color: var(--brun); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.toc a { color: var(--texte); text-decoration: none; }
.toc a:hover { color: var(--ambre-fonce); text-decoration: underline; }
@media (max-width: 999px) { .toc { display: none; } }

/* Contenu rédactionnel */
.entry-content { font-size: 1.05rem; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { margin-top: 1.8em; margin-bottom: .55em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: .45em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--ambre); }
.entry-content strong { color: var(--brun); font-weight: 600; }
.entry-content blockquote, .entry-content .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ambre);
	font-family: var(--f-titre); font-style: italic; font-size: 1.15rem; color: var(--brun);
}
.entry-content img { border-radius: var(--r-m); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: .85rem; color: var(--texte-doux); text-align: center; margin-top: 8px; }
.bougi-tip, .entry-content .bougi-tip {
	position: relative; padding: 18px 22px 18px 56px; border-radius: var(--r-m);
	background: #fbf0dd; border: 1px solid #f0dbb6; color: var(--texte); font-size: .98rem;
}
.bougi-tip::before {
	content: ""; position: absolute; left: 20px; top: 20px; width: 22px; height: 22px;
	background: var(--ambre); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1.8 2.7 4.5 5 4.5 8.7A4.5 4.5 0 0 1 7.5 10.7c0-2 1-3.5 2-4.6.3 1.5 1.2 2.6 2.2 2.9.2-2.6-.6-4.6.3-7z'/%3E%3Cpath d='M9 15h6v6a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c1.8 2.7 4.5 5 4.5 8.7A4.5 4.5 0 0 1 7.5 10.7c0-2 1-3.5 2-4.6.3 1.5 1.2 2.6 2.2 2.9.2-2.6-.6-4.6.3-7z'/%3E%3Cpath d='M9 15h6v6a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Tableaux */
.entry-content table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--blanc); }
.wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-m); border: 1px solid var(--bordure); }
.entry-content th, .entry-content td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--bordure); }
.entry-content thead th, .entry-content tr:first-child th { background: var(--cire); color: var(--brun); font-weight: 600; }
.entry-content tbody tr:last-child td { border-bottom: 0; }
.wp-block-table td, .wp-block-table th { border-left: 0; border-right: 0; }
.wp-block-table table { margin: 0; }
@media (max-width: 600px) { .wp-block-table table { min-width: 520px; } }

/* FAQ */
.faq { margin-top: 2.4em; }
.faq__item { border: 1px solid var(--bordure); border-radius: var(--r-m); background: var(--blanc); margin-bottom: 10px; }
.faq__item summary {
	position: relative; padding: 16px 52px 16px 20px; cursor: pointer; list-style: none;
	font-weight: 500; color: var(--brun); line-height: 1.45;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
	border-right: 2px solid var(--ambre); border-bottom: 2px solid var(--ambre); transform: rotate(45deg); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item p { padding: 0 20px 18px; margin: 0; color: var(--texte-doux); font-size: .98rem; }

.produits-lies__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.produits-lies__list a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--texte); }
.produits-lies__list img { border-radius: var(--r-s); }
.produits-lies__name { font-weight: 500; }
.produits-lies__price { color: var(--ambre-fonce); font-weight: 600; }

.fiche__footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--bordure); font-size: .88rem; color: var(--texte-doux); }
.fiche__footer p { margin: 0 0 .4em; }
.article > .container--text { padding-bottom: var(--espace-section); }
.article .fiche__image { margin-top: 0; }
.article .entry-content { padding-top: 28px; }
.article__tags { font-size: .88rem; color: var(--texte-doux); }

/* ---------- Recherche ---------- */
.search-results { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--bordure); }
.search-result:first-child { padding-top: 0; }
.search-result__title { font-size: 1.3rem; margin-bottom: .3em; }
.search-result__title a { color: var(--brun); text-decoration: none; }
.search-result__title a:hover { color: var(--ambre-fonce); text-decoration: underline; }
.search-result p:last-child { margin: 0; color: var(--texte-doux); font-size: .95rem; }
.empty-state p { margin-bottom: 1em; }
.empty-state .bougi-button { margin: 0 8px 8px 0; }

/* ---------- 404 ---------- */
.section--404 { text-align: center; background: linear-gradient(180deg, var(--cire), var(--creme)); min-height: 60vh; }
.error-404__icon { display: inline-flex; color: var(--ambre); margin-bottom: 12px; opacity: .55; }
.error-404 .page-hero__lead { margin: 0 auto 28px; }
.error-404 .search-form { margin: 0 auto 26px; }
.error-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Glossaire ---------- */
.glossaire-nav {
	position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; margin-bottom: 18px;
	background: var(--creme); border-bottom: 1px solid var(--bordure);
}
.admin-bar .glossaire-nav { top: 108px; }
.glossaire-nav a {
	display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center;
	border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--brun); text-decoration: none; background: var(--cire);
}
.glossaire-nav a:hover { background: var(--brun); color: var(--creme); }
.glossaire { margin: 0; }
.glossaire__lettre { font-family: var(--f-titre); font-size: 2rem; font-weight: 600; color: var(--ambre); margin: 1.2em 0 .3em; scroll-margin-top: 140px; }
.glossaire dt { font-weight: 600; color: var(--brun); margin-top: 1em; scroll-margin-top: 140px; }
.glossaire dd { margin: .2em 0 0; padding-bottom: 1em; border-bottom: 1px solid var(--bordure); color: var(--texte); }

/* ---------- Formulaires ---------- */
.bougi-form { display: grid; gap: 4px; max-width: 620px; }
.bougi-form label { display: block; font-weight: 500; font-size: .92rem; color: var(--brun); margin-bottom: 6px; }
.bougi-form input[type="text"], .bougi-form input[type="email"], .bougi-form select, .bougi-form textarea,
.woocommerce form .input-text, .woocommerce form select {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--bordure); border-radius: var(--r-s);
	background: var(--blanc); font: inherit; font-size: 1rem; color: var(--texte);
}
.bougi-form textarea { min-height: 160px; resize: vertical; }
.bougi-form input:focus, .bougi-form select:focus, .bougi-form textarea:focus,
.woocommerce form .input-text:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 3px rgba(201, 138, 61, .22); }
.bougi-form__consent label { position: relative; display: block; padding-left: 28px; font-weight: 400; font-size: .88rem; color: var(--texte-doux); }
.bougi-form__consent input { position: absolute; left: 0; top: 4px; margin: 0; accent-color: var(--brun); }
.bougi-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bougi-form button, .bougi-form [type="submit"] { justify-self: start; }
.bougi-notice { padding: 14px 18px; border-radius: var(--r-s); margin-bottom: 20px; font-size: .95rem; }
.bougi-notice--ok { background: #e6f2e7; color: var(--ok); border: 1px solid #c4e0c7; }
.bougi-notice--error { background: #f9e6e4; color: var(--erreur); border: 1px solid #efc7c2; }
.bougi-preview-notice { padding: 12px 16px; margin-bottom: 20px; border-radius: var(--r-s); background: #fff3d6; border: 1px dashed var(--ambre); font-size: .9rem; }

/* ---------- Newsletter ---------- */
.newsletter { padding: clamp(44px, 6vw, 72px) 0; background: var(--cire); border-top: 1px solid var(--bordure); }
.newsletter__inner { display: grid; gap: 24px; align-items: center; }
.newsletter__title { margin-bottom: .3em; }
.newsletter__text p:last-child { margin: 0; color: var(--texte-doux); }
.bougi-newsletter-embed iframe { width: 100%; border: 0; }
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--brun-fonce); color: #d6c2a8; padding: 56px 0 0; font-size: .92rem; }
.site-footer a { color: #ecdcc6; text-decoration: none; }
.site-footer a:hover { color: var(--blanc); text-decoration: underline; }
.site-footer__inner { display: grid; gap: 36px; padding-bottom: 40px; }
.site-footer__brand p { margin: 14px 0 18px; max-width: 380px; line-height: 1.65; }
.site-footer__title { font-family: var(--f-texte); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #e7b46d; margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #b49d82; }
.site-footer__bottom p { margin: 0; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social-links a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.social-links a:hover { background: var(--ambre); color: var(--brun-fonce); }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }

/* ---------- Pagination ---------- */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; padding: 0 14px; align-items: center; justify-content: center;
	border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--texte); text-decoration: none; font-size: .92rem;
}
.pagination .page-numbers.current { background: var(--brun); border-color: var(--brun); color: var(--creme); }
.pagination a.page-numbers:hover { border-color: var(--ambre); }

/* ---------- Blocs WordPress courants ---------- */
.alignwide { max-width: var(--largeur); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image { margin-left: 0; margin-right: 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--bordure); }
.has-text-align-center { text-align: center; }

/* Les listes qui suivent un bandeau de titre n'ont pas besoin d'un grand espace au-dessus. */
.page-hero + .section { padding-top: clamp(24px, 4vw, 40px); }

/* ---------- Marques à l'honneur ---------- */
.marque-semaine { background: var(--creme); }
.marque-vedette { display: grid; gap: 28px; align-items: center; padding: clamp(18px, 3vw, 28px); border-radius: var(--r-l); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.marque-vedette__media { display: block; overflow: hidden; border-radius: var(--r-m); }
.marque-vedette__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.marque-vedette__media:hover img { transform: scale(1.02); }
.marque-vedette__nom { display: flex; align-items: center; gap: 14px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); margin-bottom: .2em; }
.marque-vedette__nom a { color: inherit; text-decoration: none; }
.marque-vedette__logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--blanc); border: 1px solid var(--bordure); padding: 4px; }
.marque-vedette__meta { color: var(--ambre-fonce); font-weight: 500; font-size: .95rem; }
.marque-vedette__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0 0; }
@media (min-width: 860px) { .marque-vedette { grid-template-columns: 1.1fr 1fr; gap: 44px; } }
.marque-label { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #f1e6d6; color: var(--brun); font-size: .78rem; font-weight: 500; letter-spacing: .02em; margin: 0 0 12px; }
.marque-label--coeur { background: #fbe3e5; color: #94505f; }
.marque-label--card { position: absolute; top: 12px; left: 12px; margin: 0; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.card--marque .card__media { position: relative; }
.marque-appel { display: grid; gap: 18px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-l); background: linear-gradient(135deg, var(--cire), #f1e2cc); border: 1px solid var(--bordure); }
.marque-appel p { color: var(--texte-doux); margin: 0; }
.marque-appel .section__title { margin-bottom: .3em; }
.marque-appel .bougi-button { justify-self: start; }
@media (min-width: 760px) { .marque-appel { grid-template-columns: 1fr auto; gap: 40px; } }
.marque-appel--encadre { margin-top: 48px; }
.marque__nom { display: flex; align-items: center; gap: 16px; }
.marque__liens { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.marque__mention { margin-top: 32px; padding: 16px 18px; border-radius: var(--r-m); background: var(--cire); font-size: .88rem; color: var(--texte-doux); }

/* Formules et formulaire de candidature */
.formules { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 2em 0 2.5em; }
.formule { position: relative; display: flex; flex-direction: column; padding: 24px 18px; border-radius: var(--r-l); background: var(--blanc); border: 1px solid var(--bordure); }
.formule--vedette { border: 2px solid var(--ambre); box-shadow: var(--ombre-forte); }
.formule__badge { position: absolute; top: -13px; left: 24px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--ambre); color: var(--brun-fonce); font-size: .75rem; font-weight: 600; }
.entry-content .formule__nom { font-size: 1.2rem; margin: 0 0 6px; }
.formule__prix { font-family: var(--f-titre); font-size: 1.7rem; font-weight: 600; color: var(--brun); margin: 0; }
.formule__duree { color: var(--ambre-fonce); font-weight: 500; font-size: .9rem; margin: 0 0 12px; }
.formule__liste { margin: 0; padding-left: 1.1em; font-size: .86rem; color: var(--texte-doux); }
.bougi-form--marque { max-width: 720px; }
.bougi-form--marque fieldset { border: 1px solid var(--bordure); border-radius: var(--r-m); padding: 18px 20px 6px; margin: 0 0 18px; background: var(--blanc); }
.bougi-form--marque legend { padding: 0 8px; font-family: var(--f-titre); font-weight: 600; color: var(--brun); font-size: 1.1rem; }
.bougi-form--marque input[type="url"], .bougi-form--marque input[type="tel"], .bougi-form--marque input[type="file"] { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--bordure); border-radius: var(--r-s); background: var(--blanc); font: inherit; font-size: 1rem; }
.bougi-form--marque input[type="file"] { padding: 9px; }
.bougi-field__aide { display: block; margin-top: 6px; font-size: .82rem; color: var(--texte-doux); }

/* Auteur et badge des marques */
.auteur { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 0; padding: 20px 22px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); }
.auteur__icone { display: inline-flex; flex: 0 0 auto; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cire); color: var(--ambre-fonce); }
.auteur__nom { margin: 0 0 4px; color: var(--brun); }
.auteur__bio { margin: 0 0 8px; font-size: .92rem; color: var(--texte-doux); }
.marque-badge { margin-top: 28px; padding: 14px 18px; border-radius: var(--r-m); border: 1px dashed var(--bordure); font-size: .92rem; }
.marque-badge summary { cursor: pointer; font-weight: 500; color: var(--brun); }
.marque-badge__code { width: 100%; margin: 8px 0; padding: 10px; border: 1px solid var(--bordure); border-radius: var(--r-s); font: 12px/1.5 ui-monospace, monospace; background: var(--creme); }

/* ---------- Calculateurs ---------- */
.outil { margin: 1.5em 0 2em; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-l); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.entry-content .outil > * { margin-bottom: 0; }
.outil__titre { font-family: var(--f-titre); font-size: 1.35rem; font-weight: 600; color: var(--brun); margin: 0 0 16px !important; }
.outil__grille { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.outil__grille p { margin: 0 0 14px; }
.outil label { display: block; font-weight: 500; font-size: .92rem; color: var(--brun); margin-bottom: 6px; }
.outil input[type="text"], .outil input[type="number"], .outil select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--bordure); border-radius: var(--r-s); background: var(--creme); font: inherit; color: var(--texte); }
.outil input:focus, .outil select:focus { outline: none; border-color: var(--ambre); box-shadow: 0 0 0 3px rgba(201, 138, 61, .22); }
.outil input[type="range"] { width: 100%; accent-color: var(--brun); }
.outil__unite { display: flex; align-items: center; gap: 8px; }
.outil__unite span { flex: 0 0 auto; font-size: .85rem; color: var(--texte-doux); }
.outil__options { margin: 4px 0 16px; padding: 12px 16px; border-radius: var(--r-m); background: var(--cire); }
.outil__options summary { cursor: pointer; font-weight: 500; color: var(--brun); font-size: .92rem; }
.outil__options .outil__grille { margin-top: 12px; }
.outil__resultat { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); padding: 18px; border-radius: var(--r-m); background: linear-gradient(135deg, var(--brun), #6e4a2d); color: #ecdcc6; }
.outil__chiffre span { display: block; font-family: var(--f-titre); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); font-weight: 600; color: var(--creme); line-height: 1.15; }
.outil__chiffre small { display: block; font-size: .8rem; line-height: 1.4; margin-top: 4px; }
.outil__chiffre--total span, .outil__chiffre--cout span { color: #f1c98e; }
.outil__alerte, .outil__texte { grid-column: 1 / -1; margin: 0; font-size: .9rem; }
.outil__alerte { padding: 10px 12px; border-radius: var(--r-s); background: rgba(255, 243, 214, .14); color: #ffe7b8; }
.outil__jauge { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.outil__jauge span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #f1c98e, var(--ambre)); transition: width .3s; }
.outil__test { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-m); background: var(--cire); font-size: .92rem; }
.outil__test ul { margin: 8px 0 0; }
.outil__note { margin-top: 14px !important; font-size: .82rem; color: var(--texte-doux); }
.outils-liste { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 1.5em 0; }
.outils-liste__item { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); text-decoration: none; color: var(--texte); transition: transform .2s, box-shadow .2s; }
.outils-liste__item:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); color: var(--texte); }
.outils-liste__icone { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: var(--teinte, var(--cire)); color: var(--teinte-fonce, var(--ambre-fonce)); margin-bottom: 6px; }
.outils-liste__nom { font-family: var(--f-titre); font-weight: 600; font-size: 1.15rem; color: var(--brun); }
.outils-liste__texte { font-size: .9rem; color: var(--texte-doux); }

/* ---------- Annuaire des marques ---------- */
.annuaire-filtres { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.annuaire-filtres select { min-height: 48px; padding: 0 14px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); font: inherit; color: var(--texte); min-width: 220px; }
.annuaire-compte { color: var(--texte-doux); font-size: .92rem; margin-bottom: 16px; }
.annuaire-grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.annuaire-carte__lien { display: flex; gap: 16px; align-items: center; height: 100%; padding: 16px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); text-decoration: none; color: var(--texte); transition: transform .2s, box-shadow .2s; }
.annuaire-carte__lien:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); color: var(--texte); }
.annuaire-carte__visuel { flex: 0 0 auto; display: inline-flex; width: 72px; height: 72px; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; background: var(--cire); }
.annuaire-carte__visuel img { width: 100%; height: 100%; object-fit: cover; }
.annuaire-carte__visuel--grand { width: 96px; height: 96px; border-radius: 20px; box-shadow: var(--ombre); }
.annuaire-carte__initiale { font-family: var(--f-titre); font-size: 2rem; font-weight: 600; color: var(--ambre-fonce); }
.annuaire-carte__corps { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.annuaire-carte__nom { font-family: var(--f-titre); font-weight: 600; font-size: 1.12rem; color: var(--brun); }
.annuaire-carte__lieu { font-size: .85rem; color: var(--texte-doux); }
.annuaire-carte__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--cire); color: var(--brun); font-size: .74rem; }
.annuaire-regions { margin-top: 40px; }
.annuaire-fiche__entete { display: flex; gap: 20px; align-items: center; }
.annuaire-fiche__entete .page-hero__title { margin-bottom: .1em; }
.annuaire-fiche__lieu { color: var(--texte-doux); margin: 0; }
.annuaire-fiche__titre { font-size: 1.25rem; margin: 1.6em 0 .6em; }
.ba-choix { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 14px; }
.ba-choix__item { display: flex !important; gap: 8px; align-items: center; font-weight: 400 !important; color: var(--texte) !important; }
.ba-choix__item input { accent-color: var(--brun); }
.ba-choix__titre { font-weight: 500; color: var(--brun); font-size: .92rem; margin: 6px 0 8px; }

/* ---------- Testé par BOUGI ---------- */
.card--test .card__media { position: relative; }
.note-pastille { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: baseline; gap: 1px; padding: 8px 12px; border-radius: 999px; background: var(--brun); color: #fff; font-family: var(--f-titre); font-weight: 600; font-size: 1.15rem; box-shadow: var(--ombre); }
.note-pastille small { font-size: .7rem; opacity: .8; font-family: var(--f-texte); }
.test-mini { font-size: .84rem; color: var(--texte-doux); margin: -6px 0 14px; }
.tests-liens { margin-top: 18px; }
.test-meta { color: var(--texte-doux); font-size: .92rem; margin: 0; }
.test-resume { display: flex; gap: 28px; align-items: center; margin: 32px 0 28px; padding: 24px 28px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre); }
.test-note { flex: 0 0 auto; display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff6e8, var(--cire)); border: 3px solid var(--ambre); text-align: center; grid-template-rows: auto auto; align-content: center; }
.test-note__valeur { font-family: var(--f-titre); font-size: 2.6rem; font-weight: 600; color: var(--brun); line-height: 1; }
.test-note__sur { font-size: .9rem; color: var(--texte-doux); margin-left: 2px; }
.test-note__chiffre { display: flex; align-items: baseline; }
.test-note__label { grid-column: 1 / -1; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ambre-fonce); margin-top: 6px; }
.test-verdict { font-family: var(--f-titre); font-size: 1.25rem; color: var(--brun); margin: 0 0 12px; line-height: 1.4; }
.test-chiffres { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--texte-doux); }
.test-chiffres strong { color: var(--texte); }
.test-photo { margin: 0 0 28px; border-radius: var(--r-m); overflow: hidden; }
.test-photo img { width: 100%; height: auto; display: block; }
.test-titre { font-size: 1.3rem; margin: 1.8em 0 .8em; }
.test-barres { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.test-barres li { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 52px; gap: 14px; align-items: center; }
.test-barres__nom { font-size: .95rem; }
.test-barres__nom small { color: var(--texte-doux); font-size: .75rem; }
.test-barres__jauge { height: 10px; border-radius: 999px; background: var(--cire); overflow: hidden; }
.test-barres__jauge span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ambre), var(--brun)); }
.test-barres__val { font-weight: 600; text-align: right; font-size: .92rem; }
.test-pm { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; }
.test-pm__col { padding: 4px 22px 14px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); }
.test-pm__col ul { padding-left: 1.1em; margin: 0; }
.test-pm__col li { margin-bottom: 6px; }
.test-pm__col--plus { border-top: 4px solid #5d7a4a; }
.test-pm__col--moins { border-top: 4px solid #a2533a; }
.test-pm .test-titre { margin-top: 1em; font-size: 1.1rem; }
.test-fiche { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 24px; }
.test-fiche th, .test-fiche td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.test-fiche th { width: 40%; font-weight: 500; color: var(--texte-doux); }
.annuaire-tests { list-style: none; padding: 0; margin: 0; }
.annuaire-tests li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--bordure); }
.annuaire-tests__note { font-weight: 600; color: var(--brun); white-space: nowrap; }
@media (max-width: 600px) {
	.test-resume { flex-direction: column; align-items: flex-start; padding: 20px; }
	.test-barres li { grid-template-columns: 1fr 52px; }
	.test-barres__jauge { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- E-book offert ---------- */
.offert { display: grid; gap: 28px; align-items: start; margin: 28px 0 36px; padding: 28px; border-radius: var(--r-m); background: var(--blanc); border: 1px solid var(--bordure); box-shadow: var(--ombre); }
@media (min-width: 700px) { .offert:not(.offert--compact) { grid-template-columns: 200px 1fr; } }
.offert__couverture img { width: 100%; max-width: 200px; height: auto; border-radius: 6px; box-shadow: 0 14px 30px rgba(60, 35, 20, .22); display: block; }
.offert__titre { font-family: var(--f-titre); font-size: 1.4rem; font-weight: 600; color: var(--brun); margin: 0 0 4px; }
.offert__meta { color: var(--ambre-fonce); font-size: .9rem; margin: 0 0 16px; }
.offert__champs { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .offert:not(.offert--compact) .offert__champs { grid-template-columns: 1fr 1fr; } }
.offert__mention { font-size: .8rem; color: var(--texte-doux); margin: 6px 0 0; line-height: 1.5; }
.offert--compact { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.offert--compact .offert__form button { width: 100%; }
.ebook-card__price--offert { color: #4f7a3a; }
.section--dark .ebook-card__price--offert { color: #b9dca1; }

/* Questions fréquentes et compléments */
.entry-content h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.7em 0 .55em; color: var(--brun); }
.entry-content h2 + h3 { margin-top: .9em; }
.bougi-complement { margin-top: 2.4em; }
mark.legal-manquant { background: #fff3a8; padding: 0 .2em; border-radius: 3px; }

/* ---------- Accueil 1.8 : besoins, outils, problèmes, marques ---------- */
.section--tight { padding: clamp(36px, 6vw, 72px) 0; }
.section__title--small { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-bottom: 18px; }
.hero--photo .hero__visual { justify-content: flex-end; }
.hero__photo { width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); box-shadow: var(--ombre-forte); }

.besoins { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.besoin a { display: flex; flex-direction: column; height: 100%; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: var(--texte); transition: transform .2s, box-shadow .2s; }
.besoin a:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); color: var(--texte); }
.besoin__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--teinte, var(--cire)); color: var(--teinte-fonce, var(--ambre-fonce)); }
.besoin__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.besoin__nom { font-family: var(--f-titre); font-size: 1.15rem; font-weight: 600; color: var(--brun); padding: 14px 16px 2px; }
.besoin__texte { font-size: .9rem; color: var(--texte-doux); line-height: 1.5; padding: 0 16px 16px; }

.probleme-band { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .probleme-band { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.pastilles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pastille { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--texte); text-decoration: none; font-size: .95rem; line-height: 1.3; transition: border-color .2s, background .2s; }
.pastille:hover, .pastille:focus-visible { border-color: var(--ambre); background: var(--cire); color: var(--brun); }
.pastille--plein { background: var(--brun); border-color: var(--brun); color: var(--creme); }
.pastille--plein:hover { background: var(--brun-fonce); color: var(--blanc); }

.familles-grid--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.familles-grid--compact .famille-card a { padding: 16px 18px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
.familles-grid--compact .famille-card__icon { width: 42px; height: 42px; margin: 0; border-radius: 12px; }
.familles-grid--compact .famille-card__name { font-size: 1.05rem; flex: 1; }
.familles-grid--compact .famille-card__text { flex-basis: 100%; font-size: .86rem; }

.about-band__liens { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Défilement horizontal sur mobile (tuiles, outils) */
@media (max-width: 759px) {
	.defile-mobile, .defile-mobile-conteneur .outils-liste, .annuaire-grille--accueil {
		display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none;
		overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: calc(-1 * var(--gouttiere, 16px)); padding: 2px var(--gouttiere, 16px) 10px 2px; scrollbar-width: thin;
	}
	.defile-mobile > *, .defile-mobile-conteneur .outils-liste > *, .annuaire-grille--accueil > * { scroll-snap-align: start; }
}
@media (min-width: 760px) and (max-width: 1023px) { .besoins { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .annuaire-grille--accueil { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Parcours (Choisir, Utiliser, Fabriquer) ---------- */
.parcours-bloc { margin: 2.4em 0; }
.parcours-bloc > h2 { margin-bottom: .7em; }
.parcours-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.parcours-carte a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; background: var(--blanc); border: 1px solid var(--bordure); border-radius: var(--r-m); text-decoration: none; color: var(--texte); transition: border-color .2s, box-shadow .2s; }
.parcours-carte a:hover { border-color: #dcc7a9; box-shadow: var(--ombre); color: var(--texte); }
.parcours-carte__type { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ambre-fonce); font-weight: 500; }
.parcours-carte__titre { font-family: var(--f-titre); font-size: 1.05rem; font-weight: 600; color: var(--brun); line-height: 1.3; }
.parcours-carte__texte { font-size: .88rem; color: var(--texte-doux); line-height: 1.5; }
.parcours-alerte, .parcours-cta { margin: 1.6em 0 2em; padding: 22px 24px; border-radius: var(--r-m); background: var(--cire); border: 1px solid var(--bordure); }
.parcours-alerte p, .parcours-cta p { margin: 0 0 .6em; }
.parcours-alerte p:last-child, .parcours-cta p:last-child { margin-bottom: 0; }
.parcours-alerte__titre, .parcours-cta__titre { font-family: var(--f-titre); font-size: 1.25rem; font-weight: 600; color: var(--brun); }
.parcours .outils-liste { margin: 0; }

/* ---------- Diagnostic ---------- */
.diag { margin: 1.5em 0; }
.diag__q { font-family: var(--f-titre); font-size: 1.2rem; font-weight: 600; color: var(--brun); margin: 0 0 .7em; }
.diag__q--2 { font-size: 1.05rem; margin-top: .4em; }
.diag__choix { list-style: none; margin: 0 0 1.6em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.diag__pastille { display: inline-block; padding: 10px 16px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); color: var(--texte); text-decoration: none; line-height: 1.3; }
.diag__pastille:hover, .diag__pastille:focus-visible { border-color: var(--ambre); background: var(--cire); color: var(--brun); }
.diag__pastille.is-actif { background: var(--brun); border-color: var(--brun); color: var(--creme); }
.diag-rep { padding: 22px 24px; margin: 0 0 16px; border: 1px solid var(--bordure); border-radius: var(--r-m); background: var(--blanc); scroll-margin-top: 90px; }
.diag-rep:focus { outline: none; }
.diag-rep[hidden] { display: none; }
.entry-content .diag-rep__titre, .diag-rep__titre { margin-top: 0; font-size: 1.35rem; }
.diag-rep__sous { font-weight: 600; color: var(--brun); margin: 1em 0 .3em; }
.diag-rep__liste { margin-top: 0; }
.diag-rep__eviter { padding: 12px 14px; background: var(--cire); border-radius: var(--r-s); }
.diag-rep__liens { margin-top: 0; }
.diag-cas { border: 1px solid var(--bordure); border-radius: var(--r-s); margin: 0 0 10px; background: var(--creme); }
.diag-cas > summary { cursor: pointer; padding: 12px 16px; font-weight: 500; color: var(--brun); }
.diag-cas[open] > summary { border-bottom: 1px solid var(--bordure); }
.diag-cas__corps { padding: 4px 16px 14px; }
.diag__retour { margin: 1em 0 0; font-size: .92rem; }
.diag__securite { font-size: .9rem; color: var(--texte-doux); border-left: 3px solid var(--ambre); padding-left: 12px; }
.diag:not(.diag--js) .diag__retour { display: none; }

/* Liens automatiques vers le glossaire */
a.glossaire-lien { color: inherit; text-decoration: underline dotted var(--ambre); text-underline-offset: 3px; }
a.glossaire-lien:hover { color: var(--ambre-fonce); text-decoration-style: solid; }

/* Recherche par nom dans l'annuaire */
.annuaire-filtres input[type="search"] { min-height: 48px; padding: 0 18px; border: 1px solid var(--bordure); border-radius: 999px; background: var(--blanc); font: inherit; color: var(--texte); min-width: min(100%, 220px); }

/* ---------- E-books : bouton Acheter ---------- */
.ebook-card__meta--achat { margin-top: 12px; }
.ebook-card__link + .ebook-card__meta--achat { margin-top: 10px; }
.ebook-card__acheter { padding: 9px 20px; font-size: .92rem; }
.section--dark .ebook-card__acheter { background: var(--ambre); border-color: var(--ambre); color: var(--brun-fonce); }
.section--dark .ebook-card__acheter:hover { background: #e0a456; border-color: #e0a456; color: var(--brun-fonce); }
@media (min-width: 1024px) { .bougi-ebooks-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 759px) { .bougi-ebooks-grid--home.defile-mobile { grid-auto-columns: 62%; } }
