/*
 *
 */

/*
	TODO : En mode mobile, supprimer les marges autour du central-content
*/

:root {
  --width-nav: 56px;
  --width-central-content: 65%;
}

* {
	box-sizing: border-box;		/** box-sizing pour éviter la superposition du contenu du body au footer */
}

*::selection		/** À la séléction du texte */
{
    background-color: black;
    color: white;
}

html {
	background-color: #f7f7f7;
	height: 100%;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
	min-height: 95%;
	margin: 0;
	padding: 0;
	position: relative;
}

#name-common {
	/*background-color: #f7f7f7;*/
	position: sticky;
	top: 0;
  	width: 100%;
  	height: 60px;
  	padding: 12px;
  	transition: 0.2s;
  	box-shadow: 0px 2px 0px 0px rgba(0, 0, 0, 0.2);
  	z-index: 3;
  	color: #070707;
	padding-top: 20px;
	letter-spacing: 1px;
}

#name-common #white-stop {
	stop-color: #5291E1;
}

#name-common #background-stop {
	stop-color: white;
}

#name-common #header-name {
	display: block;
	font-size: 30px;
    fill: url(#fill-effect);
}

#name-common #header-name tspan{
	display: block;
	font-size: 30px;
    fill : white;
}

h1 {
	font-size: 28px;
	letter-spacing: 2px;
	text-align: center;
	margin-top: 15px;
	margin-bottom: 30px;
}

h2 {
	font-size: 24px;
}

p {
	font-size: 16px;
}


hr {
	border-bottom: 0;
	border-top: 1px solid #e1e4e5;
}

main footer {
	color: grey;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

main footer p {
	font-size: 14px;
	letter-spacing: 1px;
	text-align: center;
}

.header {
  position:relative;
  text-align:center;
  background: linear-gradient(42deg, rgb(20, 70, 150) 0%, rgb(200, 20, 20) 100%);;
  color:white;
}

.logo {
  width:50px;
  fill:white;
  padding-right:15px;
  display:inline-block;
  vertical-align: middle;
}

.inner-header {
  height:80vh;
  width:100%;
  margin: 0;
  padding: 0;
}

.flex { /*Flexbox for containers*/
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.waves {
  position:relative;
  width: 100%;
  height:15vh;
  margin-bottom:-7px; /*Fix for safari gap*/
  min-height:40px;
  max-height:60px;
}

.content {
  position:relative;
  height:20vh;
  text-align:center;
  background-color: white;
}

/** Animation **/

.parallax > use {
  animation: move-forever 30s cubic-bezier(.55,.5,.45,.5)     infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -20s;
  animation-duration: 15s;
}
.parallax > use:nth-child(2) {
  animation-delay: -15s;
  animation-duration: 30s;
}
.parallax > use:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 45s;
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 60s;
}
@keyframes move-forever {
  0% {
   transform: translate3d(-90px,0,0);
  }
  100% { 
    transform: translate3d(85px,0,0);
  }
}

/** Shrinking for mobile **/
@media (max-width: 768px)
{
  .waves
  {
    height:40px;
    min-height:40px;
  }
  .content
  {
    height:30vh;
  }
  h1
  {
    font-size:24px;
  }
}