/* Variables CSS */
:root {
    --primary-color: #ff5c00;
    --secondary-color: #4d4d4d;
    --highlight-color: #87CEFA;
    --background-color: #595959;
    --text-color: #e6e6e6;
    --font-family-main: 'Montserrat', sans-serif;
    --font-family-alt: 'Bebas Neue', sans-serif;
    --border-radius: 10px;
    --transition-duration: 0.3s;
    --gradient-bg: linear-gradient(-45deg, #FFB347, #FF6B6B, #FFF9C4);
    --box-shadow: 0px 0px 15px 5px #393939;
}

/* Selection Styles */
::selection {
    background-color: var(--primary-color);
    color: #000000;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: #000000;
}

/* Body Styles */
body {
    margin: 0;
    padding: 0;
    background: var(--gradient-bg);
    background-size: 300% 300%;
    animation: gradient 15s ease infinite;
    height: 100vh;
    overflow: hidden;
}

#squaresBackground, .websiteContent {
    height: 100vh;
    overflow: hidden;
}

#websiteContent {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width:100%;
}

/* Navigation Styles */
nav {
    margin: 6% 0 0 3%;
    width: 7%;
    height: 60vh;
    position: absolute;
    padding: 5px;
    border-radius: var(--border-radius);
    background-color: #393939;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

nav div {
    padding: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color var(--transition-duration);
}

nav div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav div i {
    font-size: 125%;
}

nav div p {
    margin: 0;
    margin-top: 7px;
    font-size: 75%;
    text-transform: uppercase;
    font-family: var(--font-family-main);
    font-weight: 300;
}

nav div:hover {
    color: var(--primary-color);
}

/* Aside Styles */
aside {
    margin: 4% 0 0 12%;
    width: 25%;
    height: 70vh;
    position: absolute;
    padding: 5px;
    border-radius: var(--border-radius);
    background-color: #393939;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    box-shadow: var(--box-shadow);
    z-index: 2;
}

aside h2 {
    text-transform: uppercase;
}

aside #duration_activity {
    padding: 2%;
    width: 99%;
    background: linear-gradient(135deg, #cc4b00, #ff6600);
    display: flex;
    flex-direction: column;
    align-items: center;
}

aside #languages {
    display: flex;
    justify-content: space-around;
    width: 50%;
}

aside #languages span {
    padding: 7%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 33%;
    cursor: pointer;
}

aside #languages span:nth-of-type(1) {
    border-radius: 10px 0 0 10px;
    border-left: 1px solid #FFFFFF;
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

aside #languages span:nth-of-type(2) {
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

aside #languages span:nth-of-type(3) {
    border-radius: 0 10px 10px 0;
    border-right: 1px solid #FFFFFF;
    border-top: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
}

aside .langsFlag {
    width: 80%;
    border: 1px solid #FFFFFF;
}

aside .activeLang {
    background-color: var(--secondary-color);
}

aside a {
    display: inline-block;
    width: 70%;
    text-align: center;
    padding: 7px;
    border-radius: var(--border-radius);
    font-family: var(--font-family-main);
    font-weight: 300;
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    cursor: pointer;
    transition: border 0.5s ease, color 0.5s ease;
    text-transform: uppercase;
    text-decoration: none; /* Ajoute cette ligne pour supprimer le soulignement par défaut du lien */
}

aside a:hover {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

aside a i {
    margin-right: 8px; /* Ajuste la marge à droite de l'icône */
}


/* Main Styles */
main {
    margin: 4% 0 0 40%;
    width: 50%;
    height: 70vh;
    position: absolute;
    padding: 5px;
    border-radius: var(--border-radius);
    background-color: #393939;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    scroll-behavior: smooth;
    transform: scale(1);
    transition: margin-left 0.5s ease, width 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

main .fa-circle, main .fa-circle-check {
    color: var(--primary-color);
}

/* Typography Styles */
h1, h2 {
    margin: 0;
    color: #FFFFFF;
}

h2, h3 {
    font-family: var(--font-family-main);
}

h1 {
    font-family: var(--font-family-alt);
    font-size: 250%;
    letter-spacing: 5px;
}

h2 {
    font-weight: 300;
    font-size: 75%;
    letter-spacing: 7px;
    text-transform: uppercase;
}

h3 {
    margin-left: 5%;
    width: 95%;
    color: var(--primary-color);
    font-size: 200%;
    font-weight: 700;
}

h4 {
    color: #FFFFFF;
    font-family: var(--font-family-main);
    font-weight: 300;
    font-size: 150%;
    text-align: center;
}

.welcomeMain h4 {
    text-align: left;
}

header h5 {
    margin-left: 10px;
}

h5 {
    margin: 0;
    color: #FFFFFF;
    font-family: var(--font-family-main);
    font-weight: 600;
    font-size: 90%;
}

h6 {
    margin: 0;
    margin-left: 10px;
    font-family: var(--font-family-main);
    font-weight: 300;
    font-style: italic;
    font-size: 75%;
    color: #cccccc;
}

.quarterWidth h5, .quarterWidth h6 {
    margin-left: 0;
}

#duration_activity h5 {
    text-transform: uppercase;
}

/* Mobile Styles */
#accessCardMobile {
    display: none;
}

@media (max-width: 768px) {
    html, body {
        touch-action: none;
    }

    h4 {
        font-size: 125%;
    }

    #welcomeMsg {
        margin: 0;
    }

    nav {
        flex-direction: row;
        width: 100%;
        height: 5vh;
        margin: 0;
        border-radius: 0;
    }

    main {
        padding: 1%;
        margin-left: 4%;
        margin-top: 15%;
        width: 90%;
        height: 75vh;
    }

    nav div {
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }

    nav div p {
        display: none;
    }

    aside {
        padding: 1%;
        margin-left: 4%;
        margin-top: 100vh;
        width: 90%;
        height: 75vh;
    }

    #accessCardMobile {
        display: block;
        padding: 10px;
        width: 90%;
        background-color: var(--primary-color);
        border-radius: 25px;
        border: 0;
        font-size: 150%;
        cursor: pointer;
    }
}
