@font-face {
    font-family: 'Cartoon';
    src: url('assets/SuperCartoon-6R791.ttf');
    font-weight: normal;
}

html {
    width: 100%;
    font-family: 'Cartoon', 'Arial', sans-serif;
    background-image: url('assets/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-size: larger;
    scrollbar-width: none;
    scroll-behavior: smooth;
    color: white;
}

body {
    width: 100%;
    display: flex;
    margin: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
    gap: 100px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(20px) brightness(0.5);
    z-index: -1; /* Reste derrière le contenu */
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 100px;
    padding-bottom: 100px;
}
header {
    width: 100%;
    display: flex;
    position: sticky;
    top: 0;
    color: white;
    font-size: 1.5rem;
    padding: 0 50px;
    border-radius: 0 0 0.5em 0.5em;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    box-sizing: border-box;
    user-select: none;
}

header input {
    display: block;
    position: absolute;
    left: -100vw;
}

header .logo {
    cursor: default;
}

nav {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    color: white;
}

nav h1 {
    font-size: 2.5rem;
    text-align: center;
}

nav ul {
    display: flex;
    padding: 0 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    list-style-type: none;
}

nav a {
    background-image: linear-gradient(to right, white, white);
    background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    padding: 20px;
    transition: all 0.2s linear;
    cursor: pointer;
}

nav a:hover {
    background-image: linear-gradient(to right, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff);
    background-clip: text;
    background-clip: text;
    color: transparent;
}

.download-button {
    display: block;
    color: white;
    border-width: 5px;
    border-style: solid;
    padding: 10px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s linear;
    text-align: center;
}

.download-button a {
    color: white;
    width: 100%;
    height: 100%;
    padding: 10px;
    border-radius: 0.5em;
    text-decoration: none;
    transition: all 0.2s linear;
}

.download-button:hover {
    background-color: white;
}

.download-button:hover a {
    color: black;
    border: none;
}

.container {
    width: 60%;
    padding: 20px;
    border-radius: 1em;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1);
    background-color: rgba(0, 0, 0, 0.7);
    scroll-margin-top: 20vh;
}

.pres-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    margin: auto;
}

.rainbow {
    background: linear-gradient(to top right, red, orange, yellow, green, cyan, blue, violet);
    background-size: 100%;
    background-clip: text;
    color: transparent;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    margin: auto;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    margin: auto;
    gap: 5%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    margin: auto;
}

.feature img {
    width: 50%;
    border-radius: 1em;
}

.feature p {
    width: 45%;
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-align: justify;
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    margin: auto;
    gap: 20px;
    transition: all 0.1s ease-in-out;
}

.download-section .download-button {
    border-radius: 1em;
}

.download-section .download-button a {
    padding: 50px;
}

.download-section .download-button:hover{
    transform: scale(1.05);
}

@media (max-width: 840px) {
    body::before {
        backdrop-filter: none;
        background-color: rgba(0, 0, 0, 0.5);
    }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }
    header .logo {
        cursor: pointer !important;
    }
    
    nav {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding-bottom: 20px;
        max-height: 150px;
        overflow: hidden;
        transition: all 0.3s ease-in-out;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    body {
        padding-top: 300px;
    }

    .container {
        width: 90%;
    }

    .feature {
        flex-direction: column;
    }

    .row {
        flex-direction: column;
    }

    .feature img {
        width: 100%;
    }

    .feature p {
        width: 100%;
        text-align: center;
    }
}

*::selection {
    background-color: transparent;
}