/* ========================================
   PROFIL — RicagE.dev
======================================== */

.profile {
    position: relative;
    min-height: 100vh;
    padding: 6rem 4rem;
    background: transparent;
    isolation: isolate;
    overflow: hidden;
}

.profile > .section-heading {
    margin-bottom: 2rem;
}

/* ========================================
   MES SERVICES
======================================== */

.profile-services {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 6rem;
}

.profile-services h3 {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
}

.profile-services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem;
}

.profile-services__item {
    text-align: center;
}

.profile-services__item h4 {
    color: #ff8a00;
    width: 100%;
    text-align: center;
    margin-inline: auto;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-services__item p {
    font-size: 0.8rem;
    line-height: 1.9;
    text-align: center;
}

/* ========================================
   PHOTO + PRÉSENTATION
======================================== */

.profile-content {
    position: relative;

    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;

    width: 100%;
    max-width: 1400px;
    min-height: 550px;

    margin: 0 auto 5rem;
}

/* EMPLACEMENT PHOTO */
.profile-photo {
    position: absolute;
    z-index: 1;
    width: 420px;
    height: auto;
    left: 220px;
    top: 40%;
    transform: translateY(-150px);
    overflow: visible;
    border: none;
    border-radius: 0;
}

.profile-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: brightness(0.5) contrast(1.1);
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 78%,
        transparent 100%
    );
}
/* TEXTE */

.profile-intro {
    position: relative;
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    max-width: 480px;
}

.profile-intro h3 {
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.profile-intro p {
    max-width: 480px;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    line-height: 1.8;
}

.profile-intro p + p {
    margin-top: 1.5rem;
}

.profile-intro strong {
    color: #ff8a00;
    font-weight: 600;
}

/* ========================================
   SKILLS & STACK
======================================== */

.profile-skills {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 7rem;
}

.profile-skills h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

.profile-skills__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
}

.profile-skills__item h4 {
    color: #ff8a00;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-skills__item p {
    font-size: 0.75rem;
    line-height: 1.8;
}

.profile-content .profile-skills {
    position: relative;
    z-index: 3;

    grid-column: 2;
    grid-row: 1;

    width: 100%;
    max-width: 480px;
    margin: 0;
    padding-left: 7rem;
}

.profile-content .profile-skills__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}

.profile-content .profile-skills h3 {
    margin-bottom: 2.5rem;
}

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

@media (max-width: 1024px) {
    .profile {
        padding: 5rem 2rem;
    }

    .profile-content {
        grid-template-columns: 50% 50%;
        min-height: 500px;
    }
    .profile-services__grid {
        gap: 3rem;
    }
}

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

@media (max-width: 1024px) {
    .profile {
        padding: 4rem 1.5rem;
    }

    .profile h2 {
        margin-bottom: 0;
    }

    .profile .section-heading {
        margin-bottom: 3rem;
    }

    .profile-services {
        margin-bottom: 5rem;
    }

    .profile-services h3 {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .profile-services__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .profile-services__item h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .profile-services__item p {
        font-size: 0.85rem;
        line-height: 1.8;
    }
    .profile-content {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
        min-height: auto;
    }

    .profile-photo {
        position: absolute;
        z-index: 1;
        top: 4rem;
        right: 2rem;
        left: auto;
        width: min(85%, 300px);
        transform: none;
        pointer-events: none;
    }

    .profile-photo img {
        filter: brightness(0.3) contrast(1.1);
    }

    .profile-intro {
        position: relative;
        z-index: 3;
        order: 1;
        max-width: 100%;
    }
    .profile-intro h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .profile-skills {
        margin-bottom: 4rem;
    }

    .profile-skills h3 {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .profile-skills__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.5rem 1.5rem;
    }

    .profile-skills__item h4 {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .profile-skills__item p {
        font-size: 0.8rem;
        line-height: 1.8;
    }
    .profile-content .profile-skills {
        order: 3;
        max-width: 100%;
        padding-left: 0;
        margin: 1rem 0 0;
    }
}
