@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: 84px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.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;
    margin-top: -0.3em;
    display: inline-block;
    position: relative;
    line-height: 1.1;
    vertical-align: baseline;
}

@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;
        font-size: 20px;
    }

    /* 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: flex-start;
    padding-top: 80px;
}

/* Animations premium style Awwwards - Clean Version */

/* Animation du curseur clignotant */
@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Animation de lueur subtile */
@keyframes subtleGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(251, 125, 89, 0.3);
    }

    50% {
        text-shadow: 0 0 20px rgba(251, 125, 89, 0.5), 0 0 30px rgba(251, 125, 89, 0.3);
    }
}

/* Titre EcoHub - Style premium */
.tinytext__index {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    color: #1a1a1a;
    position: relative;
    animation: subtleGlow 4s ease-in-out infinite;
}

/* Texte principal - Animation propre */
.hero__text__index {
    opacity: 1;
}

.hero__text__index p {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    will-change: opacity, transform;
}

/* Animation progressive du conteneur */
.hero__text__index {
    opacity: 0.9;
}

/* EcoHub dans le texte */
.hero__text__index .tinytext__index {
    font-size: inherit;
    font-family: "olivier";
    font-weight: 600;
    color: black;
    margin: 0;
    display: inline;
    position: relative;
    line-height: inherit;
    vertical-align: baseline;
    animation: none;
    text-shadow: none;
}

/* Effet hover premium sur les liens */
.underline__index {
    position: relative;
    text-decoration: none;
    color: black;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.underline__index::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(45deg, #fb7d59, #ee7250);
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.underline__index:hover::after {
    transform: scaleX(0);
    transform-origin: right;
}

.underline__index:hover {
    transform: translateY(-1px);
    color: #fb7d59;
}

/* Optimisation performance */
.container__index {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* Responsive pour les animations */
@media (prefers-reduced-motion: reduce) {

    .hero__text__index p,
    .tinytext__index {
        animation: none;
        transition: none;
        opacity: 1;
        transform: 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;
}