@import url('colors.css');

.essai-gratuit {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;

}

h2.essai-gratuit-text {
    margin-bottom: 2rem;
    color: var(--color-primary-blue);
    animation: pulse 2s ease-in-out infinite;

}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.plans-inscriptions {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    /* width: 80vw; */
    height: auto;
    margin: auto;
    /* margin: 4rem auto; */
    max-width: 1900px;
}

.group-element {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem .5rem;

    background: linear-gradient(to bottom, var(--color-primary-red), var(--color-primary-red)) no-repeat;
    background-size: 100% 0%;
    background-color: var(--color-primary-dark-blue);
    width: 28vw;
    min-width: 300px;
    max-width: 560px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
    transition: all 0.2s;

}


.group-element:hover {
    transform: translateY(-5px);
    /* background: linear-gradient(to bottom, var(--color-primary-red), var(--color-primary-red)) no-repeat; */
    background-size: 100% 100%;
}

.group-element * {
    margin: 0.5rem 0;
}

.group-element *:first-child {
    margin-top: 5%;
}

.group-element *:last-child {
    margin-bottom: 5%;
}

.info-element {
    margin: auto;
    /* width: calc(28vw * 1.5);
    max-width: calc(560px * 1.5); ;
    min-width: 300px; */
    margin-top: 25px;
    /* transform: translateY(25px); */
}

.info-element * {
    text-align: justify;
    margin: 0.5rem 1.5rem;
}

.button-primary-blue {
    margin: 25px;
    width: 28vw;
    min-width: 300px;
  max-width: 560px;
}


.button-inscription {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* width: 80vw; */
    margin: auto;
    margin-top: 5rem;
}

.button-inscription button {
    /* Reduce width of 20% compared to the group-element */
    width: calc(28vw - 28vw * 0.2);
    max-width: calc(560px - 560px * 0.2);
    margin-bottom: 1rem;
}



@media (max-width: 768px) {
    .essai-gratuit h2 {
        font-size: min(5vw, 2rem);
    }

    .group-element {
        width: 80vw;
        margin: 1rem 1rem
    }

    .plans-inscriptions {
        width: 100%;
    }

    .info-element {
        width: 80vw;
        max-width: 560px;
        transform: translateY(0);
        margin: 2rem auto;
        margin-bottom: 0px;
    }
    .button-primary-blue {
        width: 80vw;
    }
    .button-inscription button {
        width: calc(80vw - 80vw * 0.2);
        max-width: calc(560px - 560px * 0.2);
    }
}