/*
 * Jaeckel Child — en-tête, menu, pied de page, polices locales, carrousels.
 * Valeurs relevées sur le site de référence (voir /srv/rapports/jaeckle-releve.md).
 * Points de rupture identiques à Elementor : tablette ≤ 1024 px, mobile ≤ 767 px.
 */

/* ------------------------------------------------------------------ Polices locales */

/* Remplace « Milasian Circa » (licence personnelle). SIL OFL 1.1 — voir assets/fonts/OFL-KaushanScript.txt.
   size-adjust : à corps égal, Kaushan est ~10 % plus large que Milasian ; on garde ainsi les mêmes largeurs et retours à la ligne. */
@font-face {
	font-family: "Kaushan Script (Local)";
	src: url("../fonts/kaushan-script-regular.ttf") format("truetype");
	font-weight: 400; /* graisse unique : les titres en 700 reçoivent un gras synthétique, plus proche de Milasian Bold */
	font-style: normal;
	font-display: swap;
	size-adjust: 90%;
}

/* Fira Sans 400/500/600 (SIL OFL 1.1, fichiers du thème officiel Twenty Twenty-Five, voir assets/fonts/LICENSES.txt).
   Sur le site de référence, Fira Sans n'était réellement affichée qu'à deux endroits : le titre du module
   Slider Revolution « ALLGÄUER BIOGARTEN » (.rev_slider_title) et le formulaire de la page Jobs (style.css). */
@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/fira-sans-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/fira-sans-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Fira Sans";
	src: url("../fonts/fira-sans-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

:root {
	--jk-red: #881429;
	--jk-red-alt: #881529;
	--jk-cream: #f5f2ed;
	--jk-brown: #4d4037;
	--jk-dark: #332a21;
	--jk-script: "Kaushan Script (Local)", cursive;
}

.milasian_title,
.milasian_title .elementor-heading-title,
.milasian_title p {
	font-family: var(--jk-script);
}

/* ------------------------------------------------------------------ En-tête */

.jk-header {
	position: relative;
	z-index: 100;
	background: var(--jk-cream);
}

.jk-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1520px;
	min-height: 95px;
	margin: 0 auto;
	padding: 0 10px;
}

.jk-header__logo {
	display: block;
	line-height: 0;
}

.jk-header__logo img {
	display: block;
	width: 140px;
	height: auto;
}

.jk-site-name {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--jk-red);
}

/* Menu principal — bureau */

.jk-nav__toggle {
	display: none;
}

.jk-menu,
.jk-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jk-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0 10px;
}

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

.jk-menu a {
	display: block;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--jk-red);
}

.jk-menu > li > a {
	position: relative;
	padding: 13px 20px;
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
}

.jk-menu > li > a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background: var(--jk-red);
	opacity: 0;
	transition: opacity .3s;
}

.jk-menu > li > a:hover::after,
.jk-menu > li > a:focus-visible::after,
.jk-menu > .current-menu-item > a::after {
	opacity: 1;
}

/* Flèche ▾ des entrées à sous-menu (SVG en ligne, aucune ressource externe). */
.jk-menu > .menu-item-has-children > a {
	padding-right: 48px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23881429'/%3E%3C/svg%3E") no-repeat right 20px center / 12px 7px;
}

.jk-submenu-toggle {
	display: none;
}

.jk-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 100%;
	background: #fff;
}

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

.jk-menu .sub-menu a {
	padding: 13px 20px;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	white-space: nowrap;
}

.jk-menu .sub-menu a:hover,
.jk-menu .sub-menu a:focus-visible,
.jk-menu .sub-menu .current-menu-item > a {
	color: #fff;
	background: var(--jk-red);
}

/* Menu principal — tablette et mobile */

@media (max-width: 1024px) {
	.jk-header__inner {
		min-height: 110px;
		padding: 10px 35px 10px 45px;
	}

	.jk-header__logo img {
		width: 115px;
	}

	.jk-nav__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 90px;
		height: 90px;
		padding: 15px;
		border: 0;
		border-radius: 8px;
		color: #fff;
		background: var(--jk-red);
		cursor: pointer;
	}

	.jk-nav__toggle:hover,
	.jk-nav__toggle:focus {
		background: var(--jk-red);
	}

	.jk-nav__icon {
		width: 100%;
		height: 100%;
		fill: none;
		stroke: currentColor;
		stroke-width: 2.4;
		stroke-linecap: round;
	}

	.jk-nav__icon--close,
	.jk-nav.is-open .jk-nav__icon--open {
		display: none;
	}

	.jk-nav.is-open .jk-nav__icon--close {
		display: block;
	}

	.jk-menu {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - 110px);
		overflow-y: auto;
		background: #fff;
		box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
	}

	.jk-nav.is-open .jk-menu {
		display: block;
	}

	.jk-menu > li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.jk-menu > li > a {
		flex: 1 1 auto;
		padding: 10px 20px;
		font-weight: 400;
	}

	.jk-menu > li > a::after {
		display: none;
	}

	.jk-menu > .menu-item-has-children > a {
		flex: 0 1 auto;
		padding-right: 10px;
		background: none;
	}

	.jk-menu > .current-menu-item > a,
	.jk-menu > li > a:hover,
	.jk-menu > li > a:focus-visible {
		color: #fff;
		background-color: var(--jk-red);
	}

	.jk-submenu-toggle {
		display: block;
		width: 32px;
		height: 32px;
		padding: 0;
		border: 0;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23881429'/%3E%3C/svg%3E") no-repeat center / 12px 7px;
		cursor: pointer;
		transition: transform .2s;
	}

	.jk-submenu-toggle:hover,
	.jk-submenu-toggle:focus {
		background-color: transparent;
	}

	.jk-menu li.is-open > .jk-submenu-toggle {
		transform: rotate(180deg);
	}

	.jk-menu .sub-menu {
		position: static;
		flex: 0 0 100%;
		min-width: 0;
	}

	.jk-menu li:hover > .sub-menu,
	.jk-menu li:focus-within > .sub-menu {
		display: none;
	}

	.jk-menu li.is-open > .sub-menu {
		display: block;
	}

	.jk-menu .sub-menu a {
		padding: 10px 28px;
		font-size: 12px;
		white-space: normal;
	}
}

@media (max-width: 767px) {
	.jk-header__inner {
		min-height: 80px;
		padding: 14px 39px 14px 49px;
	}

	.jk-header__logo img {
		width: 76px;
	}

	.jk-nav__toggle {
		width: 53px;
		height: 52px;
		padding: 8px;
	}

	.jk-menu {
		max-height: calc(100vh - 80px);
	}
}

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

.jk-footer {
	background: var(--jk-cream);
}

.jk-footer__inner {
	display: flex;
	align-items: center;
	max-width: 1500px;
	min-height: 340px;
	margin: 0 auto;
	padding: 10px;
}

.jk-footer__contact {
	display: flex;
	flex: 0 0 400px;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.jk-footer__logo {
	display: block;
	line-height: 0;
}

.jk-footer__logo img {
	display: block;
	width: 81px;
	height: auto;
}

.jk-footer__address {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	line-height: 21px;
	color: var(--jk-brown);
}

.jk-footer__links,
.jk-footer-menu,
.jk-social {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jk-footer__links li + li {
	margin-top: 5px;
}

.jk-footer__links a {
	display: flex;
	align-items: center;
	gap: 11px;
	font-size: 20px;
	font-weight: 500;
	line-height: 30px;
	text-decoration: none;
	color: var(--jk-brown);
}

.jk-footer__links img {
	flex: 0 0 auto;
	width: 25px;
	height: 25px;
}

.jk-footer__side {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-end;
	gap: 20px;
}

.jk-footer-menu a {
	display: block;
	padding: 5px 20px;
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	text-align: right;
	text-transform: uppercase;
	text-decoration: none;
	color: #000;
}

.jk-footer-menu a:hover,
.jk-footer-menu a:focus-visible,
.jk-footer-menu .current-menu-item > a {
	color: var(--jk-red-alt);
}

.jk-social {
	display: flex;
	gap: 16px;
	padding-right: 15px;
}

.jk-social img {
	display: block;
	width: 42px;
	height: 42px;
}

@media (max-width: 1024px) {
	.jk-footer__inner {
		padding: 10px 30px 10px 40px;
	}

	.jk-footer__contact {
		flex-basis: 300px;
		align-items: flex-start;
	}

	.jk-footer__logo img {
		width: 75px;
	}

	.jk-footer__address {
		font-size: 11px;
		line-height: 13px;
	}

	.jk-footer__links a {
		gap: 8px;
		font-size: 11px;
		line-height: 17px;
	}

	.jk-footer__links img {
		width: 14px;
		height: 14px;
	}

	.jk-footer-menu a {
		font-size: 12px;
		line-height: 15px;
	}

	.jk-social {
		gap: 10px;
		padding-right: 10px;
	}

	.jk-social img {
		width: 23px;
		height: 23px;
	}
}

@media (max-width: 767px) {
	.jk-footer__inner {
		flex-direction: column;
		gap: 40px;
		padding: 10px 10px 30px;
	}

	.jk-footer__contact {
		flex-basis: auto;
		align-items: center;
		text-align: center;
	}

	.jk-footer__side {
		align-items: center;
	}

	.jk-footer-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}

	.jk-footer-menu a {
		padding: 5px 10px;
		font-size: 11px;
		line-height: 13px;
	}

	.jk-social {
		padding-right: 0;
	}
}

/* ------------------------------------------------------------------ Carrousels (remplacent « nested-carousel » d'Elementor Pro)
 * Dans Elementor : un conteneur avec la classe CSS « jk-carousel », une diapositive = un conteneur enfant.
 * Nombre de diapositives visibles : 3 (bureau), 3 (tablette), 1 (mobile) ; modifiable avec les classes
 * jk-cols-N, jk-cols-t-N, jk-cols-m-N (N de 1 à 4). Flèches : conteneurs #slideX_left / #slideX_right si
 * le carrousel a l'ID CSS « sliderX », sinon au-dessus du carrousel.
 */

.jk-carousel {
	--jk-gap: 15px;
	--jk-cols: 3;
}

.jk-carousel.jk-cols-1 { --jk-cols: 1; }
.jk-carousel.jk-cols-2 { --jk-cols: 2; }
.jk-carousel.jk-cols-4 { --jk-cols: 4; }

.jk-carousel:not(:has(> .e-con-inner)),
.jk-carousel > .e-con-inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: var(--jk-gap) !important;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.jk-carousel:not(:has(> .e-con-inner))::-webkit-scrollbar,
.jk-carousel > .e-con-inner::-webkit-scrollbar {
	display: none;
}

.jk-carousel > .e-con,
.jk-carousel > .e-con-inner > .e-con {
	flex: 0 0 calc((100% - (var(--jk-cols) - 1) * var(--jk-gap)) / var(--jk-cols)) !important;
	width: auto !important;
	max-width: none !important;
	scroll-snap-align: start;
}

/* Dans l'éditeur Elementor, toutes les diapositives sont visibles pour être modifiées. */
.elementor-editor-active .jk-carousel:not(:has(> .e-con-inner)),
.elementor-editor-active .jk-carousel > .e-con-inner {
	flex-wrap: wrap !important;
	overflow: visible;
}

.jk-carousel__nav {
	display: flex;
	justify-content: flex-end;
	gap: 50px;
	margin-bottom: 20px;
}

.jk-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #000;
	background: #fff;
	cursor: pointer;
}

.jk-carousel__arrow--prev {
	background: rgba(255, 255, 255, .5);
}

.jk-carousel__arrow:hover,
.jk-carousel__arrow:focus {
	color: #000;
	background: #fff;
}

.jk-carousel__arrow svg {
	width: 62%;
	height: 62%;
	fill: none;
	stroke: currentColor;
	stroke-width: 3.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.jk-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: -10px; /* rapproche les puces des diapositives malgré l'espacement du conteneur parent */
}

.jk-carousel__dot {
	width: 6px;
	height: 6px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .2);
	cursor: pointer;
}

.jk-carousel__dot[aria-current="true"],
.jk-carousel__dot:hover,
.jk-carousel__dot:focus {
	background: #000;
}

@media (max-width: 1024px) {
	.jk-carousel.jk-carousel { --jk-cols: 3; --jk-gap: 0px; }
	.jk-carousel.jk-cols-t-1 { --jk-cols: 1; }
	.jk-carousel.jk-cols-t-2 { --jk-cols: 2; }
	.jk-carousel.jk-cols-t-4 { --jk-cols: 4; }

	.jk-carousel__arrow {
		width: 40px;
		height: 40px;
	}
}

@media (max-width: 767px) {
	.jk-carousel.jk-carousel { --jk-cols: 1; }
	.jk-carousel.jk-cols-m-2 { --jk-cols: 2; }
	.jk-carousel.jk-cols-m-3 { --jk-cols: 3; }
	.jk-carousel.jk-cols-m-4 { --jk-cols: 4; }
}

@media (prefers-reduced-motion: reduce) {
	.jk-carousel:not(:has(> .e-con-inner)),
	.jk-carousel > .e-con-inner {
		scroll-behavior: auto;
	}
}
