/*
Theme Name: Africa First Assist
Description: Theme autonome leger avec un header et un footer inspires de Bizix.
Author: Africa First Assist
Version: 1.0.1
Text Domain: africa-first-assist
*/

:root {
	--afa-ink: #0c121c;
	--afa-teal: #126a97;
	--afa-green: #3e94cb;
	--afa-red: #d94036;
	--afa-gold: #e6a832;
	--afa-paper: #ffffff;
	--afa-muted: #627176;
	--afa-line: #dce4e4;
	--afa-content-width: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--afa-ink);
	background: var(--afa-paper);
	font-family: "Fira Sans", "Trebuchet MS", sans-serif;
	font-size: 16px;
	line-height: 1.55;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	color: var(--afa-teal);
}

button {
	font: inherit;
}

.site-container {
	width: min(var(--afa-content-width), calc(100% - 40px));
	margin-inline: auto;
}

.site-header {
	position: relative;
	z-index: 100;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	gap: 0;
	background: #fff;
	font-size: 0;
	line-height: 0;
}

.site-header .site-topbar,
.site-header .primary-header {
	font-size: 16px;
	line-height: 1.55;
}

.contact-strip {
	color: #fff;
	background: var(--afa-ink);
}

.contact-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-height: 66px;
	align-items: stretch;
}

.contact-strip__item {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 9px 20px;
	border-inline-start: 1px solid rgb(255 255 255 / 16%);
	font-size: 13px;
}

.contact-strip__item:first-child {
	border-inline-start: 0;
}

.contact-strip__item strong {
	font-size: 17px;
	font-weight: 700;
}

.contact-strip__item--assist strong {
	color: #8ed7c4;
}

.contact-strip__item--location strong {
	color: #f0c15e;
}

.contact-strip__item--subscribe {
	align-items: center;
	color: #fff;
	background: var(--afa-red);
	font-size: 15px;
	font-weight: 600;
}

.contact-strip__item--subscribe:hover {
	color: #fff;
	background: #bd3029;
}

.primary-header {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0;
	background: #fff;
	box-shadow: 0 2px 8px rgb(23 52 59 / 8%);
}

.primary-header__inner {
	display: flex;
	min-height: 92px;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.site-branding {
	flex: 0 0 auto;
}

.site-branding .custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	max-height: 72px;
}

.site-branding__title {
	font-size: 22px;
	font-weight: 700;
}

.primary-navigation {
	margin-inline-start: auto;
}

.primary-navigation ul,
.footer-navigation ul {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 26px;
	list-style: none;
}

.primary-navigation a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
}

.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
	color: var(--afa-teal);
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid var(--afa-line);
	border-radius: 3px;
	color: var(--afa-ink);
	background: #fff;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.menu-toggle__bars {
	position: relative;
	margin: auto;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	position: absolute;
	left: 0;
	content: "";
}

.menu-toggle__bars::before {
	top: -7px;
}

.menu-toggle__bars::after {
	top: 7px;
}

.site-main {
	min-height: 40vh;
}

.breadcrumbs {
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	font-size: 16px;
}

.breadcrumbs > li {
	display: inline-flex;
	margin: 0;
	padding: 0;
	align-items: center;
}

.breadcrumbs .separator {
	color: var(--afa-muted);
}

.breadcrumbs .item-current {
	font-weight: 700;
}

.breadcrumbs a {
	color: var(--afa-teal);
}

.breadcrumbs a:hover {
	color: var(--afa-ink);
}

.page-content,
.post-list {
	/*width: min(var(--afa-content-width), calc(100% - 40px));*/
	margin: 0 auto;
	padding-block: 0px 64px;
}

.entry-title {
	margin: 0 0 22px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.2;
}

.entry-content > :first-child {
	margin-top: 0;
}

.post-entry {
	padding-block: 24px;
	border-bottom: 1px solid var(--afa-line);
}

.post-entry h2 {
	margin: 0 0 10px;
	font-size: 26px;
}

.post-meta {
	color: var(--afa-muted);
	font-size: 14px;
}

.site-footer {
	color: #fff;
	background: var(--afa-ink);
}

.site-footer__main {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 48px;
	padding-block: 48px;
}

.site-footer h2 {
	margin: 0 0 16px;
	font-size: 18px;
}

.site-footer p {
	margin: 0 0 10px;
	color: #d0dcdd;
}

.footer-navigation ul {
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.footer-contact-list {
	display: grid;
	gap: 10px;
}

.footer-contact-list a:hover,
.footer-navigation a:hover {
	color: #8ed7c4;
}

.footer-socials {
	display: flex;
	margin: 18px 0 0;
	padding: 0;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
}

.footer-socials a {
	color: #f0c15e;
	font-weight: 600;
}

.site-footer__bottom {
	border-top: 1px solid rgb(255 255 255 / 18%);
}

.site-footer__bottom-inner {
	display: flex;
	min-height: 64px;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	color: #d0dcdd;
	font-size: 14px;
}

.mobile-contact-panel,
.mobile-quick-nav,
.nav-overlay {
	display: none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 12px;
	clip: auto;
	background: #fff;
	z-index: 1000;
}

@media (max-width: 800px) {
	.site-container {
		width: min(100% - 28px, var(--afa-content-width));
	}

	.contact-strip__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-strip__item {
		min-height: 60px;
		padding-inline: 12px;
	}

	.contact-strip__item:nth-child(3) {
		border-inline-start: 0;
		border-top: 1px solid rgb(255 255 255 / 16%);
	}

	.contact-strip__item:nth-child(4) {
		border-top: 1px solid rgb(255 255 255 / 16%);
	}

	.primary-header__inner {
		min-height: 76px;
		gap: 16px;
	}

	.site-branding .custom-logo {
		max-width: 180px;
		max-height: 58px;
	}

	.menu-toggle {
		display: block;
		position: relative;
		z-index: 10002;
	}

	.nav-overlay {
		position: fixed;
		inset: 0;
		z-index: 10000;
		display: block;
		background: rgb(12 18 28 / 45%);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.nav-overlay.is-visible {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.primary-navigation {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 10001;
		display: block;
		width: 80%;
		max-width: 360px;
		height: 100%;
		height: 100dvh;
		margin: 0;
		padding: 72px 0 calc(80px + env(safe-area-inset-bottom, 0px));
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		box-shadow: 8px 0 28px rgb(12 18 28 / 18%);
		transform: translateX(-105%);
		transition: transform 0.3s ease-out;
		visibility: hidden;
	}

	.primary-navigation.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	body.menu-open {
		overflow: hidden;
	}

	.primary-navigation ul {
		width: 100%;
		margin: 0;
		align-items: stretch;
		gap: 0;
		flex-direction: column;
	}

	.primary-navigation a {
		padding: 14px 22px;
		border-bottom: 1px solid var(--afa-line);
	}

	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 24px;
		padding-block: 36px 90px;
	}

	.site-footer__main > :first-child {
		grid-column: 1 / -1;
	}

	.site-footer__bottom-inner {
		min-height: 58px;
		justify-content: center;
		text-align: center;
	}

	.mobile-contact-panel:not([hidden]) {
		position: fixed;
		z-index: 30;
		right: 0;
		bottom: 62px;
		left: 0;
		display: grid;
		gap: 12px;
		padding: 18px 20px;
		color: var(--afa-ink);
		background: #fff;
		box-shadow: 0 -8px 24px rgb(23 52 59 / 18%);
	}

	.mobile-contact-panel a {
		padding-block: 5px;
		font-weight: 600;
	}

	.mobile-quick-nav {
		position: fixed;
		z-index: 31;
		right: 0;
		bottom: 0;
		left: 0;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr)) 78px;
		align-items: end;
		min-height: 62px;
		padding: 0 4px env(safe-area-inset-bottom, 0);
		color: var(--afa-ink);
		background: #fff;
		border-top: 1px solid #e6ecef;
		box-shadow: 0 -2px 14px rgb(12 18 28 / 7%);
	}

	.mobile-quick-nav__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		min-width: 0;
		min-height: 62px;
		padding: 7px 2px 9px;
		color: var(--afa-ink);
		background: transparent;
		text-align: center;
		text-decoration: none;
	}

	.mobile-quick-nav__item img {
		width: 30px;
		height: 28px;
		object-fit: contain;
	}

	.mobile-quick-nav__item span {
		display: block;
		max-width: 100%;
		overflow: hidden;
		color: #0c121c;
		font-size: 11px;
		font-weight: 700;
		line-height: 1.1;
		letter-spacing: -0.01em;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.mobile-quick-nav__fab {
		display: flex;
		align-items: flex-start;
		justify-content: center;
		align-self: stretch;
		width: 78px;
		height: 62px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.mobile-quick-nav__fab-icon {
		display: block;
		width: 58px;
		height: 58px;
		margin-top: -18px;
		object-fit: contain;
		filter: drop-shadow(0 4px 10px rgb(18 106 151 / 28%));
		transition: transform 0.2s ease;
	}

	.mobile-quick-nav__fab[aria-expanded="true"] .mobile-quick-nav__fab-icon {
		transform: rotate(45deg);
	}

	body {
		padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 480px) {
	.contact-strip__item {
		font-size: 12px;
	}

	.contact-strip__item strong {
		font-size: 15px;
	}

	.contact-strip__item--subscribe {
		font-size: 13px;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
	}

	.site-footer__main > :first-child {
		grid-column: auto;
	}

	.page-content,
	.post-list {
		width: calc(100% - 28px);
		padding-block: 0px 48px;
	}
}

.primary-menu,
.primary-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
}

.primary-menu .menu-item-has-children > a::after {
	margin-inline-start: auto;
	font-family: "Font Awesome 5 Free";
	font-size: 13px;
	font-weight: 900;
	content: "\f107";
}

.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	width: max-content;
	min-width: 240px;
	max-width: min(320px, 80vw);
	padding: 8px 0;
	background: #fff;
	box-shadow: 0 8px 20px rgb(12 18 28 / 16%);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	display: block;
}

.primary-menu .sub-menu li {
	position: relative;
}

.primary-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}

.primary-navigation .primary-menu .sub-menu a {
	min-height: 0;
	padding: 10px 18px;
	color: var(--afa-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
}

.primary-navigation .primary-menu .sub-menu a:hover,
.primary-navigation .primary-menu .sub-menu .current-menu-item > a {
	color: var(--afa-teal);
	background: #f1f7fa;
}

.submenu-toggle {
	display: none;
}

.primary-menu a:focus-visible,
.submenu-toggle:focus-visible {
	outline: 2px solid var(--afa-teal);
	outline-offset: 3px;
}

@media (max-width: 800px) {
	.primary-navigation .primary-menu > li > a {
		font-size: 16px;
	}

	.primary-navigation .primary-menu .menu-item-has-children {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 48px;
		align-items: center;
	}

	.primary-menu .menu-item-has-children > a::after {
		display: none;
	}

	.primary-navigation .primary-menu .sub-menu {
		position: static;
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
		padding: 0 0 8px 14px;
		background: #f6f9fa;
		box-shadow: none;
	}

	.primary-navigation .primary-menu li:hover > .sub-menu {
		display: none;
	}

	.primary-navigation .primary-menu li.submenu-open > .sub-menu {
		display: block;
	}

	.primary-navigation .primary-menu .sub-menu a {
		padding: 11px 14px;
	}

	.submenu-toggle {
		display: grid;
		width: 40px;
		height: 40px;
		place-items: center;
		border: 0;
		color: var(--afa-ink);
		background: transparent;
		cursor: pointer;
	}

	.submenu-toggle::before {
		font-family: "Font Awesome 5 Free";
		font-size: 18px;
		font-weight: 900;
		content: "\f107";
	}

	.submenu-toggle[aria-expanded="true"]::before {
		content: "\f106";
	}
}

.site-topbar {
	position: relative;
	z-index: 2;
	margin: 0;
	padding: 0;
	color: #fff;
	background-color: #12658f;
	background-image: linear-gradient(112deg, #12658f 0%, #12658f 51%, #3e94cb 51.2%, #3e94cb 100%);
}

.site-topbar__inner {
	display: flex;
	min-height: 50px;
	align-items: stretch;
}

.topbar-navigation,
.topbar-socials {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	list-style: none;
}

.topbar-navigation a {
	display: flex;
	min-height: 34px;
	padding: 0 24px;
	align-items: center;
	border-inline-end: 1px solid rgb(255 255 255 / 82%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.topbar-navigation a:first-child {
	padding-inline-start: 0;
}

.topbar-navigation a:hover,
.topbar-socials a:hover {
	color: #d7efff;
}

.topbar-socials {
	margin-inline-start: auto;
	gap: 20px;
}

.topbar-socials a {
	color: #fff;
	font-size: 17px;
}

.primary-header {
	box-shadow: none;
}

.primary-header__inner {
	min-height: 90px;
	gap: 28px;
}

.site-branding {
	display: grid;
	grid-template-columns: 102px max-content;
	align-items: center;
	gap: 16px;
	color: #25282c;
}

.site-branding img {
	display: block;
	width: 102px;
	height: 86px;
	padding-inline-end: 16px;
	border-inline-end: 2px solid #12658f;
	object-fit: contain;
}

.site-branding__slogan {
	font-size: 16px;
	font-weight: 400;
	text-transform: uppercase;
}

.primary-navigation ul {
	gap: 28px;
}

.primary-navigation a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #686868;
	font-size: 16px;
	font-weight: 700;
}

.primary-navigation a i {
	width: 36px;
	color: #4a9bd0;
	font-size: 30px;
	text-align: center;
}

.primary-navigation .menu-item-label {
	display: inline-flex;
	min-width: 0;
	align-items: center;
	gap: 10px;
}

.primary-navigation .menu-item-icon {
	width: 32px;
	height: 32px;
	flex: 0 0 32px;
	border-radius: 2px;
	object-fit: contain;
}

.primary-navigation .sub-menu .menu-item-icon {
	width: 22px;
	height: 22px;
	flex-basis: 22px;
}

.primary-navigation a:hover {
	color: #12658f;
}

.floating-assistance {
	position: fixed;
	z-index: 40;
	top: 50%;
	right: 0;
	display: grid;
	width: 48px;
	transform: translateY(-50%);
	border-radius: 10px 0 0 10px;
	overflow: hidden;
	background: #70abe8;
	box-shadow: 0 8px 24px rgb(12 18 28 / 18%);
	transition: width 240ms ease, border-radius 240ms ease;
}

.floating-assistance a {
	display: grid;
	min-height: 46px;
	grid-template-columns: 48px 0;
	align-items: center;
	border-bottom: 1px solid rgb(255 255 255 / 70%);
	color: #fff;
	font-size: 21px;
	text-decoration: none;
	transition: min-height 240ms ease, grid-template-columns 240ms ease, background-color 160ms ease;
}

.floating-assistance a > i {
	display: grid;
	min-height: inherit;
	place-items: center;
}

.floating-assistance__copy {
	max-width: 0;
	overflow: hidden;
	font-size: 0;
	line-height: 1.05;
	opacity: 0;
	white-space: nowrap;
	transition: max-width 200ms ease, opacity 150ms ease;
}

.floating-assistance__copy strong {
	display: block;
	font-size: 0;
	font-weight: 700;
}

.floating-assistance:is(:hover, :focus-within) {
	width: min(300px, calc(100vw - 16px));
	border-radius: 10px 0 0 10px;
}

.floating-assistance:is(:hover, :focus-within) a {
	min-height: 60px;
	grid-template-columns: 84px minmax(0, 1fr);
	font-size: 27px;
}

.floating-assistance:is(:hover, :focus-within) .floating-assistance__copy {
	max-width: 100%;
	font-size: 16px;
	opacity: 1;
}

.floating-assistance:is(:hover, :focus-within) .floating-assistance__copy strong {
	font-size: 19px;
}

.floating-assistance a:last-child {
	border-bottom: 0;
}

.floating-assistance a:hover {
	color: #fff;
	background: #438cca;
}

.site-footer__main {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px;
	padding-block: 42px 48px;
}

.footer-column h2 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

.footer-column ul {
	display: grid;
	margin: 0;
	padding: 0;
	gap: 10px;
	list-style: none;
}

.footer-column li {
	position: relative;
	padding-inline-start: 18px;
	line-height: 1.45;
}

.footer-column li::before {
	position: absolute;
	top: 0.58em;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 1px;
	background: #72c2e6;
	content: "";
}

.footer-column a {
	color: #d5d9df;
	font-size: 15px;
}

.footer-column a:hover {
	color: #72c2e6;
}

.site-footer__bottom {
	border-top-color: rgb(255 255 255 / 35%);
}

.site-footer__bottom-inner {
	min-height: 66px;
	color: #d5d9df;
}

.footer-legal {
	display: flex;
	gap: 18px;
}

.footer-legal a {
	font-size: 14px;
	text-transform: uppercase;
}

.footer-legal a + a::before {
	padding-inline-end: 18px;
	color: #8d969f;
	content: "|";
}

.footer-socials {
	margin: 0;
	gap: 24px;
}

.footer-socials a {
	color: #fff;
	font-size: 20px;
}


@media (max-width: 800px) {
	.site-topbar__inner {
		min-height: 42px;
		gap: 8px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.topbar-navigation {
		min-width: 0;
		flex: 1 1 auto;
		flex-wrap: nowrap;
	}

	.topbar-navigation a {
		min-height: 28px;
		padding-inline: 8px;
		font-size: 11px;
		white-space: nowrap;
	}

	.topbar-socials {
		gap: 8px;
		flex: 0 0 auto;
	}

	.topbar-socials a {
		font-size: 13px;
	}

	.primary-header__inner {
		min-height: 76px;
	}

	.site-branding {
		grid-template-columns: 72px max-content;
		gap: 10px;
	}

	.site-branding img {
		width: 72px;
		height: 64px;
		padding-inline-end: 10px;
	}

	.site-branding__slogan {
		font-size: 12px;
	}

	.primary-navigation a {
		gap: 10px;
	}

	.site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 30px 24px;
	}

	.site-footer__bottom-inner {
		flex-wrap: wrap;
		padding-block: 12px;
	}

	.floating-assistance {
		display: none;
	}

	.mobile-quick-nav__item span {
		font-size: 10px;
	}

	.mobile-quick-nav__fab-icon {
		width: 54px;
		height: 54px;
		margin-top: -8px;
	}
}

@media (max-width: 480px) {
	.site-topbar__inner {
		width: 100%;
		padding-inline: 8px;
	}

	.topbar-navigation {
		flex: 1 1 auto;
	}

	.topbar-navigation a {
		padding-inline: 7px;
		font-size: 10px;
	}

	.topbar-socials {
		padding-inline-end: 4px;
	}

	.topbar-socials li:nth-child(2),
	.topbar-socials li:nth-child(3) {
		display: none;
	}

	.primary-header__inner {
		gap: 10px;
	}

	.site-branding {
		grid-template-columns: 58px max-content;
	}

	.site-branding img {
		width: 58px;
		height: 54px;
	}

	.site-branding__slogan {
		font-size: 10px;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.site-footer__bottom-inner {
		justify-content: space-between;
	}

	.footer-socials {
		gap: 16px;
	}

	.footer-legal {
		gap: 10px;
	}

	.footer-legal a + a::before {
		padding-inline-end: 10px;
	}
}