@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;800&display=swap');

/*pour que ça scroll doucement*/
html {
    scroll-behavior: smooth;
}  

body {
    font-family: "Poppins", sans-serif;
    background-color: #e8f7e9;
    transition: background-color 0.9s;
}

body.active {
    background-color: #072d3f;
}

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

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.logo {
    width: 200px;
}

.nav {
    display: flex;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin: 0 10px;
}

.nav a {
    text-decoration: none;
    color: #170816;
    font-weight: bold;
}

.nav a .active{
    color: #ffffff;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: orange;
    color: white;
    border-radius: 10px;
    margin-top: 10px;
    text-align: center;
}

.banner {
    display: flex;
    height: 500px;
    margin-top: 20px;
}

.banner .text {
    width: 50%;
    padding: 20px;
}
/* ----------------------------------------------
 * Generated by Animista on 2024-7-4 12:23:2
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

@keyframes slide-in-left{0%{transform:translateX(-1000px);opacity:0}100%{transform:translateX(0);opacity:1}}

.banner .text h1 {
    font-size: 40px;
    font-weight: bold;
    color: #170816;
    animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) both
}

.banner .text h1.active {
    color: #e7e7e7;
}

#para.active{
    color: #e7e7e7;
}

.banner .text p {
    font-size: 20px;
    margin: 10px 0;
    color: #170816;
    animation:slide-in-left .5s cubic-bezier(.25,.46,.45,.94) 0.5s both
}

.banner .text p.active {
    color: #e7e7e7;
}



/* ----------------------------------------------
 * Generated by Animista on 2024-7-4 12:17:58
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

@keyframes tilt-in-fwd-tr{0%{transform:rotateY(20deg) rotateX(35deg) translate(300px,-300px) skew(-35deg,10deg);opacity:0}100%{transform:rotateY(0) rotateX(0deg) translate(0,0) skew(0deg,0deg);opacity:1}}

.banner .image {
    width: 50%;
    -webkit-animation: tilt-in-fwd-tr 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: tilt-in-fwd-tr 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.banner .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-width: 10px;
    border-style: solid;
    border-image: linear-gradient(to bottom, #1a0028, rgba(0, 0, 255, 0)) 1;
}

.content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.section {
    width: 25%;
    padding: 20px;
    position: relative;
    display: flex; /* Ajouter cette ligne */
    flex-direction: column; /* Ajouter cette ligne */
    align-items: center; /* Ajouter cette ligne */
    justify-content: center; /* Ajouter cette ligne */
}
.section2 {
    width: 25%;
    padding: 20px;
    position: relative;
    display: flex; /* Ajouter cette ligne */
    flex-direction: column; /* Ajouter cette ligne */
    align-items: center; /* Ajouter cette ligne */
    justify-content: center; /* Ajouter cette ligne */
}

.section3 {
    width: 25%;
    padding: 20px;
    position: relative;
    display: flex; /* Ajouter cette ligne */
    flex-direction: column; /* Ajouter cette ligne */
    align-items: center; /* Ajouter cette ligne */
    justify-content: center; /* Ajouter cette ligne */
}

.section4 {
    width: 25%;
    padding: 20px;
    position: relative;
    display: flex; /* Ajouter cette ligne */
    flex-direction: column; /* Ajouter cette ligne */
    align-items: center; /* Ajouter cette ligne */
    justify-content: center; /* Ajouter cette ligne */
}
/* ----------------------------------------------
 * Generated by Animista on 2024-7-4 12:20:2
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

 @keyframes slide-in-blurred-top {
    0% {
      transform: translateY(-1000px) scaleY(2.5) scaleX(.2);
      transform-origin: 50% 0;
      filter: blur(40px);
      opacity: 0;
    }
    100% {
      transform: translateY(0) scaleY(1) scaleX(1);
      transform-origin: 50% 50%;
      filter: blur(0);
      opacity: 1;
    }
}

#titres_icon.active{
    color: #e7e7e7;
}

#titres_icon1.active{
    color: #e7e7e7;
}
#titres_icon2.active{
    color: #e7e7e7;
}
#titres_icon3.active{
    color: #e7e7e7;
}

#icon1.active{
    color: #e7e7e7;
}
#icon2.active{
    color: #e7e7e7;
}
#icon3.active{
    color: #e7e7e7;
}
#icon4.active{
    color: #e7e7e7;
}
  
.section .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    animation: slide-in-blurred-top 0.6s cubic-bezier(.23, 1.000, .32, 1.000) both;
}
  
.section2 .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    animation:slide-in-blurred-top .6s cubic-bezier(.23,1.000,.32,1.000) both
}
.section3 .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    animation: slide-in-blurred-top 0.6s cubic-bezier(.23, 1.000, .32, 1.000) both;
}
.section4 .icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    animation: slide-in-blurred-top 0.6s cubic-bezier(.23, 1.000, .32, 1.000) both;
}

.section .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section2 .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.section3 .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.section4 .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section .text {
    text-align: center;
    height: 7.65em; /* Approximately 2 lines of text */
    overflow: hidden;
    position: relative;
    transition: height 0.5s ease-in-out;
    color: #170816;
}

.section2 .text {
    text-align: center;
    height: 7.65em; /* Approximately 2 lines of text */
    overflow: hidden;
    position: relative;
    transition: height 0.5s ease-in-out;
    color: #170816;
}

.section3 .text {
    text-align: center;
    height: 7.65em; /* Approximately 2 lines of text */
    overflow: hidden;
    position: relative;
    transition: height 0.5s ease-in-out;
    color: #170816;
}

.section4 .text {
    text-align: center;
    height: 7.65em; /* Approximately 2 lines of text */
    overflow: hidden;
    position: relative;
    transition: height 0.5s ease-in-out;
    color: #170816;
}

.section .text .active{
    color: #e7e7e7;
}

.section2 .text .active{
    color: #e7e7e7;
}
.section3 .text .active{
    color: #e7e7e7;
}
.section4 .text .active{
    color: #e7e7e7;
}

.section:hover .text {
    height: auto; /* Expand height on hover */
}

.section2:hover .text {
    height: auto; /* Expand height on hover */
}

.section3:hover .text {
    height: auto; /* Expand height on hover */
}

.section4:hover .text {
    height: auto; /* Expand height on hover */
}

.section .text h2 {
    color: #170816;
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}

.section2 .text h2 {
    color: #170816;
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}

.section3 .text h2 {
    color: #170816;
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}

.section4 .text h2 {
    color: #170816;
    font-size: 25px;
    font-weight: bold;
    margin: 10px 0;
}


.section .text h2.active {
    color: #e7e7e7;
}

.section2 .text h2.active {
    color: #e7e7e7;
}

.section3 .text h2.active {
    color: #e7e7e7;
}

.section4 .text h2.active {
    color: #e7e7e7;
}

.section .text p {
    color: #170816;
    font-size: 25px;
    margin: 10px 0;
}

.section2 .text p {
    color: #170816;
    font-size: 25px;
    margin: 10px 0;
}

.section3 .text p {
    color: #170816;
    font-size: 25px;
    margin: 10px 0;
}

.section4 .text p {
    color: #170816;
    font-size: 25px;
    margin: 10px 0;
}

.section .text p.active {
    color: #e7e7e7;
}

.section2 .text p.active {
    color: #e7e7e7;
}

.section3 .text p.active {
    color: #e7e7e7;
}

.section4 .text p.active {
    color: #e7e7e7;
}


.section .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #e8f7e9);
    transition: height 0.3s;
}

.section.active .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #072d3f);
    transition: height 0.3s;
}

.section2 .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #e8f7e9);
    transition: height 0.3s;
}

.section2.active .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #072d3f);
    transition: height 0.3s;
}

.section3 .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #e8f7e9);
    transition: height 0.3s;
}

.section3.active .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #072d3f);
    transition: height 0.3s;
}

.section4 .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #e8f7e9);
    transition: height 0.3s;
}

.section4.active .text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #072d3f);
    transition: height 0.3s;
}
input[type="checkbox"] {
    -webkit-appearance: none;
    outline: none;
    position: relative;
    width: 100px;
    height: 50px;
    background-image: url("resources/jour.png");
    background-size: cover;
    border-radius: 50px;
    transition: background-image 0.9s;
    box-shadow: 0 2px 5px 1px gray;
    cursor: pointer;
}

input[type="checkbox"]:before {
    content: "";
    width: 50%;
    height: 100%;
    background-color: #e8f7e9;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.9s;
    background-color: #5cc3f3;
}

input[type="checkbox"]:checked {
    background-image: url("resources/nuit.png");
}

input[type="checkbox"]:checked:before {
    transform: translateX(100%);
    background-color: #d3d018;
}
/*https://www.youtube.com/watch?v=FBgyJIW04BM    fini ce truc*/
.section:hover .text::after {
    height: 0;
}

.section .button {
    margin-top: 20px; /* Ajouter cette ligne */
}


.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background-color: lightgray;
    padding: 0 20px;
    margin-top: auto; /* Push footer to the bottom */
}

.social {
    display: flex;
}

.social a {
    margin: 0 20px;
}

.social img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.info p {
    margin: 0;
}

.footer .logo {
    width: 100px;
}

@keyframes verslaDroite {
    0% {
        opacity: 0;
            transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes verslaGauche {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.back-to-top a{
    color: #ebebeb; /* Couleur de base du texte */
    text-decoration: none;
    font-weight: bold;
}


.back-to-top {
    text-decoration: none;
    position: fixed;
    left: 3%;
    top: 6%;
    z-index: 999;
    background-color: #414141;
    color: #414141;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-to-top:hover{
    background-color: #a3a3a3;
    color: rgb(68, 68, 68);
    text-decoration: none;
}

.back-to-top:hover a {
    color: rgb(31, 31, 31);
    text-decoration: none; /* <-- Remove underline */
}

.back-to-top:hover a .active{
    color: #e7e7e7;
}
