/*
** Copyright (c) 2019, Aurélien Altarriba
** All rights reserved.
*/

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

body {
	display: flex;
	flex-direction: column;
	align-items: center;

	width: 100%;
	min-height: 100vh;
	padding-bottom: 2rem;

	color: #333;
}

header {
	text-align: center;
	width: 100%;
	padding: 1rem 3rem 1rem 3rem;
	margin-bottom: 2rem;
	background: linear-gradient(45deg, #07F, #0BF);
	border-radius: 0 0 30% 30%;
	box-shadow: 0 0 6px #555;

	color: white;
	text-shadow: 0 0 10px #0005;
}

#logo {
	width: 7rem;
	border-radius: 5px;
	box-shadow: 0 0 3px #66F;
	background-color: white;
	padding: 0.1rem;
	margin-bottom: 0.3rem;
}

#aide {
	position: fixed;
	bottom: 2rem;
	right: 1rem;
	font-size: 1.8rem;
	text-decoration: none;
	color: #F80;

	transition: all 0.4s ease-in-out;
}

#aide:hover {
	font-size: 2.3rem;
	color: #F50;
}

#aide_msg {
	position: absolute;
	right: 2.5rem;
	bottom: -30vh;
	padding: 0.5rem;
	font-size: 0.9rem;
	font-family: Arial, serif;
	font-weight: normal;
	color: white;
	background-color: #F90;
	border: 3px solid #FA4;
	border-radius: 5px;
	white-space: nowrap;
	width: min-content;
	opacity: 0;
	text-align: center;

	transition: all 0.3s ease-in-out;
}

#aide:hover #aide_msg {
	opacity: 1;
	bottom: 0;
}

.page_style {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0 10vw 0 10vw;
	min-width: 50vw;
	width: 100%;
}

.page_style.plein_ecran {
	padding: 0 2vw 0 2vw !important;
}

.ligne_nav {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.bt-nav {
	font-size: 1.5em;
	margin: 0.3rem;
}

.no-marge {
	margin: 0 !important;
	padding: 0 !important;
}

#page1 h2 {
	margin-bottom: 1.5rem;
}

#page1 h3 {
	font-size: 1rem;
	font-style: italic;
	margin-bottom: 1rem;
}

#page1 hr {
	border-top-color: #ceb66d;
}

.message_debut {
	text-align: center;
	font-size: 1.1em;
}

#page1 .sous_texte {
	font-style: italic;
	font-size: 0.9rem;
}

#continuer_message {
	font-size: 1.7em;
}

#page2 .ligne_formulaire {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

#page2 .alert {
	margin-top: 2rem;
}

#page2 .no-margin {
	margin-bottom: 0 !important;
}

#page2 .important {
	font-weight: bold;
	margin-bottom: 0;
}

#page2 .sous-texte {
	font-size: 0.9rem;
	font-style: italic;
	padding-left: 0.5rem;
	margin-left: 0.5rem;
	margin-top: 0.3rem;
	margin-bottom: 2rem;
	border-left: 2px solid grey;
}

#page2 .ligne_formulaire input, .ligne_formulaire select {
	margin-bottom: 1em;
}

#page2 .ligne_formulaire > div {
	margin-right: 2em;
}

#page2 .ligne_cslg {
	width: 100%;
	text-align: right;
	margin-top: 2em;
	margin-bottom: 1em;
}

#page2 #cslg + label {
	cursor: pointer;
    font-size: 0.8rem;
}

#page2 .autoris {
    margin: 1rem 2rem;
}

#page2 .autoris label {
    cursor: pointer;
}

#page2 #label_mail_erreur {
  color: red;
  font-size: 0.8rem;
}

#page3 {
	width: 98vw;
}

#page_activite {
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 1em;
}

/* ACTIVITÉS */
#activite_gauche {
	width: 70%;
	min-width: 40em;
	padding: 1em;

	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

.ligne_activite_titre .activite_sous_titre {
	color: #555;
	font-size: 0.8em;
}

#page3 #activite_gauche #liste_sections {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

#page3 #activite_gauche h3.alert {
  width: 100%;
  text-align: center;
}

#page3 #activite_gauche .liste_activite {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	width: 100%;
}

#page3 #activite_gauche .liste_activite .card {
	width: 18rem;
	margin: 1rem;
	border: 0;
	box-shadow: 0 0 5px #888;
}

#page3 .card h5 {
	font-size: 1.4rem;
	font-weight: bold;
	color: #444;
	margin-bottom: 0.1rem;
}

#page3 .card .activite_title {
	font-size: 0.9rem;
	color: #777;
	margin: 0;
}

#page3 .card .card-img-top {
	height: 13rem;
	border-bottom: 1px solid #DDD;
}

#page3 .card-body {
	margin: 0;
	text-align: center;
}

#page3 .card a {
	padding: 0;
	color: inherit;
	text-decoration: none;
}

#page3 .card li {
	border-radius: 5px;
}

#page3 .card .ligne {
	height: 0.2rem;
	width: 100%;
	background-color: #09F;
}

#page3 .ligne_flex_activite {
	display: flex;
	justify-content: center;
	align-items: center;
}

.bt_ajouter_activite {
	margin-left: 0.5em;
	border-radius: 100%;
	border-color: transparent;
	font-size: 0.7em;
}

.bt_ajouter_activite i {
	color: white;
}

/* PANIER */
#activite_droite {
	position: sticky;
	top: 2em;
	width: 25%;
	min-width: 20em;
	padding: 0 1.5em 1em;
	border-radius: 2em;
	border-top: 2px solid grey;
	border-bottom: 2px solid grey;
	box-shadow: 0 0 2px grey;
}

#activite_droite h4 {
	text-align: center;
}

#liste_panier li {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#liste_panier li.nom_section {
	margin-top: 1em;

	text-align: left;
	font-weight: bold;
	border-radius: 5px 5px 0 0;
}

#liste_panier li.nom_section .badge {
	font-size: 1em;
	font-weight: bold;
}

#liste_panier li:not(.nom_section, #total_sections) {
	padding-left: 2em;
}

.bt_supprimer_activite {
	margin-left: 0.5em;
	border-radius: 100%;
	border-color: transparent;
}

.bt_supprimer_activite i {
	color: #333;
}

.bt_supprimer_activite:hover i {
	color: white;
}

#total_sections {
	justify-content: center !important;
	align-items: center;

	margin-top: 2em;
	font-size: 1.2em;
	font-weight: bold;
	background-color: #888;
	color: white;

	border-radius: 5px;
}

#total_sections .badge {
	font-weight: bold;
	font-size: 0.9em;
	margin-left: 1em;
}

/* QS SPORT */
#qs_sport {
  text-align: center;
	width: 100%;
}

#qs_sport ul {
  text-align: left;
}

#qs_sport .sous_texte {
	font-style: italic;
	font-size: 0.9rem;
}

#explication_licence {
	width: 100%;
}

/* RECAP */
#page5 {
  text-align: center;
}

.card_recap_section {
  width: 20rem;
}

#liste_recap {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
}

.texte_cotisation {
  font-size: 1.2rem;
  color: #888;
}

#footer {
	position: fixed;
	bottom: 0;
	left: 0;

	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;

	width: 100%;
	height: 1.3rem;
	font-size: 0.7rem;

	background-color: #EEE;
	border-top: 1px solid #DDD;
}

#footer a {
	margin-left: 0.2rem;
}

.gras {
	font-weight: bold;
}