
.presentation div.content-container {
    margin-top: 0;
}
.formations-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    background-color: var(--primary-bg-color);
    padding: 16px;
    padding-top: 64px;
    margin-top: 80px;
    margin-top: 28px;
}

.formations-container .formation {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 0px 0px 16px -4px rgba(0,0,0,0.5);
    min-width: 400px;
}
.formation-image {
    width: 100%;
}

.formation-image img {
    width: inherit;
    height: auto;
}
.formation-image:hover > img {
    animation-duration: 1s;
    animation-name: bounceUpDown;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
.formation-title h4 {
    font-weight: 550;
}


.formation-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px;
}

@keyframes bounceUpDown {
    from {
        transform: translateY(0);
    }
  
    to {
        transform: translateY(-8px);
    }
}

.formation-button {
    cursor: pointer;
    margin-top: 8px;
    padding: 16px;
    background-color: var(--secondary-bg-color);
    color: var(--primary-color-2);
    border:none;
    border-radius: 50px;
    font-size: 16px;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
}
.formation-button:hover {
    background-color: var(--button-hover-bg);
    color: #000;
}
.svg-white {
    fill: currentColor;
}
button.formation-button.indisponible {
    background-color: gray;
    cursor: default;
}
button.formation-button.indisponible:hover {
    color: var(--primary-color-2);
}

@media screen and (max-width: 620px) {
    .main-title h1 {
        font-size: 30px;
    }
}
@media screen and (max-width: 550px) {
    .sub-header {
        height: 100px;
    }
    .main-title h1 {
        font-size: 24px;
    }
}
@media screen and (max-width: 500px) {
    .formations-container .formation {
        min-width: 300px;
    }
    div.formations-container {
        margin-top: 16px;
    }
}
@media screen and (max-width: 450px) {
    .contact-container {
        flex-direction: column;
    }
    .contact-info {
        width: 100%;
        padding: 12px 0;
    }
    
    .main-title h1 {
        font-size: 20px;
    }
}
@media screen and (max-width: 320px) {
    .sub-header {
        height: 80px;
    }
    .main-title h1 {
        padding: 0;
    }
}
@media screen and (max-width: 300px) {
    .formations-container .formation {
        width: 95%;
        min-width: unset;
    }
    .formations-container {
        padding-left: 0;
        padding-right: 0;
    }
}
