@font-face {
    font-family: lexend;
    src: url(font/Lexend-VariableFont_wght.ttf);
}

:root {
    scroll-behavior: smooth;
    background-color: #121116;
    color: #fff;
    font-family: lexend;
    overflow-x: hidden;

    --font--3: clamp(0.5064rem, 0.3468rem + 0.7978vi, 1.0489rem);
    --font--2: clamp(0.6076rem, 0.4162rem + 0.9574vi, 1.2587rem);
    --font--1: clamp(0.7292rem, 0.4994rem + 1.1489vi, 1.5104rem);
    --font-0: clamp(0.875rem, 0.5993rem + 1.3787vi, 1.8125rem);
    --font-1: clamp(1.05rem, 0.7191rem + 1.6544vi, 2.175rem);
    --font-2: clamp(1.26rem, 0.8629rem + 1.9853vi, 2.61rem);
    --font-3: clamp(1.512rem, 1.0355rem + 2.3824vi, 3.132rem);
    --font-4: clamp(1.8144rem, 1.2426rem + 2.8588vi, 3.7584rem);
    --font-5: clamp(2.1773rem, 1.4912rem + 3.4306vi, 4.5101rem);
    --font-6: clamp(2.6127rem, 1.7894rem + 4.1167vi, 5.4121rem);
    --font-7: clamp(3.1353rem, 2.1473rem + 4.94vi, 6.4945rem);
    --font-8: clamp(3.7623rem, 2.5767rem + 5.9281vi, 7.7934rem);

    background-position: center;
    background-image: url(img/background.png);
    background-size: 150%;
    background-repeat: repeat-y;
    animation: scale 4s ease infinite;
}

a {
    color: #fff;
    text-decoration: none;
    font-size: var(--font--2);
}

.a:hover {
    transition: ease 0.5s;
    scale: 110%;
}

h2 {
    font-size: var(--font-2);
}

body {
    margin: 0px;
}

/* Debut de la partie accueil */

.m-navbar {    
    margin: 1rem;
    border-radius: 15px;
    padding: 2rem;
    position: sticky;
    top: 0px;
    z-index: 998;
}

.navbar-contact {
    background: linear-gradient(#121116, #121116) padding-box,
        linear-gradient(to bottom right, #7729BA 16%, #26DAC4 100%) border-box;
    border-radius: 50em;
    background-size: 400% 400%;
    border: 4px solid transparent;
    color: #fff;
    padding: 0.5rem;
    animation: gradient 4s ease infinite;
}

.hero {
    height: 90svh;
    overflow-x: hidden;
}

.hero-text {
    width: 100%;
    color: #ffffff;
    text-align: center;
    font-weight: 700;
    font-size: var(--font-5);
    position: relative;
    overflow: visible;
    background-image: url(svg/Line.svg);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 10px;
    margin: -10px;
    margin-top: 10rem;
}

.hero-text-color {
    color: transparent;
    -webkit-text-stroke: #fff;
    -webkit-text-stroke-width: 2px;
}

/* Fin de la partie accueil */

/* Debut de la partie de présentation */

.follow-up {
    background-color: rgba(230, 224, 242, 0.1);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 25px;
    margin: 3rem;
}

.follow-up-img {
    border-radius: 15px;
    width: 10rem;
    margin: 1rem;
}

.follow-up-text {
    margin-right: 5rem;
    margin-left: 1rem;
}

.follow-up-title {
    font-size: var(--font-4);
    margin: 0px;
    margin-top: 2rem;
}

.follow-up-text > p {
    font-size: var(--font-0);
    margin-top: 1rem;
}

/* Fin de la partie de présentation */

/* Debut de la grille des skills */

.skill-wraper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows:  1fr 1fr;
    margin: 3rem;
}

.skill-object {
    background-color: rgba(230, 224, 242, 0.1);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 15px;

    z-index: 1;
    padding: 1rem;
}

.skill-p {
    margin-right: 5rem;
}

.skill-logo {
    width: 5em;
    height: 5em;
    background-color: #fff;
    border-radius: 200px;
}

.skill-transparent {
    background-color: transparent;
}

/* Fin de la grille des skills */

/* Debut de la partie creation */

.creation-object {
    width: 80vw;
    margin: 0 auto 0 auto;

    background-color: rgba(230, 224, 242, 0.1);
    border-width: 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 15px;    
}

.creation-object > img {
    width: 70vw;
    margin: 0 auto 0 auto;  
    border-radius: 15px 15px 15px 15px; 
    margin-bottom: 5rem;
}

.creation-title {
    margin-bottom: 0;
    padding-left: 1rem;
}

.creation-p {
    padding-left: 1rem;
    width: 80%;
}

/* Fin de la partie creation */

.cv {
    margin: 5rem;
    background: linear-gradient(#121116, #121116) padding-box,
        linear-gradient(to bottom right, #7729BA 16%, #26DAC4 100%) border-box;
    border-radius: 50em;
    background-size: 400% 400%;
    border: 4px solid transparent;
    color: #fff;
    animation: gradient 4s ease infinite;
    padding: 1rem;
    text-align: center;
}

footer{
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
}

footer {
    position: relative;
    height: 50vh;
}

.footer-list {
    position: absolute;
    top: 100px;
    margin: 10rem;
}

.footer-item {
    text-align: center;
    font-size: var(--font-1);
    z-index: 999;
    flex-shrink: 1;
}

.footer-item > h6 {
    margin: 0px;
}

.footer-item > p {
    margin: 0px;
}

.footer-item>img {
    width: 30vw;
    margin-left: auto;
    margin-right: auto;
}

.footer-item > a > img {
    width: 30vw;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px;
    width: 3.2rem;
    height: 3.2rem;
    background-color: rgba(230, 224, 242, 0.1);
    border-width: 3px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(50px);
    border-radius: 200px;
}

.footer-bg {
    position: absolute;
    text-align: center;
    top: 0px;
    flex-shrink: 0;
    z-index: -999;
    font-weight: 800;
    font-size: 22.2rem;
    color: rgba(255, 255, 255, 0.05);
}

@keyframes gradient {
    0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@keyframes scale {
    0% {
        background-size: 149%  auto;
    }
    50% {
        background-size: 150% auto;
    }
    100% {
        background-size: 149% auto;
    }
}

@media (max-width: 1023px) {
    footer {
        height: 0px;
        margin-bottom: 35rem;
    }

    :root {
        background-size: 500%;
    }

    .follow-up {
        gap: 1rem;
        margin: 1rem;
    }

    .follow-up-title {
        margin-top: 0rem;
    }

    .follow-up-img {
        margin-bottom: 0rem;
    }

    .skill-wraper {
        margin: 1rem;
        gap: 1rem;
        grid-template-columns: 1fr ;
    }

    .footer-list {
        margin: 1rem;
    }

    .footer-bg {
        display: none;
    }

    .footer-item>img {
        width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-item > a > img {
        width: 80vw;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Styles pour le mode paysage */
@media (orientation: landscape) {
    .footer-logo {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Styles pour le mode portrait */
@media (orientation: portrait) {
    .footer-logo {
        left: 50%;
        transform: translateX(-50%);
    }
}