/* ===== ABOUT SECTION ===== */
.aboutMe {
    height: auto;
    padding-bottom: 3rem;
    background: rgb(56, 56, 56);
    border-radius: 25% 10%;
    max-width: 80%;
    margin: auto auto 65px;
}

.aboutMe h1 {
    color: whitesmoke;
    text-align: center;
    padding-top: 3%;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.7rem;
}

.sectionAbout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.sectionAbout p {
    color: #d8caca;
}

/* Photo */
.myPic {
    width: 340px;
    height: 370px;
    border-top-left-radius: 30%;
    border-bottom-right-radius: 30%;
}

/* Text */
.monProfil {
    text-align: start;
    font-family: 'Noto Sans', sans-serif;
    padding: 40px;
    max-width: 50rem;
}

.monProfil h2 {
    color: rgb(242, 229, 229);
    font-size: medium;
}


/* ===== HOME: the 3 lines next to the name ===== */
.aboutText h2 {
    color: rgb(56, 56, 56);
    font-family: 'Noto Sans', sans-serif;
    padding-top: 10%;
    font-weight: 800;
}

.aboutText h2 a {
    color: inherit;
    text-decoration: none;
}

.aboutText h2 a:hover {
    color: orange;
}


/* ===== RESPONSIVE ===== */

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .aboutMe {
        height: fit-content;
        border-radius: 50px;
        margin: auto auto 2%;
        max-width: 90%;
    }
}

/* Phones & small tablets (up to 767px): photo on top, centered, no empty gap */
@media (max-width: 767px) {
    .aboutMe {
        height: auto;
        border-radius: 20px;
        max-width: 100%;
        margin: 20px;
        padding-bottom: 1.5rem;
    }

    .sectionAbout {
        flex-direction: column;
        gap: 0;
    }

    .myPicture {
        width: 100%;
        text-align: center;
    }

    .myPic {
        display: inline-block;
        width: 80%;
        max-width: 340px;
        height: auto;
        margin: 1.5rem 0 0;
    }

    .monProfil {
        padding: 24px;
    }
}