@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

@font-face {
    font-family: 'olivier'; 
    src: url('./olivier.ttf') format('truetype');
   
}

@font-face {
    font-family: 'coolfont'; 
    src: url('./coolfont.otf') format('truetype');
   
}

* {
    margin: 0;
    padding: 0;
}


body {
    min-height: 100%;
   
    background-color: #fff;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    /*background: linear-gradient(312deg, #0082f3, #ff86a2, #FB7D59);*/
    background-color: #f5be29;
    background-size: 500% 1300%;
    /*animation: gradient 15s ease infinite;*/
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Burger Nav*/
/* Sidenav menu */
.sidenav {
    height: 208px;
    width: 200px;
    position: fixed;
    z-index: 1;
    top: 0;
    right: -250px;
    background-color: #000000;
    padding-top: 16px;
    transition: left 0.8s ease;
    border-radius: 0 0 0 50px;

  }
  
  /* Sidenav menu links */
  .sidenav a {
    padding: 8px 8px 8px 52px;
    text-decoration: none;
    font-size: 20px;
    color: #f5be29;
    display: block;
    transition: 0.3s;
  }

  .body__index .sidenav a {
    color: #FB7D59;
  }

  .body__work .sidenav a {
    color: #b8deff;
  }

  .body__project .sidenav a {
    color: #38d87d;
  }
  
  .sidenav a:hover {
    color: #ffffff;
  }
  
  .sidenav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  
  /* Active class */
  .sidenav.active {
    right: 0;
  }
  
  /* Close btn */
  .sidenav .close {
    position: absolute;
    top: 14px;
    right: 15px;
    font-size: 46px;
  }
  
  /* Icône burger */
  .burger-icon span {
    width: 25px;
    height: 4.5px;
    display: none;
    background-color: black;
    margin: 4px 0;
    border-radius: 20px;
  }
  
/* Burger Nav End*/

.container {
font-family: "Inter" ; 
max-width: 960px ;  
margin: 0 auto; 
display: flex; 
flex-direction: column;
padding: 32px;

}



.tinytext {
font-family: "olivier";
font-size: 24px;
font-weight: 600;

}

.hero__text {
    font-size: 64px;
    font-weight: 600;
    font-family: "Inter";
    line-height: 64px;
    
}


.hero__small {
    margin-top: 32px;
    display: flex;
    gap: 0px    ;
    margin-right: auto;
}

.hero__small2 {
    padding: 20px;
    margin-top: -24px;
}



.hero__container {
    margin: 60px 0;

}

.underline {
    text-decoration: underline ;
    color: #ffffff;
}

.underline:hover {
    text-decoration: none;


}



body {
    margin: 0;
    font-family: 'Arial', sans-serif;

}

header {
    display: flex;
    justify-content: space-between;
    font-family: "olivier";
    padding: 20px ;

}

.logosun img {
    height: 48px;
    filter: invert(100%);
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    font-size: 22px;
}

nav ul li a:hover {
    text-decoration: underline 3px;
    ;
}

/* Responsive Design */

@media (max-width: 768px) {


    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .sizeheader {
     display: none;
    }

    .burger-icon span {
        display: block ;
    }
}



.sizeheader {
    font-size: 18px;
  
}

.smallolivier {
    font-family: "olivier";
    font-size: 16px;
    font-weight: 500;
}

.portrait {
    border-radius: 6px;
    border: 4px solid black;
    height: 152px;
    width: 152px;
    transform: rotate(-2deg);
}

.small__adj {
    margin-top: 26px;
    
}

.hero__textsmall {
    font-family: "Inter";
    font-size: 10px;
    font-weight: 500;

}

.espacesmalltext {
    margin-bottom: 20px;
}

.bigtext {
    font-family: "Inter";
    font-size: 14px;
    font-weight: 450;
    
}

.textolivierbig {
    font-family: "olivier";
    font-size: 20px;
    font-weight: 500;
}

.hero__text__index {
    font-size: 84px;
    font-weight: 600;
    font-family: "Inter";
    line-height: 1.1;
    max-width: 1200px;
  }

  .hero__text__index p {
    margin-bottom: 40px;
    opacity: 0;
  }

  .hero__text__index strong {
    font-weight: 700;
    color: #1a1a1a;
  }

  .tinytext__index {
    font-family: "olivier";
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* EcoHub dans le texte avec la même taille */
  .hero__text__index .tinytext__index {
    font-size: inherit;
    font-family: "olivier";
    font-weight: 600;
    color: black;
    margin: 0;
    display: inline-block;
    position: relative;
    line-height: inherit;
    vertical-align: baseline;
    transform: translateY(0.15em);
  }

@media only screen and (max-width: 768px) {
    /* Ajustez la taille du texte pour les écrans plus petits */
    .hero__text {
        font-size: 32px;
        line-height: 40px;
    }

    .hero__text__index {
        font-size: 44px;
        line-height: 40px;
        line-height: 56px;
        margin-left: 12px;
    }
    
    .tinytext {
       margin-top: -78px;
    }

    .tinytext__index {
        margin-top: -22px;
        margin-left: 12px;

     }

    /* Ajustez la taille de l'image du portrait pour s'adapter à l'écran */
    .portrait {
        height: 100px;
        width: 100px;
    }
    
    .hero__small{
        font-size: 1px;
        display: flex;
        gap: 16px;
        line-height: 16px;
    }
}

/* Styles spécifiques pour les écrans de grande taille (PC) */
@media only screen and (min-width: 768px) {
    .hero__text {
        font-size: 64px;
        line-height: 80px;
    }
    


    /* Ajustez la taille de l'image du portrait pour s'adapter à l'écran */
    .portrait {
        height: 152px;
        width: 152px;
    }
}

.nounderline { 
    text-decoration: none; 
    color: black;
  } 

  .body__index {
    min-height: 100%;
    background-color: #fff;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    background: linear-gradient(248deg, #fb7d59, #ee7250, #f1724f, #ee6b46, #ee7250, #fb7d59);
    background-size: 800% 800%;

    animation: AnimationName 12s ease infinite;
   
        }

        .body__work {
            min-height: 100%;
            background-color: #fff;
            margin: 0;
            font-family: Arial, sans-serif;
            font-size: 14px;
            line-height: 20px;
            background: linear-gradient(248deg, #b8deff, #b5dcff, #b8deff);
            background-size: 800% 800%;
        
            animation: AnimationName 12s ease infinite;
        
                }


                

        .body__project {
        min-height: 100%;
        background-color: #fff;
        margin: 0;
        font-family: Arial, sans-serif;
        font-size: 14px;
        line-height: 20px;
        background: linear-gradient(248deg, #38d87d, #38ec86, #38d87d);
        background-size: 800% 800%;
                
        animation: AnimationName 12s ease infinite;
        
                        }
        
        @keyframes AnimationName {
            0%{background-position:0% 86%}
            50%{background-position:100% 15%}
            100%{background-position:0% 86%}
        }

        .container__index {
            font-family: "Inter" ; 
            max-width: 1260px ;  
            margin: 0 auto; 
            display: flex; 
            flex-direction: column;
            padding: 12px;
            min-height: 100vh;
            justify-content: center;
        }

        /* Animations premium */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(60px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-100px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes textReveal {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Animation du titre principal */
        .tinytext__index {
            animation: slideInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        /* Animation du texte principal */
        .hero__text__index {
            animation: fadeInUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
        }

        /* Animation des paragraphes individuels */
        .hero__text__index p:nth-child(1) {
            animation: textReveal 0.8s ease-out 0.6s both;
        }

        .hero__text__index p:nth-child(2) {
            animation: textReveal 0.8s ease-out 0.9s both;
        }

        .hero__text__index p:nth-child(3) {
            animation: textReveal 0.8s ease-out 1.2s both;
        }

        .hero__text__index p:nth-child(4) {
            animation: textReveal 0.8s ease-out 1.5s both;
        } 

        .underline__index {
            text-decoration: underline 8px;
            color: black;
        }

        .underline__index:hover {
            text-decoration: none;
        }

        .bigtext__work {
            font-family: "Inter";
            font-size: 28px;
            font-weight: 450;
            line-height: 32px;
        
        }

        .hero__small__work {
            margin-top: 32px;
            display: flex;
            gap: 20px    ;
            margin-right: auto;
        }
        
        .hero__small2__work {
            padding: 20px;
            margin-top: -24px;
        }
        
        