html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.bienvenue {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    animation: hello 1s ease-in-out;
    animation-fill-mode: forwards;
    background: rgba(30, 30, 30);
}

.ajout {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: end;
    flex-direction: column;
    gap: 15px;
    overflow: visible;
}

.bienvenue h1 {
    font-family: monospace;
    font-size: 500%;
    text-align: center;
}

.body_index {
    display: flex;
    justify-content: center;
    place-items: center;
    font-family: monospace;
    background: rgba(134, 152, 192, 255);
}

.section_index {
    display: grid;
    place-items: center;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    border-radius: 12px;
    box-shadow: #3e3e3e 2px 2px 3px 0px;
    padding: 0;
    width: auto;
    height: 60%;
    animation-name: apparition2;
    animation-duration: 0.8s;
}

.texte {
    grid-row: 1;
    grid-column: 1;
    background: url("fond.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    color: #fefefe;
    display: flex;
    flex-direction: column;
    justify-items: center;
}

.texte h3 {
    text-align: start;
    font-size: 180%;
    margin: 0;
    margin-left: 8%;
    margin-top: 20%;
    font-weight: bold;
}

.texte h5 {
    text-align: start;
    font-size: 120%;
    margin: 0;
    margin-left: 8%;
}

.formulaire {
    background: #fefefe;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    justify-items: center;
    margin: 0 10%;
    grid-row: 1;
    grid-column: 2;
    row-gap: 40px;
}

.formulaire h2 {
    text-align: center;
    font-size: 150%;
    margin: 0 10%;
    padding: 10px 0;
}

.section_index form {
    display: grid;
    place-items: center;
    row-gap: 5%;
}

.nom {
    display: flex;
    justify-content: center;
    border: #1c1c1e solid 1px;
    border-radius: 50px;
    width: 75%;
    height: 140%;
    column-gap: 10px;
}

.nom label {
    display: grid;
    place-items: center;
}

.nom input[type="text"],
.nom input[type="password"] {
    border: none;
}

.section_index input[type="submit"] {
    font-size: 100%;
    border: white solid 1px;
    background-color: #3e3e3e;
    color: #fefefe;
    width: 80%;
    height: 140%;
    border-radius: 5px;
    transition: all 0.5s ease;
}


.section_index input[type="submit"]:hover {
    background: #fefefe;
    color: #3e3e3e;
    border: #3e3e3e solid 1px;
}

.card {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 2rem;
    grid-row: 2;
}

.element_card {
    text-align: center;
    border-radius: 16px;
    padding: 0;
    background: #1E1E1E;
    box-shadow: #3e3e3e 2px 2px 3px 0px;
    transition: transform .2s;
    display: grid;
    row-gap: 5px;
    grid-template-rows: auto auto auto auto;
    overflow: hidden;
    max-width: 240px;
    position: relative;
}

.element_card:hover {
    background-color: #444444;
    transform: scale(1.02);
    transition: all 0.5s ease;
    transform: translateY(-5px)
}

.element_card a {
    text-decoration: none;
    color: white;
    font-size: 1em;
    font-weight: 700;
    grid-row: 2;
    display: flex;
    place-items: center;
    justify-content: center;

}

.element_card .note {
    margin: 0;
    font-size: 1em;
    grid-row: 3;
}

.element_card .info {
    margin: 0;
    font-size: 0.9em;
    grid-row: 4;
}

.card-poster {
    width: 100%;
    height: 360px;
    grid-row: 1;
    border-radius: 4px 4px 0 0;
}


.info {
    display: flex;
    justify-content: start;
    place-items: center;
    padding-left: 7%;
    font-size: 90%;
    grid-row: 3;
}

.info p {
    padding: 0;
}

.info button {
    margin: 0;
    padding: 0 8px;
    height: 40%;
    background: transparent;
    color: white;
}

.note {
    display: flex;
    justify-content: start;
    padding-left: 5%;
    grid-row: 2;
}

.element_card .card-poster-place {
    width: 100%;
    height: 360px;
    display: grid;
    place-items: center;
    font-size: 120%;
    grid-row: 1;
    z-index: 4;
}

.element_card .card-overview {
    display: none;
    grid-row: 1;
}

#admin a {
    text-decoration: none;
}

.croix {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
    opacity: 0;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.element_card:hover .croix {
    opacity: 1;
    display: flex;
}

.croix:hover {
    background-color: #ff4444;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.croix button {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
}

.croix button::after {
    content: "\f014";
    font-family: FontAwesome;
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s;
}

.element_card:hover .card-overview {
    display: block;
    position: absolute;
    background-color: rgba(30, 30, 30, 0.9);
    color: #fefefe;
    padding: 5px 10px;
    width: 220px;
    height: 350px;
    z-index: 5;
    overflow-y: auto;
    text-align: justify;
}

#genre,
#media {
    margin-right: 10px;
    background: #5a5a5a;
    padding: 2px 6px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    color: #fefefe;

}

.nav_accueil a {
    text-decoration: none;
    color: #fefefe;
    cursor: pointer;
}

.nav_accueil p {
    font-size: 110%;
    display: flex;
    justify-content: space-evenly;
    place-items: center;
}

.accueil2 p:hover {
    text-decoration: underline;
}

.nav_accueil {
    border-bottom: #fefefe solid 1px;
    border-top: #fefefe solid 1px;
    display: flex;
    justify-content: space-evenly;
    place-items: center;
    flex-direction: row;
    position: relative;
    width: 100%;
    z-index: 9;
    backdrop-filter: blur(10px);
}

#admin {
    display: flex;
    justify-content: space-evenly;
}

.accueil2 {
    display: flex;
    place-items: center;
    justify-content: space-around;
    flex-direction: row;
    width: 100%;
}

#ajout,
#note {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#note {
    background: #2b2b2b;
}

#ajout {
    background-color: #1b1b1b;
}

#ajout:hover,
#note:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
    width: 100%;
    border-radius: 5px;
}

#ajout::after {
    content: "+";
}

#note::after {
    content: "★";
    font-size: 1.5rem;
}

#ajout:hover::after {
    content: "Ajouter";
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

#note:hover::after {
    content: "Noter";
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
}

@keyframes hello {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes apparition {
    0% {
        opacity: 0;
        transform: translate(-25%);
    }

    100% {
        opacity: 1;
        transform: translate(0%);
    }
}

@keyframes apparition2 {
    0% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 1;
        transform: translateY(0%);
    }
}

@keyframes apparition3 {
    0% {
        opacity: 0;
        transform: translate(-25%);
    }

    80% {
        opacity: 0;
        transform: translate(-25%);
    }

    100% {
        opacity: 1;
        transform: translate(0%);
    }
}

.ordre {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    column-gap: 30px;
    font-size: 110%;
}

#wa {
    cursor: pointer;
    padding: 10px 15px;
    border: #fefefe solid 1px;
    border-radius: 5px;
    background: #3e3e3e;
    color: #fefefe;
}

#wa::after {
    content: " *";
}

#wa:hover {
    text-decoration: none;
    background: red;
    border: #3e3e3e solid 1px;
    color: #3e3e3e;
}

.ordre p {
    cursor: pointer;
}

.from-accueil .header_accueil,
.from-accueil .section_accueil,
.from-accueil footer,
.from-accueil .nav_accueil,
.from-accueil .ajout {
    animation: apparition3 1.5s ease-in-out;
}

.section_accueil {
    column-gap: 1%;
}

.section_accueil h1 {
    margin-left: 5%;
}

.header_accueil {
    display: grid;
    place-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 9;
    backdrop-filter: blur(10px);
}

.section_utilisateur {
    width: 100%;
    display: grid;
    place-items: center;
}

.header_accueil h1 {
    grid-column: 2;
}

.header_accueil a p {
    font-size: 120%;
    color: #fefefe;
    margin: 5px 10px;
}

.header_accueil p::before {
    content: "Se déconnecter";
}

.header_accueil a {
    text-decoration: none;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    margin-right: 5%;
    border: #fefefe solid 1px;
    border-radius: 5px;
}

.header_accueil a:hover {
    text-decoration: underline;
    background: #fefefe;
    border: #3e3e3e solid 1px;
}

.header_accueil a:hover p {
    color: #3e3e3e;
}

.recherche {
    display: flex;
    place-items: center;
    flex-direction: row;
    border: #C4D1EB solid 1px;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    margin: 0 10px;
}

.recherche input {
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: #fefefe;
}

.card_plus {
    backdrop-filter: blur(7px);
    background-color: rgba(30, 30, 30, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.insertion {
    vertical-align: top;
    align-items: center;
    place-items: center;
    padding: 20px;
    background-color: #2E2E2E;
    border-radius: 12px;
    width: 400px;
    font-size: 120%;
    color: white;
    gap: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.insertion input[type="text"],
.insertion select {
    width: 90%;
    padding: 5px 10px 5px 10px;
    border-radius: 5px;
    border: none;
    box-shadow: 2px 2px 3px 0px #E2E2E2;
    background: #fefefe;
    color: #1c1c1e;
}

.name {
    display: flex;
    grid-column: span 2;
    flex-direction: column;
    row-gap: 5px;
    width: 100%;
    align-items: start;
}

.genre {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    grid-column: 1;
    align-items: start;
}

.serie {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    grid-column: 2;
    align-items: start;
}

.notes {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    align-items: start;
    grid-column: 1;
}

.insertion input[type="submit"] {
    width: 120px;
    place-items: center;
    padding: 5px 10px 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #3e3e3e;
    color: #fefefe;
    font-size: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}

.insertion input[type="submit"]:hover {
    background: #fefefe;
    color: #3e3e3e;
    border: #3e3e3e solid 1px;
}

.card_mod {
    backdrop-filter: blur(7px);
    background-color: rgba(30, 30, 30, 0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 10;
}

.modification {
    height: auto;
    display: grid;
    place-items: center;
    row-gap: 1rem;
    padding: 20px;
    background-color: #2E2E2E;
    border-radius: 12px;
    width: 400px;
    font-size: 120%;
    color: white;
}

.suppr {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 20px;
    margin-top: 20px;
}

.suppr input[type="submit"] {
    width: auto;
    place-items: center;
    padding: 5px 10px 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #3e3e3e;
    color: #fefefe;
    font-size: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}

.modification2 {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 10px;
    width: 100%;
}

.modification2 label {
    display: grid;
    place-items: center;
    grid-column: 1;
    grid-row: 1;
}

.modification2 select {
    display: grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1;
}

.modification2 #notation {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 15px;
    flex-direction: row-reverse;
    grid-column: span 2;
    grid-row: 2;
}

.modification input[type="submit"] {
    width: 120px;
    place-items: center;
    padding: 5px 10px 5px 10px;
    border: none;
    border-radius: 5px;
    background-color: #3e3e3e;
    color: #fefefe;
    font-size: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}

.modification input[type="submit"]:hover {
    background: #fefefe;
    color: #3e3e3e;
    border: #3e3e3e solid 1px;
}


.body_accueil,
.from-accueil,
.body_descript {
    color: #fefefe;
    background-color: #1c1c1e;
}

.select {
    border: 1px solid #3e3e3e;
    border-radius: 5px;
    width: 100%;
    background: transparent;
    padding: 5px 10px 5px 10px;
    color: white;
}

.select option {
    background-color: #1c1c1e;
    color: white;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.filtre {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    width: 80%;
    column-gap: 40px;
}

.filtre form {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

#trie {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 10px;
}

footer {
    position: absolute;
    display: inline-block;
    top: 0;
    right: 0;
    top: auto;
    display: flex;
    justify-content: space-evenly;
    place-items: center;
    width: 100%;
    background-color: #3e3e3e;
    margin: 10px 0 0 0;
    padding: 0;
}

.crea {
    text-decoration: none;
    color: #3e3e3e;
    font-size: 120%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.crea p:hover {
    text-decoration: underline;
}

.film-list {
    display: grid;
    grid-template-columns: auto auto auto auto auto;
    gap: 1rem;
}

.film-item {
    text-align: center;
    border-radius: 12px;
    padding: 0.5rem 0;
}

.film-item:nth-child(odd) {
    background-color: #3e3e3e;
}

.film-item:hover {
    background-color: #fefefe;
    color: #1c1c1e;
    transition: all 0.5s ease;
}

.modification .notation {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.modification .recherche {
    width: 80%;
    margin: 0;
    background: #3e3e3e;
    padding: 10px;
}

.modification form {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#modif {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 10px;
    width: 80%;
    row-gap: 10px;
}

.ploupi {
    width: 100%;
}

.ploupi p {
    background: #3e3e3e;
    border-bottom: solid 1px white;
    padding: 2px 10px;
    border-radius: 5px;
    padding: 5px;
    margin: 0;
    font-size: 80%;
    text-align: center;
}

.ploupi span {
    margin: 0;
    font-size: 80%;
}

.valide {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.valide input {
    background: #3e3e3e;
    color: white;
    padding: 10px;
}

.valide select {
    appearance: base-select;
}

.section_description {
    display: grid;
    place-items: center;
    width: 100%;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    padding-top: 150px;
}

.section_description h2 {
    grid-column: span 2;
    font-size: 200%;
    margin: 0;
}

.section_description img {
    width: 70%;
}

#li {
    display: flex;
    flex-direction: row;
    column-gap: 15px;
    align-items: start;
}

#li p {
    border-radius: 5px;
    background-color: #3e3e3e;
    padding: 8px 12px;
    display: grid;
    place-items: center;
    border: solid 1px black;
}

.descript {
    margin-right: 15px;
}

.descript h3 {
    font-size: 150%;
}

.descript p {
    margin: 0;
    font-size: 110%;
    text-align: justify;
}

.fond {
    backdrop-filter: blur(7px);
    background-color: rgba(0, 0, 0, 0.705);
    height: 100%;
}

@media screen and (max-width:1024px) {
    .section_index {
        grid-template-columns: auto;
        grid-template-rows: auto;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        display: grid;
        place-items: center;
        font-size: 130%;
        box-shadow: none;
        animation-name: apparition2;
        animation-duration: 0.8s;
    }

    .bienvenue h1 {
        font-size: clamp(1.5rem, 6vw, 4rem);
    }

    .element_card .card-poster-place {
        height: 200px;
    }

    .card-poster {
        height: 200px;
    }

    .formulaire {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        background: transparent;
    }

    .nom {
        width: 85%;
    }

    .nom input[type="text"],
    .nom input[type="password"] {
        background: transparent;
        font-size: 100%
    }

    .header_accueil p::before {
        content: "";
        display: inline-block;
        width: 24px;
        height: 24px;
        background: url("icone.svg") no-repeat center / contain;
        vertical-align: middle;
    }

    .texte {
        display: none;
    }

    .nav_accueil {
        display: flex;
        justify-content: center;
        place-items: center;
        flex-direction: column;
        padding: 15px 0;
        top: 0px;
    }

    #fin {
        margin-top: 0;
    }

    .nav_accueil p {
        margin: 0;
    }

    .header_accueil {
        height: 80px;
    }

    .header_accueil h1 {
        font-size: 190%;
        grid-column: span 2;
    }

    .accueil2 {
        display: flex;
        place-items: center;
        justify-content: space-evenly;
        flex-direction: column-reverse;
        row-gap: 10px;
        width: 100%;
        margin: 1% 0;
    }

    .card {
        grid-template-columns: 1fr 1fr;
        width: 80%;
        margin: 0;
        row-gap: 20px;
        column-gap: 50px;
    }

    .filtre {
        width: 100%;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
    }

    .filtre .ordre {
        grid-column: span 2;
        grid-row: 1;
        width: 100%;
    }

    .filtre form {
        justify-content: center;
    }

    .filtre form .select {
        width: 120px;
    }

    .accueil2 .recherche {
        display: flex;
        justify-content: center;
        width: 60%;
        flex-direction: row;
    }

    .recherche input {
        width: 100%;
    }

    .body_accueil,
    .from-accueil,
    .body_descript {
        font-size: 80%;
    }

    .insertion {
        row-gap: 10px;
        width: 80%;
    }

    .insertion input[type="submit"] {
        width: 100px;
    }

    #media,
    #genre {
        margin-right: 5px;
    }


    .film-list {
        display: grid;
        grid-template-columns: auto;
        width: 95%;
    }

    .film-item {
        border-right: #000000 solid 1px;
        border-bottom: #000000 solid 1px;
        background-color: #fefefe;
        color: #1c1c1e;
        transition: all 0.5s ease;
        text-align: left;
        display: grid;
        grid-template-columns: auto auto;
    }

    .film-item:hover {
        background-color: #1c1c1e;
        color: #fefefe;
    }

    .film-item:nth-child(odd) {
        background-color: #fefefe;
    }

    .film-item:nth-child(odd):hover {
        background-color: #1c1c1e;
        color: #fefefe;
    }

    .film-item .film {
        margin-left: 10px;
        font-size: 110%;
    }

    .modification {
        height: auto;
        display: grid;
        place-items: center;
        width: 80%;

    }

    .element_card h2 {
        margin: 0 10px;
        display: grid;
    }

    .element_card:hover .card-overview {
        display: none;
    }

    .ordre {
        column-gap: 50px;
    }

    .ordre p {
        margin: 10px 0;
    }

    #ajout:hover::after {
        content: "+";
        transform: none;
    }

    #note:hover::after {
        content: "★";
        transform: none;
    }

    #note:hover,
    #ajout:hover {
        transform: none;
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2.5rem;
    }

}

.suppr {
    width: 80%;
}

.suppr input[type="submit"] {
    width: 90%;
    font-size: 120%;
}

.ploupi p {
    margin: 0;
    font-size: 100%;
}

.valide {
    flex-direction: column;
    row-gap: 10px;
}

.section_description {
    display: flex;
    flex-direction: column;
}

.section_description h2 {
    margin-bottom: 15px;
}

.section_description .descript {
    margin: 0 25px;
}

.fond {
    background-color: transparent;
}