
body {
    background: #212121;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.nom-prenom {
    align-items: center;
    top: 100px;              
    font-family: 'Poppins', sans-serif;
    font-size: 2.2em;
    font-weight: 600;
    color: #ece2e2;
}

.portfolio-lien a {
    color: #a0522d; /* ou une autre couleur de ton thème */
    font-weight: 600;
    text-decoration: none;
}

.portfolio-lien a:hover {
    text-decoration: underline;
}



section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 95vh;
}

#cards {
    height: 400px;
    border-radius: 4px;
    width: 70%;
    display: flex;
    gap: 5px;
    padding: 6px;
}

#cards .card-items {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    color: white;
    filter: grayscale(100%);
    transition: all 0.5s ease-in-out;
}

#cards .card-items:hover {
    filter: none;
    flex: 5;
}

#cards .card-items h2 {
    color: white;
    transform: rotate(-90deg);
    transition: all 0.5s ease-in-out;
}

#cards .card-items:hover h2 {
    transform: rotate(0);
}


#cards .card-items:nth-child(1) {
    background-image: url("../img/5ad89249cd702f0c1aef10c2-787x394 1.png");
}
#cards .card-items:nth-child(2) {
    background-image: url("../img/20250702_095015.jpg");
}
#cards .card-items:nth-child(3) {
    background-image: url("../img/bridget_jones_the_edge_of_reason_ver2.jpg");
}
#cards .card-items:nth-child(4) {
    background-image: url("../img/photobank-kiev-Opzk_hvwO9Q-unsplash.jpg");
}
#cards .card-items:nth-child(5) {
    background-image: url("../img/Adobe_Illustrator_CC_icon.svg.png");
}
#cards .card-items:nth-child(6) {
    background-image: url("../img/istockphoto-473026642-612x612.jpg");
}
#cards .card-items:nth-child(7) {
    background-image: url("../img/thestarrynight.webp");
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.logo img {
   width: 200px;
    height: auto;
}

    

.nav-links {
    margin-right: 80px;
    list-style: none;
    display: flex;
    gap: 500px;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 1.5em;
    padding: 10px 20px;
}

.nav-links li a:hover {
    color: #f39c12;
}



main {
    padding-top: 100px;
}


#apropos {
    padding: 80px 60px;
    color: #ffffff;
}

#apropos h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #f39c12;
}

#apropos p {
    font-size: 2.1em;
    display: block;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 30px auto;
    text-align: center;
}



#contact {
    display: flex;
    justify-content: center;
    align-items: center;     
    min-height: 100vh;       
    padding: 40px 20px;
    background: #2c2c2c;
    box-sizing: border-box;
}

.formulaire form {
    background-color: #3a3a3a;
    padding: 300px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.formulaire h1 {
    font-size: 40px;
    margin-bottom: 40px;
    color: #f39c12;
}

.input-group {
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #f39c12;
    border-radius: 10px;
    font-size: 18px;
    background-color: #fff;
    color: #000;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

.input-group button {
    width: 100%;
    padding: 18px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.input-group button:hover {
    background-color: #357abd;
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 50px;
        margin-right: 40px;
    }

    #cards {
        width: 90%;
    }

    #apropos p {
        font-size: 1.4em;
        padding: 0 20px;
    }
}


@media (max-width: 768px) {
    .nom-prenom {
        font-size: 1.2em;
        top: 80px;
        left: 20px;
        right: 20px;
        text-align: center;
        position: relative;
        margin-bottom: 20px;
    }

    #cards {
        flex-direction: column;
        height: auto;
        width: 100%;
        padding: 10px;
    }

    #cards .card-items {
        height: 180px;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 10px 0 0 0;
        padding-left: 0;
    }

    .logo img {
        width: 150px;
        height: auto;
    }

    #apropos {
        padding: 40px 20px;
    }

    #apropos h1 {
        font-size: 2em;
    }

    #apropos p {
        font-size: 1.2em;
    }

    .formulaire form {
        padding: 40px 20px;
        max-width: 100%;
    }

    .input-group input,
    .input-group button {
        font-size: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 8px;
    }

    .nav-links li a {
        font-size: 1em;
        padding: 8px 12px;
    }

    .nom-prenom {
        font-size: 1em;
        top: 60px;
    }

    #apropos h1 {
        font-size: 1.8em;
    }

    #apropos p {
        font-size: 1em;
    }

    .formulaire h1 {
        font-size: 28px;
    }

    .input-group input,
    .input-group button {
        font-size: 14px;
    }
}
