*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}
:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}
body{
    background-color: var(--bg-color);
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
header a {
    font-size: 1.7rem;
    text-decoration: none;
    color: var(--text-color);
}
#icon_menu{
    display: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
}
nav a {
  margin-left: 20px;
}
nav a:hover {
    color: var(--main-color);
}
.home{
    padding-top: 10rem;
    padding-left: 7rem;

}
.home-content{
    width: 60%;
}
.home-content h3{
    font-size: 2.8rem;
    color: var(--text-color);
}
.home-content h1{
    font-size: 4rem;
    color: var(--text-color);
    margin-top: 10px;
}
.icons a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    text-decoration: none;
    background: transparent;
    color: var(--main-color);
    border: 3px solid var(--main-color);
    border-radius: 50%;
    margin: 2rem;
    transition: all .3s ease;
}
.icons a:hover{
    transform: scale(1.2);
    background-color: var(--main-color);
}
.btn-cv{
    background-color: green;
    color: var(--text-color);
    padding: 10px 20px;
    width: fit-content;
    font-size: 2.6rem;
    text-decoration: none;
    border: 1px solid black;
    border-radius: 100px;
}
.btn-cv:hover,.btn-me:hover{
    color:orange;
}
.btn-me{
    background-color: blue;
    color: var(--text-color);
    padding: 10px 20px;
    margin-left: 20px;
    width: fit-content;
    font-size: 2rem;
    text-decoration: none;
    border: 1px solid black;
    border-radius: 30px;
}
.buttons{
    display: flex;
    flex-direction: column;
}
.home_img{
    float: right;
    position: absolute;
    top: 28%;
    right: 5%;
    width: 30%;
    border: 1px solid var(--main-color);
    border-radius: 50px;
    padding: .7rem;
    box-shadow: 0 0 10px 15px var(--main-color);
    z-index: -1;
}

.about_titre{
    padding-top: 8rem;
    padding-bottom: 5rem;
    font-size: 4rem;
    text-align: center;
    color: var(--text-color);
}
.about_img{
    float: left;
    position: relative;
    width: 30%;
    left: 5%;
    margin-top: 7rem;
    padding: .7rem;
    border-radius: 50px;
    box-shadow: 0 0 10px 15px var(--main-color);
}
.about_content{
    position: absolute;
    width: 59%;
    left: 40%;
}
.about_content h3{
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-color);
    text-align: center;
}
.about_content p{
    font-size: 1.6rem;
    color: var(--text-color);
    padding: 2rem;
    text-align: justify;
    white-space: pre-line;
}
.skills_titre{
    padding-top: 40rem;
    padding-bottom: 3rem;
    font-size: 4rem;
    text-align: center;
    color: var(--text-color);
}
.skills h2{
    font-size: 2.6rem;
    color: #fa8201;
    text-align: center;
}
.languages{
    display: flex;
    justify-content: center;
}
.language_icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    margin: 20px;
}

.language_icons i {
    font-size: 5rem;
    margin-bottom: 5px;
}
.webdev{
    display: flex;
    justify-content: center;
}
.webdev_icons{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    margin: 20px;
}
.webdev_icons i{
    font-size: 5rem;
    margin-bottom: 5px;
}
.tools{
    display: flex;
    justify-content: center;
}
.tools_icons{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 2rem;
    margin: 20px;
}
.tools_icons i{
    font-size: 5rem;
    margin-bottom: 5px;
    color:red
}
.services_titre{
    padding-bottom: 3rem;
    font-size: 4rem;
    text-align: center;
    color: var(--text-color);
}
.service-web {
    background-color: var( --second-bg-color);
    color: var(--text-color);
    width: 350px;
    height: 400px;
    padding: 2rem;
    margin: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.service-web i{
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}
.service-web:hover {
    transform: scale(1.05);
    border: 3px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}
.service-web h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.service-web p {
    font-size: 1rem;
    line-height: 1.6;
}
.service_box{
    display: flex;
    justify-content: center;
}
.projects_titre{
    padding-top: 8rem;
    padding-bottom: 3rem;
    font-size: 4rem;
    text-align: center;
    color: var(--text-color);
}
.project{
    width: 400px;
    height: 400px;
    margin: 1rem;
    background-color: var(--second-bg-color);
    border: 1px solid black;
    position: relative;
    overflow: hidden;
}
.project h3{
    font-size: 2.2rem;
    background-color: navajowhite;
    text-align: center;
}
.project p{
    font-size: 1.4rem;
    padding: 1rem;
    color: var(--text-color);
}
.icon_project{
    font-size: 8rem;
    color: var(--main-color);
    position: absolute;
    top: 55px;
    right: 140px;
    z-index: 2;
    display: none;
}
video{
    width: 400px;
    height: 225px;
}
.project_box{
    display: flex;
    justify-content: center;
}
.project_box div:hover{
    border: 3px solid var(--main-color);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--main-color);
    .icon_project{
        display: block;
        color: var(--main-color);
    }
}
.contact_titre{
    padding-top: 8rem;
    padding-bottom: 3rem;
    font-size: 4rem;
    text-align: center;
    color: var(--text-color);
}
form {
    max-width: 900px;
    margin: 0 auto;
}
.row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
label {
    color: #ff7700;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
input[type="text"],
input[type="email"] {
    padding: 12px 15px;
    border: none;
    border-radius: 3px;
    font-size: 16px;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: #7f7f7f;
}
.message-group {
    margin-bottom: 30px;
}
.message-group label {
    display: block;
    color: #ff7700;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
textarea {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    padding: 15px;
    font-size: 16px;
    border-radius: 3px;
    border: none;
    font-family: Arial, sans-serif;
    color: #444;
}
textarea::placeholder {
    color: #7f7f7f;
}
button {
    background-color: #ff7700;
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 14px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    text-transform: lowercase;
}
button:hover {
    background-color: #e06600;
}
footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 40px 20px;
    background-color: #142339;
    color: white;
    flex-wrap: wrap;
}

/* Logo */
.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
}

.footer-logo span {
    margin-left: 5px;
}

/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.1rem;
}

.footer-contact div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact svg {
    fill: #f5850f; /* orange */
    width: 20px;
    height: 20px;
}

/* Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.footer-nav a:hover {
    text-decoration: underline;
}

/* Social icons */
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-social img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    filter: brightness(0) invert(0.8);
    transition: filter 0.3s;
}

.footer-social img:hover {
    filter: brightness(1) invert(0.2);
}

/* Copyright */
.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.footer-bottom .heart {
    color: red;
}
@media (max-width: 956px) {
    html {
        font-size: 90%;
    }
    .nav {
        position: absolute;
        flex-direction: column;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        display: none; /* masqué par défaut en mobile */
    }
    .nav.active {
        display: block; /* affiché quand on clique sur l'icône */
    }
    .nav a {
        display: block;
        font-size: 2rem;
        text-align: right;
        margin: 2rem;
    }
    #icon_menu {
        display: block;
        cursor: pointer;
    }
}

    @media (max-width: 768px) {
        html {
            font-size: 65%;
        }
        .header {
            padding: 1.5rem 5%;
        }
        #icon_menu {
            display: block;
            font-size: 2.5rem;
            cursor: pointer;
            color: var(--text-color);
        }
        nav.nav {
            position: fixed;
            top: 60px; /* en-dessous de header */
            left: 0;
            width: 100%;
            background-color: var(--bg-color);
            flex-direction: column;
            display: none; /* masqué par défaut */
            z-index: 99;
            padding-bottom: 1rem;
        }
        nav.nav.active {
            display: flex;
        }
        nav.nav a {
            font-size: 2rem;
            margin: 1rem 2rem;
            text-align: center;
            border-bottom: 1px solid var(--main-color);
            padding-bottom: 0.5rem;
        }
        nav.nav a:last-child {
            border-bottom: none;
        }

        /* Ajuster contenu home */
        .home {
            padding-top: 8rem;
            padding-left: 2rem;
            padding-right: 2rem;
        }
        .home-content {
            width: 100%;
            align-items: center;
        }
        .home-content h3 {
            font-size: 1.8rem;
        }
        .home-content h1 {
            font-size: 2.8rem;
        }
        .icons a {
            font-size: 2.5rem;
            margin: 1rem;
        }
        .home_img {
            display: none;
        }
        /* About */
        .about_img {
            position: static;
            width: 80%;
            margin: 2rem auto;
            float: none;
            display: block;
            border-radius: 30px;
            box-shadow: 0 0 10px 5px var(--main-color);
        }
        .about_content {
            position: static;
            width: 100%;
            padding: 0 1rem;
            margin-bottom: 3rem;
            text-align: center;
        }
        .about_content h3 {
            font-size: 2rem;
        }
        .about_content p {
            font-size: 1.4rem;
            padding: 1rem 0;
        }

        /* Skills */
        .skills_titre {
            padding-top: 5rem;
            padding-bottom: 2rem;
            font-size: 3rem;
            text-align: center;
        }
        .languages, .webdev, .tools {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .language_icons, .webdev_icons, .tools_icons {
            margin: 10px 0;
        }

        /* Services */
        .service_box {
            flex-direction: column;
            align-items: center;
        }
        .service-web {
            width: 90%;
            margin-bottom: 1.5rem;
            height: auto;
        }

        /* Projects */
        .project_box {
            flex-direction: column;
            align-items: center;
        }
        .project {
            width: 90%;
            height: auto;
            margin-bottom: 1.5rem;
        }
        video {
            width: 100%;
            height: auto;
        }

        /* Contact */
        form {
            padding: 0 1rem;
        }
        .row {
            flex-direction: column;
        }
        .form-group {
            width: 100%;
        }
        button {
            width: 100%;
            font-size: 1.5rem;
            padding: 12px;
        }

        /* Footer */
        footer {
            flex-direction: column;
            gap: 2rem;
            text-align: center;
        }
        .footer-contact, .footer-nav, .footer-social {
            flex-direction: row;
            justify-content: center;
            gap: 1.5rem;
        }
    }


