@font-face {
	font-family: 'saira_condensedthin';
	src: url('../../ui/font/sairacondensed-thin-webfont.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: display;
	unicode-range: U+000-5FF; /* Latin glyphs */
  }

*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	 font-size: clamp(1rem, 5.3vw - 1.3rem, 2rem);
	--color-bg: rgb(43, 40, 43);
	--color-link: rgb(97, 220, 163);
	--clr: snow;
}

body {
	margin: 0;
	color: var(--clr);
	background: var(--color-bg);
	background-size: cover;
	font-family: 'saira_condensedthin', sans-serif;
}


a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid var(--color-link);
	background: transparent;
}


main {
	height: 100vh;
}


.content {
	display: grid;
	padding: 7vh 2rem 0;
	width: 100vw;
	height: 100vh;
}



.splitting .words .word {
	white-space: nowrap;
}

.chapitres {
display : flex;
gap: 1rem;
flex-wrap: wrap;
position: absolute;
top: .8em;
flex-flow: column wrap;
}

.chapitres button {
	border: 0;
	color: inherit;
	white-space: nowrap;
	background: none;
	font: inherit;
	cursor: pointer;
	color: var(--color-link);
	font-size: 0.75rem;
}

.chapitres button::before {
	content: "[";
	margin-right: 0.5rem;
	display: inline-block;
}

.chapitres button::after {
	content: "]";
	margin-left: 0.5rem;
	display: inline-block;
}

.chapitres button:hover {
	color: var(--clr);
}



.diapos {

	place-content: center;
}

.diapos .diapo {
	grid-column: 1;
	grid-row: 1;
	opacity: 0;
	transition: opacity 0.4s;
}


p {
	hyphens: auto;
	line-height: 1.4;
	text-align: justify;
	max-inline-size: clamp(35ch, 50vw, 50ch);
}

.diapos .diapo.active {
	opacity: 1;
}

nav {
	width:8em;
	position: absolute;
	bottom: .8em;
	right: .8em;
	padding: .5em .8em;
}

a.retour_accueil {
	color: var(--color-link);
	font-size: .75rem;
  }

  a.retour_accueil:hover {
	color:var(--clr)
  }

  .page {
	display: block;
	text-align: center;
	margin:1.5rem;
  }

	@media only screen and (max-width:437px) {
		.chapitres {
		flex-flow: row wrap;
		}
	}
