/*
Theme Name: BMX Trégueux
Author: Thomas Baccelli
Description: Thème pour le site du club de BMX de Trégueux
Version: 2.0
*/

* {
	margin: 0;
	box-sizing: border-box;
	min-width: 0;
}

html, body {
	background-color: rgb(45, 45, 45);
	font-family: Arial, Geneva, sans-serif;
}

a {
	color: #4F96E6;
	transition: color 300ms;
}
a:hover {
	color: #4481C6;
}

/* HEAD */
#head {
	background-color: rgb(45, 45, 45);
	text-align: center;
}

#head img {
	max-height: 240px;
	max-width: 100%;
}

#sponsor-bar {
	background-color: #F0F0F0;
	padding: 10px 0;
	box-shadow: 0 0 10px rgba(0, 0, 0, .6) inset;
	overflow: scroll;
}

#sponsors {
	width: 550px;
	margin: auto;
}

@media (min-width: 1100px) {
	#sponsors {
		width: auto;
	}
}

#sponsors img {
	width: 100px;
	margin: 0 5px;
}

/* MENU */
#menu {
	padding: 0;
	background-color: rgb(210,210,210);
	border-top: 1px solid rgb(230, 230, 230);
	border-bottom: 1px solid rgb(190, 190, 190);
	list-style: none;
	text-transform: uppercase;
	text-align: center;
	font-size: 12px;
	font-weight: bold;
	text-shadow: 0 1px 1px rgba(255, 255, 255, .3);
}

#menu > li {
	display: inline-block;
	position: relative;
}

#menu > li:not(:first-child) {
	border-left: 1px solid rgb(200, 200, 200);
}

#menu li a {
	padding: 7px;
	width: 110px;
	display: block;
	color: rgb(100,100,100);
	text-decoration: none;
}

#menu li:hover a {
	background-color: rgb(100,100,100);
	color: white;
	text-shadow: 0 1px 1px rgba(0,0,0, .3);
}

#menu li:hover {
	z-index: 1000;
}

#menu > li > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	list-style: none;
	padding: 0;
	text-align: left;
	width: 260px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

#menu > li > ul a {
	width: 100%;
}

#menu > li > ul > li:hover a {
	background-color: #4F96E6;
}

#menu > li:hover > ul {
	display: block;
}

/* CONTENT */
#main-content {
	font-family: "Manrope", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
}

#main-content :not(.content) h2 {
	text-shadow: 0 1px 1px rgba(0,0,255, .3);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
	color: white;
	background-color: #4F96E6;
	margin: 10px 0 0 -7px;
	font-family: "Bricolage Grotesque", sans-serif;
	font-optical-sizing: auto;
	font-style: normal;
	font-variation-settings: "wdth" 100;
}

#main-content h2:not(:has(> a)) {
	padding: 10px 20px;
}

#main-content h2 a {
	display: inline-block;
	width: 100%;
	color: inherit;
	text-decoration: none;
	padding: 10px 20px;
	transition: background-color 300ms;
}

#main-content h2 a:hover {
	background-color: #4481C6;
}

#main-content {
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 1320px;
	margin: auto;
}

@media (min-width: 550px) {
	#main-content {
		flex-direction: row;
		align-items: start;
		flex-wrap: wrap;
		padding: 20px;
		gap: 20px;
	}

	#main-content #left, #main-content #right {
		flex: 1;
	}

	#main-content #main {
		flex: 1 1 100%;
	}
}

@media (min-width: 1100px) {
	#main-content {
		flex-wrap: nowrap;
		padding:30px;
		gap: 30px;
	}

	#main-content #left, #main-content #right {
		flex: 0 0 250px;
	}

	#main-content #right {
		order: 3;
	}

	#main-content #main {
		flex: 1;
	}
}

#left, #right, .article {
	background-color: white;
	border: 1px solid rgb(220, 220, 220);
}

#left p, #right p {
	padding: 3px 15px;
}

.widget {
	font-size: 0.9rem;
}

.widget :not(h2) {
	overflow: hidden;
}

.widget .textwidget {
	margin: 10px 0;
}

.article {
	margin-bottom: 20px;
	padding: 0;
}

.article .publication {
	color: white;
	padding: 7px;
	background-color: rgb(50,50,50);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
	font-size: .8rem;
}

.article .content {
	overflow: hidden;
	line-height: 1.5em;
}

.article .content li {
	margin: 10px 0;
	padding-right: 20px;
}

.article .content > *:not(figure, ul, ol, .content) {
	padding: 10px 20px;
}

.article img {
	max-width: 100%;
	width: auto;
	height: auto;
}

.aligncenter {
	display: block;
	margin: auto;
}

/* COMMENTS */
.article .comments {
	border-top: 1px dashed rgb(220,220,220);
	font-size: .8rem;
}

.article .comments form > * {
	margin: 10px 20px;
}

.article .comments:has( > a) {
	padding: 15px;
}

.article .comments a {
	color: rgb(50,50,50);
	text-decoration: none;
}

.article .comments a:hover {
	text-decoration: underline;
}

.article .comments .comment {
	display: flex;
	gap: 10px;
	font-size: .9rem;
	margin: 20px;
	padding: 10px;
	background-color: rgb(245, 245, 245);
}

.article .comments .comment .avatar {
	height: auto;
	flex: 0 0 auto;
}

.article .comments .comment .com-author {
	line-height: 30px;
	color: #555;
}

.article .comments #commentform textarea {
	width: 100%;
	resize: vertical;
}

.article .comments #commentform label {
	display: block;
}

.article .comments #commentform input[type="submit"] {
	border: none;
	background-color: #4F96E6;
	padding: 5px 10px;
	color: white;
}

.article .comments #commentform input[type="submit"]:hover {
	background-color: #4481C6;
}

/* NAVIGATION LINKS */
#pages {
	display: flex;
	justify-content: space-between;
}

#pages a {
	padding: 8px;
	width: 170px;
	color: white;
	text-align: center;
	text-decoration: none;
	background-color: #4F96E6;
	text-shadow: 0 1px 1px rgba(0, 0, 255, .3);
	transition: background-color 300ms;
}

#pages a:hover {
	background-color: #4481C6;
}

#pages a.next {
	margin-left: auto;
}

#background {
	background-color: rgb(240,240,240);
	box-shadow: 0 7px 7px rgba(0, 0, 0, .6);
}

/* FOOTER */
#footer {
	color: rgb(220, 220, 220);
}

#footer a {
	color: inherit;
	text-decoration: none;
}

#footer a:hover {
	text-decoration: underline;
}

#footer-content {
	font-size: .8rem;
	background-color: rgb(45, 45, 45);
	position: absolute;
	width: 100%;
	z-index: -1;
}

#footer-content h2 {
	margin-bottom: 10px;
}

#last-comments {
	max-width: 550px;
	margin: auto;
	padding: 30px;
}

#realisation {
	padding: 15px;
	text-align: center;
	border-top: 1px dashed grey;
}