@font-face {
    font-family: 'masuperpolice';
    src: url('AlumniSansInlineOne-Regular.ttf') format('truetype');
}


:root {
	--body-background-color: #ffffff;
	--p-background-color: rgba(255,255,255,0.5);
	--body-background-image: url(img/fond.jpg);
	--body-text-color: #000000;
	--section-background-color: rgba(255,255,255,0.5);
	--section-p-text-color: #000000;
	--section-text-underline-color: #000000;
	--section-background-image: url(img/fond.jpg);
	--h1-background-image:  url(img/fond-montagnes.png), linear-gradient(to bottom, #2f85f6, #ffffff);
	--h1-background-size: auto 150px, 100%;
	--h1-background-repeat: no-repeat, no-repeat;
	--h1-color: #000000;
	--h2-background-image: url(img/fond-etagere.jpg);
	--laforge-color: #ffffff;
	--laforge-background: url(img/fond-etagere.jpg);
}

html[data-theme="dark"] {
	--body-background-color: #000000;
	--body-background-image: url(img/fond-sombre.jpg);
	--body-text-color: #ffffff;
	--section-background-color: rgba(255, 255, 255, 0.033);
	--section-p-text-color: rgba(255, 255, 255, 0.857);
	--section-background-image: url(img/fond-sombre.jpg);
	--p-background-color: rgba(0,0,0,0.2);
	--h1-background-image: url(img/fond-montagnes.png), url(img/etoiles.svg), linear-gradient(to bottom, #000000, #00094c), url(img/etoiles.svg);
	--h1-background-size: auto 150px, 150px 150px, 100%;
	--h1-background-repeat: no-repeat, repeat, no-repeat;
	--h1-color: #ffffff;
	--h2-background-image: url(img/fond-etagere-sombre.jpg);
	--laforge-color: #000000;
	--laforge-background: #ffffff;
}

body {
	background-color: var(--body-background-color);
	color: var(--body-text-color);
	background-image: var(--body-background-image);
	font-size: 0px;
	text-align: center;
}

.section {
	background-color: var(--section-background-color);
	background-image: var(--section-background-image);
    box-shadow: inset 10px 10px 20px rgba(255, 255, 255, 0.5), inset -10px -10px 20px rgba(0, 0, 0, 0.5) !important; /* Ombre intérieure */
}
.section p {
	color: var(--section-p-text-color);
	font-weight: bold;
	background-color: var(--p-background-color);
	margin-left: 15px;
	margin-right: 15px;
	border-radius: 10px;
}

.section p:has(img) {
	background-color: transparent;
	font-size: 0px;

}

.section p:last-child {
	display: none;
}

body {
	margin: auto;
	padding: 10px;
	font-family: Noto Sans, Helvetica, Arial, sans-serif;
	max-width: 1800px;
}

@media screen and (max-width: 500px) {
	body {
		padding: 10px;
	}
	section {
		margin: 20px 5px !important;
	}
	h1 {
		font-size: 7vw;
	}
}

header {
	font-size: 1.2em;
	display: flex;
	flex-wrap: wrap;
}

header figure {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	overflow: hidden;
	margin: auto 2em;
	text-align: center;
}

@media screen and (max-width: 600px) {
	header ul {
		width: 100%;
	}
}

header ul {
	margin-top: 1.5em;
	list-style-type: none;
}

img[alt*="icon"] {
	width: 1.2em;
	margin-top: 0.5em;
	height: 100%;
	margin-right: 0.5em;
	border-radius: 5px;
}

#content {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
	width: calc(100% - 20px);
    font-size: 36px;
    background-image: var(--h2-background-image);
    box-shadow: inset 10px 10px 20px rgba(255, 255, 255, 0.5), inset -10px -10px 20px rgba(0, 0, 0, 0.5) !important; /* Ombre intérieure */
    border-radius: 0.5rem;
    padding: 10px;
    text-align: center;
    position: relative;
}


.section {
	width: 300px;
	max-width: 45%;
	box-shadow: 0.125rem 0.125rem 1rem rgba(0, 0, 0, 0.2);
	margin: 8px;
	border-radius: 0.5rem;
	cursor: pointer;
	text-decoration: none;
}
.section.noAutoLink {
	cursor: auto;
}

.section h3,
.section p {
	padding: 0.5em 2em;
	margin-top: 0px;
	margin-bottom: 15px;
	font-size: 16px;
	color: var(--body-text-color);
}

.section p:first-child {
	margin: 0 !important;
	padding: 0 !important;
}

.section:hover {
	box-shadow: 0.125rem 0.375rem 1.15rem rgba(0, 0, 0, 0.25);
	transform: translateY(-0.25rem);
	transition: transform 150ms ease-out, box-shadow 150ms ease-out;
	z-index: 1;
}

.section h3 {
	width: fit-content;
	margin: 1em auto;
	padding: 0;
	text-align: center;
	font-size: 24px;
	
}

.section a {
	color: var(--section-text-underline-color);
	display: block;
	text-align: left;
	font-size: 0.86em;
	margin-top: 0.25em;
	text-decoration: none;
}

.section p span {
	font-size: 0.95em;
	display: block;
	margin-top: 0.5em;
}

.section img {
	object-fit: fill;
	object-position: center;
	width: -moz-available;
	width: -webkit-fill-available;
	width: fill-available;
	border-radius: 10px;
	height: auto;
	max-width: 97%;
	border: 5px rgb(0, 0, 0) outset;

}

h1 {
	margin: auto;
	display: flex;
	flex-direction: column;
	font-family: 'masuperpolice', sans-serif;
	font-weight: normal;
	font-size: 6vw;	
	line-height: 6vw;
	border: 5px #000000 inset;
	min-height: 150px;
	height: 12vw;
	text-align: right;
	border-radius: 10px;
	padding-bottom: 0px;
	padding-top: 0px;
	padding-right: 10px;
	padding-left: 170px;
	background: var(--h1-background-image);
	background-size: var(--h1-background-size);
	background-repeat: var(--h1-background-repeat);
	background-position: bottom left;
	color: var(--h1-color);
	
}

#accueil {
	text-align: left;
	margin-top: 15px;
	margin-bottom: 15px;
	font-size: 18px;
	line-height: 32px;
	font-family: Arial, Helvetica, sans-serif;
	background-color: rgba(255, 255, 255, 0.5);
	padding: 5px;
	border-radius: 5px;
}

#accueil a {
	display: inline-block;
	font-size: 16px;
	font-family: Arial, Helvetica, sans-serif;
	text-align: left;
	font-weight: bold;
	color: var(--laforge-color);
	background: var(--laforge-background);
	padding-left: 0px;
	padding-right: 10px;
	border-radius: 20px / 50%;
	margin-bottom: 5px;
	text-decoration: none;
	white-space: nowrap;	
}

#accueil a img {
	height: 40px;
	width: auto;
	border-radius: 50%;
	vertical-align: middle;
	margin: 2px 5px 2px 2px;
}


@media (orientation: portrait) {

	h1 {
		font-size: 7vw;
	}

	section {
		width:100%;
		max-width: unset;
	}

}


.mode {
	position: fixed;
	right: 10px;
	bottom: 10px;
	border-radius: 20px;
	padding: 10px 20px;
	height: 1.2em;
	font-size: 14px;
	font-weight: bold;
	line-height: 14px;
	z-index: 2;
}

html[data-theme="dark"] .mode {
	background-color: #ffffff;
	color: #000000;
}

html[data-theme="light"] .mode {
	background-color: #000000;
	color: #ffffff;
}

.mode:after {
	margin-left: 0.5em;
}

html[data-theme="dark"] .mode:after {
	content: "Clair";
}
html[data-theme="light"] .mode:after {
	content: "Sombre";
	color: white;
}