@font-face {
    font-display: swap;
    font-family: 'Lexend';
    font-style: normal;
    font-weight: 200 600;
    src: url('./font/lexend-v26-latin-regular.woff2') format('woff2');
}

body {
    background-color: aliceblue;
    font-family: 'Lexend', sans-serif;
    color: rgba(65, 75, 90, 1);
}

p {
    font-weight: 200;
    font-size: 14px;
}

h1, h2, h3 {
    font-weight: 500;
    color: rgba(65, 75, 90, 1);
}

header {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
}

.imgheader {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.text-header {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translate(-50%, 50%);
    background: #fff;
    border: 3px solid #000;
    border-radius: 25px;
    padding: 32px 40px;
    width: calc(100% - 60px);
    max-width: 1200px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

header h1 a {
    color: inherit;
    text-decoration: underline;
}

.job-title {
    font-size: 16px;
}

.text-header h1 {
    font-size: 56px;
    line-height: 66px;
}

.description {
    font-size: 20px;
    margin-top: 12px;
}

.text-header nav ul {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    list-style: none;
}

.text-header nav a {
    background-color: rgba(65, 75, 90, 1);
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    transition: 0.2s;
}

.text-header nav a:hover {
    background-color: rgb(113, 124, 141);
}

main {
    padding: 32px;
    margin-top: 30px;
}

.titre {
    text-align: center;
    margin: 70px;
    font-weight: 600;
    font-size: 42px;
}

.nom {
    font-weight: 500;
    font-size: 36px;
}

.infos {
    display: flex;
    flex-direction: row;
}

.portrait {
    width: 450px;
    height: 600px;
    padding-right: 3rem;
}

.description {
    font-weight: 300;
    font-size: 24px;
}

.container-btn {
    display: flex;
    justify-content: center;
    padding-top: 8rem;
}

.cv {
    background: rgba(65, 75, 90, 1);
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.2s;
    margin: 0 auto;
}

.cv:hover {
    background-color: rgb(113, 124, 141);
}

.cv img {
    width: 20px;
    height: 20px;
}

.projet_1 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-top: 8rem;
}

.projet_infos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projet_infos .titre {
    text-align: left;
    margin: 0 0 20px 0;
}

.btn {
    background-color: rgba(65, 75, 90, 1);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    margin-top: 3rem;
    display: inline-block;
    transition: 0.2s;
}

.btn:hover {
    background-color: rgb(113, 124, 141);
}


.elec_renov {
    width: 500px;
    height: auto;
    object-fit: cover;
    margin-top: 10rem;
}

.realisations {
    padding: 50px 32px;
}

.realisations h2 {
    text-align: center;
    margin-bottom: 40px;
}

.realisations article {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 50px;
}

.realisations article h3 {
    font-size: 28px;
    margin-bottom: 10px;
    text-decoration: underline;
}

.realisations article h3 a {
    text-decoration: none;
    color: inherit;
}

.realisations article .img_elec_renov,
.realisations article .img_encre_art,
.realisations article .img_fleur_de_pau {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.realisations article figure {
    flex-shrink: 0;
    width: 180px;
    height: 295px;
    margin: 0;
}

.realisations article figure img {
    width: 180px;
    height: 295px;
    object-fit: cover;
    border-radius: 12px;
}

.realisations article p {
    flex: 1;
    line-height: 1.6;
}

.mes-realisations {
    background: #e3e3e3;
    border: 3px solid #000;
    border-radius: 25px;
    text-align: center;
    padding: 40px 20px;
}

.mes-realisations h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-decoration: underline;
}

.projets-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.projet {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projet img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.projet h3 {
    font-size: 20px;
    margin: 8px 0;
}

.contact {
    max-width: 700px;
    margin: 125px auto 0;
    padding: 3rem 1rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #414b5a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #414b5a;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #414b5a;
    box-shadow: 0 0 5px rgba(65, 75, 90, 0.3);
}

.form-checkbox {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
    text-align: left;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin: 0;
}

.contact-form button {
    padding: 0.75rem 1rem;
    background-color: #414b5a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 1rem;
}

footer {
    margin-top: 50px;
    color: #fff;
}

.footer-top {
    background: rgba(65, 75, 90, 1);
    padding: 30px;
}

.footer-top h2,
.footer-top p,
.footer-top a {
    color: #fff;
    text-align: left;
    margin: 8px 0;
    text-decoration: none;
}

.footer-top span {
    text-decoration: underline;
    font-weight: 200;
}

.footer-top hr {
    width: 380px;
    border: none;
    border-top: 2px solid #fff;
    margin: 12px 0;
}

.linkedin-icon {
    width: 40px;
    vertical-align: middle;
}

.footer-bottom {
    background: rgba(126, 140, 159, 1);
    width: 100%;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
}


@media screen and (max-width: 1024px) {

    header {
        margin-bottom: 150px; 
    }

    .imgheader {
        height: 500px;
    }

    .text-header {
        padding: 24px 28px;
        width: calc(100% - 40px);
    }

    .text-header h1 {
        font-size: 42px;
        line-height: 54px;
    }

    .portrait {
        width: 350px;
        height: auto;
        padding-right: 2rem;
    }

    .projet_1 {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .projet_infos .titre {
        text-align: center;
        margin-bottom: 20px;
    }

    .elec_renov {
        width: 100%;
        max-width: 500px;
        margin-top: 3rem;
    }

    .realisations article .img_elec_renov,
    .realisations article .img_encre_art,
    .realisations article .img_fleur_de_pau {
        flex-direction: column; 
        align-items: left;
    }

    .realisations article figure {
        width: 230px;
        height: auto;
    }

    .realisations article figure img {
        width: 100%;
        height: auto;
    }
}


@media screen and (max-width: 768px) {

    header {
        margin-bottom: 200px;
    }

    .imgheader {
        height: 400px;
    }

    .text-header {
        padding: 24px 20px;
        width: calc(100% - 40px);
        max-width: 500px;
        border-width: 2px;
    }

    .text-header h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .description {
        font-size: 16px;
    }

    .job-title {
        font-size: 14px;
    }

    .text-header nav ul {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .text-header nav a {
        padding: 8px 12px;
        font-size: 13px;
    }

    main {
        margin-top: 0;
        padding: 16px;
    }

    .projets-container {
        gap: 24px;
    }

    .portrait {
        width: 100%;
        max-width: 300px;
        height: auto;
        padding-right: 0;
        margin: 0 auto;
    }

    .infos {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .description {
        font-size: 18px;
    }
    
    .container-btn {
        padding-top: 4rem;
    }

    .titre {
        margin: 40px 0;
        font-size: 32px;
    }

    .contact {
        margin-top: 3rem;
        padding: 2rem 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-top {
        text-align: center;
    }
    .footer-top hr {
        margin: 12px auto;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
    }
}


@media screen and (max-width: 480px) {

    header {
        margin-bottom: 220px;
    }

    .imgheader {
        height: 300px;
    }

    .text-header {
        padding: 16px;
    }

    .text-header h1 {
        font-size: 26px;
        line-height: 32px;
    }

    nav a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    main {
        padding: 12px;
    }

    .projet {
        width: 100%;
    }
    
    .realisations article figure {
        width: 100%;
    }

    .footer-top hr {
        width: 100%;
    }
}