body, * {
    margin: 0;
    padding: 0;
}

body {
    background-image: url("../images/background.png");
    background-repeat: repeat;
}

html {
    font-size: calc(15px + 0.2vw);
}

						/* Supprime l'outline sur PC et MOBILES */
input:focus, select:focus {
	outline: 0;
}

input::-moz-focus-inner, select::-moz-focus-inner { 
  border: 0;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important; 
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important; 
    outline: none !important;
}


/*
################
                TopHeader ################################################################################################################
################
*/

.topBar * {
    color: white;
    font-family: 'Quicksand', sans-serif;
}

.topBar {
    width: 100%;
    height: 3.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #224f90; /* For browsers that do not support gradients */
    background: linear-gradient(to bottom right, #1c59ae, #3585d6);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    font-size: 1rem;
}

.topBar a {
    text-decoration: none;
    margin-left: 0.9rem;
}

.topBar a h3 {
    font-weight:700;
    font-size: 1.45em;
}

.topBar .icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-right: 1em;
}
/*
    Affects all icons
 */
.topBar .icon {
    margin: 0em 0.9em;
    height: 1.6em;
    width: 1.6em;
    cursor: pointer;
}

.topBar .icon circle {
    fill: none;
}

.topBar .icon path {
    fill: white;
}

/*
################
                Members & countries titles / inputs ################################################################################################################
################
*/

#pageContent {
	width: 100vw;
	margin: 50px auto 30px auto;
}

section.textFieldsLine:not(:first-child) {
	margin-top: 4.05rem;
}

section.textFieldsLine, section.submitFieldLine {
	font-size: 1rem;
	transition: all .6s;
}
section.textFieldsLine {
	padding: 0.45rem 0rem 0.9rem 0rem;
}

h3.sectionTitle, .sectionTitle i {
	color: #4387c0;
}

h3.sectionTitle {
	font-size: 1.35em;
	font-family: "Quicksand", sans-serif;
	font-weight: 500;
	text-align: center;
}

.sectionTitle i { /* Icons before the title */
	font-size: 1.05em;
	transform: translate(-25%, 4px);
}

.fieldsContainer {
	width: 80%;
	margin: auto;
}

.field  { /* Target the div containing the label & the input */
	margin-top: 1.25rem;
}

label, input, select {
	font-family: 'Source Sans Pro', sans-serif;
}

label, select {
	cursor: pointer;
}

label {
	font-size: 1.15em;
	font-weight: 400;
	color: #666;
	transition: color .5s;
}

input, select {
	width: 100%;
	font-size: 1.15em;
	-webkit-appearance: none;
	-moz-appearance: none;
	-webkit-border-radius: 0px;
}

.requiredSign { /* Cible l'astérisque */
	color: #faab1a;
}

input:not([type=checkbox]), select {
	padding: 0.1em 0em 0.18em 0em;
	border-bottom: thin solid #aaa;
	border-top: none;
	border-left: none;
	border-right: none;
	transition: border-bottom .3s;
}

input:not([type=checkbox]) {
	background: none;
}

select {
	background : url(../images/icons/unfold.svg) 98% / 1.1em no-repeat transparent;
}

input:not([type=checkbox]):hover,
input:not([type=checkbox]):focus,
select:hover,
select:focus {
	border-bottom: thin solid #222;
}


/*
	################
	                Checkboxes inputs #######################################################################
	################
*/
.checkboxes {
	width: 12.1rem;
	margin-top: 2.42em;
	display: flex;
  	flex-direction: column; 
}

.checkboxes .res {
	margin-top: 1em;
}

.checkboxes input {
	display: none;
}

.checkboxes label {
  	display:flex;
  	justify-content: space-between;
}

.checkboxes label::after {
  	content: "check_box_outline_blank";
  	font-family: "Material Icons";
  	font-size: 1.3em;
  	font-weight: lighter;
  	color: #999;
  	margin-top: 0.05em;

  	/* Support for all WebKit browsers. */
  	-webkit-font-smoothing: antialiased;
  	/* Support for Safari and Chrome. */
  	text-rendering: optimizeLegibility;
  	/* Support for Firefox. */
  	-moz-osx-font-smoothing: grayscale;
  	/* Support for IE. */
  	font-feature-settings: 'liga';
}


.checkboxes input:checked + label::after{
  	content: "check_box";
  	color: #4387c0;
    animation: appear 100ms ease-in;
  	-webkit-animation: appear 100ms ease-in; /* Safari 4.0 - 8.0 */
}

@keyframes appear {
    0% {transform: scale(0);}
    100% {transform: scale(1);}
}


/*
	################
	                Error Message #######################################################################
	################
*/
.errorLine {
	background-color: #f2dede;
	padding: 0.9em 0.6em;
	margin-bottom: 2.4rem;
	box-shadow: inset 0px 0px 5px rgba(0,0,0,0.1);
	border-radius: 0.3rem;
	
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 0.96em;
	font-weight: 400;
	color: #a94442;
	text-align: center;
	
	display: flex;
	align-items: center;
	justify-content: center;
}


/*
	################
	                Submit button #######################################################################
	################
*/
.submitFieldLine {
	margin-top: 2.7rem;
}

.submitFieldLine button[type=submit] {
	padding: 1em 3.5em;
	background: #2ecc71;
	border: none;
	border-radius: 0.6rem;
	-webkit-border-radius: 0.6rem;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
	-moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
	-webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.2);

	cursor: pointer;

	margin: 0rem auto;

	font-family: 'Source Sans Pro', sans-serif;
	font-size: 1.25em;
	color: white;
    text-align: center;	

 	display: flex;
 	align-items:center;
    justify-content:center;
	
	display: -webkit-box;
 	-webkit-box-align:center;
  	-webkit-box-pack:center;
 	
 	display: -ms-flexbox;
 	-ms-flex-align:center;
  	-ms-flex-pack:center;
}

.submitFieldLine button[type=submit], .submitFieldLine button[type=submit] *, .submitFieldLine button[type=submit]:hover {
	transition: all .2s;
}

.submitFieldLine button[type=submit] #submitCheckSign {
  	display: none;
}


/*
#######################################################################

               		 MEDIA QUERIES (RESPONSIVE)

#######################################################################
*/

@media (min-width:600px) {
	/*
	################
	                Members & countries titles / inputs ################################################################################################################
	################
	*/
	.fieldsContainer {
		width: 70%;
	}

	.errorLine {
		width: 70%;
		margin: 0rem auto 2.4rem auto;
	}
}

@media (min-width:750px) {
	/*
	################
	                Members & countries titles / inputs ################################################################################################################
	################
	*/
	.fieldsContainer {
		width: 60%;
	}
}

@media (min-width:1000px) {
    .topBar {
        height: 2.8rem;
    }
    
    .topBar .icon {
	    font-size: 1.1rem;
    }

    /*
        Icon (Facebook, Instagram, Snapchat, Wordpress)
     */
    .facebook:hover circle, .instagram:hover circle, .snapchat:hover circle, .wordpress:hover circle {
        fill: white;
    }

    .facebook:hover path, .instagram:hover path, .snapchat:hover path, .wordpress:hover path {
        fill: #4387c0;
    }

    #pageContent {
		width: 88vw;
	}

	.fieldsContainer {
		width: 100%;
		display: flex;
		justify-content: space-around;
		align-items: center;
	}

	section.textFieldsLine {
		font-size: 0.95rem;
		border-radius: 5px;
	}

	.field {
		width: 11.5rem;
	}

	label {
	    font-weight: 300;
	}

	input, select {
		font-size: 1.1em;
	}
}

@media (min-width:1200px) {
	.field {
		margin-top: 2.5rem;
	}
	/*
	################
	                Submit button #######################################################################
	################
	*/
	section.submitFieldLine {
		font-size: 0.9rem;
	}

	.submitFieldLine button[type=submit]:hover {
		box-shadow: 0px 0px 15px rgba(0,0,0,0.25), inset 0px 0px 10px rgba(0,0,0,0.3);
		-moz-box-shadow: 0px 0px 15px rgba(0,0,0,0.25), inset 0px 0px 10px rgba(0,0,0,0.3);
		-webkit-box-shadow: 0px 0px 15px rgba(0,0,0,0.25), inset 0px 0px 10px rgba(0,0,0,0.3);
		transform: scale(1.05);
	}
	
	.submitFieldLine button[type=submit] #submitCheckSign {
		display: inline;
	  	opacity: 0;
	  	position: absolute;
	  	transform: translate(0.7em, 0.0625em);
	}
	
	.submitFieldLine button[type=submit]:hover #submitCheckSign {
	  	opacity:1;
		transform: translate(0.45em, 0.0625em);
	}
}

@media (min-width:1600px) {
	#pageContent {
		width: 80vw;
	}

	.field {
		width: 14.5rem;
	}
}

@media (min-width:1900px) {
	section.textFieldsLine {
		font-size: 0.90rem;
	}
}