/* ============================================================
   LPROJECT WEB
   PORTFOLIO / RÉALISATIONS
============================================================ */


/* ============================================================
   SECTION
============================================================ */

.lp-portfolio {
    position: relative;
    width: 100%;
    overflow: hidden;

    padding: 130px 0 110px;

    background:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        #0b0b0d;

    background-size:
        76px 76px,
        76px 76px,
        auto;

    color: #fff;
}


/* halos */

.lp-portfolio-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
}

.lp-portfolio-glow-1 {
    width: 480px;
    height: 480px;

    left: -250px;
    top: 120px;

    background: rgba(255, 102, 0, .09);
}

.lp-portfolio-glow-2 {
    width: 400px;
    height: 400px;

    right: -250px;
    bottom: 10%;

    background: rgba(255, 102, 0, .055);
}


/* conteneur */

.lp-portfolio-inner {
    position: relative;
    z-index: 2;

    width: min(1320px, calc(100% - 80px));
    margin: 0 auto;
}


/* ============================================================
   TITRE
============================================================ */

.lp-portfolio-heading {
    margin-bottom: 120px;
}

.lp-section-label {
    display: flex;
    align-items: center;
    gap: 16px;

    margin-bottom: 28px;

    color: #ff6a00;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
}

.lp-section-label > span {
    width: 34px;
    height: 1px;

    background: #ff6a00;
}

.lp-portfolio-heading-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(300px, .75fr);

    gap: 100px;

    align-items: end;
}

.lp-portfolio-heading h2 {
    margin: 0;

    max-width: 760px;

    color: #fff;

    font-size: clamp(44px, 5vw, 74px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.055em;
}

.lp-portfolio-heading h2 span {
    color: #ff6a00;
}

.lp-portfolio-heading p {
    margin: 0 0 5px;

    max-width: 480px;

    color: rgba(255,255,255,.48);

    font-size: 15px;
    line-height: 1.8;
}


/* ============================================================
   LISTE PROJETS
============================================================ */

.lp-projects {
    display: flex;
    flex-direction: column;

    gap: 170px;
}


/* projet */

.lp-project {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(270px, .55fr);

    gap: 100px;

    align-items: center;
}


/* projets inversés */

.lp-project-right {
    grid-template-columns:
        minmax(270px, .55fr)
        minmax(0, 1.65fr);
}


/* ligne subtile */

.lp-project::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -85px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.09) 12%,
            rgba(255,255,255,.09) 88%,
            transparent
        );
}

.lp-project:last-child::after {
    display: none;
}


/* ============================================================
   ZONE VISUELLE
============================================================ */

.lp-project-visual {
    position: relative;

    min-width: 0;
}


/* marge pour laisser dépasser le téléphone */

.lp-project-left .lp-project-visual {
    padding-right: 55px;
}

.lp-project-right .lp-project-visual {
    padding-left: 55px;
}


/* lien global */

.lp-project-screen {
    position: relative;

    display: block;

    color: inherit;
    text-decoration: none;
}


/* ============================================================
   DESKTOP MOCKUP
============================================================ */

.lp-project-device-wrap {
    position: relative;

    overflow: visible;
}

.lp-project-browser {
    position: relative;
    z-index: 2;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;

    background: #151517;

    box-shadow:
        0 35px 80px rgba(0,0,0,.34),
        0 0 0 1px rgba(255,106,0,.02);

    transition:
        transform .6s cubic-bezier(.2,.8,.2,1),
        border-color .5s ease,
        box-shadow .5s ease;
}


/* barre navigateur */

.lp-project-browser-bar {
    position: relative;

    display: flex;
    align-items: center;

    height: 44px;

    padding: 0 18px;

    background: #202023;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}


/* points navigateur */

.lp-browser-dots {
    display: flex;
    gap: 6px;
}

.lp-browser-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: rgba(255,255,255,.25);
}

.lp-browser-dots span:nth-child(1) {
    background: rgba(255,106,0,.85);
}

.lp-browser-dots span:nth-child(2) {
    background: rgba(255,180,0,.65);
}

.lp-browser-dots span:nth-child(3) {
    background: rgba(115,200,110,.65);
}


/* URL */

.lp-project-url {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 38%;
    max-width: 270px;

    padding: 7px 16px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255,255,255,.055);

    color: rgba(255,255,255,.32);

    font-size: 9px;
    letter-spacing: .04em;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* capture desktop */

.lp-project-image {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #101012;
}

.lp-project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;

    transition:
        transform .9s cubic-bezier(.2,.8,.2,1),
        filter .6s ease;
}


/* voile subtil */

.lp-project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 65%,
            rgba(0,0,0,.10)
        );
}


/* ============================================================
   MOCKUP TÉLÉPHONE
============================================================ */

.lp-project-phone {
    position: absolute;

    z-index: 5;

    width: 165px;
    aspect-ratio: 9 / 19.5;

    padding: 6px;

    overflow: hidden;

    border:
        1px solid rgba(255,255,255,.25);

    border-radius: 29px;

    background:
        linear-gradient(
            145deg,
            #303034,
            #111114 45%,
            #050506
        );

    box-shadow:
        0 32px 75px rgba(0,0,0,.65),
        0 0 0 1px rgba(255,106,0,.08),
        inset 0 0 0 1px rgba(255,255,255,.05);

    transition:
        transform .65s cubic-bezier(.2,.8,.2,1),
        box-shadow .65s ease;
}


/*
   Projet gauche :
   téléphone à droite
*/

.lp-project-left .lp-project-phone {
    right: -15px;
    bottom: -42px;

    transform:
        rotate(4deg);
}


/*
   Projet droite :
   téléphone à gauche
*/

.lp-project-right .lp-project-phone {
    left: -15px;
    bottom: -42px;

    transform:
        rotate(-4deg);
}


/* écran */

.lp-project-phone-screen {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    border-radius: 23px;

    background: #08080a;
}

.lp-project-phone-screen img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top center;
}


/* reflet verre */

.lp-project-phone-screen::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            125deg,
            rgba(255,255,255,.10),
            transparent 17%,
            transparent 70%,
            rgba(255,255,255,.025)
        );
}


/* haut du téléphone */

.lp-phone-speaker {
    position: absolute;

    z-index: 8;

    top: 11px;
    left: 50%;

    transform:
        translateX(-50%);

    width: 52px;
    height: 14px;

    border-radius: 999px;

    background: #050506;

    box-shadow:
        0 1px 0 rgba(255,255,255,.05);
}


/* petite lumière orange derrière téléphone */

.lp-project-phone::before {
    content: "";

    position: absolute;

    z-index: -1;

    width: 100px;
    height: 100px;

    left: 50%;
    bottom: 10%;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        rgba(255,106,0,.14);

    filter: blur(45px);
}


/* ============================================================
   HOVER DES MOCKUPS
============================================================ */

@media (hover: hover) {

    .lp-project-screen:hover
    .lp-project-browser {
        transform:
            translateY(-6px);

        border-color:
            rgba(255,106,0,.35);

        box-shadow:
            0 45px 100px rgba(0,0,0,.48),
            0 0 40px rgba(255,106,0,.045);
    }


    .lp-project-screen:hover
    .lp-project-image img {
        transform:
            scale(1.018);
    }


    .lp-project-left
    .lp-project-screen:hover
    .lp-project-phone {
        transform:
            translateY(-13px)
            rotate(1deg)
            scale(1.035);

        box-shadow:
            0 42px 95px rgba(0,0,0,.75),
            0 0 35px rgba(255,106,0,.08);
    }


    .lp-project-right
    .lp-project-screen:hover
    .lp-project-phone {
        transform:
            translateY(-13px)
            rotate(-1deg)
            scale(1.035);

        box-shadow:
            0 42px 95px rgba(0,0,0,.75),
            0 0 35px rgba(255,106,0,.08);
    }

}


/* ============================================================
   VOIR LE SITE AU SURVOL
============================================================ */

.lp-project-hover {
    position: absolute;

    z-index: 8;

    left: 50%;
    top: 50%;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 13px 18px;

    opacity: 0;

    transform:
        translate(-50%, -35%);

    border:
        1px solid rgba(255,255,255,.16);

    border-radius: 999px;

    background:
        rgba(10,10,12,.82);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    color: #fff;

    font-size: 12px;
    font-weight: 600;

    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .35s ease;
}

.lp-project-hover strong {
    color: #ff6a00;

    font-size: 15px;
}

@media (hover: hover) {

    .lp-project-screen:hover
    .lp-project-hover {
        opacity: 1;

        transform:
            translate(-50%, -50%);
    }

}


/* ============================================================
   INFORMATIONS PROJET
============================================================ */

.lp-project-info {
    position: relative;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}

.lp-project-number {
    display: block;

    margin-bottom: 58px;

    color: rgba(255,255,255,.25);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .28em;
}


/* titre */

.lp-project-title small {
    display: block;

    margin-bottom: 14px;

    color: #ff6a00;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.lp-project-title h3 {
    margin: 0;

    color: #fff;

    font-size: clamp(34px, 3.4vw, 55px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
}


/* tags */

.lp-project-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 26px;
}

.lp-project-tags span {
    display: inline-flex;
    align-items: center;

    min-height: 31px;

    padding: 0 14px;

    border:
        1px solid rgba(255,255,255,.13);

    border-radius: 999px;

    color:
        rgba(255,255,255,.45);

    font-size: 9px;
    letter-spacing: .08em;

    transition:
        color .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.lp-project:hover
.lp-project-tags span {
    border-color:
        rgba(255,106,0,.18);
}


/* lien */

.lp-project-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 45px;
    padding-bottom: 10px;

    color: rgba(255,255,255,.82);

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
}

.lp-project-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 34px;
    height: 1px;

    background: #ff6a00;

    transition:
        width .35s ease;
}

.lp-project-link span {
    color: #ff6a00;

    transition:
        transform .35s ease;
}

.lp-project-link:hover::after {
    width: 100%;
}

.lp-project-link:hover span {
    transform:
        translate(3px, -3px);
}


/* ============================================================
   CTA FINAL
============================================================ */

.lp-portfolio-bottom {
    position: relative;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    gap: 24px;

    align-items: center;

    margin-top: 150px;

    padding: 28px 32px;

    border:
        1px solid rgba(255,106,0,.32);

    border-radius: 18px;

    background:
        linear-gradient(
            100deg,
            rgba(255,106,0,.055),
            rgba(255,255,255,.015)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.18);
}


/* icône */

.lp-portfolio-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border:
        1px solid rgba(255,106,0,.45);

    border-radius: 50%;

    color: #ff6a00;

    font-size: 22px;
}


/* texte */

.lp-portfolio-bottom p {
    margin: 0;

    color: rgba(255,255,255,.52);

    font-size: 14px;
}

.lp-portfolio-bottom p strong {
    display: block;

    margin-top: 4px;

    color: #fff;

    font-size: 20px;
    font-weight: 500;
}


/* bouton */

.lp-portfolio-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    padding: 14px 20px;

    border:
        1px solid rgba(255,106,0,.65);

    border-radius: 999px;

    color: #fff;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background .3s ease,
        color .3s ease,
        transform .3s ease;
}

.lp-portfolio-cta span {
    color: #ff6a00;

    font-size: 16px;

    transition:
        color .3s ease,
        transform .3s ease;
}

.lp-portfolio-cta:hover {
    background: #ff6a00;

    color: #08080a;

    transform:
        translateY(-2px);
}

.lp-portfolio-cta:hover span {
    color: #08080a;

    transform:
        translateX(4px);
}


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

@media (max-width: 1100px) {

    .lp-portfolio {
        padding:
            110px 0 90px;
    }

    .lp-portfolio-inner {
        width:
            min(100% - 50px, 1050px);
    }


    /* intro */

    .lp-portfolio-heading-grid {
        gap: 55px;
    }


    /* projets */

    .lp-project,
    .lp-project-right {
        gap: 55px;

        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(230px, .55fr);
    }

    .lp-project-right {
        grid-template-columns:
            minmax(230px, .55fr)
            minmax(0, 1.45fr);
    }


    /* téléphone */

    .lp-project-phone {
        width: 135px;

        border-radius: 24px;
    }

    .lp-project-phone-screen {
        border-radius: 19px;
    }

    .lp-project-left
    .lp-project-phone {
        right: 0;
        bottom: -32px;
    }

    .lp-project-right
    .lp-project-phone {
        left: 0;
        bottom: -32px;
    }


    /* infos */

    .lp-project-number {
        margin-bottom: 40px;
    }

}


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

@media (max-width: 767px) {

    .lp-portfolio {
        padding:
            85px 0 75px;

        background-size:
            45px 45px,
            45px 45px,
            auto;
    }

    .lp-portfolio-inner {
        width:
            calc(100% - 34px);
    }


    /* -----------------------------------------
       TITRE
    ----------------------------------------- */

    .lp-portfolio-heading {
        margin-bottom: 75px;
    }

    .lp-section-label {
        margin-bottom: 22px;

        font-size: 10px;
    }

    .lp-portfolio-heading-grid {
        display: block;
    }

    .lp-portfolio-heading h2 {
        font-size:
            clamp(38px, 12vw, 56px);

        line-height: 1;
    }

    .lp-portfolio-heading p {
        margin-top: 28px;

        max-width: 100%;

        font-size: 14px;
    }


    /* -----------------------------------------
       PROJETS
    ----------------------------------------- */

    .lp-projects {
        gap: 115px;
    }

    .lp-project,
    .lp-project-right {
        display: flex;
        flex-direction: column;

        gap: 48px;

        align-items: stretch;
    }


    /*
       On veut toujours :
       visuel puis texte sur téléphone
    */

    .lp-project-right
    .lp-project-info {
        order: 2;
    }

    .lp-project-right
    .lp-project-visual {
        order: 1;
    }


    .lp-project::after {
        bottom: -58px;
    }


    /* -----------------------------------------
       VISUEL
    ----------------------------------------- */

    .lp-project-left
    .lp-project-visual,
    .lp-project-right
    .lp-project-visual {
        padding-left: 0;
        padding-right: 26px;
    }


    .lp-project-browser {
        border-radius: 13px;
    }

    .lp-project-browser-bar {
        height: 32px;

        padding: 0 11px;
    }

    .lp-browser-dots {
        gap: 4px;
    }

    .lp-browser-dots span {
        width: 5px;
        height: 5px;
    }

    .lp-project-url {
        width: 44%;

        padding: 5px 9px;

        font-size: 6px;
    }


    /* -----------------------------------------
       TÉLÉPHONE
    ----------------------------------------- */

    .lp-project-phone,
    .lp-project-left
    .lp-project-phone,
    .lp-project-right
    .lp-project-phone {
        width: 94px;

        left: auto;
        right: -2px;

        bottom: -24px;

        padding: 4px;

        border-radius: 18px;

        transform:
            rotate(4deg);
    }

    .lp-project-phone-screen {
        border-radius: 14px;
    }

    .lp-phone-speaker {
        top: 7px;

        width: 30px;
        height: 8px;
    }


    /* -----------------------------------------
       INFOS
    ----------------------------------------- */

    .lp-project-number {
        margin-bottom: 28px;

        font-size: 11px;
    }

    .lp-project-title small {
        margin-bottom: 10px;

        font-size: 9px;
    }

    .lp-project-title h3 {
        font-size:
            clamp(34px, 11vw, 48px);
    }

    .lp-project-tags {
        margin-top: 20px;
    }

    .lp-project-link {
        margin-top: 28px;
    }


    /* -----------------------------------------
       CTA FINAL
    ----------------------------------------- */

    .lp-portfolio-bottom {
        display: flex;
        flex-wrap: wrap;

        margin-top: 100px;

        padding: 24px 20px;
    }

    .lp-portfolio-bottom-icon {
        width: 40px;
        height: 40px;
    }

    .lp-portfolio-bottom p {
        flex: 1;

        min-width: 180px;
    }

    .lp-portfolio-bottom p strong {
        font-size: 17px;
    }

    .lp-portfolio-cta {
        width: 100%;

        justify-content: space-between;

        margin-top: 8px;
    }

}


/* ============================================================
   TRÈS PETITS ÉCRANS
============================================================ */

@media (max-width: 420px) {

    .lp-portfolio-inner {
        width:
            calc(100% - 26px);
    }

    .lp-project-left
    .lp-project-visual,
    .lp-project-right
    .lp-project-visual {
        padding-right: 20px;
    }

    .lp-project-phone,
    .lp-project-left
    .lp-project-phone,
    .lp-project-right
    .lp-project-phone {
        width: 82px;

        right: -1px;
        bottom: -19px;
    }

}

/* ============================================================
   CTA CONTACT FIXE EN BAS DE L'ÉCRAN
============================================================ */

.lp-portfolio-bottom {
    position: fixed;

    left: 50%;
    bottom: 22px;

    transform: translateX(-50%);

    z-index: 9990;

    width: min(1320px, calc(100% - 50px));

    margin: 0;

    padding: 20px 28px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;

    align-items: center;

    border: 1px solid rgba(255,106,0,.42);
    border-radius: 18px;

    background:
        linear-gradient(
            100deg,
            rgba(35,20,12,.94),
            rgba(12,12,14,.94)
        );

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 18px 60px rgba(0,0,0,.55),
        0 0 45px rgba(255,106,0,.045);
}


/* On laisse de la place en bas de la page
   pour que la barre ne masque pas le contenu */

body.home {
    padding-bottom: 125px !important;
}


/* Petite animation au survol */

.lp-portfolio-bottom {
    transition:
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.lp-portfolio-bottom:hover {
    border-color: rgba(255,106,0,.70);

    box-shadow:
        0 22px 70px rgba(0,0,0,.62),
        0 0 55px rgba(255,106,0,.07);
}


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

@media (max-width: 900px) {

    .lp-portfolio-bottom {
        bottom: 14px;

        width: calc(100% - 28px);

        padding: 16px 18px;

        gap: 16px;
    }

    .lp-portfolio-bottom p strong {
        font-size: 17px;
    }

}


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

@media (max-width: 650px) {

    body.home {
        padding-bottom: 105px !important;
    }

    .lp-portfolio-bottom {
        bottom: 10px;

        width: calc(100% - 20px);

        min-height: 76px;

        padding: 12px 14px;

        grid-template-columns: 1fr auto;

        gap: 12px;

        border-radius: 15px;
    }


    /* On masque l'étoile sur petit écran */

    .lp-portfolio-bottom-icon {
        display: none;
    }


    .lp-portfolio-bottom p {
        min-width: 0;

        font-size: 10px;
        line-height: 1.25;
    }

    .lp-portfolio-bottom p strong {
        margin-top: 3px;

        font-size: 13px;
        line-height: 1.25;
    }


    /* Bouton plus compact */

    .lp-portfolio-cta {
        width: auto;

        margin: 0;

        padding: 11px 14px;

        white-space: nowrap;
    }

    .lp-portfolio-cta {
        font-size: 0;
    }

    .lp-portfolio-cta::before {
        content: "Me contacter";

        font-size: 11px;
    }

    .lp-portfolio-cta span {
        font-size: 15px;
    }

}