@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lilita+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

@keyframes pageGoTop {
    50% {
        transform: translate(4rem, 4rem);
        z-index: 4;
    }
    100% {
        transform: translate(0, 0);
        z-index: 4;
    }
}
@keyframes pageGoDown {
    50% {
        transform: translate(-2rem, -2rem);
        z-index: 1;
        opacity: 1;
    }
    100% {
        transform: translate(0, 0);
        z-index: 1;
        opacity: 0;
    }
}


:root{
    --black-font-color--: rgb(33, 33, 33);
    --black-font-color-clear--: rgb(58, 58, 58);
    --rem-multiplier--: 1.5
}

html {
    font-size: 16px; /* Valeur par défaut : 1rem = 16px */
}

/* Écran moyen : Réduit un peu */
@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    :root{
        --rem-multiplier--: 1.25
    }
}

/* Petit écran (tablette) : Réduit encore */
@media (max-width: 900px) {
    html {
        font-size: 12px;
    }
    :root{
        --rem-multiplier--: 1.1
    }
}

/* Mobile : Encore plus petit */
@media (max-width: 600px) {
    html {
        font-size: 8px;
    }
    :root{
        --rem-multiplier--: 1
    }
}

*{
    padding: 0;
    margin: 0;

    user-select: none;
}

body{
    display: flex;
    justify-content: center;

    overflow-y: auto;

    min-height: 100dvh;

    background-color: #FBF5E5;
}

main{
    position: relative;
    min-width: 50vw;
    max-width: calc(85vw / var(--rem-multiplier--));
    box-sizing: border-box;
    margin: 5rem;
}

.page {
    position: relative;
    display: none;
    flex-direction: column;
    align-items: baseline;

    width: 100%;
    max-width: 100%;
    padding: 4rem 6rem;
    box-sizing: border-box;

    background-color: whitesmoke;
    border: solid black 2px;
    border-radius: 15px;
}
.page.active{
    display: flex;
    z-index: 3;
}
.page.inactive {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.page.active.animate{
    animation: pageGoDown 1s ease-in;
}
.page.inactive.animate{
    display: flex;
    animation: pageGoTop 1s ease-out;
}

nav{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    width: 100%;

    .nav-part{
        display: flex;
        flex: 1;
        justify-content: center;
        align-items: center;
        gap: 5%;
        height: 3rem;

        a{
            text-decoration: none;
            color: black;
            transition: .15s;
        }
        a:hover{
            transform: scale(1.1);
            cursor: pointer;
            span{
                font-weight: bold;
            }
        }

        span.nav-element{
            font-family: "Montserrat", serif;
            font-optical-sizing: auto;
            font-weight: 500;
            font-style: normal;
            font-size: calc(0.75rem *  var(--rem-multiplier--));
            padding: .25rem;
            background-color: #F4D793;
            border-radius: 0.3rem;
        }
        span.nav-element.active{
            background-color: #dabf81;
        }

        span.title{
            font-family: "Lilita One", serif;
            font-weight: 400;
            font-style: normal;
            font-size: 1.25rem;
            padding: 1rem;
            background-color: #C890A7;
            border-radius: 10px 10px 10px 10px;
        }
    }
}

.container{
    position: relative;
    display: flex;
    flex-direction: row;
    width: 100%;
}
.container.fluid{
    justify-content: center;
    align-items: center;
}
.container.wrap{
    flex-wrap: wrap;
    gap: 2rem !important;
}

h1.title{
    color: var(--black-font-color--);

    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-style: normal;
}
h1.title#mainTitle{
    font-size: 4rem !important;
}
span.subtitle{
    color: var(--black-font-color-clear--);

    font-family: "Montserrat", serif;
    font-weight: 400;
    font-style: normal;
}

.card {
    flex: 1;
    background-color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    transition: transform .25s;
}
.card:hover{
    transform: translateY(-10px);
}

.card .title{
    color: var(--black-font-color--);
    font-size: 2rem;
    font-weight: bold;
}

svg.card-logo{
    background-color: #889E73;
    border-radius: 10px;
    padding: 0.75rem;
}


.border-cartoon-lg{
    box-shadow: rgba(0,0,0 , 0.75) 0.4rem 0.4rem 0rem 0.25rem;
    border: solid black 2px;
}
.border-cartoon-md{
    box-shadow: rgba(0,0,0 , 0.75) 0.25rem 0.25rem 0rem 0.15rem;
    border: solid black 2px;
}
.border-cartoon-sm{
    box-shadow: rgba(0,0,0 , 0.75) 0.075rem 0.075rem 0rem 0.075rem;
    border: solid black 2px;
}

.skill-banner {
    height: auto;
    width: 100%;
    padding: 1rem 10%;
    margin: 7.5% 0;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

    background-color: rgb(33, 33, 33);
    clip-path: polygon(0 0, 100% 0, 97.5% 50%, 100% 100%, 0 100%, 2.5% 50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: whitesmoke;

    i{
        font-size: 200%;
    }
}

.skill-banner img{
    transition: transform 0.25s;
}
.skill-banner img:hover{
    transform: scale(1.05);
}

.code-panel{
    flex: 1;
    background-color: rgb(85, 85, 85);
    border: solid black 1px;
    padding: 1rem;
    color: rgb(173, 173, 173);
    border-radius: 10px 10px 0 10px;
    font-size: calc(.45rem * var(--rem-multiplier--));
}

.reseau-panel{
    position: relative;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: space-around;
    border: solid black 1px;
    padding: 1rem;
    background-color: #A94A4A;
    border-radius: 10px;
    color: antiquewhite;
    font-size: calc(.75rem * var(--rem-multiplier--));
    font-family: "Lilita One", serif;
    transition: transform 0.25s;

    max-height: 2rem;

    text-decoration: none;

    img{
        max-height: 100%;
        max-width: 20%;
    }
}
.reseau-panel:hover{
    transform: translateY(-0.25rem);
}

.carre-avec-triangle {
    width: 150px;  /* Largeur du carré */
    height: 150px; /* Hauteur du carré */
    background-color: #3498db; /* Couleur de fond du carré */
    position: relative; /* Nécessaire pour positionner le triangle */
}

.triangle {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;  /* Crée un côté du triangle */
    border-right: 75px solid transparent; /* Crée l'autre côté du triangle */
    border-top: 75px solid #3498db;  /* Crée la couleur du triangle */
    position: absolute;
    bottom: -75px; /* Positionne le triangle juste en dessous du carré */
    left: 0;
}

.contact-button{
    position: absolute;
    padding: 1rem;
    top: .75rem;
    left: .75rem;
    background-color: #F8E1B7;
    border-radius: .5rem;
    transition: transform 0.25s;
    text-decoration: none;
    color: black;
}
.contact-button:hover{
    transform: scale(1.025);
    cursor: pointer;
}

.return-button{
    position: absolute;
    padding: 1rem;
    top: .75rem;
    left: .75rem;
    background-color: #F8E1B7;
    border-radius: .5rem;
    transition: transform 0.25s;
    text-decoration: none;
    color: black;
}
.return-button:hover{
    transform: scale(1.025);
    cursor: pointer;
}

#contactPage h1{
    margin: 0 0 3.5rem 0;
}
#contactPage form{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
#contactPage button{
    margin: 1rem;
    padding: 0.2rem 1rem;
    height: 1.5rem;
}
form .line{
    margin: 0 20%;
    width: 60%;
    display: flex;
    flex-direction: column;

    label{
        font-size: 110%;
    }
    input{
        padding: 0.5rem;
        font-size: 100%;
    }
    textarea{
        padding: 0.5rem;
        font-size: 100%;
    }
}