:root{
	color-scheme: light dark;
  background-color: white;
  color: black;
	color-scheme: light dark;

	--main-background-color: #FFF9F4;
	--main-front-color: #9E0B00;
}

/* 1. Reset some defaults */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	width: 100%;
	font-family: system-ui, sans-serif;
	/*
	background: #f9f9f9;
	background: #ff0;
	*/
	background-color: var(--main-background-color);
	line-height: 0rem;
	
	transition: 3s;
	overflow: hidden; /* Prevent scrollbars */
}

#main {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden; /* Prevent scrollbars */
	background-color: var(--main-background-color);
}

/* 2. Layout helpers */
.container {
	width: 90%;
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem 0;
	background: var(--main-background-color);
}



.outer {
	position: absolute;
	top: 0;
	left: 0;

	width: 100vw;
	display: flex;
	justify-content: center;
	align-items: center;

	/*
	border: 2px solid yellow;
	*/
}

/* Inner square div */
.inner {
	width: min(90%, 70vh);
	aspect-ratio: 0.8;
	/*
	border: 1px solid blue;
	*/
}

.upbox {
	width: 100%;
	height: 25%;
	/*
	border: 1px solid orange;
	*/
}

.middlebox {
	position: relative;
	width: 100%;
	height: 75%;
	/*
	border: 1px solid green;
	*/
}

.middlebox img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.div_buttons {
	position: relative;
	display: block;
	top: 0;
	left: 0;
	width: 100vh;
	height: 100vh;
}

.downbox {
	width: 100%;
	height: 25%;
	/*
	border: 1px solid red;
	*/
}

.center_upbox {
	display: flex;
	align-items: center; /* vertical alignment */
	justify-content: center; /* optional: horizontal alignment */
	height: 200px; /* or any fixed height */
}

.bouton {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin: 0.5rem;

	color: white;
	text-decoration: none;
	transition: background-color 0.3s ease;
	//border: 1px solid rgba(0, 0, 0, 0.4);
	cursor: pointer;
}
.bouton:hover {
	/*
	background-color: #555;
	*/
}

#nav_bar {
	position: absolute;
	bottom: 0px;
	width: 100%;
	height: 10%;

	background: var(--main-background-color);

	border-top: 1px solid #f0f;

	display: flex;
	justify-content: center;
	align-items: center;
}

#lang_bar_mobile img {
	position: absolute;
	justify-content: center;
	align-items: center;
	width: 50px;
	object-fit: contain;
	z-index: 0;
}

#lang_bar_desktop img {
	position: absolute;
	justify-content: center;
	align-items: center;
	width: 50px;
	object-fit: contain;
	z-index: 0;
}

.lang-switcher-fr {
	position: absolute;
	display: block;
	top: 10px;
	left: calc(50% - 25px);
	cursor: pointer;
	font-family: "Syncro-Book", system-ui, sans-serif;
	color: #555;
}

.lang-switcher-en {
	position: absolute;
	display: block;
	top: 10px;
	left: calc(50% + 5px);
	
	cursor: pointer;
	font-family: "Syncro-Book", system-ui, sans-serif;
	color: #555;
}

.lang-switcher:hover {
	color: #000;
}
/* accordeon menu pour le module book*/
.block_book{
	margin-top: 0px;
	padding-top: 0px;
}

#main-margin > .block_book:first-of-type {
  background-color: yellow;
}

.book_main{
	display: flex;
	cursor: pointer;
}

.book_main:hover .book_button img{
	transition: 0.3s ease;
}

.book_titre{
	white-space: nowrap;
}

.book_button{
	transition: 0.3s ease;
	position: relative;
	width: 44px;
	min-width: 34px;
	height: 34px;
	/*
	top: 9px;
	*/
	top: 14px;
	
	display: flex;
  justify-content: center;
  align-items: center;
	
	/*
	border: rgba(255, 255, 255, 0.1) 1px solid;
	*/
	cursor: pointer;
}

@-moz-document url-prefix() {
  .book_button {
    top: 9px;
  }
}

.book_button img{
	transition: 0.3s ease;
}

.book_button:hover img{
	transition: 0.3s ease;
}
.book_text{
	max-height: 0px;
	transition: 0.5s ease;
	overflow: hidden;
}

.credits p{
	margin-top: 20px;
	font-size: 0.7rem;
	line-height: 1.15rem;
}
@-moz-document url-prefix() {
	.credits p{
		font-size: 0.8rem;
	}
}


/* === MOBILE styles (≥ 768px) === */
@media (orientation: portrait) {
	.outer {
		height: 100%;
	}
	.inner {
		aspect-ratio: auto;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		height: 90%;
	}
	.upbox {
		height: 100vh;
		//min-height: 10vh;
		text-align: center;
	}
	.middlebox {
		aspect-ratio: 1;
	}
	.downbox {
		position: relative;
		height: 100vh;
		text-align: center;
		display: flex;
		justify-content: center;
		align-items: center;
	}
	#nav_bar {
		display: none;
	}
	#lang_bar_mobile {
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		width: 80px;
		height: 100px;
		overflow: hidden;
	}
	#lang_bar_desktop {
		display: none;
	}
}

canvas {
  image-rendering: pixelated;
}

@media not all and (min-resolution: 0.001dpcm) {
  @supports (-webkit-appearance: none) {
    canvas {
			pointer-events: all;
			cursor: pointer;
		}
  }
}

/* === Desktop styles (≥ 1024px) === */
@media (orientation: landscape) {
	.outer {
		height: 90%;
	}
	.inner {
		width: min(100%, 80vh);
		aspect-ratio: 1;
	}
	.upbox {
		display: none;
	}
	.middlebox {
		height: 100%;
	}
	.downbox {
		display: none;
	}
	#lang_bar_mobile {
		display: none;
	}
	#lang_bar_desktop {
		position: absolute;
		top: 10px;
		right: 30px;

		display: flex;
		justify-content: center;
		align-items: center;
		width: 60px;
		height: 100px;
	}
}
