@import url(https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap);

body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #fff;
}

header {
    background: linear-gradient(135deg, #4e54c8, #8f94fb);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 24px;
}

main {
    padding-right: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
}

.frame {
  width: 30%;
  margin: 15px auto;
  border-radius: 2px;
  box-shadow: 1px 2px 10px 0px rgba(0,0,0,0.13);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .frame {
    width: 100%;
  }
}

.carousel {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 30px;
  line-height: 45px;
  height: 45px;
}

.change_outer {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  height: 45px;
  overflow: hidden;
}

.change_inner {
  position: relative;
  display: inline-block;
  animation: rotate 16s ease-in-out infinite;
}

.element {
  display: block;
  font-weight: 800;
}


@keyframes rotate {
  0%, 11.11% { transform: translateY(0); }
  12.22%, 22.22% { transform: translateY(-45px); }
  23.33%, 33.33% { transform: translateY(-90px); }
  34.44%, 44.44% { transform: translateY(-135px); }
  45.55%, 55.55% { transform: translateY(-180px); }
  56.66%, 66.66% { transform: translateY(-225px); }
  67.77%, 77.77% { transform: translateY(-270px); }
  78.88%, 88.88% { transform: translateY(-315px); }
  89.99%, 100% { transform: translateY(-360px); }
}


section {
    background: linear-gradient(135deg, #8f94fb, #4e54c8);
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-radius: 5px;
}

.content {
    position: relative;
    width: 80%;
    color: #fff;
}

@keyframes glowing-border {
  0% {
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.9);
  }
  100% {
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.6);
  }
}

.time-of-formation {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 10px;
    font-style: italic;
    animation: glowing-border 2s infinite ease-in-out;
    text-align: center;
    white-space: nowrap;
}

.module-image {
    max-width: 20%;
    max-height: 400px;
    margin: 0 auto; /* Centre horizontalement dans le conteneur */
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.module-image:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    section {
        flex-direction: column;
        align-items: center;
    }

    .content, .module-image {
        width: 90%;
        max-width: none;
    }

    .module-image {
        order: -1;
        margin-bottom: 20px;
    }
}

section h2 {
    color: #fff;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-left: 20px;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

li:before {
    content: ""; 
    display: inline-block;
    margin-right: 10px; 
    animation: popIn 1.5s ease-out forwards;
    content: "• ";
    color: #fff;
    display: inline-block;
    transition: transform 0.3s ease;
}

li {
    font-size: 20px;
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    transition: all 0.5s ease;
}

@-webkit-keyframes woop {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
@keyframes woop {
  to {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }
}
.woop {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
}
.woop:hover, .woop:focus, .woop:active {
  -webkit-animation-name: woop;
  animation-name: woop;
  -webkit-animation-duration: 0.5s;
  animation-duration: 0.5s;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
}

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

footer p {
    margin: 0;
}