/* GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* On s'assure que le body prend toute la hauteur de l'écran */
body {
	min-height: 100%;
	background: #242424;
	font-family: "arial", "Comic sans ms", "verdana";
	color:white;
	overflow-x: hidden;
}

/* HEADER */
header {
    background-color: #242424;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid white;
}

header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

header nav .logo {
    display: flex;
    font-size: 1.3em;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: .02em;
    align-items: center;
    gap: 5px;
}

header nav .logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

header nav ul {
    display: flex;
    flex-direction: row;
    gap: .5rem;
    list-style: none;
    align-items: center;
	flex-wrap: wrap;
	justify-content: flex-end;
}

header nav ul li a {
    align-items: center;
    background-color: grey;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: .5rem 1rem;
    border-radius: 999px;
    transition: background-color .15s ease, border-color .15s ease;
    opacity: .9;
    display: inline-flex;
    gap: .15rem;
    border: 1px solid rgba(255,255,255,.08);
}

header nav ul li a span {
    font-size: 1.2rem;
}

header nav ul li a.active {
    background: linear-gradient(135deg, #252984, #2a2f94);
    opacity: 1;
}

header nav ul li a:hover {
    background-color: #242424;
}

@media (max-width: 1025px) {
    header nav ul li a span {
        font-size: 1em;
    }
}

/* MAIN */
main {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-start;
	width: min(1200px, 100%);
	max-width: 100%;
	margin: 1.5rem auto 0;
	padding: 0 1.5rem;
	gap: 1.5rem;
}

.asides {
	flex: 1 1 auto;
}

aside{
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	border: 2px solid white;
	padding: 1.5rem;
	width: 180px;
	flex-shrink: 0;
	margin-bottom: 10px;
}

aside > a {
	display: flex;
}
.sections {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

section{
	flex: 1;
    padding: 1.5rem;
	margin: 0 0 1.5rem;
    width: 100%;
	border-style: solid;
	
}

.chiffresdanspalamares{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.palmarescarre{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
	border: 1px solid white;
	border-radius: 22px;
	padding: 1rem;
	
}
.contact-form {
	display: grid;
	gap: 1rem;
	max-width: 680px;
	margin: 1.5rem auto 0;
}

.form-row {
	display: grid;
	gap: .35rem;
}

.form-row label {
	font-weight: 700;
}

.form-row input,
.form-row textarea {
	width: 100%;
	padding: .7rem;
	border: 1px solid #aaa;
	border-radius: 4px;
	font: inherit;
}

.form-row textarea {
	resize: vertical;
}

.contact-form button {
	justify-self: start;
	padding: .7rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: #d8957b;
	color: #242424;
	font-weight: 700;
	cursor: pointer;
}

.contact-form button:hover {
	background: #edaa8c;
}

.form-success,
.form-error {
	margin-top: 1rem;
	padding: .75rem;
	border: 1px solid;
}

.form-success {
	border-color: #75c989;
	color: #b9f0c5;
}

.form-error {
	border-color: #ed8d8d;
	color: #ffc0c0;
}

// Sous menu compétiton, liste de force, webchallenge
.webchallenge-subnav {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin: 0 0 1.25rem;
	padding: .4rem;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 999px;
	backdrop-filter: blur(4px);
}
.webchallenge-subnav a {
	padding: .6rem 1rem;
	color: #f5f5f5;
	text-decoration: none;
	border-radius: 999px;
	font-weight: 600;
	transition: all 0.2s ease-in-out;
}
.webchallenge-subnav a:hover {
	background-color: rgba(255,255,255,0.12);
}
.webchallenge-subnav a.active {
	background: linear-gradient(135deg, #252984, #2a2f94);
	color: white;
}

.webchallenge-subnav span {
	background: linear-gradient(135deg, #252984, #2a2f94);
	padding: .6rem 1rem;
	border-radius: 999px;
}


.competition-subnav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .75rem;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	backdrop-filter: none;
}

.subnav-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
	padding: .4rem .6rem;
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 999px;
}

.subnav-group span {
	font-weight: 700;
	color: #f5f5f5;
	margin-right: .25rem;
}
h1{
	color: darksalmon;
	font-size: 2rem;
	text-align: center;
	padding: 1rem;
}
.comite, .ecole {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	padding-bottom: 1rem;
}
.image-comite, .image-ecole{
	object-fit: contain;
    height: 200px;
    transform: rotate(-2deg);
    border: 3px solid white;
}
.text-comite, .text-ecole {
	display: flex;
	flex-direction: column;
}
.tableaulistedeforce{
	border-collapse: collapse;
  	//border: 2px solid rgb(140 140 140);
  	letter-spacing: 1px;
	margin: 1rem auto;
	max-width: 100%;
}
th,
td {
  border: 1px solid rgb(160 160 160);
  padding: 8px 10px;
}

.colonne-joueurs {
	white-space: nowrap;
}

.imagesponsors{
	width: min(120px, 100%);
	height: auto;
}

img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 760px) {
	header {
		padding: .75rem 1rem;
	}

	header nav {
		align-items: flex-start;
		flex-direction: column;
		gap: .75rem;
	}

	header nav .logo {
		font-size: 1.1em;
	}

	header nav .logo-img {
		height: 40px;
	}

	header nav ul {
		width: 100%;
		justify-content: flex-start;
		gap: .4rem;
	}

	header nav ul li a {
		padding: .45rem .7rem;
		font-size: .9rem;
	}

	main {
		flex-direction: column;
		padding: 0 1rem;
		gap: 1rem;
	}

	.asides {
		display: contents;
	}

	aside {
		width: 100%;
		padding: 1rem;
		order: 1;
	}

	.sections {
		order: 2;
	}

	.asides aside:last-child {
		order: 3;
	}

	section {
		padding: 1rem;
		margin-bottom: 1rem;
	}

	h1 {
		font-size: 1.6rem;
		padding: .75rem .25rem;
	}

	.comite,
	.ecole {
		flex-direction: column;
	}

	.image-comite,
	.image-ecole {
		width: 100%;
		height: auto;
		max-height: 240px;
	}

	.webchallenge-subnav,
	.subnav-group {
		border-radius: .5rem;
		flex-wrap: wrap;
	}

	.webchallenge-subnav {
		display: flex;
	}

	.tableaulistedeforce {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		width: 100%;
	}

	footer {
		padding: 1rem;
	}
}

/* FOOTER */
footer {
	padding: 1rem 1.5rem;
    border-top: 1px solid white;
    text-align: center;
}
