

.menu {
    display: flex;
    justify-content: center;
    background-color: var(--blue-900);
    position: fixed;
    top: 0;
    height: 60px;
    margin: 0;
    width: 100%;
    padding: 0;
    text-align: center;
    z-index: 1;
}

.menu li {
    display: inline-block;
}

.menu li .menu-dropdown {
    display: none;
    width: 100%;
    background: linear-gradient(180deg, var(--blue-900) 0%, var(--blue-600-50) 100%);
    position: absolute;
    left: 0;
}

.menu li:hover .menu-dropdown {
    display: block;
}

.menu li a {
    color: var(--blue-100);
    text-decoration: none;
    padding: 21px 8px;
    display: block;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu li.login a {
    font-size: 12px;
    padding: 21px 24px 21px 24px;
    line-height: 19px;
    position: relative;
}

.menu li.login a:after {
    animation-name: loginSlideOut;
    animation-duration: 0.25s;
    content: url(/images/svg/login.svg);
    position: absolute;
    top: 21px;
    right: 5px;
}

.menu li.login a:hover:after {
    animation-name: loginSlideIn;
    animation-duration: 0.25s;
    right: 0;
}

.menu li:hover a.hasdropdown {
    padding: 20px 8px 18px 8px;
}

.menu li:hover a.hasdropdown:after {
    border-bottom: solid 3px var(--red-700);
    display: block;
    content: "";
    animation-name: lineSlideIn;
    animation-duration: 0.4s;
}


.menu-dropdown-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    height: 320px;
    text-align: center;
    grid-gap: 7px;
    width: clamp(400px, 90%, 1200px);
    margin: 0 auto;
    padding: 20px 0;
}

.magie .menu-dropdown-content {
    grid-template-columns: 2fr 1fr;
    height: 320px;
    grid-gap: 6px;
    position: relative;
}

.zone-grimoire, .zone-magie, .zone-sort {
    display: grid;
    grid-gap: 7px;
    height: fit-content;
}

.zone-sort {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-column: 2 span;
    padding: 0 35px;
}

.zone-sort::after,.zone-sort::before {
    content: "SORTS";
    position: absolute;
    width: 25px;
    height: 99px;
    background: var(--yellow-200);
    top: 20px;
    right: 3px;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blue-900);
    line-height: 25px;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    text-orientation: upright;
}

.zone-sort::before {
    left: 3px;
}

.zone-grimoire {
    grid-template-columns: 1fr 1fr 1fr;
    position: relative;
}

.grimoire-non-connecte h2 {
    line-height: 80px;
}

.menu li .grimoire-non-connecte.logged-in, .menu li.login.logged-in {
    display: none;
}

.zone-magie {
    grid-template-columns: 1fr 1fr 1fr;
}

.bestiaire .menu-dropdown-content {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.bestiaire .menu-dropdown-content, .races .menu-dropdown-content {
    height: 160px;
}

.aventure .menu-dropdown-content {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}

.equipement .menu-dropdown-content {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.classes .menu-dropdown-content {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
}

.images {
    background-size: cover;
    border-radius: 2%;
    background-position: center 0;
    background-repeat: no-repeat;
    aspect-ratio: 180/200;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.bestiaire .images {
    aspect-ratio: 200/200;
}

.aventure .images {
    aspect-ratio: 250/200;
}

.equipement .images {
    aspect-ratio: 300/200;
}

.classes .images {
    aspect-ratio: 185/200;
}

.magie .images {
    aspect-ratio: 300/250;
}

.zone-magie .images {
    aspect-ratio: 300/255;
}

.images:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0px 2px 8px 3px #000000;
    animation-name: cardImagesScaleIn;
    animation-duration: 0.25s;
}

.zone-magie a:hover {
    padding: 190px 0 0 0;
}

.grimoire-menu:hover {
    box-shadow: none;
}

@keyframes cardImagesScaleIn {
    0% {transform: scale(1.0);}
    100% {transform: scale(1.15);}
}

@keyframes cardImagesScaleOut {
    0% {transform: scale(1.15);}
    100% {transform: scale(1);}
}

@keyframes lineSlideIn {
    0% {width: 0;}
    100% {width: 100%;}
}

@keyframes loginSlideIn {
    0% {right: 5px}
    100% {right: 0}
}

@keyframes loginSlideOut {
    0% {right: 0}
    100% {right: 5px}
}

.images div a {
    padding: 128px 0 0 0;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: bold;
}

.images div a .image-text {
    background: var(--red-700);
    display: block;
    padding: 4px 0;
    margin: 4px;
}

.images > div {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.banniere:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 25px;
    background: var(--yellow-200);
    top: 7px;
    right: -20px;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blue-900);
    line-height: 27px;
    transform: rotate(45deg);
}

.zone-sort .banniere:after {
    width: 70px;
    height: 15px;
    font-size: 10px;
    line-height: 17px;
}

.beta:after {
    content: "beta";
}
.alpha:after {
    content: "alpha";
}

.disable {
    filter: saturate(20%);
}

.disable:hover {
    transform: scale(1);
    z-index: 0;
    box-shadow: none;
    animation: none;
}

.disable:before {
    content: attr(data-date);
    position: absolute;
    width: 200px;
    height: 35px;
    background: var(--yellow-200);
    top: 40px;
    right: -42px;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--blue-900);
    line-height: 37px;
    transform: rotate(45deg);
}

body {
    width: 100%;
    height: 100%;
    background-image: url(/images/menu/fond.webp);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.grimoire-non-connecte {
    position: absolute;
    grid-column: 3 span;
    background: var(--blue-600-75);
    width: 100%;
    height: 100%;
    z-index: 1;
    text-align: center;
    border-radius: 4px;
    color: var(--blue-100-75);
}