@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --couleur-typo-blanche: #FFF;
    --couleur-typo-jaune: yellow;
    --couleur-bg: #0B152F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--couleur-bg);
    font-family: 'Poppins', sans-serif;
    color: var(--couleur-typo-blanche);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header et Nav */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    padding: 0 10px;
    border-bottom: 1px solid var(--couleur-typo-jaune);
}

header h1 {
    font-weight: 400;
}

header span {
    color: var(--couleur-typo-jaune);
}

.nav-toggler {
    position: absolute;
    z-index: 10;
    top: -8px;
    right: 30px;
    height: 50px;
    width: 30px;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    display: none;
}

.line {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: #F1F1F1;
    transition: transform 0.3s ease-out,
        opacity 0.1s ease-out;
}

.l1 {
    transform: translateY(-10px);
}

.l3 {
    transform: translateY(10px);
}

.nav-toggler.active .l1 {
    transform: translateY(0px) rotate(135deg);
}

.nav-toggler.active .l2 {
    opacity: 0;
}

.nav-toggler.active .l3 {
    transform: translateY(0px) rotate(-135deg);
}

header nav {
    width: 500px;
}

header nav ul.liste-items {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-shrink: 0;
}

header nav ul li {
    list-style: none;
}

header nav ul li a:hover span {
    color: var(--couleur-bg);
}

header nav ul li a span {
    font-size: 15px;
}

/* header nav ul li:nth-last-child() {
    margin-left: 0;
} */

header nav ul.liste-items li a {
    text-decoration: none;
    color: var(--couleur-typo-blanche);
    transition: all 0.2s;
    position: relative;
    padding: 0 15px;
}

header nav ul.liste-items li a::before {
    content: '';
    position: absolute;
    background: var(--couleur-typo-jaune);
    width: 2px;
    height: 100%;
    left: 0;
    transition: .2s all;
    z-index: -1;
}

header nav ul.liste-items li a:hover::before {
    width: 100%;
}

header nav ul.liste-items li a:hover {
    color: var(--couleur-bg);
}

/* Fin header nav */

/* page accueil */

.presentation {
    text-align: center;
}

.presentation h1 {
    font-weight: 400;
    margin: 80px 0;
}

.presentation .dev {
    font-size: 20px;
}

.presentation #texte {
    color: var(--couleur-typo-jaune);
}

.presentation p {
    font-weight: 300;
    margin-bottom: 80px;
}

.cartes {
    display: flex;
    justify-content: space-evenly;
}

.cartes img,
.mes-rea .rea-img {
    width: 390px;
    height: 256px;
    border: 1px solid var(--couleur-typo-jaune);
    transition: 0.5s;
}

.cartes img:hover,
.mes-rea .rea-img:hover {
    filter: brightness(70%);
    /* filter: opacity(0.5); */
}

.cartes .mes-cartes {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.cartes a.lien {
    margin: 20px 0;
    color: var(--couleur-typo-blanche);
    text-decoration: none;
    transition: all 0.3s;
}

.cartes a:hover {
    color: var(--couleur-typo-jaune);
}

/* Page réalisations */

.titre-rea h1,
.titre-veille h1,
.titre-cv h1 {
    font-weight: 400;
    margin: 80px 0;
    text-align: center;
}

.mes-rea {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-bottom: 50px;
}

.mes-rea .center {
    text-align: center;
    width: 390px;
    margin-bottom: 100px;
}

.mes-rea .rea-p {
    margin-bottom: 40px;
}

.mes-rea .rea-lien {
    text-decoration: none;
    color: var(--couleur-bg);
    transition: all 0.2s;
    padding: 15px 30px;
    background-color: var(--couleur-typo-jaune);
    border-radius: 20px;
}

.mes-rea .rea-lien:hover {
    background-color: rgba(255, 255, 0, 0.7);
}

.mes-rea .logo-lafleur {
    padding: 10px;
    background-color: antiquewhite;
}

/* Page Veilles techno */

.menu-veille {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 85px;
}

.menu-veille a {
    font-weight: 400;
    transition: all 0.3s;
    font-size: 1.4em;
    text-decoration: none;
    color: var(--couleur-bg);
    background-color: var(--couleur-typo-jaune);
    padding: 5px 15px;
    border-radius: 50px;
    width: 140px;
    text-align: center;
}

.menu-veille a:hover {
    cursor: pointer;
    transform: scale(1.3);
    background-color: rgba(255, 255, 0, 0.7);
}

.articles h3 {
    text-align: center;
    font-weight: 400;
    margin: 40px;
    font-size: 1.5em;
    color: var(--couleur-typo-jaune);
}

.articles p {
    width: 80%;
    margin: 0 auto;
    text-align: justify;
}

.articles .github,
.articles .git {
    border-bottom: 1px solid #FFF;
    padding-bottom: 50px;
}

.articles .bootstrap {
    padding-bottom: 50px;
}

.arrow-up {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 30px;
    background: var(--couleur-typo-jaune);
    color: var(--couleur-bg);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    text-align: center;
}

.arrow-up:hover {
    background: rgba(255, 255, 0, 0.7);
}

/* Page CV */

.titre-cv {
    text-align: center;
}

.titre-cv img {
    width: 200px;
    border-radius: 50%;
    border: 2px solid var(--couleur-typo-jaune);
}

.mon-cv {
    text-align: center;
    margin-bottom: 50px;
}

.mon-cv h1 {
    margin: 20px;
}

.mon-cv h1,
.mon-cv h2 {
    font-weight: 400;
}

.mon-cv h2 {
    margin: 10px;
    text-decoration: underline;
    color: yellow;
}

.mon-cv ul li {
    list-style: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo svg {
    margin: 15px 15px;
}

/* Footer */

footer {
    /* position: absolute;
    bottom: 0; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-top: 1px solid var(--couleur-typo-jaune);
    margin-top: 20px;
}

footer .copyright span {
    color: var(--couleur-typo-jaune);
}

/* Responsive */

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

    .cartes,
    .mes-rea {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 900px) {
    header h1 {
        font-size: 1em;
    }
}

@media screen and (max-width: 730px) {
    header {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-toggler {
        display: block;
    }

    header nav {
        width: auto;
        display: none;
        transform: translateY(-100%);
        transition: transform 0.3s cubic-bezier(0.73, 0.11, 0.67, 0.84);
    }

    header nav.active {
        display: block;
        transform: translateY(0);
    }

    header nav ul.liste-items {
        display: block;
    }

    header h1 {
        margin: 10px 0;
    }

    header nav ul .items {
        margin: 4px 0;
    }

    .cartes img,
    .mes-rea .rea-img {
        width: 270px;
        height: 206px;
    }

    .mes-rea .center {
        width: 340px;
    }

    .menu-veille a:hover {
        transform: none;
    }
}

@media screen and (max-width: 460px) {
    .menu-veille {
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .menu-veille a:nth-child(2) {
        margin: 8px 0;
    }
}