/* Conversion responsive à base de 1920x1080, avec unités relatives */

@import url('https://fonts.googleapis.com/css?family=Exo:400,700');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', sans-serif;
    background: linear-gradient(to left, #8f94fb, #4e54c8);
    width: 100%;
    height: 100vh;
}

header {
    background-color: #1d1d1d;
    position: fixed;
    color: white;
    padding: 0.5vh;
    text-align: center;
    width: 100%;
    z-index: 1000;
    border-bottom-left-radius: 3vw;
    border-bottom-right-radius: 3vw;
}

footer {
            position: fixed;
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px 0;
            width: 100%;
            bottom: 0;
            z-index: 1000;
}


.context {
    width: 100%;
    position: absolute;
    top: 50vh;
    text-align: center;
}

.context h1 {
    color: #fff;
    font-size: 2.6vw;
}

.area {
    background: linear-gradient(to left, #8f94fb, #4e54c8);
    width: 100%;
    height: 100vh;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -7.8vh;
}

/* Circles proportions sur la base de 1080px de hauteur */
.circles li:nth-child(1) { left: 25%; width: 4.2vw; height: 4.2vw; }
.circles li:nth-child(2) { left: 10%; width: 1vw; height: 1vw; animation-duration: 12s; }
.circles li:nth-child(3) { left: 70%; width: 1vw; height: 1vw; }
.circles li:nth-child(4) { left: 40%; width: 3.1vw; height: 3.1vw; animation-duration: 18s; }
.circles li:nth-child(5) { left: 65%; width: 1vw; height: 1vw; }
.circles li:nth-child(6) { left: 75%; width: 5.7vw; height: 5.7vw; }
.circles li:nth-child(7) { left: 35%; width: 7.8vw; height: 7.8vw; }
.circles li:nth-child(8) { left: 50%; width: 1.3vw; height: 1.3vw; animation-duration: 45s; }
.circles li:nth-child(9) { left: 20%; width: 0.8vw; height: 0.8vw; animation-duration: 35s; }
.circles li:nth-child(10) { left: 85%; width: 7.8vw; height: 7.8vw; animation-duration: 11s; }


.footer-basic {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1d1d1d;
    color: #ffffff;
    border-top-left-radius: 3vw;
    border-top-right-radius: 3vw;
    padding: 2vh 0 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
}

.footer-basic ul {
    padding: 0;
    list-style: none;
    text-align: center;
    font-size: 1.2vw;
    line-height: 2.5vw;
}

.footer-basic .social {
    text-align: center;
    margin-top: 0.5vh;
}

.footer-basic .social > a {
    font-size: 2.3vw;
    width: 2vw;
    height: 2vw;
    line-height: 2vw;
    margin-top: 10vh;
    color: white;
    text-decoration: none;
    
    footer a img {
        filter: brightness(0) invert(1);
    }
}

.footer-basic .copyright {
    font-size: 0.8vw;
    margin-top: 1vh;
}

.footer-basic .compteur {
    font-size: 0.9vw;
    margin-top: -2vh;
}

.container {
    padding: 0 1vw;
    width: 100%;
}

.center {
    background-color: #1d1d1d;
    padding: 1vw;
}

.box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 96%;
}

.centerf {
    position: fixed;
    left: 30%;
    right: 30%;
        color: white;
        text-decoration: none;
}

.list-inline-item {
    display: inline-block;
    margin: 0 0.5vw;
}
.list-inline-item a {
    color: white;
    text-decoration: none;
}
.list-inline-item a:hover {
    text-decoration: underline;
}
.list-inline-item a img {
    filter: brightness(0) invert(1);
}
.list-inline-item a img:hover {
    filter: brightness(0) invert(0.5);
}
.list-inline-item a img:active {
    filter: brightness(0) invert(0.2);
}
.list-inline-item a img:focus {
    outline: none;
}

.BaseBase{
    padding-top: 7%;
    padding-bottom: 9%;
}

.Base {
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px;
  border-radius: 16px;
  width: 81%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  top: 10%;
  left: 2%;
  animation: fadeInDown 1.2s ease both;
}

.Base2 {
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 80%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  top: 12%;
  left: 50.5%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 2s;
}

.Base3 {
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 80%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  top: 12%;
  left: 2%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 3s;
}

.Base4 {
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 80%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  top: 12%;
  left: 50.5%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 4s;
}

.Base5 {
  position: relative;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 80%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  top: 12%;
  left: 2%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 5s;
}

.Base6 {
  position: fixed;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 80%;
  max-width: 48%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  bottom: 15%;
  left: 50.5%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 4s;
}

.Base7 {
  position: fixed;
  z-index: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding:15px;
  border-radius:16px;
  width: 15%;
  max-width: 30%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  text-align: center;
  bottom: 15%;
  left: 75%;
  animation:fadeInDown 1.2s ease both;
  animation-delay: 2s;
}


/* Animation douce à l'apparition */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.PDF {
    display: flex;
    position: absolute;
    margin-top: 5vh;
    margin-bottom: 10vh;
    left: 20%;
    right: 20%;
    top: 0.5vh;
    bottom: 0.5vh;
}

iframe {
    width: 100%;
}

@media (max-width: 768px) {
    .context h1 {
        font-size: 6vw;
    }
    .footer-basic ul {
        font-size: 3.5vw;
    }
    .footer-basic .social > a {
        font-size: 5vw;
        width: 10vw;
        height: 10vw;
        line-height: 10vw;
    }
    .Base,
    .Base2,
    .Base3,
    .Base4,
    .Base5,
    .Base6,
    .Base7 {
        width: 95%;
        left: 2.5%;
        right: 2.5%;
    }
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

@property --color-1 {
    syntax: "<color>";
    inherits: false;
    initial-value: hsl(98 100% 62%);
}


@property --color-2 {
    syntax: "<color>";
    inherits: false;
    initial-value: hsl(204 100% 59%);
}

@keyframes gradient-change {
    to {
        --color-1: hsl(210 100% 59%);
        --color-2: hsl(310 100% 59%);
    }
}

.map-container {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 300px;
    z-index: 900;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.map-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.map-controls input[type="number"],
.map-controls button {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    box-sizing: border-box;
}

.map-controls button {
    background-color: #0078A8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.Base6 button {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    box-sizing: border-box;
}

.Base6 button {
    background-color: #0078A8;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.Base7 button {
  background-color: #0078A8;
  padding:5px;
  color: white;
  border:none;
  cursor: pointer;
  transition:background-color 0.2s ease-in-out;
  border-radius:5px;
  animation-delay:2s;
}

.map-controls button:hover {
    background-color: #005f82;
}

/* Responsive : colonne en dessous de 600px */
@media (max-width: 600px) {
    .map-controls {
        flex-direction: column;
        align-items: center;
    }

    .map-controls input,
    .map-controls button {
        width: 90%;
        max-width: 300px;
    }
}


@media (max-width: 768px) {
    .map-container {
        top: 80%;
        height: 250px;
    }
}