@font-face {
	font-family: "KingthingsFoundation";
	src: url("/style/fonts/KingthingsFoundation.woff2") format("woff2");
	font-display: swap;
}

@font-face {
	font-family: KingthingsCal;
	src: url('/style/fonts/Kingthings_Calligraphica.woff2') format("woff2");
	font-display: swap;
}

#formContact>p>#remarque {
	display: none;
}

html {
	font-size: 15px;
}

BODY {
	margin: 0px;
	padding: 0px;
	font-family: "KingthingsFoundation", serif;
	background: url(/images/style/background_repeat.webp) repeat left;
	font-size: 15px;
	line-height: 1.5;
}

.photo-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.photo-wrapper>img:not(.cadre) {
	display: block;
	max-width: 100%;
	height: auto;
}

.photo-wrapper img.cadre {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	left: 0;
}


/* COMPOSANTS */

img,
a img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	display: inline-block;
	outline-style: none;
	border: none;
}

a:link,
a:visited {
	color: #874b28;
	text-decoration: none;
}

a:hover {
	color: black;
	text-decoration: none;
}

a:link.figL {
	color: #E8E4D9;
	background-color: black;
	width: 100%;
	text-align: center;
}

a:hover.figL {
	color: #874b28;
}

h1 {
	font-family: "KingthingsFoundation", serif;
	font-size: 24px;
	color: #2b1c1b;
	font-weight: bold;
}

h2 {
	font-weight: bold;
	color: #554630;
	font-size: 18px;
	font-family: "KingthingsFoundation", serif;
}

.upcoming-campaigns {
	max-width: 620px;
	margin: 1.5rem auto 2rem;
	padding: 0.8rem 1.2rem 0.9rem;
	border: 1px solid rgba(85, 70, 48, 0.35);
	background: rgba(232, 228, 217, 0.55);
	box-shadow: 0 2px 5px rgba(43, 28, 27, 0.12);
}

.upcoming-campaigns h2 {
	margin: 0 0 0.45rem;
	font-size: 20px;
}

.upcoming-campaigns-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.upcoming-campaigns-list li {
	padding: 0.3rem 0;
	border-top: 1px solid rgba(85, 70, 48, 0.2);
}

.upcoming-campaigns-list strong,
.upcoming-campaigns-list span {
	display: block;
}

.upcoming-campaigns-list strong {
	color: #874b28;
}

.upcoming-campaigns-link {
	margin: 0.65rem 0 0;
	font-size: 13px;
	text-align: right;
}

h3 {
	font-weight: bold;
	color: #554630;
	font-size: 15px;
	font-family: "KingthingsFoundation", serif;
}

.texte {
	font-size: 13px;
	color: #4c381c;
	text-indent: 15px;
	color: black;
}

.photo {
	text-align: center;
}

.membres {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* grid-template-rows: min-content; */
	justify-items: center;
	grid-gap: 15px;
}

.character-panel {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 315px min-content;
	border: 3px solid black;
	justify-items: center;
	background-color: black;
	color: #E8E4D9;
}


/* STRUCTURE */


#header-background {
	height: 150px;
	width: 100%;
	position: fixed;
	top: 0;
	z-index: 10;
	background-image: url(/images/style/header_background_repeat.webp);
	background-position: left;
	background-repeat: repeat-x;
}

#header-components {
	height: 230px;
	width: 100%;
	position: fixed;
	top: 0;
	z-index: 15;
	background-image: url(/images/style/header_components.webp);
	background-position: center;
	background-repeat: no-repeat;
}

#background-top {
	height: 125px;
	width: 100%;
	position: fixed;
	top: 140px;
	z-index: 2;
	background-image: url(/images/style/background_top.webp);
	background-repeat: repeat-x;
}

#background-repeat {
	z-index: 0;
	position: relative;
	height: 100%;
	background-image: url(/images/style/background_repeat.webp);
	background-repeat: repeat;
}

#background-bottom {
	height: 120px;
	width: 100%;
	position: fixed;
	bottom: 90px;
	z-index: 2;
	background-image: url(/images/style/background_bottom.jpg);
	background-position: left;
	background-repeat: repeat-x;
}

#photo-frame {
	position: fixed;
	margin-top: -200px;
	top: 50%;
	height: 500px;
	width: 100%;
	z-index: 5;
	background-image: url(/images/style/cadre_photos.webp);
	background-position: center;
	background-repeat: repeat-x;
}

#photo-content {
	position: fixed;
	margin-top: -180px;
	top: 50%;
	left: 50%;
	transform: translateX(-50%);
	height: 460px;
	width: min(1806px, calc(100vw - 40px));
	max-width: calc(100vw - 40px);
	z-index: 4;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#photo-content img {
	display: block;
}

#photo-content .photo-gallery-image {
	width: 301px;
	height: 450px;
	vertical-align: top;
	object-fit: cover;
}

#photo-content .photo-gallery-separator {
	width: 9px;
	height: 450px;
	object-fit: contain;
}

/* CONTENT */

#content-main {
	position: relative;
	width: 694px;
	margin-top: 210px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 120px;
	z-index: 7;
}

#content-background {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 694px;
	top: 3px;
	bottom: 3px;
	z-index: 7;
	background: url(/images/style/back_text.webp) repeat-y center;
}

#content-top-frame {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 694px;
	height: 24px;
	z-index: 8;
	margin: 0 auto;
	background: url(/images/style/cadre_top.webp) no-repeat center;
}

#content-repeat-frame {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	float: left;
	width: 694px;
	z-index: 8;
	margin: 0 auto;
	background: url(/images/style/cadre_repeat.webp) repeat-y center;
}

#content-text {
	margin-left: 40px;
	margin-right: 40px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	z-index: 9;
}

#content-membres {
	margin-left: 40px;
	margin-right: 40px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	z-index: 9;
}

#content-bottom-frame {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 694px;
	height: 24px;
	z-index: 8;
	clear: both;
	margin: 0 auto;
	background: url(/images/style/cadre_bottom.webp) no-repeat center;
}

/* FIN CONTENT */

#footer {
	height: 60px;
	text-align: right;
	width: 100%;
	position: fixed;
	bottom: 0;
	z-index: 10;
	background-image: url(/images/style/footer.webp);
	background-position: left;
	background-repeat: repeat-x;
}

/* MENU */

#menu {
	height: 105px;
	width: 1068px;
	margin-left: -581px;
	position: fixed;
	left: 50%;
	top: 91px;
	z-index: 15;
	color: white;
	font-family: "KingthingsFoundation", serif;
}

#ecu01 {
	float: left;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu01.webp) no-repeat 0;
	position: relative;

}

#ecu01:hover {
	background: transparent url(/images/style/ecu01.webp) no-repeat -89px;
}

#ecu02 {
	float: left;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu02.webp) no-repeat 0;
	position: relative;

}

#ecu02:hover {
	background: transparent url(/images/style/ecu02.webp) no-repeat -89px;
}

#ecu03 {
	float: left;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu03.webp) no-repeat 0;
	position: relative;

}

#ecu03:hover {
	background: transparent url(/images/style/ecu03.webp) no-repeat -89px;
}

#ecu04 {
	float: left;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu04.webp) no-repeat 0;
	position: relative;

}

#ecu04:hover {
	background: transparent url(/images/style/ecu04.webp) no-repeat -89px;
}

#ecu05 {
	float: left;
	margin-left: 2px;
	margin-right: 3px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu05.webp) no-repeat 0;
	position: relative;
}

#ecu05:hover {
	background: transparent url(/images/style/ecu05.webp) no-repeat -89px;
}

#ecu06 {
	float: right;
	margin-left: 3px;
	margin-right: 2px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu06.webp) no-repeat 0;
	position: relative;
}

#ecu06:hover {
	background: transparent url(/images/style/ecu06.webp) no-repeat -89px;
}

#ecu07 {
	float: right;
	margin-left: 3px;
	margin-right: 2px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu07.webp) no-repeat 0;
	position: relative;

}

#ecu07:hover {
	background: transparent url(/images/style/ecu07.webp) no-repeat -89px;
}

#ecu08 {
	float: right;
	margin-left: 3px;
	margin-right: 2px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu08.webp) no-repeat 0;
	position: relative;

}

#ecu08:hover {
	background: transparent url(/images/style/ecu08.webp) no-repeat -89px;
}

#ecu09 {
	float: right;
	margin-left: 3px;
	margin-right: 2px;
	text-align: center;
	width: 89px;
	height: 130px;
	background: transparent url(/images/style/ecu09.webp) no-repeat 0;
	position: relative;

}

#ecu09:hover {
	background: transparent url(/images/style/ecu09.webp) no-repeat -89px;
}

#menu a {
	font-family: "KingthingsFoundation", serif;
	text-shadow: #f7f2e7 0px 1px 0, #4e3c25 0 -1px 0;
	font-size: 16px;
	font-style: normal;
	font-weight: bold;
	color: #9b907e;
}

#menu a:hover {
	color: #2b1c1b;
}

/* GALLERIES */
.gallery-intro {
	text-align: left;
}

.grid-wrapper>div {
	display: flex;
	justify-content: center;
	align-items: center;
}

.grid-wrapper>div>img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

.grid-wrapper {
	display: grid;
	grid-gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	grid-auto-rows: 200px;
	grid-auto-flow: dense;
}

.grid-wrapper .C1R2 {
	grid-row: span 2;
	border: 3px solid black;
}

.gallery-zoom {
	column-width: 240px;
	column-gap: 14px;
}

.gallery-zoom figure {
	display: flex;
	flex-direction: column;
	width: 100%;
	break-inside: avoid;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
	margin: 0;
	margin-bottom: 14px;
	background: #111;
}

.gallery-zoom figure img {
	width: 100%;
	height: auto;
	display: block;
}

.gallery-zoom figcaption {
	padding: 10px 12px;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.95rem;
	line-height: 1.4;
}

@media (max-width: 640px) {
	.gallery-zoom {
		column-width: auto;
		column-count: 1;
		column-gap: 0;
	}

	.gallery-zoom figcaption {
		font-size: 0.9rem;
		padding: 10px;
	}
}

.grid-wrapper .C1R3 {
	grid-row: span 3;
	border: 3px solid black;
}

.grid-wrapper .C2R1A {
	grid-auto-rows: 200px;
	grid-column: span 2;
	border: 3px solid black;
}

.grid-wrapper .C2R1 {
	grid-column: span 2;
	border: 3px solid black;
}

.grid-wrapper .C2R2 {
	grid-column: span 2;
	grid-row: span 2;
	border: 3px solid black;
}

.grid-wrapper .C3R1 {
	grid-column: span 3;
	border: 3px solid black;
}

.grid-wrapper .C3R2 {
	grid-column: span 3;
	grid-row: span 2;
	border: 3px solid black;
}

/* huge */
.grid-wrapper .C3R3 {
	grid-column: span 3;
	grid-row: span 3;
	border: 3px solid black;
}

.grid-wrapper .none {
	border: 3px solid black;
}

#mobileMenu {
	display: none !important;
}

@media (max-width:768px) {

	/* Anti-scroll horizontal */
	html,
	body {
		overflow-x: hidden !important;
		width: 100% !important;
		margin: 0;
		padding: 0;
	}

	/* Colonne mobile (contenu uniquement) */
	#content-main,
	#content-text,
	#content-membres,
	#content-top-frame,
	#content-repeat-frame,
	#content-bottom-frame {
		width: 100% !important;
		max-width: 480px !important;
		margin: 0 auto !important;
		padding: 0 14px !important;
		box-sizing: border-box !important;
	}

	/* IMPORTANT : espace sous le menu mobile */
	#content-main {
		margin-top: 80px !important;
	}

	/* Neutralisation des cadres décoratifs */
	#content-top-frame,
	#content-repeat-frame,
	#content-bottom-frame {
		background: none !important;
		height: auto !important;
	}

	/* Neutralisation complète des éléments FIXES qui bloquent les clics */
	#header-background,
	#header-components,
	#background-top,
	#background-bottom,
	#background-left,
	#background-right,
	#background-repeat,
	#photo-frame,
	#photo-content,
	#content-background {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		position: static !important;
		z-index: -1 !important;
		pointer-events: none !important;
	}

	/* Footer fixe neutralisé */
	#footer {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		position: static !important;
		z-index: -1 !important;
		pointer-events: none !important;
	}

	/* Menu desktop neutralisé */
	#menu {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		position: static !important;
		z-index: -1 !important;
		pointer-events: none !important;
	}

	/* Images fluides */
	img {
		max-width: 100% !important;
		height: auto !important;
		display: block;
		margin: 12px auto;
	}

	/* Texte */
	p {
		font-size: 17px;
		line-height: 1.7;
	}

	/* Titres */
	h1 {
		font-size: 26px;
		line-height: 1.3;
	}

	h2 {
		font-size: 22px;
		line-height: 1.3;
	}

	h3 {
		font-size: 18px;
		line-height: 1.3;
	}

	/* Grilles */
	.membres,
	.members-grid,
	.gallery-grid {
		display: block !important;
	}

	.membres>div,
	.members-grid>div,
	.gallery-grid>div {
		margin-bottom: 20px !important;
	}

	/* MENU MOBILE */
	#mobileMenu {
		display: block !important;
		position: fixed !important;
		top: 10px;
		left: 0;
		right: 0;
		z-index: 999999 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 14px !important;
		box-sizing: border-box !important;
	}

	#menuBtn {
		height: 48px;
		background: #d7c7a1;
		border: 2px solid #3b2c19;
		font-size: 20px;
		font-weight: bold;
		cursor: pointer;
		width: 100%;
		position: relative !important;
		z-index: 1000000 !important;
	}

	#mobileNav {
		display: none;
		background: #f3ead7;
		border: 2px solid #3b2c19;
		margin-top: 4px;
		position: relative !important;
		z-index: 1000000 !important;
	}

	#mobileNav.open {
		display: block;
	}

	#mobileNav a {
		display: block;
		padding: 14px;
		border-bottom: 1px solid #a78d62;
		color: #3b2c19;
		text-decoration: none;
	}

	#mobileNav a:hover {
		background: #d6c29a;
	}
}