﻿body {
  background-color: black;
}

.header {
  color: #A22538;
  padding: 20px;
  position: absolute;
  top: var(--header-top);
  left: var(--header-left);
}

.square {
  left: 0;
  top: 0;
  width: 80%;
  height: 80%;
  background-color: black;
  position: absolute;
  opacity: 0;
  animation: fadeIn 2s forwards;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.border-line {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  border: 1.5px solid white;
  clip-path: inset(99% 0 0 0);
  animation: drawBorder 4s linear forwards;
  transform: translate(-50%, -50%);
  z-index: 1;
}

@keyframes drawBorder {
  0% {
    clip-path: inset(99% 2px 0 99%);
  }

  20% {
    clip-path: inset(98% 2px 0 0);
  }

  25% {
    clip-path: inset(2px 2px 0 0);
  }

  30% {
    clip-path: inset(0 0 0 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

.chais {
  position: absolute;
  top: 100%;
  left: 100%;
  z-index: 4;
  -webkit-mask-image: url('/images/masque-ellipse-bas-droite.png');
  mask-image: url('/images/masque-ellipse-bas-droite.png');
  -webkit-mask-size: cover;
  mask-size: cover;
  opacity: 0;
  animation: fadeIn 5s forwards;
  transform: translate(-100%, -100%) scale(-0.9, 0.9);
  max-width: 480px;
  min-width: 100px;
  width: 50%;
  height: auto;
}

.countries {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 850px;
  z-index: 4;
  opacity: 0;
  animation: fadeIn 5s forwards;
  transform: translate(-50%) scale(0.3);
}

  .countries img {
    padding-right: 20px;
  }

.splash-header {
  padding-left: 30px;
  padding-top: 30px;
}

.fil0 {
  fill: #A22538;
  fill-rule: nonzero
}

h1 {
  color: #A22538;
  position: relative;
  top: auto;
  left: auto;
  padding: 0;
  margin: 0;
  text-align: right;
  width: 280px;
  font-size: 1em;
  font-family: Montserrat;
  font-weight: 700;
}

.mask {
  background-color: black;
  position: absolute;
  top: 100%;
  left: 100%;
  z-index: 3;
  transform: translate(-100%, -100%) scale(0.9, 0.9);
  max-width: 480px;
  min-width: 100px;
  width: 50%;
  height: 30%;
  min-height: 290px;
}

@media (max-width: 480px) and (orientation: portrait) {
  .bandeau {
    transform: scale(0.8);
  }

  .splash-header {
    padding-left: 0px;
  }

  h1 {
    left: -26px;
  }

  .countries {
    top: 100%;
    transform: translate(-50%) scale(0.3);
  }

  .mask {
    min-height: min(150px, 50%);
    height: min(150px, 30%);
  }
}

@media (max-width: 360px) and (orientation: portrait) {
  .bandeau {
    transform: scale(0.8) translateX(-14px);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .bandeau {
    transform: scale(0.8);
  }

  .splash-header {
    padding-left: 0px;
  }

  h1 {
    left: -26px;
  }

  .chais {
    width: 30%;
  }

  .mask {
    min-height: 50%;
    width: 30%;
  }
}
