/* 
    Created on : 9 déc. 2025, 10:00:31
    Author     : Morgan Vivier - https://github.com/rsquatre
*/

@font-face {
    font-family: "Berry Rotunda Regular";
    src: url("../fonts/Berry Rotunda.ttf");
}

:root {
    --header-height: 80px;
    --footer-height: 300px;
}

[data-bs-theme="light"] {
    --bs-body-bg: #FAF9F6 !important;
    --bs-body-bg-rgb: 250, 249, 246 !important;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #282828 !important;
    --bs-body-bg-rgb: 40, 40, 40 !important;
}

#toasts {

    z-index: 9999;
    margin-top: 85px;
    margin-right: 15px;
}

html {
    font-family: Helvetica, sans-serif;
    min-width: 100%;
    max-width: 100%;
    min-height: 100vh;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

main {
    max-width: 100%;
    padding: 105px 5% 55px 5%;
    min-height: calc(100vh - 80px - var(--footer-height)/2);
}

a {
    text-decoration: none !important;
}

header{
    height: var(--header-height);
    width: 100vw;
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: rgba(var(--bs-body-bg-rgb), 0.85);
}

header .navbar-brand span.brand {
    display: inline-block;
    background-clip: text;
    color: transparent;
    background-image: linear-gradient(-45deg, #9b1212, var(--bs-primary) 120%);
    margin-bottom: 0;
}

header .navbar-brand img {
    margin-right: 10px;
    transform: translateY(-10px);
}

header nav {
    font-family: Montserrat;
}

header nav ul{
    padding-top: 8px;
    text-align: right;
    list-style: none;
}


header nav ul.main-nav > li {
    padding: 0 25px;
}

nav li > .nav-animated-link {
    position: relative;
    color: inherit;
    display: inline-block;
}

nav li:hover > .nav-animated-link {
    position: relative;
    color: var(--bs-primary);
    transition: color 0.3s ease-out;

}

nav li.nav-item > .nav-animated-link::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    clip-path: inset(0 50% 0 50%);
    transition: clip-path 0.3s ease;
    
}

nav li.nav-item:hover > .nav-animated-link::before {
    clip-path: inset(0 0% 0 0%);
}

nav li.nav-item{
    position: relative;
}

nav li:not(.excluded).nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px; /* Épaisseur de la bordure */
    background-color: var(--bs-primary);
    transform: translateX(-50%);
    transition: width 0.6s ease;
}

nav li:not(.excluded).nav-item:hover::after {
    width: 70%;
}


h1,h2,h3,h4,h5,h6, .font-title {
    font-family: Montserrat;
}

.banner {
    position: relative;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: white;
    font-size: 20px;
    pointer-events: none;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.banner .join-us {
    position: absolute;
    top: 35%;
    right: 3%;
    left: 60vw;
    z-index: 50;
}

.join-us p {
    padding: 10px 25px 45px 25px;
    text-align: justify;
    border-radius: 5px 5px 0 0;
    background-image: linear-gradient(
        to bottom,
        rgba(var(--bs-body-bg-rgb), 0.8) 0%,
        rgba(var(--bs-body-bg-rgb), 0.5) 85%,
        transparent 100%);
    margin-bottom: -25px;
}


.banner img {
    width: 100%;
    opacity: 0.9;
}

.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--bs-body-bg) 100%
        );
    pointer-events: none;
}

.banner + main {
    position: relative;
    z-index: 1;
    padding-top: 0;
}

.news-card .card-body {
    position: relative;
    margin-top: -50px;

}

.news-card .card-body > * {
    z-index: 1;
}


.news-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(var(--bs-body-bg-rgb), 0.5) 25%,
        var(--bs-body-bg) 100%
        );
    pointer-events: none;
}

.news-card:hover, .join-us button:hover {

    box-shadow:
        0px 0px 20px 7px var(--bs-primary) !important;
    transition: box-shadow 0.5s ease-out;
}

.card-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Petits écrans */
@media (max-width: 768px) {
    .banner + main {
        position: relative;
        z-index: 1;
        margin-top: 0;
    }

    .join-us {
        margin-bottom: 25px;
    }
}

footer {
    position: relative;
    display: block;
    min-height: var(--footer-height);
    background-color: var(--bs-tertiary-bg);
    padding: 55px 25px 55px 25px;
    border-top: 1px solid rgba(25,25,25,0.7);
}

footer .credits {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 75px;
}

footer a {
    
    color: var(--bs-body-color);
}

.btn-discord {
    background-color: #5865F2 !important;
    border-color: #4754e1 !important;
}

.btn-discord:hover {
    box-shadow: 0 0 20px 7px #5865F2;
    transition: box-shadow 0.5s ease-out;
}

.alert ul {
    margin-bottom: 0;
}

.register, .login {
    padding: 10vh;
}

.badge-role_admin {
    background-color: #cc0000;
}

.blog-thumb {
    max-height: 150px; /* PC */
}

/* Mobile */
@media (max-width: 576px) {
    .blog-thumb {
        max-height: 30vh;
    }
}

.news-header {
    margin-bottom: 25px;
    position: relative;
}

.news-header > div {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 15px 25px 0 25px;
    right: 0;
    background-color: rgba(var(--bs-body-color-rgb), 0.7);
    color: var(--bs-body-bg);
    border-radius: 0 0 7px 7px;
    text-align: justify;
}

.news-card{
    border-radius: 3px !important;
}

.news-card .card-img-top{
    border-top-right-radius: 3px !important;
    border-top-left-radius: 3px !important;
}

.news-emoji{
    font-size: 200px;
}


/* Generics */

.btn-discord h2 {
    padding: 13px;
}

.text-justify {
    text-align: justify;
}

.error {
    color: var(--bs-danger);
}

.btn-primary-gradient {
    position: relative;
    background-image: linear-gradient(-45deg, #9b1212, var(--bs-primary) 60%);
    overflow: hidden;
    z-index: 1;
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(-45deg, #9b1212, var(--bs-primary) 90%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.btn-primary-gradient:hover::before {
    opacity: 1;
}

.tooltip-warning { /* a debug */
    --bs-tooltip-bg: var(--bs-warning);
    --bs-tooltip-color: var(--bs-warning-text-emphasis);
}