.foundGame .game, .games a, .pagination a, nav .links .link, nav .logo, nav .logo-item, nav .pages a {
    text-decoration: none
}

.other-games .search, .pub, .pub .pub-el, nav .dropdown {
    position: relative
}

.banner, .bannerH, .other-games, footer, header {
    background-color: #18181c
}

header, nav {
    width: 100%
}

body, nav, nav .logo {
    display: flex
}

.text-logo, .title, nav .logo p {
    font-size: 2em;
    text-wrap: nowrap;
}

.games a, body {
    background-position: center
}

.games a, .games a p {
    overflow: hidden;
    text-overflow: ellipsis
}

footer, header {
    padding: 0 .5em
}

header {
    height: 55px;
    position: fixed;
    top: 0;
    z-index: 5
}

*, :after, :before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    color: #fff;
    font-family: Aldrich, sans-serif;
    -webkit-font-smoothing: antialiased
}

body {
    background-image: url("https://image.noelshack.com/fichiers/2024/01/2/1704208277-01010011-01010100-01000111.jpg");
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    color: #fff;
    flex-direction: column
}

::-webkit-scrollbar {
    width: 18px
}

::-webkit-scrollbar-track {
    background: #18181c
}

::-webkit-scrollbar-thumb {
    height: 56px;
    border-radius: 10px;
    border: 4px solid transparent;
    background-clip: content-box;
    background-color: #373952
}

/* Base styles remain unchanged */
nav {
    height: 100%;
    justify-content: space-between;
    align-items: flex-start;
}

nav .logo {
    align-items: center;
    justify-content: start;
    width: 33.333%;
}

.games a p, .search, .text-logo, nav .dropdown-title, nav .logo-item {
    display: flex;
    align-items: center;
}

nav .logo-separation {
    margin: 0 16px;
}

.text-logo {
    height: 100%;
    justify-content: center;
}

nav .logo img {
    height: 55px;
    width: auto;
}

.logo-item .logo-mymovix {
    height: 40px;
    margin-left: 10px;
}

.search {
    width: 33.333%;
    height: auto;
    justify-content: flex-start;
    flex-direction: column;
}

.search input {
    height: 35px;
    width: 500px;
    border: none;
    border-radius: 2em;
    background-color: #373952;
    outline: 0;
    padding-left: 15px;
    font-size: 1.2em;
    margin: 10px 0;
}

.banner, .bannerH {
    width: 58em;
    border-radius: 12px;
    margin: 0 auto 40px;
}

.search input::placeholder {
    color: #aaadbe;
    vertical-align: center;
}

.search .foundGame {
    background: #373952;
    width: 500px;
    max-height: 500px;
    overflow-y: scroll;
    overflow-x: hidden;
    border-radius: 15px;
    display: none;
}

.games a, .pub-droite .pub-el, .pub-gauche .pub-el {
    background-repeat: no-repeat;
    background-size: cover;
}

.foundGame .game {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 1em;
    padding-right: 10px;
    height: 58px;
    width: 465px;
    gap: 10px;
}

.foundGame .game:not(:first-child) {
    border-top: 1px solid #000;
}

.foundGame .img-title-game-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foundGame .img-game-search {
    width: auto;
    height: 50px;
}

nav .pages {
    width: 33.33%;
    display: flex;
    justify-content: flex-end;
}

.banner, .bannerH, .games a {
    height: 100px;
}

nav .pages a {
    height: fit-content;
    display: flex;
    margin-right: 1em;
    font-size: 1.2em;
}

nav .dropdown {
    display: flex;
    justify-content: end;
}

nav .dropdown .separation {
    position: relative;
    margin-right: 1.3em;
}

nav .dropdown .separation::after {
    content: "";
    width: 2px;
    height: 25px;
    background-color: #fff;
    top: -1px;
    right: -13px;
    position: absolute;
}

nav .dropdown-menu {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    justify-content: flex-end;
}

nav .dropdown-title {
    cursor: pointer;
    margin: 16px 10px 16px 0;
}

nav .dropdown-title p {
    font-size: 1.2em;
    margin-right: 10px;
    text-wrap: nowrap;
}

nav .dropdown-title img {
    height: 15px;
}

nav .dropdown-menu .links {
    position: absolute;
    top: 55px;
    display: none;
    background-color: rgba(55, 57, 82, .8);
    backdrop-filter: saturate(180%) blur(2px);
    width: 55%;
    text-align: center;
    flex-direction: column;
}

nav .links .link {
    font-size: 1em;
    margin: 10px auto;
}

/* Responsive Media Queries for all elements */

/* Large screens (1200px and below) */
@media screen and (max-width: 1200px) {
    .banner, .bannerH {
        width: 90%;
    }

    .search input {
        width: 400px;
    }

    .search .foundGame {
        width: 400px;
    }

    .foundGame .game {
        width: 365px;
    }

    .other-games {
        width: 90%;
        padding: 20px;
    }

    .other-games .games {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .other-games .multijoueurs-games {
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
    }

    .games a {
        width: 100%;
    }
}

/* Medium screens (992px and below) */
@media screen and (max-width: 992px) {
    /* Navigation */
    nav {
        flex-wrap: wrap;
    }

    nav .logo {
        width: 50%;
    }

    nav .pages {
        width: 50%;
    }

    .search {
        width: 100%;
        order: 3;
        margin: 0 auto;
        align-items: center;
    }

    .search input {
        width: 90%;
        max-width: 500px;
    }

    .search .foundGame {
        width: 90%;
        max-width: 500px;
    }

    .foundGame .game {
        width: calc(100% - 20px);
        margin-left: 10px;
    }

    .text-logo {
        font-size: 1.7em;
    }

    nav .dropdown-title p {
        font-size: 1.1em;
    }

    nav .pages a {
        font-size: 1.1em;
    }

    /* Main content */
    main {
        flex-direction: column;
    }

    .pub {
        display: none;
    }

    .other-games .games {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .other-games .multijoueurs-games {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .banner, .bannerH {
        height: 80px;
    }

    .pagination {
        width: 90%;
        max-width: 575px;
    }
}

/* Tablet screens (768px and below) */
@media screen and (max-width: 768px) {
    /* Header and Navigation */
    header {
        height: auto;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav .logo {
        width: 100%;
        justify-content: center;
    }

    nav .logo-separation {
        margin: 0 8px;
    }

    nav .pages {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .search {
        margin-top: 10px;
    }

    nav .dropdown-menu {
        justify-content: center;
    }

    nav .dropdown-menu .links {
        width: 80%;
    }

    nav .dropdown {
        justify-content: center;
    }

    /* Main content */
    main {
        margin-top: 110px;
    }

    .other-games {
        padding: 15px;
    }

    .other-games .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .other-games .multijoueurs-games {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .games a {
        height: 90px;
    }

    .title {
        font-size: 1.7em;
    }

    .pagination {
        height: 60px;
    }

    .pagination a {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }

    /* Footer */
    footer {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    footer .discord,
    footer .rights-reserved,
    footer .trustpilot-widget {
        width: 100%;
        justify-content: center;
        margin: 5px 0;
    }

    footer .rights-reserved {
        font-size: 1.1em;
    }
}

/* Base header and navigation styles - keep existing styles */

/* Responsive styles for the header and navigation */
@media screen and (max-width: 1500px) {
    header {
        height: auto;
    }

    nav {
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav .logo {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        flex-wrap: wrap;
        flex-direction: row;
    }

    nav .pages {
        width: 100%;
        justify-content: center;
    }

    .logo-item p {
        white-space: nowrap;
    }

    nav .logo img {
        height: 45px;
    }

    .logo-item .logo-mymovix {
        height: 35px;
    }

    nav .dropdown-menu {
        justify-content: center;
        flex-wrap: wrap;
    }

    nav .dropdown-title p {
        margin-right: 5px;
        white-space: nowrap;
    }

    .link {
        font-size: 0.9em;
        white-space: nowrap;
        margin: 0 5px;
    }

    main {
        margin: 185px 0 0 !important;
    }
}


main {
    display: flex;
    flex: 1;
    flex-direction: row;
    margin: 55px 0 0
}


.update-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: rgba(24, 24, 28, 0.7);
    padding: 10px 0;
    margin: 10px 0;
}

.update-container {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    will-change: transform;
}

.update-item {
    text-decoration: none;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 18px;
    background: #373952;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

/* Pause l'animation au survol du conteneur */
.update-banner:hover .update-container {
    animation-play-state: paused;
}


.banner-no-margin {
    margin: 0 auto !important;
}


.pub {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    width: 100%
}

.pub .pub-el {
    margin: 0 auto;
    height: 300px;
    width: 120px
}

.pub-gauche .pub-el {
    background-image: url("https://i.imgur.com/MDtyWMz.png");
    background-position: center
}

.pub-droite .pub-el {
    background-image: url("https://i.imgur.com/bPRn2nR.jpeg");
    background-position: center
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center
}

.instant-gaming-banner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instant-gaming-banner .loading {
    height: 100px;
    object-fit: contain;
}

.reseaux {
    width: 65px;
    height: 65px;
}

.bannerH {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.games a p, .pagination {
    justify-content: center
}

.title {
    margin-bottom: 17px
}

.other-games {
    height: auto;
    width: 1050px;
    border-radius: 25px;
    margin: 17px auto;
    padding: 30px
}

.other-games .games {
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    gap: 10px
}

.other-games .multijoueurs-games {
    display: grid;
    grid-template-columns:repeat(8, 1fr);
    row-gap: 10px
}

.multijoueurs {
    width: fit-content
}

.games a {
    width: 190px;
    border-radius: 8px;
    position: relative;
}

.games a .game-multijoueur-image {
    position: absolute;
    right: 11px;
    bottom: 4px;
    height: 18px;
}

.games a p {
    width: 100%;
    height: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, .73);
    opacity: 0;
    transition: opacity .25s
}

.pagination, .pagination a {
    align-items: center;
    display: flex
}

.games a p:hover {
    opacity: 1
}

.other-games .search {
    margin: 0 auto 40px;
    width: auto
}

.other-games .search input {
    margin: -.5em 0 .1em
}

.other-games .search .foundGame {
    position: absolute;
    top: 35px
}

.pagination {
    border-radius: 93px;
    background: #18181c;
    width: 575px;
    height: 70px;
    margin: 0 auto 100px
}

.pagination a {
    width: 48px;
    height: 48px;
    border-radius: 48px;
    justify-content: center;
    margin: 0 auto
}

.pagination a.active {
    background-color: #373952;
}

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

footer .space {
    width: 33.33%;
    height: 100%
}

footer .discord {
    width: 33.33%;
    display: flex;
    justify-content: left
}

footer .discord img {
    height: 65px;
    margin: 0 auto
}

footer .rights-reserved {
    width: 33.33%;
    display: flex;
    justify-content: end;
    font-size: 1.3em
}

.ql-editor li {
    list-style-type: decimal !important;
    padding-left: 0em !important;
}

.coffre {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url("https://i.imgur.com/CPQmhSO.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 125px;
}

.coffre video {
    height: 100px;
    width: auto;
    position: absolute;
    bottom: 9px;
    left: 160px;
}

.discord-logo {
    position: fixed;
    bottom: 0;
    left: 4px;
}

.discord-logo::after {
    position: absolute;
    bottom: 90px;
    left: 0;
    opacity: 1;
    width: 200px;
    content: "Pour de l'aide n'hésitez pas à rejoindre le serveur 😉";
    background: #5158d6;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    white-space: pre-line;
    box-shadow: 0 8px 32px 0 #000a;
    text-shadow: 0 2px 2px #0004;
    transition: opacity 0.2s;
    z-index: 10;
    display: flex;
}


.discord-logo::before {
    content: "";
    position: absolute;
    left: 15px;
    top: calc(-90px + 100% - 2px);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 0 solid transparent;
    border-top: 16px solid #5158d6;
    opacity: 1;
    transition: opacity 0.2s;
    z-index: 11;
}


.insta-logo {
    position: relative;
}

.insta-logo::after {
    position: absolute;
    bottom: 90px;
    left: 0;
    opacity: 1;
    width: 200px;
    content: "Pour demander un jeu, tout se passe sur le canal insta 🎮";
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    white-space: pre-line;
    box-shadow: 0 8px 32px 0 #000a;
    text-shadow: 0 2px 2px #0004;
    transition: opacity 0.2s;
    z-index: 10;
    display: flex;
}

.insta-logo::before {
    content: "";
    position: absolute;
    left: 15px;
    top: calc(-90px + 100% - 2px);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 0 solid transparent;
    border-top: 16px solid #f09433;
    opacity: 1;
    transition: opacity 0.2s;
    z-index: 11;
}


.discord-logo::after,
.discord-logo::before {
    opacity: var(--tooltip-opacity, 1);
}

.insta-logo::after,
.insta-logo::before {
    opacity: var(--tooltip-opacity, 0);
}


.yt-logo {
    margin-left: 60px;
}

.ig-dynamic-banner {
    height: 110px;
    width: 463px;
}

@keyframes finalSelection {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes winGame {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.3);
        filter: brightness(1.5);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}
