.home2salepd {
    background-image: url("../../images/background-home.png");
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 100vh;
    padding-top: 13.8vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.home-box-right {
    width: 45vw;
    max-width: 45vw;
    max-height: 90vh;
}

.home-box-right-image {
    width: 100%;
}

.home-box-left {
    width: 55vw;
    max-width: 55vw;
    height: 90vh;
    max-height: 90vh;
    background-color: rgba(0, 0, 0, 0.7);
    margin-top: -0.8vh;
}

.home-box-left-main {
    width: 95%;
    height: 90vh;
    background-color: black;
    float: right;
    color: white;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.home-box-left-main-title {}

.home-box-left-main-pc {
    width: 90%;
    height: 85%;
    padding-top: 5vh;
}

.home-box-left-main-pc-left {
    width: 35%;
    height: 77%;
    background-color: #121218;
    border-radius: 4vh;
    float: left;
    margin-left: 5vh;
    color: white;
    text-decoration: none;
    transition: .1s ease-in-out;
}

.home-box-left-main-pc-left:hover {
    transform: scale(0.97);
    transition: .1s ease-in-out;
}

.home-box-left-main-pc-right {
    width: 35%;
    height: 77%;
    background-color: #121218;
    border-radius: 4vh;
    float: right;
    margin-right: 5vh;
    text-decoration: none;
    color: white;
    transition: .1s ease-in-out;
}

.home-box-left-main-pc-right:hover {
    transform: scale(0.97);
    transition: .1s ease-in-out;
}

.home-box-left-main-pc-bottom {
    margin-top: 63%;
    font-size: 2vh;
}

.home-box-left-main-pc-img {
    width: 10vw;
    height: auto;
    margin-top: 3vh;
}

.home-box-left-main-pc-price {
    margin-top: 3vh;
}

.home-box-left-main-pc-details {
    margin-top: 3vh;
    display: block;
}

.home-box-left-main-pc-details span {
    display: block;
    margin-top: 1vh;
    margin-bottom: 1vh;
}

.home-box-left-main-pc-details hr {
    background-color: rgba(234,234,234,0.59);
    width: 30%;
    margin-bottom: -0.5vh;
    margin-top: -0.5vh
}

.text-size {
    font-size: 2.3vh;
}

/* Gestion des boutons display */
.displayphone {
    display: none;
}

.hidephone {
    display: inline-block;
}


@media screen and (max-width: 768px) {
    .home2salepd {
        flex-direction: column;
        padding-top: 0;
        min-height: 100vh;
        padding-bottom: 0;
    }
    .home4mentions {
        background-image: url("../../images/background-home-mobile.png");
    }

    /* Image en haut qui touche les bords */
    .home-box-right {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        order: 1;
        margin: 0;
        padding: 0;
        position: relative;
        margin-top: 80px;
    }

    .home-box-right-image {
        width: 100%;
        height: auto;
        display: block;
    }

    .displayphone {
        display: block;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .displayphone button {
        background-color: rgba(60, 55, 241, 0.60);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .displayphone button:active {
        transform: scale(0.95);
    }

    /* Contenu principal en dessous */
    .home-box-left {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        margin-top: 0;
        order: 2;
        background-color: transparent;
    }

    .home-box-left-main {
        width: 100%;
        height: auto;
        float: none;
        padding: 30px 0;
        background-color: black;
        min-height: auto;
    }

    .home-box-left-main-title h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .home-box-left-main-pc {
        width: 100%;
        height: auto;
        padding-top: 0;
        display: block;
        padding: 0 15px;
    }

    .home-box-left-main-pc-left,
    .home-box-left-main-pc-right {
        width: 100%;
        max-width: 350px;
        height: auto;
        float: none;
        margin: 0 auto 20px auto;
        padding: 20px;
        border-radius: 20px;
        display: block;
    }

    .home-box-left-main-pc-left:active,
    .home-box-left-main-pc-right:active {
        transform: scale(0.98);
    }

    .home-box-left-main-pc-img {
        width: 120px;
        height: auto;
        margin-top: 10px;
    }

    .home-box-left-main-pc-price h4 {
        font-size: 20px;
        margin-top: 15px;
    }

    .home-box-left-main-pc-details {
        margin-top: 15px;
    }

    .text-size {
        font-size: 14px;
    }

    .home-box-left-main-pc-details span {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .home-box-left-main-pc-details hr {
        width: 60px;
        margin: 5px auto;
    }

    .home-box-left-main-pc-bottom {
        width: 100%;
        margin: 20px auto 0;
        padding: 0 20px;
        font-size: 14px;
        text-align: center;
        clear: both;
    }

    .hidephone {
        display: none;
    }
}

/* Très petit mobile (max 480px) */
@media screen and (max-width: 480px) {
    .home2salepd {
        padding-top: 0;
    }

    .home4mentions {
        background-image: url("../../images/background-home-mobile.png");
    }

    .home-box-right {
        margin-top: 100px; /* Moins d'espace sur petits écrans */
        margin-bottom: 20px; /* Moins d'espace sur petits écrans */
    }

    .displayphone button {
        padding: 12px 25px;
        font-size: 14px;
    }

    .home-box-left-main {
        padding: 20px 0;
    }

    .home-box-left-main-title h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .home-box-left-main-pc {
        padding: 0 10px;
    }

    .home-box-left-main-pc-left,
    .home-box-left-main-pc-right {
        max-width: 300px;
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 15px;
    }

    .home-box-left-main-pc-img {
        width: 100px;
    }

    .home-box-left-main-pc-price h4 {
        font-size: 18px;
        margin-top: 12px;
    }

    .text-size {
        font-size: 13px;
    }

    .home-box-left-main-pc-details span {
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .home-box-left-main-pc-details hr {
        width: 50px;
        margin: 4px auto;
    }

    .home-box-left-main-pc-bottom {
        font-size: 13px;
        padding: 0 15px;
        margin-top: 15px;
    }
}

/* Petits écrans en mode paysage */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .home2salepd {
        padding-top: 0;
    }

    .home-box-right {
        max-height: 50vh;
        overflow: hidden;
        margin-top: 60px; /* Espace réduit en paysage */
    }

    .displayphone {
        bottom: 10px;
    }

    .displayphone button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .home-box-left-main {
        padding: 15px 0;
    }

    .home-box-left-main-pc {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 0 10px;
    }

    .home-box-left-main-pc-left,
    .home-box-left-main-pc-right {
        width: 48%;
        max-width: none;
        margin: 0 0 15px 0;
        padding: 15px 10px;
    }

    .home-box-left-main-pc-img {
        width: 80px;
    }

    .home-box-left-main-pc-price h4 {
        font-size: 16px;
    }

    .text-size {
        font-size: 12px;
    }

    .home-box-left-main-pc-bottom {
        width: 100%;
        margin-top: 10px;
    }
}




/** ======================================================================================= */


/* Section Configs Récentes */
.home-gap {
    padding: .2vh 0;
}
.recent-configs {

    padding: 8vh 0;
    padding-top: 20vh;
    background: url("../../images/background-home.png") no-repeat center center fixed;
    background-position: center;
    background-repeat: no-repeat;

    background-size: cover;


}



.recent-configs-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vh;
}

.recent-configs-title {
    text-align: center;
    color: white;
    margin-bottom: 6vh;
}

.recent-configs-title h4 {
    font-size: 3vh;
    letter-spacing: 0.1em;
}

.recent-configs-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3vh;
}

.recent-config-box {
    background-color: #121218;
    border-radius: 2vh;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: .1s ease-in-out;
    display: block;
    height: 48vh;
}

.recent-config-box:hover {
    transform: scale(0.98);
    transition: .1s ease-in-out;
    text-decoration: none;
}

.recent-config-image {
    width: 100%;
    height: 22vh;
    object-fit: contain;
    display: block;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1.5vh;
}

.recent-config-content {
    padding: 2.5vh;
}

.recent-config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2vh;
}

.recent-config-user {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.8vh;
}

.recent-config-price {
    color: white;
    font-size: 2.2vh;
}

.recent-config-specs {
    text-align: center;
}

.recent-config-specs span {
    display: block;
    font-size: 1.9vh;
    margin: 1vh 0;
    color: rgba(255, 255, 255, 0.9);
}

.recent-config-specs hr {
    background-color: rgba(234, 234, 234, 0.3);
    width: 40%;
    margin: 0 auto;
    height: 1px;
    border: none;
}

/* Responsive tablettes */
@media screen and (max-width: 1024px) {
    .recent-configs-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5vh;
    }

    .recent-config-box {
        height: 45vh;
    }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .recent-configs {
        padding: 5vh 0;
    }

    .recent-configs-wrapper {
        padding: 0 2vh;
    }

    .recent-configs-title {
        margin-bottom: 4vh;
    }

    .recent-configs-title h4 {
        font-size: 2.5vh;
    }

    .recent-configs-container {
        grid-template-columns: 1fr;
        gap: 2vh;
    }

    .recent-config-box {
        max-width: 320px;
        margin: 0 auto;
        width: 100%;
        height: auto;
    }

    .recent-config-box:active {
        transform: scale(0.98);
    }

    .recent-config-image {
        height: 20vh;
        padding: 2vh;
    }

    .recent-config-content {
        padding: 2vh;
    }

    .recent-config-user {
        font-size: 1.6vh;
    }

    .recent-config-price {
        font-size: 2vh;
    }

    .recent-config-specs span {
        font-size: 1.7vh;
        margin: 0.8vh 0;
    }
}

/* Très petit mobile */
@media screen and (max-width: 480px) {
    .recent-configs {
        padding-top: 15vh;
    }

    .recent-configs-wrapper {
        padding: 0 1.5vh;
    }

    .recent-configs-title h4 {
        font-size: 2.2vh;
    }

    .recent-configs-title {
        margin-bottom: 3vh;
    }

    .recent-config-box {
        max-width: 280px;
        border-radius: 1.5vh;
    }

    .recent-config-image {
        height: 18vh;
        padding: 1.5vh;
    }

    .recent-config-content {
        padding: 1.8vh;
    }

    .recent-config-header {
        margin-bottom: 1.5vh;
    }

    .recent-config-user {
        font-size: 1.5vh;
    }

    .recent-config-price {
        font-size: 1.8vh;
    }

    .recent-config-specs span {
        font-size: 1.6vh;
        margin: 0.6vh 0;
    }

    .recent-config-specs hr {
        width: 50%;
    }
}













