html,
body {
    height: auto;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#html,
.body_index {
    height: 100%;
}

.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);
}


.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%;
}

.nav_accueil {
    height: 80px;
}

.nav_accueil2 {
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 20px;
    position: fixed;
    top: 0;
    gap: 2%;
    right: 0;
    z-index: 10;
    background: linear-gradient(180deg,
            rgba(20, 20, 20, 1) 0%,
            rgba(20, 20, 20, 0.95) 15%,
            rgba(20, 20, 20, 0.5) 70%,
            rgba(20, 20, 20, 0) 100%);
    color: #fefefe;
}

.nav_accueil2 h1 {
    font-size: 150%;
    margin: 0;
    margin-left: 2%;
    color: red;
}

.filtre {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.filtre p {
    cursor: pointer;
    transition: all 0.5s ease;
}

.filtre p:hover {
    color: red;
    text-decoration: underline;
}

.menu-content {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-checkbox,
.burger-icon {
    display: none;
}

.menu-content a {
    text-decoration: none;
    color: red;
    padding: 8px 20px;
    margin-right: 2%;
    border: 1px solid red;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-content a:hover {
    color: white;
    background: transparent;
    border-color: white;
}

.menu-content a::before {
    content: "Se déconnecter";
    font-weight: 500;
}

.filtre form {
    padding: 5px;
    border-radius: 5px;
    border: #fefefe solid 1px;
}

.filtre form select {
    background: transparent;
    border: none;
    color: #fefefe;
}

.filtre form:hover {
    border: red solid 1px;
    transition: all 0.5s ease;
}

.filtre form select:hover {
    outline: none;
    color: red;
    transition: all 0.5s ease;
}

.filtre form select option {
    background: #121212;
    color: #fefefe;
}

.espace {
    width: 20%;
}

.recherche {
    display: flex;
    align-items: center;
    gap: 5px;
    border: #fefefe solid 1px;
    border-radius: 7px;
    padding: 8px 5px;
    width: 20%;
}

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

.recherche:hover {
    border: red solid 1px;
    transition: all 0.5s ease;
}

.recherche:hover input {
    color: red;
    transition: all 0.5s ease;
}

.recherche:hover svg {
    stroke: red;
    transition: all 0.5s ease;
}

#clear-search:hover {
    color: red !important;
    transform: scale(1.2);
    transition: all 0.2s ease;
}

.recherche input:focus {
    outline: none;
}

.menu-accueil {
    display: flex;
    justify-content: end;
    align-items: center;
    padding-right: 2%;
    width: 100%;
}

.menu-accueil a {
    color: white;
    text-decoration: none;
    font-size: large;
}

.menu-accueil a:hover {
    color: red;
    text-decoration: underline;
    transition: all 0.5s ease;
}

.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;
}

.nom input:focus {
    outline: none;
    background: transparent;
}

.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: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 15px;
    padding: 10px 100px 20px 20px;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.card::-webkit-scrollbar {
    display: none;
}

#trie h3 {
    font-size: 27px;
    text-align: left;
    margin: 0;
    margin-top: 5px;
    font-weight: bold;
    width: 100%;
    padding-left: 2%;
}

.element_card {
    scroll-snap-align: start;
    flex: 0 0 200px;
    width: 200px;
    min-width: 0;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 15px;
}

.card-poster {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.element_card h2 {
    font-size: 1.1rem;
    margin: 0;
    height: 1.4em;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin-top: 10px;
}

.element_card h2 a {
    display: block;
    text-decoration: none;
    color: #fff;
    font-size: 0.95em;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 90%;
    margin: 0 auto;
}

.element_card h2 a:hover {
    color: #e50914;
    /* Couleur d'accentuation Netflix-like */
}

.element_card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-8px);
}


/* ── Badges pour l'accueil ── */
.element_card .note {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9em;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffd700;
    padding: 3px 10px;
    border-radius: 12px;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
    font-weight: bold;
}

.element_card .note p {
    margin: 0;
    padding: 0;
}

.info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 80%;
}

.info p {
    margin: 0;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ddd;
    text-align: center;
}

.info button {
    display: none;
    /* Nettoyage d'un vieux bouton si présent */
}

.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;
}

#user {
    display: none;
}

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

.ajout {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    gap: 12px;
    padding: 12px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(16px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease
}

#ajout,
#note {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.05)
}

#ajout {
    color: #ff4d4d;
    border: 1px solid rgba(229, 9, 20, 0.2)
}

#note {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1)
}

#ajout:hover {
    background: #e50914;
    color: #fff;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4)
}

#note:hover {
    background: #fff;
    color: #121212;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3)
}

#ajout::after {
    content: "+";
    font-size: 1.6rem;
    font-weight: bold
}

#note::after {
    content: "\f005";
    font-family: FontAwesome;
    font-size: 1.1rem
}

#ajout::before,
#note::before {
    position: absolute;
    right: 60px;
    padding: 6px 12px;
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    pointer-events: none;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1)
}

#ajout:hover::before {
    content: "AJOUTER UN FILM";
    opacity: 1;
    visibility: visible;
    right: 70px
}

#note:hover::before {
    content: "NOTER UN FILM";
    opacity: 1;
    visibility: visible;
    right: 70px
}

@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%);
    }
}

#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;
}

.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 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 2%;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

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

.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: #000000;
}

#trie {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding-left: 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;
}

.back-btn {
    display: inline-block;
    margin-top: 20px;
    color: #ccc;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #333;
    border-radius: 5px;
    transition: 0.3s;
}

.back-btn:hover {
    color: #fff;
    background-color: #555;
}

.nav-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fefefe;
    text-decoration: none;
    font-size: 95%;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.nav-back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.nav-breadcrumb {
    color: #aaa;
    font-size: 90%;
    font-style: italic;
    margin-left: auto;
    margin-right: 5%;
}

/* ── Hero backdrop ── */
.desc-hero {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.desc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(28, 28, 30, 0.55) 0%,
            rgba(28, 28, 30, 0.90) 50%,
            rgba(28, 28, 30, 1) 100%);
}

/* ── Main layout ── */
.desc-main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

/* ── Card ── */
.desc-card {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: apparition2 0.6s ease-out;
}

/* ── Poster column ── */
.desc-poster-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.desc-poster {
    width: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    display: block;
}

.desc-poster-placeholder {
    width: 220px;
    height: 330px;
    background: #2b2b2b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #555;
}

/* ── Info column ── */
.desc-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    color: #fefefe;
}

/* Meta row (badges) */
.desc-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.desc-type-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 83%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.desc-year {
    color: #aaa;
    font-size: 90%;
}

.desc-note-badge {
    margin-left: auto;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffd700;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 95%;
}

/* Title */
.desc-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #fff;
}

/* Genres */
.desc-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.desc-genre-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 85%;
    color: #ddd;
}

/* Synopsis */
.desc-synopsis h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin: 0 0 10px;
}

.desc-synopsis p {
    font-size: 1rem;
    line-height: 1.75;
    color: #ccc;
    text-align: justify;
    margin: 0;
}

.btn-regarder {
    display: inline-block;
    background: #e50914;
    color: #fff;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.05em;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.btn-regarder:hover {
    background: #c0070f;
    transform: translateY(-2px);
}

@media screen and (max-width: 720px) {
    .desc-card {
        flex-direction: column;
        align-items: center;
        padding: 25px 18px;
    }

    .desc-poster {
        width: 160px;
    }

    .desc-title {
        font-size: 1.5rem;
    }

    .nav-breadcrumb {
        display: none;
    }
}

.desc-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 60vh;
    color: #fefefe;
}

.fond {
    backdrop-filter: blur(7px);
    background-color: rgba(0, 0, 0, 0.705);
    overflow-x: hidden;
}

@media screen and (max-width:1024px) {
    .espace {
        display: none;
    }

    .menu-content {
        justify-content: space-evenly;
    }
}

@media screen and (max-width:720px) {
    .section_accueil h1 {
        margin-left: 2%;
    }

    .nav_accueil2 {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding-top: 10px;
    }

    .nav_accueil {
        margin-bottom: 50px;
    }

    .burger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 20;
        padding-right: 2%;
    }

    .burger-icon span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: white;
        transition: 0.3s;
    }

    .menu-content {
        display: none;
        justify-content: space-between;
        flex-direction: row;
        width: 100%;
        background: rgba(20, 20, 20, 0.95);
        padding: 20px 10px;
        gap: 20px;
        flex-wrap: wrap;
        text-align: center;
    }

    .menu-checkbox:checked~.menu-content {
        display: flex;
    }

    .menu-checkbox:checked~.burger-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-checkbox:checked~.burger-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked~.burger-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .recherche {
        order: 1;
        width: 100%;
    }

    .filtre {
        order: 2;
        width: 40%;
        margin: 0;
        margin-left: 2%;
    }

    .nav_accueil {
        height: 35px;
    }

    .nav_accueil2 a {
        order: 3;
        width: fit-content;
        margin: 0;
        margin-right: 2%;
        font-size: 100%;
        display: flex;
        align-items: center;
    }

    .nav_accueil2 a::before {
        content: "";
        display: inline-block;
        width: 21px;
        height: 21px;
        color: red;
        background-color: currentColor;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'%3E%3C/path%3E%3Cpolyline points='16 17 21 12 16 7'%3E%3C/polyline%3E%3Cline x1='21' y1='12' x2='9' y2='12'%3E%3C/line%3E%3C/svg%3E");
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        mask-size: contain;
    }

    .espace {
        display: none;
    }

    .menu-accueil {
        width: auto;
        padding-right: 5%;
        justify-content: center;
        align-items: center;
    }

    .menu-accueil a {
        font-size: 15px;
    }

    .menu-accueil a::before {
        display: none;
    }


    .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: 300px;
    }

    .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%
    }

    .texte {
        display: none;
    }


    #fin {
        margin-top: 0;
    }

    .card {
        width: 100%;
        margin: 0;
    }

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

    .ajout {
        flex-direction: column;
    }

    .card_plus {
        display: flex;
        flex-direction: column;
        justify-content: center;
        place-items: center;
        position: fixed;
        top: 50%;
        left: 50%;
        width: 90%;
        max-width: 600px;
        min-height: 400px;
        transform: translate(-50%, -50%);
        z-index: 100;
        background: #111;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px;
    }

    .loader {
        animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
        0% {
            opacity: 0.5;
        }

        50% {
            opacity: 1;
        }

        100% {
            opacity: 0.5;
        }
    }

    .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;
            display: grid;
        }

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

        #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 h2 {
        margin-bottom: 15px;
    }

    .section_description .descript {
        margin: 0 25px;
        font-size: 80%;
    }

    .from-description {
        width: 15vw;
        height: 6vh;
    }
}