/*          Base           */
/***************************/

@import url("scroll.css");

@font-face {
    font-family: 'louis-georges-cafe';
    src: url('../polices/louis_george_cafe/louis_george_cafe.ttf') format('truetype');
}

:root {
    --textColor: white;
    --hoverColor: rgb(14, 182, 194);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #18181a;
    font-family: "louis-georges-cafe";
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
}

main {
    width: 100%;
    margin:0 auto;
}

section {
    margin: 0 auto;
}

p {
    color: var(--textColor);
}

h1 {
    color: var(--textColor);
}

h2 {
    color: var(--textColor);
    margin-bottom: 90px;
    font-size: 1.9rem;
}

h2 span {
    color: transparent;
    -webkit-text-stroke: 0.5px white;
}

h3 {
    color: var(--textColor);
    font-size: 1.5rem;
}





/*        Composants         */
/*****************************/

.nav-bar {
    position: fixed;
    top: 0;
    height: 110px;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 100vw;
    padding: 0 40px;
    z-index: 10;
}

.logo img {
    height: 80px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.menu {
    list-style: none;
    display: flex;
    gap: 40px;
}

.button {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    text-transform: uppercase;
    transition: color 0.5s ease;
}

.button:hover {
    background: #2e2e36;
    color: #d9d9d9;
}

.button::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--textColor);
    transition: width 0.5s ease, left 0.5s ease;
}

.button:hover::before {
    width: 100%;
    left: 0;
}

#menu-burger-ouvert {
    display: none;
}

footer {
    height: 110px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 40px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
}

.reseau {
    margin: 20px 20px;
}

footer a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.linkedin-logo, .telecharger-icone {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    margin-bottom: 6px;
}



/*      Loader      */

#chargeur {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #18181a;
    z-index: 20;
}

.conteneur-chargement {
    position: fixed;
    bottom: 20px;
    right: 30px;
}

#texte-chargement {
    color: #ffffff;
    font-size: 10rem;
    margin-bottom: 20px;
    margin-right: 10px;
}

.barre-chargement {
    width: 370px;
    height: 10px;
    background: #2e2e36;
    border-radius: 5px;
    overflow: hidden;
    margin-top: -30px;
    margin-bottom: 20px;
}

#remplissage-chargement {
    width: 0;
    height: 100%;
    background: rgb(14, 182, 194);
    transition: width 0.1s ease-in-out;
}



/* animation triangles */

.conteneur-triangles {
    height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
}

.triangle {
    position: absolute;
    width: 0;
    height: 0;
    animation-timing-function: ease-in-out;
}
  
.triangle-haut-gauche {
    top: 0;
    left: 0;
    border-top: 100vh solid rgba(0, 0, 0, 0.7);
    border-right: 100vw solid transparent; 
    transform-origin: bottom left;
    /* animation: splitTriangleHaut 2s forwards; */
}
  
.triangle-bas-droite {
    bottom: 0;
    right: 0;
    border-bottom: 100vh solid rgba(0, 0, 0, 0.7);
    border-left: 100vw solid transparent;
    transform-origin: top right;
    /* animation: splitTriangleBas 2s forwards; */
}
  
@keyframes splitTriangleHaut {
    0% {
      transform: none;
    }
    100% {
      transform: translate(-100vw, -100vh);
      opacity: 0;
    }
}
  
@keyframes splitTriangleBas {
    0% {
      transform: none;
    }
    100% {
      transform: translate(100vw, 100vh);
      opacity: 0;
    }
}



/*     Contenus     */

.section-contenu {
    margin: 0 80px;
    margin-top: 60px;
}

.contenu-flex {
    display: flex;
    font-size: 1.3rem;
    gap: 80px;
    margin: 125px;
}

.contenu-flex p {
    flex: 1;
}

section {
    margin-top: 150px;
}



/* section d'accueil */

.accueil {
    height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.accueil img {
    opacity: 0;
    overflow: hidden;
    max-width: 35vw;
    height: auto;
    filter: brightness(50%);
    /* animation: apparitionImage 3s forwards; */
}

.accueil h1 {
    position: absolute;
    font-size: 7rem;
    text-align: center;
    z-index: 3;
    margin-top: 380px;
    opacity: 0;
    /* animation: apparitionTexte 3.5s forwards 2s; */
    letter-spacing: 3px;
    padding: 25px;
}

.accueil h1 span {
    color: transparent;
    -webkit-text-stroke: 0.5px var(--textColor);
}

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

@keyframes apparitionTexte {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* effet de néon sur la souris */

.trace {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: rgb(14, 182, 194);
    border-radius: 50%;
    box-shadow: 0 0 7px 4px rgb(14, 182, 194), 0 0 10px 10px rgb(14, 182, 194);
    opacity: 0.8;
    pointer-events: none;
    transition: opacity 0.5s, transform 0.5s;
}



/* section mes compétences */



/* 3D */

#scene-conteneur {
    position: absolute;
    width: 100vw;
    height: 300vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -85vh;
    z-index: -1;
}

#scene-conteneur canvas{
    transition: all 0.5ms ease-in-out;
}

/* compétences */

.cercle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(
        rgb(14, 182, 194) 0%,
        #2e2e36 0%
    );
    display: flex;
    justify-content: center;
    align-items: center;
}

.cercle:hover {
    background: conic-gradient(
        rgb(14, 182, 194) calc(var(--pourcentage) * 1%),
        #2e2e36 calc(var(--pourcentage) * 1%)
    );
}

.competences-cercle {
    position: relative;
    width: 800px;
    height: 800px;
    margin: 0 auto;
    margin-bottom: 100px;
    margin-top: 450px;
}

.competence {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -55px;
}

.competence p {
    margin-top: 20px;
}

i {
    position: absolute;
    font-size: 3rem;
    color: var(--textColor);
}

.competence:nth-of-type(1) {
    transform: rotate(0deg) translate(370px) rotate(0deg);
}

.competence:nth-of-type(2) {
    transform: rotate(26deg) translate(370px) rotate(-26deg);
}

.competence:nth-of-type(3) {
    transform: rotate(51deg) translate(370px) rotate(-51deg);
}

.competence:nth-of-type(4) {
    transform: rotate(77deg) translate(370px) rotate(-77deg);
}

.competence:nth-of-type(5) {
    transform: rotate(103deg) translate(370px) rotate(-103deg);
}

.competence:nth-of-type(6) {
    transform: rotate(129deg) translate(370px) rotate(-129deg);
}

.competence:nth-of-type(7) {
    transform: rotate(154deg) translate(370px) rotate(-154deg);
}

.competence:nth-of-type(8) {
    transform: rotate(180deg) translate(370px) rotate(-180deg);
}

.competence:nth-of-type(9) {
    transform: rotate(206deg) translate(370px) rotate(-206deg);
}

.competence:nth-of-type(10) {
    transform: rotate(231deg) translate(370px) rotate(-231deg);
}

.competence:nth-of-type(11) {
    transform: rotate(257deg) translate(370px) rotate(-257deg);
}

.competence:nth-of-type(12) {
    transform: rotate(283deg) translate(370px) rotate(-283deg);
}

.competence:nth-of-type(13) {
    transform: rotate(308deg) translate(370px) rotate(-308deg);
}

.competence:nth-of-type(14) {
    transform: rotate(334deg) translate(370px) rotate(-334deg);
}


/* section mes réalisations */



/* carrousel */

.hidden {
    opacity: 0;
    transition: all 0.8s;
    filter: blur(0.8rem);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
}

.hidden-right {
    transform: translateX(80%);
}

.hidden-left {
    transform: translateX(-80%);
}

.show-right {
    transform: translateX(0);
}

.show-left {
    transform: translateX(0);
}

.carrousel {
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.carrousel a i {
    font-size: 3rem;
    color: var(--textColor);
    position: absolute;
    bottom: 8px;
    right: 15px;
    transition: 0.3s ease-in-out;
    rotate: 0;
}

.carrousel a i:hover {
    rotate: -30deg;
}

.carrousel-texte {
    margin-left: 20px;
    margin-right: 20px;
    line-height: 1.5;
}

.conteneur-carrousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.element-carrousel {
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%,  
              100%, 0.075),
              0 0 0 1px hsla(0, 0%, 0%, 0.05),
              0 0.3px 0.4px hsla(0, 0%, 0%, 0.02),
              0 0.9px 1.5px hsla(0, 0%, 0%, 0.045),
              0 3.5px 6px hsla(0, 0%, 0%, 0.09);
    width: 35vw;
    height: 70vh;
    background-color: var(--textColor);
    border-radius: 15px;
    justify-items: center;
    align-items: center;
    justify-content: center;
    background-color: #2e2e36;
}

.element-horizontal {
    width: 100%;
    height: auto;
}

.element-vertical {
    display: flex;
}

.element-vertical a {
    height: 100%;
    width: auto;
}

.element-vertical a img {
    border-radius: 15px 0 0 15px;
    height: 100%;
    width: auto;
}

.element-vertical .description {
    width: 50%;
}

.borne-cache {
    display: none;
}


/* contact */

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input, textarea {
    width: 80vw;
    background-color: #2e2e36;
    color: var(--textColor);
    padding: 10px;
    margin: 10px 0;
    font-size: 1em;
}

input:focus, textarea:focus {
    border: 2px solid rgb(14, 182, 194);
    outline: none;
}

input[type="submit"] {
    cursor: pointer;
    text-transform: uppercase;
    color: #1a1a1a;
    background-color: var(--textColor);
}

input[type="submit"]:hover {
    background-color: #1a1a1a;
    color: var(--textColor);
}

.conteneur-remerciments {
    width: 50%;
    height: 12vh;
    margin: 0 auto;
    margin-top: 80px;
    margin-bottom: 80px;
}

.remerciments {
    font-size: 1.3rem;
    color: white;
}



/*----------------------------------*/
/*             Responsive           */
/*----------------------------------*/

/* Tablette */

@media screen and (max-width : 1600px) {

    .accueil img {
        max-width: 40vw;
    }

    .conteneur-carrousel {
        grid-template-columns: repeat(1, 1fr);
    }

    .element-carrousel {
        width: 55vw;
        height: 85vh;
    }

    .conteneur-remerciments {
        width: 80%;
    }

    .contenu-flex {
        margin: 90px;
    }
    
}

/* Mobile */

@media only screen and (max-width: 960px){

    .accueil img {
        max-width: 45vw;
    }

    .contenu-flex {
        display: block;
        font-size: 1.1rem;
        margin: 0;
    }

    .conteneur-remerciments {
        width: 100%;
        margin-bottom: 200px;
    }
    
    .remerciments {
        font-size: 1.1rem;
    }

    /* menu burger */

    .menu {
        display: none;
    }

    .contenu-burger {
        position: fixed;
        z-index: 10;
        display: block;
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #menu-burger {
        position: relative;
        width: 40px;
        height: 25px;
        cursor: pointer;
    }

    #menu-burger:before {
        content: '';
        position: absolute;
        background-color: var(--textColor);
        width: 100%;
        height: 4px;
        top: 0;
        transition: .2s all;
    }
    
    #menu-burger:after {
        content: '';
        position: absolute;
        background-color: var(--textColor);
        width: 100%;
        height: 4px;
        bottom: 0;
        transition: .2s all;
    }

    #menu-burger i {
        opacity: 1;
        position: absolute;
        background-color: var(--textColor);
        width: 100%;
        height: 4px;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        transition: .2S all;
    }

    #menu-burger:hover i {
        width: 75%;
        transition: .2S all;
    }

    .burgeractif i {
        opacity: 0 !important;
        width: 0% !important;
    }

    .burgeractif:before {
        top: 50% !important;
        transform: rotate(45deg);
        border-radius: 4px;
        transition: .2s all;
    }
    
    .burgeractif:after {
        top: 50% !important;
        transform: rotate(-45deg);
        border-radius: 4px;
        transition: .2s all;
    }

    #menu-burger-ouvert {
        position: fixed;
        width: 50vw;
        background-color: rgba(0, 0, 0, 0.7);
        top: 0;
        right: 0;
        z-index: 9;
    }

    #menu-burger-ouvert ul {
        list-style: none;
        margin-top: 120px;
        padding-right: 35px;
    }
    
    #menu-burger-ouvert ul li a {
        color: var(--textColor);
        font-size: 18px;
    }



    /* competences */

    #qui-suis-je {
        margin-bottom: 600px;
    }

    .cercle {
        background: conic-gradient(
            rgb(14, 182, 194) calc(var(--pourcentage) * 1%),
            #2e2e36 calc(var(--pourcentage) * 1%)
        );
    }

    .competences-cercle {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .competence {
        flex: none;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        text-align: center;
        margin-left: 0px;
    }

    .competence:nth-of-type(1),
    .competence:nth-of-type(2),
    .competence:nth-of-type(3),
    .competence:nth-of-type(4),
    .competence:nth-of-type(5),
    .competence:nth-of-type(6),
    .competence:nth-of-type(7),
    .competence:nth-of-type(8),
    .competence:nth-of-type(9),
    .competence:nth-of-type(10),
    .competence:nth-of-type(11),
    .competence:nth-of-type(12),
    .competence:nth-of-type(13),
    .competence:nth-of-type(14) {
        transform: none;
    }

    /* carrousel */

    .element-carrousel {
        width: 60vw;
        height: 75vh;
    }

    .hidden-right {
        transform: translateX(50%);
    }
    
    .hidden-left {
        transform: translateX(-50%);
    }

    .trace {
        display: none;
    }
    
    .element-vertical .description {
        width: 100%;
    }

    footer {
        height: 135px;
    }

}

@media only screen and (max-width: 800px){

    .accueil img {
        max-width: 400px;
    }

    .accueil h1 {
        font-size: 4rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .competences-cercle {
        width: 100vw;
    }

    .carrousel-texte {
        line-height: 1.2;
    }

    .reseau {
        margin-top: 22px;
    }

    /* loader */

    #texte-chargement {
        font-size: 6rem;
    }
    
    .barre-chargement {
        width: 200px;
    }
}