/* ===== reset minimal ===== */

:root {
	--couleur-fond: #8dff47;
	--couleur-texte: #960047;
	--couleur-hover: white;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	overflow: hidden;
	background-color: var(--couleur-fond);
	color: var(--couleur-texte);
}

a,
a:link,
a:visited,
a:active {
	color: var(--couleur-texte);
	text-decoration: none;
}

a:hover {
	color: var(--couleur-hover);
}

/* ===== ornement : plein écran, fixe, ne capte pas les clics ===== */

#ornement {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 100;
	pointer-events: none;
}

/* ===== menu : fixe, ne bouge jamais, même au scroll ===== */

#menu {
	position: fixed;
	top: 17vh;
	left: 0;
	width: 100%;
	z-index: 10;
	display: flex;
	align-items: flex-start;
	gap: 3vw;
	padding: 1.5vh 15%;
	background-color: transparent;
}

#texte-bienvenue {
	width: 26vw;
	font-size: 80%;
}

.menu-item {
	position: relative;
}

.menu-item > a {
	cursor: pointer;
	font-size: 80%;
}

.sous-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	flex-direction: column;
	white-space: nowrap;
	padding-top: 1vh;
	font-size: 80%;
	z-index: 30;
}

.menu-item:hover .sous-menu {
	display: flex;
}

/* ===== contenu : deux iframes côte à côte, sous le menu fixe ===== */

#contenu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: flex-start;
	z-index: 5;
}

#colonne-gauche,
#colonne-droite {
	width: 50%;
	height: 100%;
	border: none;
	overflow-y: auto;
	overflow-x: hidden;
	background: transparent;
	-webkit-overflow-scrolling: touch;
}

#video {
	width: 100vw;
}







/* ===== conteneurs mobiles : masqués par défaut (desktop) ===== */

.mobile-only {
	display: none;
}

/* ===== version mobile / smartphone ===== */

@media (max-width: 768px) {

	html, body {
		height: auto;
		min-height: 100%;
		overflow-y: auto;
	}

	#ornement {
		height: 100vh;
	}

	#menu {
		top: 17vh;
		left: 5vw;
		flex-wrap: wrap;
		gap: 2vw;
		padding: 3vw 4vw;
		font-size: 60%;
		line-height: 1;
	}

	#texte-bienvenue {
		width: 100%;
		order: -1;
		font-size: 110%;
	}

	.menu-item > a {
		font-size: 120%;
	}

	.sous-menu {
		font-size: 100%;
	}

	#contenu {
		position: relative;
		top: 0;
		left: 0;
		width: 100%;
		height: auto;
		flex-direction: column;
		/* l'image 1 démarre en haut de la page ; le menu (fixe, fond
		   transparent) flotte par-dessus, comme sur desktop */
		padding-top: 0;
	}

	.mobile-only {
		display: block;
		width: 100%;
	}

	.mobile-only img {
		width: 100%;
		height: auto;
		display: block;
	}

	#colonne-gauche {
		width: 100%;
		height: auto;
		overflow: visible;
	}

	#colonne-droite {
		display: none;
	}
}

/* ===== bords flous sur toutes les images ===== */

img {
	-webkit-mask-image:
		linear-gradient(to right,  transparent 0px, black 5px, black calc(100% - 5px), transparent 100%),
		linear-gradient(to bottom, transparent 0px, black 5px, black calc(100% - 5px), transparent 100%);
	-webkit-mask-composite: destination-in;
	mask-image:
		linear-gradient(to right,  transparent 0px, black 5px, black calc(100% - 5px), transparent 100%),
		linear-gradient(to bottom, transparent 0px, black 5px, black calc(100% - 5px), transparent 100%);
	mask-composite: intersect;
}
