:root {
  --bleu: #1f3044;
  --bleu-clair: #e2e9f1;
  --vert: #2d7d7f;
  --violet: #461253;
  --rouge: maroon;

  --connection-width: 350px;
  --margin: 50px;
}

body {
  margin: 0;
  color: var(--bleu);
  font-family: 'Source Sans Pro', sans-serif;
  background-color: var(--bleu-clair);
}

.container
{
  margin: var(--margin);
  padding-right: var(--connection-width);
}

/* DESCRIPTION */
p.description {
  max-width: 600px;
  margin: 20px auto;

  font-size: 0.85rem;
  text-align: justify;

  background-color: rgba(255,255,255,0.7);
  padding: 10px 20px;
  border-radius: 3px;

  position: relative;
  overflow: hidden;
}

p.description::first-letter {
  margin-left: 10px;
  font-weight: 800;
  font-size: 1rem;
  font-style: italic;
}

p.description::after {
  content: '“';
  font-family: 'Times New Roman';

  position: absolute;
  top: 0px;
  left: 10px;
  font-size: 5rem;
  opacity: 0.3;

  color: var(--vert);
}

/* HEADER */
header {
  padding-top: calc(45px + 50px);
  padding-bottom: 50px;

  text-align: center;
  background-color: var(--bleu);

  position: relative;
  overflow: hidden;
}

header #parrallax {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
}

header #parrallax img {
  width: 110%;
}

header h1, header p {
  position: relative;
  z-index: 2;

  color: white;
}


header h1.shadow {
  mix-blend-mode: overlay;
  text-shadow: 1px 1px 0 var(--bleu);
  margin-bottom: -3rem;

  position: relative;
  top: 1px;
  left: 2px;

}

header h1 {
  font-family: 'Playfair Display SC', serif;
  font-size: 3rem;
  margin: 0;
  font-weight: 100;
  line-height: 3rem;
}

header p {
  margin: 10px auto;
  padding: 10px 0;

  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: capitalize;

  position: relative;
}

header p::after {
  width: 50%;
  content: '';

  position: absolute;
  top: 0;
  left: 25%;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);

}


/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  z-index: 10;

  width: 100%;
  background-color: var(--bleu);
  background-image: linear-gradient(25deg, var(--vert), transparent 10%);
  color: white;

  border-bottom: 2px solid var(--bleu-clair);
}

nav .logo a {
  margin: 0 10px;
}

nav .logo a img {
  max-height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 100%;
  padding: 5px;

  background-color: #090b24;

  position: absolute;
  border: 2px solid var(--bleu-clair);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;

  padding-right: var(--connection-width);

  display: flex;
}

nav ul a {
  display: block;
  color: white;
  padding: 10px;
  color: var(--vert);
  text-decoration: none;

  font-size: 0.9rem;
  position: relative;
  z-index: 3;
}

nav ul a::after {
  content: '';
  display: block;

  position: absolute;
  top: 0;
  left: 0;

  margin-left: 50%;
  width: 0;
  height: 100%;

  border-bottom: 2px solid var(--vert);
  background-color: var(--bleu-clair);
  opacity: 0.8;
  mix-blend-mode: color;

  transition: margin-left 0.3s ease-in, width 0.3s ease-in;
}

nav ul a:hover::after
{
  margin-left: 0;
  width: 100%;
}


/* CONNEXION FORM */
.connection-form {
  position: fixed;
  z-index: 11;
  top: 100px;
  right: var(--margin);

  width: 300px;
  background-color: white;
  padding-bottom: 15px;

  border-radius: 3px;
}

@media screen and (max-width: 500px) {
  :root
  {
    --margin: 5px;
    --connection-width: 0;
  }

  .connection-form {
    position: static;
  }

  nav {
      position: static;
        display: block;
  }

  nav ul {
    display: none;
  }

  nav .logo a {
    position:static;
  }
}

.connection-form .logo {
  width: 120px;
  height: 120px;

  background-image: url('../images/background.svg');
  background-size: 600%;
  background-position: 50% 0%;

  border-radius: 100%;
  border: 3px solid var(--bleu-clair);

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

  margin: 0 auto;
  margin-top: -75px;

  position: relative;
  z-index: 3;
}

.connection-form .liens {
  display: flex;
  justify-content: space-between;

  margin-top: calc(75px - 126px);
}

.connection-form .liens a
{
  padding: 8px 0;
  border-bottom: 1px solid var(--bleu-clair);

  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 1px;

    text-decoration: none;
}

.connection-form .lien-mdp a {
  display: block;
  margin-top: 15px;
  font-size: 0.9rem;
  text-decoration: none;

  color: var(--vert);
  transition: color 0.3s ease-in;
  font-style: italic;
}

.connection-form .liens a.actif {
  padding-right: 30px;
  padding-left: 10px;
  border-radius: 3px 0 0 0;

  background-color: var(--vert);
  color: white;
}

.connection-form .liens a.inscription {
  padding-left: 30px;
  padding-right: 10px;

  color: var(--vert);
  transition: color 0.3s ease-in;
}

.connection-form .liens a.inscription:hover, .connection-form .lien-mdp a:hover {
  color: maroon;
}

.connection-form form {
  text-align: center;
  margin-top: 30px;
}

.connection-form label {
  font-size: 0.9rem;
  display: block;
}

.connection-form label::before, .connection-form label::after {
  content: ' - ';
  opacity: 0.3;
}

.connection-form p input {
  width: 80%;
  background-color: var(--bleu-clair);
  border: 1px solid rgba(38,48,68,0.1);

  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;

  padding: 3px 7px;
  border-radius: 3px;
}

.connexion-button {
  position: relative;
  width: 70%;
  height: 30px;

  padding: 0;
  border: none;

  color: var(--vert);
  font-weight: 600;
  letter-spacing: 1px;
  margin: 8px auto;

  transition: color 0.3s ease-in;
}

.connexion-button:hover {
  cursor: pointer;
  color: maroon;
}

.connexion-button::after {
  content: '';
  width: 0;
  height: 100%;
  margin-left: 50%;

  position: absolute;
  top: -1px;
  left: 0;

  border-bottom: 2px solid maroon;

  transition: width 0.5s ease-in, margin-left 0.5s ease-in;
}

.connexion-button:hover::after {
  width: 100%;
  margin-left: 0;
}


/* GALLERY */
.gallery
{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.gallery a {
  flex-basis: 30%;
  flex-grow: 2;
  margin: 1px;
  height: 200px;
}

.gallery .image {
  position: relative;
  height: 200px;
}

.gallery .image img {
  min-width: 200px;
  width: 100%;
  height: 200px;
  object-fit: cover;

  filter: grayscale(0);
  transition: filter 0.5s ease-in, width 0.3s ease-in, height 0.3s ease-in, margin-top 0.3s ease-in, margin-left 0.3s ease-in;

  box-shadow: 0 0 3px rgba(38,48,68,1);
  background-color: var(--bleu);
}

.gallery .image .informations {
  position: absolute;
  bottom: 0;
  left: 0;

  color: var(--bleu-clair);
  text-shadow: 1px 1px 0 var(--bleu);

  width: 100%;
  height: 100%;

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

  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;

  background-color: rgba(38,48,68,0.5);

  transition: opacity 0.3s ease-in;
}

.gallery:hover .image:hover img {
  height: 240px;
  width: calc(100% + 40px);

  position: relative;
  top: 0px;
  left: 0px;
  z-index: 2;

  margin-top: -20px;
  margin-left: -20px;

  filter: grayscale(0) blur(0);
}

.gallery:hover .image:hover .informations {
  z-index: 3;

  opacity: 0;
}

.gallery:hover .image img {
  filter: grayscale(0) blur(1px);
}

/* DIVERS */
h2 {
  text-align: center;
  margin-top: 30px;
  font-size: 1.2rem;

  font-variant: small-caps;
  font-weight: 100;

  border-bottom: 1px solid rgba(38,48,68,0.3);
}

h2 strong {
  color: var(--vert);
  font-weight: 800;

  border-bottom: 1px solid var(--vert);
}

.divers {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.divers-description {
  flex-basis: 35%;
  max-width: 300px;
  margin: 10px;
  margin-top: 55px;
  background-color: white;
  border-radius: 3px;

  padding: 10px 20px;
}

.divers-description .image {
  width: 100px;
  height: 100px;
  border-radius: 100%;

  background-color: white; /* fallback for old browsers */
  background-image: -webkit-linear-gradient(25deg, #360033aa, #0b8793aa); /* Chrome 10-25, Safari 5.1-6 */
  background-image: linear-gradient(25deg, #360033aa, #0b8793aa); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  color: var(--bleu-clair);

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

  font-size: 3rem;
  border: 3px solid var(--bleu-clair);
  margin: 0 auto;
  margin-top: -50px;
}

.divers-description h3 {
  text-align: center;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.divers-description p {
  text-align: justify;
  font-size: 0.9rem;
}

.divers-description .liens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.divers-description .liens a {
  opacity: 0.7;
  color: white;
  margin: 3px;

  background: #360033;  /* fallback for old browsers */
background: -webkit-linear-gradient(25deg, #0b8793, #360033);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(25deg, #0b8793, #360033); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

padding: 3px 10px;
border-radius: 2px;
font-size: 0.85rem;

text-transform: uppercase;
text-decoration: none;

transition: opacity 0.3s ease-in;
}

.divers-description .liens a:hover {
  opacity: 1;
}

/* FOOTER */
footer {
  background-color: var(--vert);
  color: white;
  padding: 10px 20px;
  text-align: center;

  margin-top: 120px;
}

footer h2 {
  border-color: rgba(255,255,255,0.1);
  margin-bottom: 10px;

  margin-top: -120px;
}

footer img {
  height: 35px;
  margin: 2px;
}

footer .statistiques {
  display: flex;
  justify-content: center;
}

footer .element-statistique {
  background-color: white;
  border-radius: 100%;

  border: 3px solid var(--bleu-clair);
  height: 100px;
  width: 100px;
  margin: 0 5px;

  overflow: hidden;

  margin-top: -220px;
}

footer svg text {
  text-anchor: middle;
  font-size: 0.9rem;
  text-transform: uppercase;
  fill: url('#gradient');
}

footer svg text.number {
  font-size: 35px;
  font-weight: 800;

}