/*!
Theme Name: schoulfoire
Author: Midori
Author URI: https://www.midori.lu/
Text Domain: schoulfoire
Version: 1.0

*/

:root {
	--color-primary: #7d78b4;
	--color-green: #b0d142;
	--color-red: #ff646f;
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: #000;
}

a:hover,
a:focus {
	color: var(--color-red);
}

/* html {
	font-size: 18px;
	font-size: 10px;
} */

body {
	font-family: 'futura-pt';
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.3;
	color: #000000;
}

/*========================================*/
/*========================================*/
/*========================================*/

.custom-clip-path {
	clip-path: polygon(4.5% 9.4%, 0% 100%, 96.6% 93.3%, 100% 0%);
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	transition:
		color 0.15s ease,
		background-color 0.15s ease;
}

.btn {
	display: inline-block;
	border: 0;
	border-radius: 0;
	font-weight: 700;
	background-color: var(--color-primary);
	color: #ffffff;
	font-size: 1.25rem;
	padding: 7px 24px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition:
		outline 0s,
		background-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.btn::after {
	content: '';
	position: absolute;
	inset: 0%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0.28) 0%,
		rgba(255, 255, 255, 0.12) 45%,
		rgba(255, 255, 255, 0) 70%
	);
	transform: translateX(-120%);
	transition: transform 0.35s ease;
}

.btn:focus-visible,
.btn:hover {
	background-color: var(--color-red);
	color: #ffffff;
}

.btn:focus-visible::after,
.btn:hover::after {
	transform: translateX(0%);
}

.btn:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* GOVBAR */
.govbar {
	zoom: 1;
	background: #fff;
	border-bottom: 1px solid #cccaca;
	font-family: Arial, sans-serif;
	font-size: 12px;
	position: relative;
	z-index: 9;
}

.govbar:after {
	clear: both;
	content: '';
	display: table;
}

.govbar-logo {
	border: 0;
	display: block;
	padding: 3px 8px;
	vertical-align: middle;
}

.govbar-logo img {
	border: 0;
	display: block;
	height: 40px;
}

.govbar-links {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

.govbar-link {
	color: #222 !important;
}

.govbar-link:hover,
.govbar-link:focus {
	background: #e6e6e6;
}

.govbar-link {
	border: 0;
	border-top: 1px solid #ddd;
	display: block;
	font-weight: bold;
	padding: 8px;
	text-decoration: none;
}

.govbar-more {
	font-weight: normal;
	padding-right: 15px;
}

.govbar-logo {
	float: left;
}

.govbar-links {
	display: block;
	float: right;
	line-height: 30px;
}

.govbar-links li {
	float: left;
	line-height: 30px;
	list-style-type: none;
}

.govbar-link {
	border-top: 0;
	float: left;
	/* : 30px */
}

#menje-line {
	padding-left: 57px;
	background: #888;
	color: white;
	font-size: 10px;
}

/* HEADER */
header.site-header {
	background-color: var(--color-primary);
	font-size: 1.25rem;
	position: relative;
	margin-bottom: 50px;
}

header.site-header::after {
	content: '';
	top: 100%;
	height: 50px;
	width: 100%;
	position: absolute;
	clip-path: polygon(100% 0, 0 0, 100% 100%);
	z-index: -1;
	background: var(--color-primary);
}

body.home header.site-header {
	margin-bottom: 100px;
}

body.home header.site-header::after {
	height: 100px;
}

/* NAVIGATION MENU */
.navbar {
	padding: 25px 0;
}

.navbar .logo img {
	height: 60px;
}

.main-menu {
	gap: 20px;
}

.main-menu li a {
	padding: 3px 5px;
	font-family: 'futura-pt-bold';
	text-decoration: none;
	color: #fff;
	transition: color 0.15s ease;
}

.main-menu li.current_page_item:not(.extra-link) a,
.main-menu li a:hover,
.main-menu li a:focus {
	/* color: var(--color-red); */
	text-decoration: underline;
}

.secondary-menu,
.secondary-menu ul {
	display: flex;
	flex-direction: row;
	gap: 10px;
}

.language-switcher {
	cursor: pointer;
	appearance: none;
	font-family: 'futura-pt-bold';
	border: 2px solid #fff;
	background-color: var(--color-primary);
	text-align: center;
	color: #fff;
	font-size: 16px;
}

ul.social-links {
	padding: 0;
	margin: 0;
	list-style: none;
}

ul.social-links a {
	background: #fff;
	color: var(--color-primary);
}

.language-switcher,
ul.social-links a {
	text-decoration: none;
	border-radius: 50%;
	display: inline-flex;
	width: 35px;
	height: 35px;
	justify-content: center;
	align-items: center;
	text-align: center;
	max-height: inherit;
}

ul.social-links a:hover,
ul.social-links a:focus-within {
	background: var(--color-green);
	color: #fff;
}

/* TOGGLE MENU */
#toggleMenu {
	display: none;
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
	background: transparent;
	appearance: none;
	box-shadow: none;
	border-radius: none;
	border: none;
	cursor: pointer;
	transition: background 0.25s ease-out;
	-webkit-transition: background 0.25s ease-out;
	-moz-transition: background 0.25s ease-out;
	-ms-transition: background 0.25s ease-out;
	-o-transition: background 0.25s ease-out;
}

#toggleMenu .close_menu,
#toggleMenu.is-active .open_menu {
	display: none;
}

#toggleMenu.is-active .close_menu {
	display: block;
}

/* HEADER HERO */
.header-hero {
	position: relative;
	text-align: center;
}

.header-hero .header-logo {
	padding: 30px 0;
}

.header-hero .header-logo img {
	height: 350px;
}

.header-hero .logo-date {
	padding-top: 30px;
}

.header-hero .logo-date img {
	height: 80px;
}

/* PAGE CONTENT */
.intro-section {
	padding: 50px 0;
}

.intro-section .text-wrapper {
	max-width: 1050px;
	font-size: 1.75rem;
}

.news-section {
	position: relative;
	padding: 0 0 80px;
}

.news-bg {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	width: 100%;
	clip-path: polygon(100% 0%, 100% 100%, 0 100%, 0% 20%);
	background: #efeff6;
	z-index: -1;
}

.news-section h2 {
	color: var(--color-primary);
	font-size: 148px;
	font-family: 'futura-pt-bold', sans-serif;
}

.news-item a {
	text-decoration: none;
	color: inherit;
}

.news-thumbnail {
	aspect-ratio: 1 / 1;
	width: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: var(--color-primary);
	position: relative;
}

.news-thumbnail::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	box-shadow: inset 0 0 0 5px transparent;
	pointer-events: none;
	transition: box-shadow 0.3s ease;
}

.news-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	will-change: transform;
}

.news-item a:hover img,
.news-item a:focus img {
	transform: scale(1.05);
}

.news-item a:hover .news-thumbnail::after,
.news-item a:focus .news-thumbnail::after {
	box-shadow: inset 0 0 0 5px var(--color-red);
}

.news-row {
	display: flex;
	flex-wrap: wrap;
	gap: 123px;
}

.news-item {
	max-width: 350px;
}

.news-item .news-content {
	padding: 0 25px;
	margin-top: -55px;
	transition: transform 0.3s ease;
}

.news-item a:hover .news-content,
.news-item a:focus .news-content {
	transform: translateY(-5px);
}

.news-badge {
	color: #fff;
	font-family: 'futura-pt-bold', sans-serif;
	text-align: center;
	margin: 0 auto 15px;
	white-space: nowrap;
	font-size: 55px;
	background: var(--color-red);
	clip-path: polygon(2.5% 16.4%, 0% 100%, 96.6% 100%, 100% 1%);
	padding-top: 10px;
}

/* FOOTER */
footer {
	padding: 50px 0;
	background: var(--color-primary);
	color: #fff;
}

footer a {
	color: #fff;
	text-decoration: none;
}

#scrollTop {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--color-red);
	box-shadow: 0 1px 8px 0 rgba(14, 56, 94, 0.61);
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	pointer-events: none;
	transition:
		opacity 0.25s ease,
		transform 0.25s ease,
		visibility 0.25s ease;
}

#scrollTop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

#scrollTop svg use {
	transition: fill 0.15s ease;
}

#scrollTop:focus,
#scrollTop:hover {
	box-shadow: 0 4px 12px 0 rgba(14, 56, 94, 0.8);
}

#scrollTop:focus svg use,
#scrollTop:hover svg use {
	fill: #fff;
}
