/**
 * Design v2 — header calqué sur thefrenchbastards.fr
 * Chargé uniquement en preview admin ou une fois publié.
 */

@font-face {
	font-family: Suisse;
	src: url("../fonts/SuisseIntl-Light.woff2") format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Suisse;
	src: url("../fonts/SuisseIntl-Book.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Suisse;
	src: url("../fonts/SuisseIntl-Regular.woff2") format("woff2");
	font-weight: 450;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Suisse;
	src: url("../fonts/SuisseIntl-Medium.woff2") format("woff2");
	font-weight: 500 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Druk;
	src: url("../fonts/DrukText-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Druk;
	src: url("../fonts/DrukText-Bold.woff2") format("woff2");
	font-weight: 100 650;
	font-style: normal;
	font-display: swap;
}

.mahiiro-design-v2-banner {
	background: #856404;
	color: #fff;
	font-size: 12px;
	line-height: 1.3;
	padding: 6px 12px;
	text-align: center;
	position: relative;
	z-index: 70;
}

/* Sticky header remplace le fixed + padding body du thème classique */
.mahiiro-design-v2 body,
body.mahiiro-design-v2 {
	padding-top: 0px;
}

.mahiiro-design-v2 .site-content {
	padding-top: 0;
}

/* Reset anciennes règles #masthead (header.css) */
.mahiiro-design-v2 #masthead.tfb-hd {
	position: sticky;
	top: 0;
	width: auto;
	height: auto;
	padding: 0;
	display: block;
	justify-content: initial;
	align-items: initial;
	z-index: 50;
	background: #f2f2f2;
}

.tfb-hd {
	--bg: #f2f2f2;
	--ink: #1a1a1a;
	--line: rgba(26, 26, 26, 0.16);
	--body: "Suisse", "Helvetica Neue", Arial, sans-serif;
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-weight: 300;
	border-bottom: 1px solid var(--line);
}

.admin-bar .tfb-hd {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tfb-hd {
		top: 46px;
	}
}

.tfb-hd * {
	box-sizing: border-box;
}

.tfb-hd__bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 24px;
	padding: 12px clamp(16px, 3vw, 40px);
	min-height: 68px;
}

.tfb-hd__logo {
	display: block;
	width: 130px;
	color: var(--ink);
	text-decoration: none;
}

.tfb-hd__logo img {
	display: block;
	width: 100%;
	height: auto;
}

.tfb-hd__nav {
	justify-self: center;
}

.tfb-hd__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 30px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfb-hd__item {
	position: relative;
}

.tfb-hd__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 16px;
	color: var(--ink);
	text-decoration: none;
	padding: 10px 0;
	white-space: nowrap;
}

.tfb-hd__link:hover,
.tfb-hd__link.is-active {
	text-decoration: underline 1px;
	text-underline-offset: 6px;
}

.tfb-hd__chev {
	width: 7px;
	height: 7px;
	border-right: 1px solid;
	border-bottom: 1px solid;
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s;
}

.tfb-hd__item.has-sub:hover .tfb-hd__chev {
	transform: rotate(225deg) translateY(-1px);
}

.tfb-hd__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 6px);
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 8px 0;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: 15px;
	box-shadow: rgba(0, 0, 0, 0.08) 0 10px 28px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s, transform 0.15s;
	z-index: 20;
}

.tfb-hd__sub::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -12px;
	height: 12px;
}

.tfb-hd__item.has-sub:hover .tfb-hd__sub,
.tfb-hd__item.has-sub:focus-within .tfb-hd__sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%);
}

.tfb-hd__sub a {
	display: block;
	padding: 9px 20px;
	font-size: 16px;
	color: var(--ink);
	text-decoration: none;
	white-space: nowrap;
}

.tfb-hd__sub a:hover {
	background: rgba(26, 26, 26, 0.06);
}

/* Bouton « Commander » — classe CSS `menu-btn` sur l’item de menu WP */
.tfb-hd__item.menu-btn .tfb-hd__link,
.tfb-hd__item.menu-btn .tfb-hd__link--btn {
	background: var(--ink);
	color: var(--bg);
	border-radius: 15px;
	padding: 10px 18px;
	text-decoration: none !important;
	transition: transform 0.18s, background-color 0.18s, box-shadow 0.18s;
}

.tfb-hd__item.menu-btn .tfb-hd__link:hover,
.tfb-hd__item.menu-btn .tfb-hd__link--btn:hover {
	background: #333;
	color: var(--bg);
	transform: translateY(-2px);
	box-shadow: rgba(26, 26, 26, 0.12) 0 6px 16px;
	text-decoration: none !important;
}

.tfb-hd__item.menu-btn .tfb-hd__sub {
	left: auto;
	right: 0;
	transform: translateY(6px);
}

.tfb-hd__item.menu-btn:hover .tfb-hd__sub,
.tfb-hd__item.menu-btn:focus-within .tfb-hd__sub {
	transform: translate(0);
}

.tfb-hd__icons {
	display: flex;
	align-items: center;
	gap: 16px;
	justify-self: end;
}

.tfb-hd__icons a {
	color: var(--ink);
	display: inline-flex;
	position: relative;
	text-decoration: none;
}

.tfb-hd__lang {
	font: 500 13px / 1 "Suisse", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 0.04em;
	text-decoration: none;
	color: inherit;
	padding: 4px 2px;
	display: inline-flex;
	align-items: center;
}

.tfb-hd__lang:hover {
	text-decoration: underline;
}

.tfb-hd__burger {
	display: none;
	width: 28px;
	height: 28px;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	position: relative;
}

.tfb-hd__burger span {
	position: absolute;
	left: 3px;
	right: 3px;
	height: 1.5px;
	background: var(--ink);
	transition: transform 0.2s;
}

.tfb-hd__burger span:first-child {
	top: 10px;
}

.tfb-hd__burger span:last-child {
	top: 17px;
}

.tfb-hd__burger[aria-expanded="true"] span:first-child {
	transform: translateY(3.5px) rotate(45deg);
}

.tfb-hd__burger[aria-expanded="true"] span:last-child {
	transform: translateY(-3.5px) rotate(-45deg);
}

.tfb-hd__drawer {
	border-top: 1px solid var(--line);
	padding: 16px clamp(16px, 3vw, 40px) 32px;
	max-height: calc(100vh - 68px);
	overflow: auto;
}

.tfb-hd__drawer[hidden] {
	display: none !important;
}

.tfb-hd__drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfb-hd__drawer > ul > li {
	border-bottom: 1px solid var(--line);
	padding: 14px 0;
}

.tfb-hd__drawer > ul > li > a {
	font: 700 34px / 0.9 Druk, "Arial Narrow", Impact, sans-serif;
	text-transform: uppercase;
	letter-spacing: -0.03em;
	color: var(--ink);
	text-decoration: none;
}

.tfb-hd__drawer li ul {
	margin-top: 10px;
	display: grid;
	gap: 8px;
}

.tfb-hd__drawer li ul a {
	font-size: 17px;
	font-weight: 300;
	text-transform: none;
	letter-spacing: 0;
	color: var(--ink);
	text-decoration: none;
}

.tfb-hd__drawer li.menu-btn > a {
	display: inline-block;
	background: var(--ink);
	color: var(--bg);
	border-radius: 15px;
	padding: 12px 18px 10px;
	font: 500 18px / 1.1 Suisse, "Helvetica Neue", Arial, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none !important;
}

@media (max-width: 1100px) {
	.tfb-hd__nav {
		display: none;
	}

	.tfb-hd__burger {
		display: inline-block;
	}
}

/*--------------------------------------------------------------
## Footer v2 (thefrenchbastards.fr)
--------------------------------------------------------------*/

.mahiiro-design-v2 .site-footer.tfb-footer,
.tfb-footer {
	--cream: #f2f2f2;
	--ink: #1a1a1a;
	--line: rgba(26, 26, 26, 0.16);
	--display: Druk, "Arial Narrow", Impact, sans-serif;
	--body: Suisse, "Helvetica Neue", Arial, sans-serif;
	margin-top: auto;
	padding: clamp(56px, 7vw, 96px) clamp(16px, 3vw, 40px) 32px;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--body);
	font-weight: 300;
	border-top: 1px solid var(--line);
}

.tfb-footer * {
	box-sizing: border-box;
}

.tfb-footer a {
	color: var(--ink);
	text-decoration: none;
}

.tfb-footer a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.tfb-footer__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
}

.tfb-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 15px;
}

.tfb-footer__widget {
	margin: 0;
	padding: 0;
	display: block !important; /* annule footer.css mobile */
	width: auto !important;
}

.tfb-footer__widget + .tfb-footer__widget {
	margin-top: 24px;
}

/* Titres colonnes — comme TFB (.tfb-footer__h) */
.mahiiro-design-v2 .tfb-footer .tfb-footer__h,
.mahiiro-design-v2 .tfb-footer .widget-title,
.tfb-footer__col:not(.tfb-footer__brand) .tfb-footer__h,
.tfb-footer__col:not(.tfb-footer__brand) .widget-title {
	font-family: var(--body) !important;
	font-weight: 500 !important;
	font-size: 15px !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	opacity: 1 !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: var(--ink) !important;
}

/* Colonne marque : gros claim Druk */
.tfb-footer__brand > .widget_text:first-child .tfb-footer__h,
.tfb-footer__brand > .widget_text:first-child .widget-title,
.tfb-footer__claim {
	font-family: Druk, "Arial Narrow", Impact, sans-serif !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	font-size: clamp(56px,7vw,104px) !important;
	letter-spacing: -0.04em !important;
	line-height: 0.86 !important;
	margin: 0 0 20px !important;
	opacity: 1 !important;
	color: var(--ink) !important;
}

.tfb-footer__brand > .widget_text:first-child .textwidget {
	display: block;
}

.tfb-footer__brand > .widget_text:first-child .textwidget p {
	font-size: 15px;
	line-height: 1.6;
	max-width: 36ch;
	opacity: 0.85;
	margin: 0;
}

/* Réseaux : rangée horizontale (le .textwidget générique les mettait en colonne) */
.mahiiro-design-v2 .tfb-footer__brand .widget_custom_html .textwidget,
.mahiiro-design-v2 .tfb-footer__brand .custom-html-widget,
.tfb-footer__socials {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	gap: 16px !important;
	margin-top: 4px;
}

.tfb-footer__icon {
	display: inline-flex !important;
	flex: 0 0 22px;
	align-items: center;
	justify-content: center;
	width: 22px !important;
	height: 22px !important;
	color: var(--ink);
	border: 0 !important;
	text-decoration: none !important;
	line-height: 0;
}

.tfb-footer__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.tfb-footer__icon:hover {
	opacity: 0.6;
	text-decoration: none !important;
}

/* Liens en widgets Texte (chaque lien dans un <p>) */
.tfb-footer .widget_text:not(.widget_custom_html) .textwidget {
    margin-top: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tfb-footer .widget_text .textwidget p {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 300;
}

.tfb-footer .widget_nav_menu ul,
.tfb-footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tfb-footer .widget_nav_menu a {
	font-size: 15px;
	font-weight: 300;
	color: var(--ink);
	text-decoration: none;
	border: none !important;
	line-height: 1.35 !important;
	padding: 0 !important;
	width: auto !important;
}

.tfb-footer .widget_nav_menu a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Wallet : toujours côte à côte (annule footer.css mobile) */
.mahiiro-design-v2 .tfb-footer .widget:has(.wallet-img-shortcode),
.mahiiro-design-v2 .tfb-footer .widget:has(.wallet-popover-btn) {
	display: block !important;
	padding: 0 !important;
	flex-direction: unset !important;
}

.mahiiro-design-v2 .tfb-footer .widget:has(.wallet-img-shortcode) .textwidget,
.mahiiro-design-v2 .tfb-footer .widget:has(.wallet-popover-btn) .textwidget {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	flex-grow: unset !important;
}

.mahiiro-design-v2 .tfb-footer .wallet-img-shortcode {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	max-width: none !important;
	margin: 0 !important;
	text-align: left !important;
}

.mahiiro-design-v2 .tfb-footer .wallet-img-shortcode button {
	border: none !important;
	background: none !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer;
	flex: 0 0 auto;
	width: auto !important;
	max-width: 120px;
}

.mahiiro-design-v2 .tfb-footer .wallet-img-shortcode img {
	display: block;
	width: 100%;
	max-width: 120px;
	height: auto;
}

.tfb-footer__legal {
	max-width: 1320px;
    width: 100%;
	margin: 56px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	opacity: 0.85;
}

.tfb-footer__links,
.tfb-footer__links-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfb-footer__links-list li {
	margin: 0;
	padding: 0;
}

.tfb-footer__links-list a {
	font-size: 13px;
}

@media (max-width: 900px) {
	.tfb-footer__inner {
		grid-template-columns: 1fr 1fr;
	}

	.tfb-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.tfb-footer__inner {
		grid-template-columns: 1fr;
	}

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

/* Annule le footer classique qui masque les widgets / empile le wallet en mobile */
@media screen and (max-width: 1023px) {
	.mahiiro-design-v2 .tfb-footer .widget,
	.mahiiro-design-v2 .tfb-footer .tfb-footer__widget {
		display: block !important;
	}

	.mahiiro-design-v2 .tfb-footer .widget_nav_menu {
		border-bottom: none !important;
	}

	.mahiiro-design-v2 .tfb-footer .wallet-img-shortcode {
		flex-direction: row !important;
	}
}

@media (max-width: 767px) {
	.mahiiro-design-v2 .tfb-footer .wallet-img-shortcode {
		flex-direction: row !important;
		flex-wrap: nowrap !important;
	}
}
