/*
 * Theme Name: Thème livres blancs
 * Description: Thème pour les hommages/livres blancs
 * Author: Hugo Heuzebroc, UTC
 * Version: 0.0.1
 */

@font-face {
  font-family: din;
  src: url("assets/fonts/dinlight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: din;
  src: url("assets/fonts/dinregular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family:din;
  src: url("assets/fonts/dinbold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

* {
	margin: 0;
	padding: 0;
}
html {
	font-size: 10px;
	color: #222;
	scroll-behavior: smooth;
}
html, input, textarea, button {
	font-family: din, verdana, sans-serif;
}
body {
	font-size: 1.6rem;
	background: #f5f5f5;
}
main, footer {
	max-width: 1000px;
	padding: 0 20px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}
main {
	margin-top: 30px;
	margin-bottom: 30px;
}

header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	border-bottom: 1px solid #777;
}
.logo {
	height: 10rem;
}

.portrait {
	display: flex;
	gap: 30px;
}
.portrait img {
	box-shadow: 2px 2px 4px #777;
	border: 1px solid #777;
	max-height: 35rem;
	width: auto;
}
.desc {
	text-align: center;
	flex-grow: 1;
}
.portrait img + .desc {
	text-align: left;
}

h1 {
	font-size: 3rem;
	text-align: right;
	margin-bottom: 15px;
	margin-top: 15px;
}
h2 {
	font-weight: normal;
	margin-bottom: 10px;
	margin-top: 35px;
	font-size: 1.8rem;
}
p {
	margin-bottom: 15px;
}
section {
	margin-bottom: 30px;
}
section.centered {
	text-align: center;
}
a {
	color: #00596D;
	font-weight: bold;
	transition: 0.2s;
}
a:hover {
	color: #777;
}

footer {
	padding-bottom: 100px;
}
footer nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 20px;
}
footer h2 {
	text-align: center;
	font-size: 1.6rem;
	margin-bottom: 15px;
}

/* formulaire */
input, textarea {
	display: block;
	border: 1px solid #222;
	margin-bottom: 15px;
	padding: 5px;
	font-size: 1.5rem;
}
input:not([type="checkbox"], [type="radio"], [type="submit"]) {
	width: min(40rem, 95%);
	min-width: 20rem;
}
textarea {
	width: 100%;
	min-height: 100px;
}
label {
	font-weight: bold;
	margin-bottom: 5px;
	color: #222;
	display: block;
}

.write-button, input[type='submit'] {
	background: #00596D;
	color: #f5f5f5;
	border: 1px solid #00596D;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 1.6rem;
	display: block;
	transition: 0.2s;
	width: fit-content;
	text-decoration: none;
}
.write-button {
	margin: 0 auto;
}
.write-button:hover, input[type='submit']:hover {
	color: #00596D;
	background: transparent;
}

/* boucle messages */
.noresults {
	text-align: center;
	padding: 20px;
	border: 1px solid #777;
	border-left: none;
	border-right: none;
}

@media (max-width: 768px) {
	.portrait {
		flex-direction: column;
	}
	.portrait img {
		max-height: unset;
		margin-left: auto;
		margin-right: auto;
		max-width: 100%;
		height: auto;
	}
}
@media (max-width: 576px) {
	header {
		flex-direction: column;
		justify-content: center;
	}
}