:root {
    --card-padding: clamp(1rem, 2vw, 2.5rem);
    --cards-container-gap: clamp(1rem, 2vw, 1.5rem);
    --primary: #2563eb;
}

.section-title {
    border-left-color: var(--secondary);
}

#title-container {
    padding: var(--section-padding);
    padding-bottom: unset;
}

#title-container h1 {
    font-size: var(--display-large-font-size);
    line-height: var(--display-large-line-height);
    border-left-color: var(--primary);
}

.cards-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--cards-container-gap);
}

.card {
    background-color: var(--surface-container);
    padding: var(--card-padding);
    border-radius: var(--corner-radius);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

#expertises-section h2 {
    margin-bottom: 2vh;
}

.card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--corner-radius);
}

.card figure {
    font-size: 4vh;
    margin-bottom: 1.5vh;
}

.card figure svg,
.card figure img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
}

.card p {
    flex-grow: 1;
}

.card .button-bottom {
    margin-top: auto;
}

.info p,
.info h3,
.info h2 {
    margin-bottom: 1vh;
}

.info h3.section-title {
    font-size: var(--headline-small-font-size);
    line-height: var(--headline-small-line-height);
    border-left-color: var(--primary);
}

.info h3 {
    height: calc(var(--headline-small-line-height) * 2);
    display: flex;
    align-items: center;
}

#continu.card p,
#continu.card ul,
#continu.card li,
#alternance.card p,
.card h4 {
    margin-bottom: 1vh;
}

#continu.card ul {
    padding-left: 3vw;
}

@media screen and (min-width: 768px) {
    :root {
        --cards-container-gap : 2vw;
    }

    .cards-container {
        gap: var(--cards-container-gap);
    }
    .grid-3-cols {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 1fr;
        gap: var(--cards-container-gap);
    }

    .grid-2-cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 1fr;
        gap: var(--cards-container-gap);
    }

    .info .grid-2-cols {
        gap: 3vw;
    }
}

@media screen and (min-width: 1024px) {
    :root {
        --card-padding: 2.5vh 1vw;
        --cards-container-gap: 2vw;
    }

    .info h3 {
        height: unset;
    }

    .info .grid-2-cols {
        gap: 2vw;
    }
}
