@media (min-width:1200px ){
    .home{
        display: flex;
    }
}
:root {
    --d: 700ms;
    --e: cubic-bezier(0.19, 1, 0.22, 1);
    --font-sans: 'Rubik', sans-serif;
    --font-serif: 'Cardo', serif;
}
.home{
    height: 100%;
    overflow: auto;
}
.page-content {
    height: 70vh;
    background-color: #171717;
    display: grid;
    grid-gap: 0.5rem;
    padding: 0.5rem;
}
.card {
    /* padding: 1em 0.5em; */
    border: none;
    display: flex;
    margin: 0 0.5rem;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    width: 16.5%;
    text-align: center;
    color: whitesmoke;
    background-color: whitesmoke;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}
.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-size: cover;
    background-position: 0 0;
    transition: transform calc(var(--d) * 1.5) var(--e);
    pointer-events: none;
}
.card:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.320) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.540) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.790) 100%);
    transform: translateY(-50%);
    transition: transform calc(var(--d) * 2) var(--e);
}
.description-title{
    display: block;
    padding-bottom: 0.5em;
    font-size: 0.8em;
    font-style: normal;
    font-weight: bold;
    color: #082e63;
    text-shadow: 0 0 1px white;
}
.card:nth-child(1):before {
    background-image: url(../../images/desktop/Yoann_accueil_right.jpg);
}
.card:nth-child(2):before {
    background-image: url(../../images/desktop/skill.jpg);
}
.card:nth-child(3):before {
    background-image: url(../../images/desktop/computer_midle_l.jpg);
}
.card:nth-child(4):before {
    background-image: url(../../images/desktop/portfolio.jpg);
}
.card:nth-child(5):before {
    background-image: url(../../images/desktop/avenir.jpg);
}
.card:nth-child(6):before {
    background-image: url(../../images/desktop/contact.jpg);
}
.content {
    height: 100%;
    overflow: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: transform var(--d) var(--e);
    z-index: 1;
    padding-bottom: 1em;
}
.content > * + * {
    margin-top: 1rem;
}
.title {
    color: white;
    background-color: rgba(23, 23, 23, 0.20);
    margin-top: 1em;
    padding: 1em;
    font-size: 1.3rem;
    line-height: 1.2;
    width: 100%;
}
.btn {
    cursor: pointer;
    margin-top: 1.5rem;
    padding: 1em 0.5rem;
    font-size: 0.65rem;
    font-weight: bold;
    border: 1px inset white;
    border-radius: 0.2em;
    letter-spacing: 0.025rem;
    text-transform: uppercase;
    color: white;
    background-color: rgba(23, 23, 23, 0.20);
}
.card:hover{
    border: 1px solid white;
}
.card:hover .title{
    color: wheat;
    text-shadow: 1px 1px 5px #171717;;
}
.card:hover p {
    background-color: rgba(255, 255, 255, 0.65);
    padding: 1em 0.5em;
    height: 40vh;
    color: #393939;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.btn:hover {
    background-color: rgba(255, 255, 255, 0.70);
}
.content:hover a:hover{
    text-decoration: none;
}
.copy {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.35;
    color: #000000;
}
.fab{
    font-size: 2em;
    color: white;
}

@media (hover: hover) and (min-width: 600px) {
    .card:after {
        transform: translateY(0);
    }
    .content > *:not(.title) {
        opacity: 0;
        transform: translateY(1rem);
        transition: transform var(--d) var(--e), opacity var(--d) var(--e);
    }
    .card:hover, .card:focus-within {
        align-items: center;
    }
    .card:hover:before, .card:focus-within:before {
        transform: translateY(-4%);
    }
    .card:hover:after, .card:focus-within:after {
        transform: translateY(-50%);
    }
    .card:hover .content, .card:focus-within .content {
        transform: translateY(0);
    }
    .card:hover .content > *:not(.title), .card:focus-within .content > *:not(.title) {
        opacity: 1;
        transform: translateY(0);
        transition-delay: calc(var(--d) / 8);
    }
    .card:focus-within:before, .card:focus-within:after, .card:focus-within .content, .card:focus-within .content > *:not(.title) {
        transition-duration: 0s;
    }
}

/*------------ MAX WIDTH 770 ------------*/

@media (max-width: 1050px), screen and (max-height: 600px) {
    main .page-content{
        display: block;
        width: 100%;
    }
    .copy{
        color: #adadad;
    }
    .card:hover .copy{
        color: #171717;;
    }
    .card{
        width: 90%;
        margin: 1.5em auto;
        overflow: hidden;
        border-radius: .25rem;
    }
    .card:nth-child(1):before {
        background-image: url(../../images/tablette/Yoann.jpg);
    }
    .card:nth-child(2):before {
        background-image: url(../../images/tablette/skill-tablette.jpg);
    }
    .card:nth-child(4):before {
        background-image: url(../../images/tablette/portfolio-tablette.jpg);
    }
    .card:nth-child(5):before {
        background-image: url(../../images/tablette/avenir-tablette.jpg);
    }
    .card:nth-child(6):before {
        background-image: url(../../images/tablette/contact-tablette.jpg);
    }
    .card .btn{
        margin: 2.5rem;
    }
    .card:hover {
        border: none;
    }
    .card:hover p {
        height: 10em;
        width: 100%;
    }
}

@media (max-height: 420px) {
    .card {
        width: initial;
        margin: 0.5em 0;
    }
}