/*Implementation de la police*/

@font-face {
    font-family: marvelfont;
    src: url(../fonts/whitneylight.otf);
}

@font-face {
    font-family: marvelfont_title;
    src: url(../fonts/whitneysemibold.otf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: marvelfont;
}

body, html {
    width: 100%;
    height: 100%;
    background: linear-gradient(322deg, rgba(255, 250, 86, 1) 0%, rgba(255, 23, 23, 1) 0%, rgba(48, 86, 255, 1) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.nav {
    background: #171c24;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 100px;
    margin-bottom: 30px;
}

.title {
    color: #fff2d4;
    font-size: 50px;
    font-weight: bold;
    font-family: marvelfont_title;
    letter-spacing: 1px;
}

#btn {
    font-size: 20px;
    font-weight: 500;
    background: #fff2d4;
    border: 3px solid #fff2d4;
    border-radius: 4px;
    cursor: pointer;
}

#btn a{
    text-decoration: none;
    color: #000;
}

#btn:hover {
    color: #fff;
    transition: 0.5s;
    background-color: rgb(248, 76, 76);
    border: 3px solid rgb(248, 76, 76);
}
#btn:hover a{
    color: #fff;
}

@media screen and (max-width: 720px) {
    .title {
        transition: 0.1s;
        font-size: 30px;
    }
    #btn {
        transition: 0.1s;
        font-size: 15px;
    }
}

@media screen and (max-width: 530px) {
    .title {
        transition: 0.1s;
        font-size: 18px;
    }
    #btn {
        transition: 0.1s;
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    .title {
        transition: 0.1s;
        font-size: 15px;
    }
    #btn {
        transition: 0.1s;
        font-size: 10px;
    }
}

/*Conteneur avec la barre de recherce pour les heros*/

.conteneurBarre {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 180px;
    margin-top: 100px;
    padding: 0;
    font-family: "Knewave", cursive;
}

label {
    width: 100%;
    max-width: 300px;
}

.searchBar {
    width: 100%;
    display: flex;
    padding: 15px;
    background-color: #fff2d4;
    border: 2px solid black;
    color: #111;
    font-size: 15px;
    box-shadow: 6px 4px 0px 5px, 0px -1px 0px 2px rgba(0, 0, 0, 0.62);
    height: 58px;
    transform: skew(-3deg, 1deg);
    font-family: "Knewave", cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/*enleve la ligne autour de la barre de recherce */

.searchBar:focus, .searchBar:valid {
    outline: none;
}

/*-----------elements pour le effet "search" sur la barre de recherche---------*/

.searchBar:focus~ul li:nth-child(1)::before, .searchBar:valid~ul li:nth-child(1)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(1)::after, .searchBar:valid~ul li:nth-child(1)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(2)::before, .searchBar:valid~ul li:nth-child(2)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(2)::after, .searchBar:valid~ul li:nth-child(2)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(3)::before, .searchBar:valid~ul li:nth-child(3)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(3)::after, .searchBar:valid~ul li:nth-child(3)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(4)::before, .searchBar:valid~ul li:nth-child(4)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(4)::after, .searchBar:valid~ul li:nth-child(4)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(5)::before, .searchBar:valid~ul li:nth-child(5)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(5)::after, .searchBar:valid~ul li:nth-child(5)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(6)::before, .searchBar:valid~ul li:nth-child(6)::before {
    filter: blur(20px);
    transform: translate(0, -35px) rotate(-210deg);
}

.searchBar:focus~ul li:nth-child(6)::after, .searchBar:valid~ul li:nth-child(6)::after {
    filter: blur(0);
    transform: scale(1) rotate(0);
}

.searchBar:focus~ul li:nth-child(1)::after, .searchBar:valid~ul li:nth-child(1)::after {
    transition-delay: 200ms;
}

.searchBar:focus~ul li:nth-child(2)::after, .searchBar:valid~ul li:nth-child(2)::after {
    transition-delay: 300ms;
}

.searchBar:focus~ul li:nth-child(3)::after, .searchBar:valid~ul li:nth-child(3)::after {
    transition-delay: 400ms;
}

.searchBar:focus~ul li:nth-child(4)::after, .searchBar:valid~ul li:nth-child(4)::after {
    transition-delay: 500ms;
}

.searchBar:focus~ul li:nth-child(5)::after, .searchBar:valid~ul li:nth-child(5)::after {
    transition-delay: 600ms;
}

.searchBar:focus~ul li:nth-child(6)::after, .searchBar:valid~ul li:nth-child(6)::after {
    transition-delay: 700ms;
}

label {
    position: relative;
}

ul {
    position: absolute;
    top: 38px;
    left: -4px;
    margin: 0;
    list-style: none;
    padding-left: 22px;
    position: absolute;
    display: flex;
    pointer-events: none;
    transition: 200ms;
}

ul li {
    letter-spacing: 3px;
    text-transform: uppercase;
    color: transparent;
    pointer-events: none;
    transition: 500ms ease-in-out;
}

ul li ::selection {
    color: transparent;
}

ul li::after, ul li::before {
    color: black;
    position: absolute;
    transition: 200ms ease-in-out;
}

ul li::before {
    top: -20px;
}

ul li::after {
    top: -63px;
    transform: scale(0) rotate(210deg);
    filter: blur(20px);
}

ul li[s]::before {
    content: attr(s) "s";
    transition-delay: 200ms;
}

ul li[s]::after {
    content: attr(s) "s";
    left: 12px;
    color: rgb(231, 227, 4);
}

ul li[e]::before {
    content: attr(e) "e";
    transition-delay: 300ms;
}

ul li[e]::after {
    content: attr(e) "e";
    left: 24px;
    color: rgb(231, 227, 4);
}

ul li[a]::before {
    content: attr(a) "a";
    transition-delay: 400ms;
}

ul li[a]::after {
    content: attr(a) "a";
    left: 36px;
    color: rgb(231, 227, 4);
}

ul li[r]::before {
    content: attr(r) "r";
    transition-delay: 500ms;
}

ul li[r]::after {
    content: attr(r) "r";
    left: 48px;
    color: rgb(231, 227, 4);
}

ul li[c]::before {
    content: attr(c) "c";
    transition-delay: 600ms;
}

ul li[c]::after {
    content: attr(c) "c";
    left: 60px;
    color: rgb(231, 227, 4);
}

ul li[h]::before {
    content: attr(h) "h";
    transition-delay: 700ms;
}

ul li[h]::after {
    content: attr(h) "h";
    left: 72px;
    color: rgb(231, 227, 4);
}

/*--------------------------------------------------------------------------*/

/*Conteneur des cartes*/

.wrapper {
    display: flex;
    flex-flow: row wrap;
    width: 90%;
    justify-content: space-around;
    margin: auto;
}

.card {
    width: 320px;
    height: 390px;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 30px;
    margin-left: 20px;
    background: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: flex-end;
    transition: 0.4s ease-out;
    box-shadow: 0px 7px 10px rgba(0, 0, 0, 0.5);
}

.card:hover:before {
    opacity: 1;
}

.card:hover .info {
    opacity: 1;
    transform: translateY(0px);
}

.card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    transition: 0.5s;
    opacity: 0;
}

.card img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 15px;
}

.card .info {
    position: relative;
    z-index: 3;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.5s;
}

.card .info h1 {
    margin: 0px;
}

.card .info p {
    letter-spacing: 1px;
    font-size: 15px;
    margin-top: 8px;
}

.card .info button {
    padding: 0.6rem;
    outline: none;
    border: none;
    border-radius: 3px;
    background: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.4s ease;
}

.card .info button:hover {
    background: dodgerblue;
    color: white;
}