/*
Theme Name: Axygest
Description: Thème léger Axygest, reprise fidèle du site Joomla (template YOOtheme Monday, style "axygest"). Compatible Polylang.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: axygest
*/

/* Values taken from templates/yoo_monday/styles/axygest/css/custom*.css */
:root {
	--ax-teal: #12a19a;
	--ax-teal-dark: #0d7f79;
	--ax-text: #4f535c;
	--ax-heading: #62615f;
	--ax-light: #ebebe9;
	--ax-card: #424041;
	--ax-footer: #424040;
	--ax-footer-line: #555353;
	--ax-radius: 8px;
	--ax-max: 1200px;
	--ax-font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font: 300 16px/26px var(--ax-font);
	color: var(--ax-text);
	background: #fff;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

img, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--ax-teal); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--ax-teal-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ax-font);
	font-weight: 400;
	color: var(--ax-heading);
	line-height: 1.3;
	margin: 25px 0 15px;
}
h1 { font-size: 36px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
strong, b { font-weight: 700; }
p, ul { margin: 0 0 15px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	top: 8px; left: 8px; z-index: 1000;
	padding: 8px 16px; background: #fff;
}

.ax-container {
	width: 100%;
	max-width: var(--ax-max);
	margin: 0 auto;
	padding: 0 15px;
}

/* Header: centered menu, home icon, no logo on desktop ------------------- */

.ax-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	box-shadow: 2px 0 3px rgba(22, 22, 22, .35);
}
.admin-bar .ax-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ax-header { top: 46px; } }

.ax-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
}
.ax-logo { display: none; }
.ax-logo img { display: block; width: 128px; }

.ax-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.ax-nav li { padding: 0 16px; }
.ax-nav a {
	position: relative;
	display: block;
	height: 60px;
	line-height: 60px;
	color: var(--ax-teal);
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
}
.ax-nav a::before {
	content: "";
	position: absolute;
	left: 0; bottom: 17px;
	height: 2px; width: 0;
	background: rgba(18, 161, 154, .94);
	transition: width .4s;
}
.ax-nav a:hover::before,
.ax-nav a:focus::before,
.ax-nav .current-menu-item > a::before,
.ax-nav .current_page_item > a::before { width: 100%; }
.ax-nav a svg { width: 24px; height: 24px; fill: currentColor; vertical-align: middle; margin-top: -4px; }

.ax-lang {
	position: absolute;
	right: 15px;
	top: 0;
}
.ax-lang li { padding: 0 0 0 10px; }
.ax-lang a { font-size: 13px; text-transform: uppercase; color: #9a9a9c; }
.ax-lang a::before { display: none; }
.ax-lang .current-lang a { color: var(--ax-teal); font-weight: 700; }

.ax-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 8px;
	cursor: pointer;
	color: var(--ax-teal);
}
.ax-menu-toggle svg { display: block; }

@media (max-width: 767px) {
	.ax-header__inner { justify-content: space-between; }
	.ax-logo { display: inline-flex; }
	.ax-menu-toggle { display: block; }
	.ax-nav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		padding: 8px 24px 16px;
		box-shadow: 0 6px 8px rgba(22, 22, 22, .2);
	}
	.ax-nav.is-open { display: block; }
	.ax-nav ul { flex-direction: column; }
	.ax-nav li { padding: 0; }
	.ax-nav a { height: 44px; line-height: 44px; }
	.ax-nav a::before { bottom: 8px; }
	.ax-lang { position: static; padding-top: 8px; }
	.ax-lang ul { flex-direction: row; }
	.ax-lang li { padding: 0 16px 0 0; }
}

/* Main -------------------------------------------------------------------- */

.ax-main { flex: 1; padding: 20px 0; }
.ax-page-title { margin-top: 25px; }

.entry-content ul { padding-left: 1.2em; }
.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.mail { font-weight: 700; }

/* Contact & Support: address + e-mail | Google Maps */
.ax-contact-infos h2 { margin-top: 0; }
.ax-map iframe { display: block; width: 100%; height: 450px; border: 0; }
@media (max-width: 781px) { .ax-map { margin-top: 35px; } }

/* Home ------------------------------------------------------------------- */

.home .ax-main { padding-top: 0; }

/* Joomla .uk-container-top on the home page: full width minus 30px each side. */
.ax-hero,
.ax-cards {
	width: calc(100vw - 60px) !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw + 30px) !important;
}

/* Module "Accueil - Axygest" (position top-b) */
.ax-hero {
	background: var(--ax-light);
	padding: 30px;
	margin-top: 20px;
	margin-bottom: 20px;
}
.ax-hero .wp-block-columns { margin: 0; align-items: center !important; gap: 0; }
.ax-hero figure { margin: 0; text-align: center; }
.ax-hero .wp-block-column:first-child { padding-right: 25px; }
.ax-hero .wp-block-column:last-child { padding-left: 25px; }
.ax-hero h1 {
	margin: 0;
	font-size: 24px;
	line-height: normal;
	text-transform: uppercase;
	color: var(--ax-heading);
	text-align: left;
}

/* Widgetkit "Accueil - Activités" (position top-c): 1 / 2 / 3 / 4 columns */
.ax-cards {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}
@media (min-width: 480px) { .ax-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .ax-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .ax-cards { grid-template-columns: repeat(4, 1fr); } }

.ax-card {
	background: var(--ax-card);
	color: #f5f5f5;
	border-radius: var(--ax-radius);
	box-shadow: 0 0 4px 1px rgba(0, 0, 0, .08);
	padding: 30px;
	margin: 0 !important;
}
.ax-card h3 { color: #f5f5f5; font-size: 22px; font-weight: 600; line-height: normal; margin: 0 0 15px; }
.ax-card ul { margin: 0; padding-left: 1.2em; }

@media (max-width: 767px) {
	.ax-hero .wp-block-column:first-child,
	.ax-hero .wp-block-column:last-child { padding: 0; }
	.ax-hero h1 { margin-top: 20px; text-align: center; }
}
@media (max-width: 480px) {
	.ax-hero h1 { font-size: 100%; line-height: 1.3; }
	.ax-hero, .ax-cards { width: calc(100vw - 20px) !important; margin-left: calc(50% - 50vw + 10px) !important; }
}

/* 404 */
.ax-404 { text-align: center; padding: 30px 0; }
.wp-block-button__link {
	display: inline-block;
	background: var(--ax-teal);
	color: #fff;
	border-radius: 4px;
	padding: 10px 24px;
	text-decoration: none;
}
.wp-block-button__link:hover { background: var(--ax-teal-dark); color: #fff; text-decoration: none; }

/* Plan du site */
.ax-sitemap ul { list-style: square; }

/* Footer ------------------------------------------------------------------ */

.ax-footer {
	background: var(--ax-footer);
	color: #eee;
	margin-top: 45px;
}
.ax-footer a { color: #eee; }
.ax-footer a:hover { color: #fff; }
.ax-footer__blocks {
	display: grid;
	grid-template-columns: 1fr 1fr;
}
.ax-footer__blocks > div { padding: 30px; }
.ax-footer h4 {
	color: var(--ax-teal);
	text-transform: uppercase;
	font-size: 18px;
	margin: 0 0 15px;
}
.ax-footer__logo img { display: block; margin-bottom: 15px; }
.ax-social { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.ax-social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	transition: background .2s;
}
.ax-social a:hover { background: var(--ax-teal); }
.ax-social svg { width: 16px; height: 16px; fill: #fff; }

.ax-footer__bottom {
	border-top: 1px solid var(--ax-footer-line);
	text-align: center;
	padding: 15px 0 10px;
	font-size: 14px;
}
.ax-footer__bottom p { margin: 0 0 5px; }
.ax-footer__bottom ul { list-style: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 0; padding: 0; }

@media (max-width: 767px) {
	.ax-footer__blocks { grid-template-columns: 1fr; padding: 20px 0; }
	.ax-footer__blocks > div { padding: 10px 0; text-align: center; }
	.ax-footer__logo img { margin: 0 auto 15px; }
	.ax-social { justify-content: center; }
}
