:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* CSS global de la page */
html,
body {
    max-width: 100%;
    height: 100%;
    position: static;
}

body {
    background-color: rgba(220, 220, 220, 1);
    margin: 0;
    max-width: 100%;
    font-family: "Calibri";
    display: flex;
    flex-direction: column;
}

.main {
    flex-grow: 1;
}

.gobal-box {
    background-color: rgba(255, 255, 255, 1);
    width: 100%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.menu-box {
    background-color: rgb(31, 31, 31);
    margin: 0;
    padding: 0;
    height: 70px;
    min-width: 300px;
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.menu-box ul {
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-box li {
    list-style: none;
}

.menu-box li a {
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
    font-size: 20px;
}

.logo-site {
    width: 70px;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
}

.accueil {
    padding: 20px;
    font-weight: bold;
    font-size: 20px;
}

.accueil a {
    position: relative;
    padding: 25px;
    border-right: 2px solid rgba(50, 50, 50, 0.5);
    border-left: 2px solid rgba(50, 50, 50, 0.5);
}

.accueil a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.accueil a:hover::after {
    transform: scaleX(1);
}

.upscroll {
    display: flex;
    position: fixed;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    font-size: 2.6rem;
    color: rgb(0, 0, 0);
    right: 20px;
    bottom: 20px;
}

/* Première rubrique avec mes informations */

.perso {
    width: 100%;
    min-width: 300px;
    max-width: 100%;
    height: 550px;
    padding-top: 5%;
    padding-bottom: 5%;
    background-color: rgb(236, 236, 236);
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.24);
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.apropos {
    width: 50%;
    min-width: 300px;
    font-size: 18px;
    text-align: center;
    margin: 0;
    padding: 1%;
    background: rgb(246, 246, 246);
    border-radius: 4px;
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.1);
}

.apropos ul {
    list-style: none;
    padding: 0;
}

.apropos a {
    font-size: 20px;
    color: rgb(111, 0, 255);
    text-decoration: none;
}

.imgperso {
    width: 25%;
    min-width: 300px;
    border-radius: 4px;
    display: block;
    max-width: 100%;
    background: none;
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.15)
}

/* Deuxième rubrique avec mes projets */

.projets {
    width: 100%;
    max-width: 100%;
    min-width: 300px;
    height: 550px;
    padding-top: 5%;
    padding-bottom: 5%;
    background-color: rgb(233 230 235);
    display: flex;
    gap: 10px;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Troisième rubrique avec mes éxperiences */

.experiences {
    width: 100%;
    max-width: 100%;
    min-width: 300px;
    height: 550px;
    padding-top: 5%;
    padding-bottom: 5%;
    background-color: rgb(236, 236, 236);
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.24);
    z-index: 1;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* CSS veille techno */
.veille-techno {
    width: 100%;
    max-width: 100%;
    min-width: 300px;
    height: 550px;
    padding-top: 5%;
    padding-bottom: 5%;
    min-height: max-content;
    background: rgb(233 230 235);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.veille-box {
    background: rgb(246, 246, 246);
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 70%;
    height: 95%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.theme-veille {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
}

.title-theme {
    text-align: center;
    border-right: 2px solid black;
    margin: 10px;
    padding: 10px;
}

.theme-veille p {
    text-align: left;
    padding: 10px;
}

.list-sources {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 80%;
    gap: 30px;
}

.source-card {
    width: 25%;
    height: auto;
    padding: 15px;
    font-size: 15px;
    background: white;
    border-radius: 15px;
    border: 2px solid white;
    box-shadow: 0px 0px 20px 0px rgb(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border 0.3s ease, transform 0.3s ease;
    text-align: center;
    align-content: center;
}

.source-card:hover {
    box-shadow: 1px 1px 12px rgb(160, 160, 160);
    transform: translateY(-5px);
}

#developpez:hover {
    border: 2px solid rgb(62 123 225);
}

#lemonde:hover {
    border: 2px solid rgb(255, 0, 0);
}

#jdn:hover {
    border: 2px solid rgb(0, 0, 0);
}

.btnVeille {
    margin-top: 2%;
    margin-bottom: 3%;
}

footer {
    width: 100%;
    height: 50px;
    background: rgb(31, 31, 31);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    gap: 50%;
    border: none;
}

footer p {
    color: white;
}

footer img {
    height: 100%;
}

@media only screen and (max-width: 576px) {
    .logo-menu {
        margin-left: 0;
        margin-right: 0;
        top: 15%;
    }

    .logo-menu img {
        height: 60px;
        width: 60px;
    }

    .perso {
        height: 100vh;
        flex-direction: column-reverse;
    }

    .projets {
        height: 100vh;
        flex-direction: column-reverse;
    }

    .experiences {
        height: 100vh;
        flex-direction: column-reverse;
    }

    .apropos {
        font-size: 16px;
    }

    .apropos a {
        font-size: 18px;
    }

    footer {
        gap: 10%;
    }

    footer p {
        font-size: 12px;
    }

    .veille-box {
        width: 80%;
        padding: 20px;
    }

    .theme-veille {
        grid-template-columns: 100%;
        grid-template-rows: 50% 50%;
    }

    .list-sources {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: center;
    }

    .source-card {
        width: 70%;
    }

    .title-theme {
        border-right: none;
        border-bottom: 2px solid black;
    }

    .title-veille {
        text-align: center;
    }
}

@media only screen and (max-width: 768px) {
    .veille-box {
        padding: 20px;
    }

    .list-sources {
        flex-direction: column;
        align-items: center;
    }

    .source-card {
        width: 70%;
    }
}