@import url('../source/srcIMG.css');

.adsCLASSNotCommune {
    width: 70%; height: auto;
    padding: 0; margin: 0;
    margin-bottom: 25px;
}

.adsSECMAI {
    position: relative;
    width: calc(100% + (20px * 2)); height: auto;
    top: 0; left: 0;
    border-radius: 20px;
    background: linear-gradient(to top right, var(--colorNV), rgba(0, 110, 255, 0.589));
}

.adsMAINSection {
    width: 100%; height: 400px;
    border-radius: 20px;
    position: relative;
    color: white;
}

.adsMAINSection h1, .adsMAINSection p {
    text-align: end;
    position: absolute;
    right: 100px;
}

.adsMAINSection h1 {
    font-size: 50px;
    text-transform: uppercase;
    margin: 0; padding: 0;
    top: 150px !important;
}

.adsMAINSection p {
    opacity: 80%;
    max-width: 450px;
    font-size: 20px;
    bottom: 150px !important;
}

#backgroundSAMEHome {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: transparent;
    background-size: contain;
    background-position: left;
    background-repeat: no-repeat;
}

.adsPROMPTS {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: none;
    box-shadow: none;
    border: none;
}

.adsPROMPTS section {
    border: 5px solid white;
    width: calc(95% - (5px * 2)); height: 250px;
    margin: 2.5%;
    background: white;
    color: black;
    box-shadow: var(--boxshadowOFFICIAL);
    border-radius: 20px;
    position: relative;
    cursor: default;
}

.adsPROMPTS section h1, .adsPROMPTS section p {
    position: relative;
    margin: 0; padding: 0;
    transition: 0.2s ease-in-out;
} .adsPROMPTS section p {
    position: absolute;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    bottom: 0;
}

.adsPROMPTS section:hover h1 {
    margin-bottom: 100px;
} .adsPROMPTS section:hover p {
    margin-bottom: 70px;
    opacity: 70%;
}

.diffProjectMORE {
    height: 100% !important;
    border: none !important;
}

.diffProjectMORE * {
    position: relative !important;
    max-width: 100% !important;
    top: auto !important;
    border: none !important;
    text-align: center;
}

.diffProjectMORE i {
    margin-left: 20px;
}

@media screen and (max-width:1520px) { .adsCLASSNotCommune { width: 90%; } }

@media screen and (max-width:1350px) {
    .adsPROMPTS { grid-template-columns: repeat(2, 1fr); }
    #troisiemmm {
        grid-column: 1 / -1;
        width: calc(95% + 2.5% - (5px * 2));
        margin: calc(2.5% / 2);
    }
    #invalidResponsiveResized {
        grid-column: 1 / -1;
        max-height: 170px;
        margin: calc(2.5% / 2);
        width: calc(95% + 1.75%);
    }
}

@media screen and (max-width:1270px) {
    .adsMAINSection h1, .adsMAINSection p { right: 50px; }
}

@media screen and (max-width:1190px) {

    .adsMAINSection {
        height: 200px;
    }

    .adsMAINSection h1, .adsMAINSection p {
        text-align: end;
        position: absolute;
        right: 100px;
    }

    .adsMAINSection h1 {
        font-size: 2em;
        top: 35% !important;
    }

    .adsMAINSection p {
        font-size: 1em;
        bottom: 25% !important;
    }
}

@media screen and (max-width:865px) {
    .adsMAINSection h1 {
        text-shadow: var(--textshadowOFFICIAL);
    }
    .adsMAINSection h1, .adsMAINSection p {
        right: 50px;
    }
    .adsCLASSNotCommune {
        width: 82%;
        box-shadow: none;
        background: transparent;
    }
    .adsPROMPTS { grid-template-columns: repeat(1, 1fr); }
}

@media screen and (max-width:708px) {
    .adsMAINSection h1, .adsMAINSection p {
        right: 15px;
    }
}

@media screen and (max-width:636px) {
    .adsCLASSNotCommune {
        top: -70px;
        position: relative;
        margin-bottom: 0;
    }

    .adsSECMAI {
        border-radius: 0;
    }

    .adsCLASSNotCommune, .adsSECMAI, .adsMAINSection {
        width: 100%; height: 350px;
    }
    .adsMAINSection {
       z-index: 1;
    }

    .adsMAINSection h1, .adsMAINSection p {
        text-align: center;
        position: absolute;
    }

    .adsMAINSection h1 {
        text-transform: uppercase;
        margin: 0; padding: 0;
        top: 25px !important; right: auto;
        z-index: -1;
        color: white;
        text-shadow: none;
    }

    .adsMAINSection p {
        margin: 0; padding: 0;
        opacity: 1;
        bottom: 25px !important; right: auto;
        color: rgb(247, 247, 247);
        font-size: 1.2em;
        backdrop-filter: blur(3px);
    }

    #backgroundSAMEHome {
        background-size: 400px;
        background-position: bottom;
    }

}

@media screen and (max-width:460px) {
    .adsCLASSNotCommune, .adsSECMAI, .adsMAINSection { width: 100%; border-radius: 0; }
}