/* RESET CSS */

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

html {
    scroll-behavior: smooth;
}

/* BODY */

body {
    font-family: 'Poppins', sans-serif;
    background: #0b0f1a;
    color: white;
}

/*  CONTAINER MAIN */

.container {
    width: 1200px;
    max-width: 90%;
    margin: auto;
}

/* HEADER */

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    background: #0b0f1a;
    z-index: 10;
}

/* NAVBAR */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15vh;
}

.logo {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.logo-mark {
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(45deg, #6b5cff, #9d6bff);
    background-clip: text;
    color: transparent;
}

.logo p:first-child {
    font-size: 1.17rem;
    font-weight: 700;
}

/* MENU */

.nav nav {
    height: 100%;
}

.menu {
    list-style-type: none;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.9rem;
    height: 100%;
}

nav li a {
    display: flex;
    align-items: center;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    height: 100%;

}

nav a:hover,
nav a:focus {
    color: white;
}

.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    height: 4px;
    background: white;

    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.menu li a:hover::after,
.menu li a:focus::after {
    transform: translateX(-50%) scaleX(1);
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact {
    background: #6b5cff;
    color: white;
}

.contact:hover,
.contact:focus {
    background: #513dff;
}

/* BTN SCROLL TO TOP */

.scroll-btn {
    width: 25px;
    height: 25px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10;
}

/* HERO */

.hero {
    padding: 80px 0;
    scroll-margin-top: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.intro {
    color: #9ca3af;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 10px 0 20px 0;
}

h2 {
    font-size: 2.3rem;
}

.hero-text h1 span {
    background: linear-gradient(45deg, #6b5cff, #9d6bff);
    background-clip: text;
    color: transparent;
}

.description {
    color: #9ca3af;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* BTN CTA CV */

.hero-buttons {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.primary {
    background: #6b5cff;
    color: white;
}

.primary:hover,
.primary:focus {
    background: #513dff;
}

.primary:visited {
    color: white;
}

/* SKILLS */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span {
    background: #111827;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.skills span:nth-child(1)::before {
    content: "";
    background-image: url(img/html_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(2)::before {
    content: "";
    background-image: url(img/css_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(3)::before {
    content: "";
    background-image: url(img/js_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(4)::before {
    content: "";
    background-image: url(img/node_js_logo.webp);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(5)::before {
    content: "";
    background-image: url(img/github_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(6)::before {
    content: "";
    background-image: url(img/wp_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(7)::before {
    content: "";
    background-image: url(img/wix_logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(8)::before {
    content: "";
    background-image: url(./img/figma_icon.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(9)::before {
    content: "";
    background-image: url(./img/ia_logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

.skills span:nth-child(10)::before {
    content: "";
    background-image: url(./img/workspace_logo.webp);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}


.hero-image img {
    width: 100%;
}

/* PROJECTS */

.projects {
    padding: 80px 0;
    scroll-margin-top: 50px;
}

.projects-title {
    margin-bottom: 40px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card {
    background: #111827;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card img {
    width: 100%;
}

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    margin-bottom: 10px;
}

.project-content p {
    font-size: 1rem;
    color: #9ca3af;
    margin-bottom: 15px;
}

/* TAGS */

.tags {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tags span {
    background: #1f2937;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
}

.tags span:before {
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
}

.tags .wordpress::before {
    content: "";
    background-image: url(img/wp_icon.png);
}

.tags .html::before {
    content: "";
    background-image: url(img/html_icon.png);
}

.tags .css::before {
    content: "";
    background-image: url(img/css_icon.png);

}

.tags .js::before {
    content: "";
    background-image: url(img/js_icon.png);
}

.tags .nodejs::before {
    content: "";
    background-image: url(img/node_js_logo.webp);
}

.tags .wix::before {
    content: "";
    background-image: url(img/wix_logo.png);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-top: auto;
}

.projects-grid .project-card:nth-child(2) .project-links {
    display: none;
}

.project-before-link {
    color: #6b5cff;
    font-size: 0.87rem;
    text-decoration: none;
}

.project-before-link:hover,
.project-before-link:focus {
    text-decoration: underline;
}

.separateur {
    width: 3rem;
    height: 0.5px;
    background-color: #9ca3af;
}

.project-link {
    color: #6b5cff;
    font-size: 0.87rem;
    text-decoration: none;
}

.project-link:hover,
.project-link:focus {
    text-decoration: underline;
}

/* BLOC EXP & FORMATIONS */

/* .main_content {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    scroll-margin-top: 100px;
}

.bloc1 h2 {
    margin-bottom: 0.5rem;
}

.title3 {
    color: brown;
    margin-bottom: 0.5rem;
}

.titleleft {
    margin-bottom: 0.5rem;
}

.title_dot {
    font-weight: 500;
    background: linear-gradient(45deg, #6b5cff, #9d6bff);
    background-clip: text;
    color: transparent;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.title {
    font-weight: 500;
    background: linear-gradient(45deg, #6b5cff, #9d6bff);
    background-clip: text;
    color: transparent;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.exp-link {
    color: #6b5cff;
    text-decoration: none;
}

.exp-link:hover,
.exp-link:focus {
    text-decoration: underline;
}

.bloc1 p:last-child {
    font-size: var(--sizetext);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.bloc1 address {
    margin-bottom: 0.5rem;
    color: #9ca3af;

}

.bloc address {
    margin-bottom: 1.5rem;
    color: #9ca3af;

}

.date {
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    width: fit-content;
    padding: 10px 20px;
    border-radius: 8px;
}

.right_container .bloc1 address {
    margin-bottom: 1.5rem;
}

.right_container .bloc:nth-of-type(2) address {
    margin-bottom: 0.5rem;
}

.mrt {
    font-style: normal;
    margin-bottom: 1.5rem;
}

.trait1 {
    border-left: 3px solid rgba(78, 78, 78, 0.5);
    padding-left: 1rem;
    position: relative;
}

.title_dot::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(45deg, #17ce1d, #abf871);
    position: absolute;
    left: -11px;
    top: 0;
}

.trait1 .title::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background: linear-gradient(45deg, #17ce1d, #abf871);
    position: absolute;
    left: -11px;
} */

/* ABOUT */

.about {
    margin-bottom: 2rem;
    scroll-margin-top: 125px;
}

.about h2 {
    margin-bottom: 2rem;
}

.about p {
    text-indent: 35px;
    text-align: justify;
}

.about p::first-letter {
    font-size: 1.2rem;
    font-weight: 600;
}

/* FOOTER */

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* CONTACT */

.contact-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 15vh;
    gap: 15px;
}

/* MOBILE BURGER DEBUT */
.burger {
    display: none;
}

@media (max-width: 920px) {

    .menu {
        display: none;
    }

    .contact {
        display: none;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .burger input {
        display: none;
    }

    .menu_burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease;
    }

    .foreground_menu {
        position: absolute;
        overflow: hidden;
        top: 0;
        left: 0;
        background: rgba(11, 15, 26, 0.95);
        height: 0px;
        width: 100%;
        transition: height 0.1s ease-out;
        pointer-events: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 3.2px;
        cursor: pointer;
        width: 25px;
    }

    .ligne {
        border: 2px solid #6b5cff;
        border-radius: 5px;
        transition: 0.3s;
    }

    .hamburger:hover .ligne,
    .hamburger:focus .ligne {
        border: 2px solid white;
    }

    .burger li {
        list-style-type: none;
    }

    .burger a {
        font-family: 'Poppins', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        transition: 0.3s;
    }

    .burger a:hover,
    .burger a:focus {
        color: #6b5cff;
    }

    #menu_toggle:checked+.hamburger .ligne:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #menu_toggle:checked+.hamburger .ligne:nth-child(2) {
        opacity: 0;
    }

    #menu_toggle:checked+.hamburger .ligne:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    #menu_toggle:checked~.foreground_menu {
        height: 260px;
    }

    #menu_toggle:checked~.menu_burger {
        max-height: 150px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 1rem;
    }

    /* Z-INDEX */
    .ligne,
    .burger .menu_burger {
        z-index: 5;
    }
}

/* MOBILE BURGER FIN */

@media (max-width: 930px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card {
        grid-column: 1/3;
        justify-self: center;
        width: 50%;
    }
}

@media (max-width: 700px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        justify-items: center;
    }

    .intro {
        text-align: left;
        justify-self: flex-start;
    }

    .hero-text h1 {
        text-align: center;
    }

    .description {
        text-align: center;
    }

    .hero-image {
        display: none;
    }

}

@media (max-width: 600px) {
    .main_content {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 525px) {
    .projects-grid {
        grid-template-columns: 1fr;
        justify-self: center;
    }

    .project-card {
        justify-self: center;
        width: 90%;
    }
}