/*
 * Pied de page (maquette Claude Design 2026) + rappel réduit du code promo (panier, validation).
 * Les bandeaux CTA de bas de page sont dans assets/css/cta.css.
 * Balisage : template-parts/footer-tbx.php
 */

.tbf-promo,
.tbf {
	--tbf-pad: max(clamp(20px, 5.5vw, 80px), calc((100% - 1280px) / 2));
	font-family: var(--tbx-font);
	-webkit-font-smoothing: antialiased;
}

.tbf-promo *,
.tbf * {
	box-sizing: border-box;
}

/* ---------- Code promo cliquable (rappel réduit au panier et à la validation de commande) ---------- */
/* ---------- Bandeau « Prêts à passer à l'action ? » ---------- */

.tbf-promo {
	padding: 64px var(--tbf-pad);
	background: #fff;
}

.tbf-promo__code {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 10px 10px 10px 20px;
	border-radius: 18px;
	background: var(--tbx-navy);
	color: #fff;
}

.tbf-promo__code-label {
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: .1em;
}

.tbf-promo .tbf-promo__code-value,
.tbf-promo .tbf-promo__code-hint {
	margin: 0;
	border-radius: 10px;
	background: none;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	text-transform: none;
}

.tbf-promo .tbf-promo__code-value {
	padding: 6px 14px;
	border: 2px dashed rgba(255, 255, 255, .55);
	font-family: ui-monospace, Menlo, monospace;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .2em;
	line-height: 1.2;
}

.tbf-promo .tbf-promo__code-hint {
	padding: 0 8px 0 0;
	border: 0;
	color: #ffd9c4;
	font-family: var(--tbx-font);
	font-size: 13px;
	font-weight: 600;
}

.tbf-promo .tbf-promo__code-value:hover,
.tbf-promo .tbf-promo__code-value:focus,
.tbf-promo .tbf-promo__code-hint:hover,
.tbf-promo .tbf-promo__code-hint:focus {
	background: rgba(255, 255, 255, .08);
	color: #fff;
}

/* ---------- Pied de page ---------- */

.tbf {
	display: flex;
	flex-direction: column;
	gap: 56px;
	padding: 80px var(--tbf-pad) 56px;
	background: var(--tbx-orange);
	color: #fff;
}

.tbf__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.3fr .8fr .9fr 1fr;
	gap: 40px;
}

.tbf__brand {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.tbf__brand img {
	display: block;
	width: auto;
	height: 84px;
}

.tbf__brand p {
	margin: 0;
	font-size: 15px;
	font-style: italic;
	font-weight: 600;
	line-height: 1.5;
}

.tbf__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.tbf .tbf__head {
	margin: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tbf .tbf__head::after {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	margin-top: 12px;
	border-radius: 2px;
	background: #f6c744;
}

.tbf__col p {
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
}

.tbf .tbf__col a {
	color: #fff;
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	opacity: .92;
}

.tbf .tbf__col a:hover,
.tbf .tbf__col a:focus {
	color: #fff;
	text-decoration: underline;
	opacity: 1;
}

.tbf__news {
	display: flex;
	width: 100%;
	max-width: 360px;
	margin: 0;
	padding: 5px;
	border-radius: 999px;
	background: #fff;
}

.tbf .tbf__news input {
	flex: 1;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: none;
	box-shadow: none;
	color: #0f2a3d;
	font-family: var(--tbx-font);
	font-size: 14.5px;
}

.tbf .tbf__news input:focus {
	outline: none;
}

.tbf .tbf__news button {
	margin: 0;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tbx-navy);
	box-shadow: none;
	color: #fff;
	font-family: var(--tbx-font);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}

.tbf .tbf__news button:hover {
	background: #013a6c;
	color: #fff;
}

.tbf__social {
	display: flex;
	gap: 8px;
}

.tbf .tbf__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .16);
	font-size: 13px;
	font-weight: 800;
	opacity: 1;
}

.tbf .tbf__social a:hover {
	background: rgba(255, 255, 255, .26);
	text-decoration: none;
}

.tbf__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, .25);
}

.tbf__pay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
}

.tbf__pay > span:first-child {
	margin-right: 6px;
}

.tbf__chip {
	padding: 6px 10px;
	border-radius: 8px;
	background: #fff;
	color: #0f2a3d;
	font-size: 12px;
	font-weight: 800;
}

.tbf .tbf__copy {
	margin: 0;
	color: #fff;
	font-size: 13.5px;
	opacity: .85;
}

/* ---------- Tablette ---------- */

@media (max-width: 1200px) {
	.tbf__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 32px;
	}
}



/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	.tbf-promo {
		padding: 40px 16px;
	}

	.tbf-promo__code {
		gap: 10px;
		padding: 10px 14px;
	}

	.tbf {
		gap: 36px;
		padding: 48px 20px 32px;
	}

	.tbf__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}

	.tbf__brand,
	.tbf__col--news {
		grid-column: 1 / -1;
	}

	.tbf__brand img {
		height: 68px;
	}

	.tbf__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ---------- Bandeau réduit (panier, validation de commande) ---------- */

.tbf-promo--slim {
	padding-top: 32px;
	padding-bottom: 40px;
}

.tbf-promo__slim {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	padding: 16px 24px;
	border-radius: 22px;
	background: var(--tbx-cream);
	text-align: center;
}

.tbf-promo__slim p {
	margin: 0;
	color: var(--tbx-navy);
	font-size: 17px;
	font-weight: 700;
}

.tbf-promo__slim strong {
	color: var(--tbx-orange);
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -.03em;
}

.tbf-promo__slim .tbf-promo__code {
	padding: 6px 6px 6px 8px;
	border-radius: 14px;
}

.tbf-promo__slim .tbf-promo__code-value {
	font-size: 18px;
}

/* ---------- Plan du site [tb_plan_du_site] ---------- */

.tbx-sitemap {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	font-family: var(--tbx-font);
}

.tbx-sitemap__section {
	padding: 26px 28px;
	border-radius: 24px;
	background: #fbf5ef;
}

.tbx-sitemap__section--wide {
	grid-column: 1 / -1;
}

.tbx-sitemap h2 {
	margin: 0 0 16px;
	color: var(--tbx-navy);
	font-family: var(--tbx-font);
	font-size: 24px;
	font-weight: 900;
	letter-spacing: -.03em;
	line-height: 1.1;
}

.tbx-sitemap__section--wide {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 28px;
}

.tbx-sitemap__section--wide > h2 {
	grid-column: 1 / -1;
}

.tbx-sitemap h3 {
	margin: 0 0 10px;
	font-family: var(--tbx-font);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.tbx-sitemap h3 a {
	color: var(--tbx-orange);
	text-decoration: none;
}

.tbx-sitemap ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbx-sitemap li {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.35;
}

.tbx-sitemap li a {
	color: #0f2a3d;
	text-decoration: none;
}

.tbx-sitemap a:hover {
	color: var(--tbx-orange);
	text-decoration: underline;
}

@media (max-width: 1024px) {
	.tbx-sitemap,
	.tbx-sitemap__section--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tbx-sitemap,
	.tbx-sitemap__section--wide {
		grid-template-columns: minmax(0, 1fr);
	}

	.tbx-sitemap__box + .tbx-sitemap__box {
		margin-top: 18px;
	}
}

/* Pied de page (Elsa, 2026-11-08) : « Votre performance, notre mission. » sur une seule ligne ; logos officiels
   Facebook et Instagram à la place des pastilles « f » / « ig ». */
.tbf__nowrap {
	white-space: nowrap;
}

.tbf .tbf__social a.tbf__logo,
.tbf .tbf__social a.tbf__logo:hover {
	background: none;
	transition: transform .2s ease;
}

.tbf .tbf__social a.tbf__logo:hover {
	transform: translateY(-2px);
}

.tbf .tbf__social a.tbf__logo svg {
	display: block;
	width: 40px;
	height: 40px;
}

/* Logos Facebook / Instagram centrés sous le formulaire newsletter (Elsa, 2026-11-08). */
.tbf .tbf__col--news .tbf__social {
	justify-content: center;
	width: 100%;
}

/* =====================================================================
 * Style BD (Elsa, 2026-11-08 ; maquette refonte/maquettes/bd-menu-footer-2026-11-08/) : dégradé orange → rouge (sans
 * trame de points ni trait bleu en haut, retirés à la demande d'Elsa), titres en étiquettes jaunes penchées, titre de
 * la newsletter en bulle, logo légèrement penché. Les logos Facebook / Instagram restent tels quels.
 * ===================================================================== */
.tbf {
--bd-navy: #004b76;
--bd-r: 16px 22px 14px 24px / 22px 14px 24px 16px;
background: linear-gradient(135deg, #e2703c 0%, #cb5223 40%, #a3301f 100%);
}
/* Titres des colonnes : étiquettes jaunes, penchées une fois sur deux */
.tbf .tbf__col:not(.tbf__col--news) .tbf__head {
align-self: flex-start;
padding: 5px 10px;
background: #f6c744;
box-shadow: 3px 3px 0 var(--bd-navy);
color: var(--bd-navy);
font-family: "Lilita One", var(--tbx-font), sans-serif;
font-size: 14px;
font-weight: 400;
letter-spacing: .01em;
white-space: nowrap;
rotate: -2deg;
}
.tbf .tbf__col:nth-child(even):not(.tbf__col--news) .tbf__head {
rotate: 2deg;
}
.tbf .tbf__col:not(.tbf__col--news) .tbf__head::after {
display: none;
}
/* Newsletter : le titre devient une bulle de BD, pointe vers le formulaire */
.tbf .tbf__col--news .tbf__head {
position: relative;
align-self: flex-start;
margin-bottom: 8px;
padding: 10px 16px;
border: 3px solid var(--bd-navy);
border-radius: var(--bd-r);
background: #fff;
box-shadow: 4px 5px 0 var(--bd-navy);
color: var(--bd-navy);
font-family: "Lilita One", var(--tbx-font), sans-serif;
font-size: 17px;
font-weight: 400;
letter-spacing: 0;
text-transform: none;
rotate: -2deg;
}
.tbf .tbf__col--news .tbf__head::after {
content: "";
position: absolute;
top: 100%;
left: 28px;
width: 0;
height: 0;
margin: 0;
border-style: solid;
border-width: 14px 12px 0 0;
border-color: var(--bd-navy) transparent transparent;
border-radius: 0;
background: none;
}
.tbf .tbf__news {
box-shadow: 3px 4px 0 var(--bd-navy);
}
.tbf .tbf__chip {
box-shadow: 2px 2px 0 rgba(0, 0, 0, .3);
}
.tbf__brand img {
rotate: -4deg;
filter: drop-shadow(3px 3px 0 var(--bd-navy));
}
@media (max-width: 767px) {
.tbf .tbf__col--news .tbf__head {
font-size: 16px;
}
}

/* =====================================================================
 * Téléphone : variante A « Accordéon » (Elsa, 2026-11-18 ; maquette refonte/maquettes/footer-mobile-2026-11-18/).
 * Tout est centré ; contact = deux boutons (Appeler / Nous écrire) ; Menu, Infos utiles et Infos légales se replient
 * (on touche l'étiquette, footer.js) ; paiement et droits centrés. 1 177 px → environ 680 px. Ordinateur inchangé.
 * ===================================================================== */
.tbf__actions {
	display: none;
}

@media (max-width: 767px) {
	.tbf {
		gap: 0;
		padding: 30px 20px 20px;
	}

	.tbf__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tbf__brand {
		align-items: center;
		text-align: center;
	}

	.tbf__brand img {
		height: 58px;
		margin: 0 auto;
	}

	.tbf__brand p {
		margin: 8px 0 18px;
		font-size: 14px;
	}

	/* Contact : seulement les deux boutons et les jours. */
	.tbf__grid > .tbf__col:nth-child(2) {
		align-items: center;
		gap: 0;
	}

	.tbf__grid > .tbf__col:nth-child(2) > :is(.tbf__head, a) {
		display: none;
	}

	.tbf__grid > .tbf__col:nth-child(2) > p:not(.tbf__head) {
		order: 2;
		margin: 8px 0 20px;
		font-size: 13px;
		opacity: .9;
	}

	.tbf .tbf__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px;
		width: 100%;
	}

	.tbf .tbf__col .tbf__act,
	.tbf .tbf__col .tbf__act:hover {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding: 11px 8px;
		border-radius: 999px;
		background: #fff;
		box-shadow: 3px 3px 0 var(--bd-navy, #004b76);
		color: var(--bd-navy, #004b76);
		font-size: 14px;
		font-weight: 800;
		text-decoration: none;
		white-space: nowrap;
		opacity: 1;
	}

	/* Newsletter centrée */
	.tbf .tbf__col--news {
		align-items: center;
		gap: 0;
		margin-bottom: 10px;
	}

	.tbf .tbf__col--news .tbf__head {
		align-self: center;
		margin-bottom: 14px;
	}

	.tbf .tbf__col--news .tbf__head::after {
		left: 50%;
		margin-left: -6px;
	}

	.tbf .tbf__col--news .tbf__news {
		width: 100%;
	}

	.tbf .tbf__col--news .tbf__social {
		margin-top: 14px;
	}

	/* Listes de liens repliables */
	.tbf__grid > nav.tbf__col {
		gap: 0;
		border-top: 1px solid rgba(255, 255, 255, .25);
	}

	.tbf__grid > nav.tbf__col:last-child {
		border-bottom: 1px solid rgba(255, 255, 255, .25);
	}

	.tbf .tbf__grid > nav.tbf__col:not(.tbf__col--news) .tbf__head {
		position: relative;
		width: 100%;
		margin: 0;
		padding: 0;
		background: none;
		box-shadow: none;
		cursor: pointer;
		rotate: 0deg;
	}

	.tbf .tbf__grid > nav.tbf__col:not(.tbf__col--news) .tbf__head > span {
		display: inline-block;
		margin: 13px 0;
		padding: 5px 10px;
		background: #f6c744;
		box-shadow: 3px 3px 0 var(--bd-navy, #004b76);
		rotate: -2deg;
	}

	.tbf .tbf__grid > nav.tbf__col:not(.tbf__col--news) .tbf__head::before {
		content: "";
		position: absolute;
		top: 50%;
		right: 8px;
		width: 9px;
		height: 9px;
		margin-top: -7px;
		border: solid #fff;
		border-width: 0 3px 3px 0;
		rotate: 45deg;
		transition: rotate .2s, margin .2s;
	}

	.tbf .tbf__grid > nav.tbf__col.is-open:not(.tbf__col--news) .tbf__head::before {
		margin-top: -2px;
		rotate: -135deg;
	}

	.tbf .tbf__grid > nav.tbf__col > a {
		display: none;
	}

	.tbf .tbf__grid > nav.tbf__col.is-open > a {
		display: block;
		margin: 0 0 12px 2px;
	}

	.tbf .tbf__grid > nav.tbf__col.is-open > a:last-child {
		margin-bottom: 16px;
	}

	/* Bas de page centré */
	.tbf__bottom {
		align-items: center;
		gap: 10px;
		margin-top: 20px;
		padding-top: 0;
		border-top: 0;
		text-align: center;
	}

	.tbf__pay {
		justify-content: center;
		gap: 6px;
	}

	.tbf__pay > span:first-child {
		width: 100%;
		margin: 0 0 2px;
	}

	.tbf .tbf__chip {
		padding: 4px 8px;
		font-size: 11px;
	}
}

/* /catalogue/ (téléphone et ordinateur) : legacy-customizer.css force Inter partout (!important) ; les étiquettes jaunes
 * et la bulle newsletter gardent leur police BD (Elsa, 2026-11-18). */
body.post-type-archive-product .tbf .tbf__head,
body.post-type-archive-product .tbf .tbf__head span {
	font-family: "Lilita One", var(--tbx-font), sans-serif !important;
}

/* Téléphone (Elsa, 2026-11-19) : « Du lundi au vendredi » retiré du pied de page. L'ordinateur garde la mention. */
@media (max-width: 767px) {
	.tbf__hours {
		display: none;
	}

	/* La mention cachée faisait l'espace sous les boutons : sans elle, la bulle « Abonnez-vous » chevauchait les
	 * boutons Appeler / Nous écrire (Elsa, 2026-11-19). On redonne l'espace aux boutons. */
	.tbf .tbf__actions {
		margin-bottom: 30px;
	}
}
