/* ===== STYLE GENERAL ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    margin: 0;
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Verdana;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.hidden-element { display: none !important; }

/* ===== NAVBAR ===== */
#navbar {
    width: 100%;
    margin-top: 0;
    padding-top: 0%;
    background-color: #3b6cf37e;
    border-bottom: 2px solid #37498959;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    box-shadow: #0072ff 0px -1px 20px 0px;
}

#nav-left {
    display: flex;
    align-items: center;
    padding: 0;
}

#nav-left a {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0;
    display: block;
}

#nav-left a:hover {
    border-radius: 0;
    padding: 0px;
    transition: transform 0.3s ease;
}

#nav-middle {
    float: left;
    padding: 10px 8px;
}

#nav-right {
    float: right;
    padding: 6px 8px;
    line-height: 26px;
}

#navbar #logo {
    height: 50px;
    width: auto;
    display: block;
    padding: 0;
    margin: 0;
}

#navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#navbar li {
    display: inline;
}

#navbar a {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 6px 14px;
    margin: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-shadow: #000000 -1px 0px 20px;
}

#navbar .nav-item-select select {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 6px 14px;
    margin: 5px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-shadow: #000000 -1px 0px 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    width: 95px;
    font-family: Verdana, Arial;
    position: relative;
    z-index: 100; 
}

#navbar .nav-item-select select:hover {
    background-color: #ffffff9d;
    color: #000000;
    border-radius: 50px;
    box-shadow: #ffffff93 0px 0px 20px;
    transition: transform 0.4s ease;
    transform: scale(1.2);
}

/* Lorsque l'option est sélectionnée */
#navbar .nav-item-select select:focus {
    background-color: #ffffff9d;
    color: #000000;
    border-radius: 50px;
    box-shadow: #ffffff93 0px 0px 20px;
    transition: transform 0.4s ease;
    transform: scale(1.2);
}


#navbar a:hover {
    background-color: #ffffff9d;
    color: #000000;
    border-radius: 50px;
    box-shadow: #ffffff93 0px 0px 20px;
    transition: transform 0.4s ease;
    transform: scale(1.2);
}

/* #navbar a.active {
    background-color: #ffffff9d;
    color: #000000;
    border-radius: 50px;
} */

#navbar a.login {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    border-top: 2px solid #ffffff30;
    border-left: 2px solid #77a2bbba;
    border-right: 2px solid #6c88d996;
    border-bottom: 2px solid #2fa2c585;
    border-radius: 5px;
    text-shadow: #000000 -1px 0px 20px;
    box-shadow: #0054bb 0px 0px 20px 0px;
}

#navbar a.login:hover {
    background-color: #0099ff;
    color: #ffffff;
}

/* ===== Accueil ===== */
.content-box {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 84, 187, 0.05), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(10px);
}

.content-box p {
    color: #3b6cf3bd;
    font-size: 16px;
}

.main-text {
    font-size: 30px;
    font-weight: bold;
    color: #95aef5 !important;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.luna-admin, .luna-games, .luna-anime, .luna-trad, .luna-AI {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.luna-admin ul li {
    flex: 0 1 calc(33.33% - 10px);
    min-width: fit-content;
    text-align: center;
}
.luna-admin:hover, .luna-games:hover, .luna-anime:hover, .luna-trad:hover, .luna-AI:hover {
    /* transform: translateY(-5px); */
    background: rgba(255, 255, 255, 0.06);
    border-color: #3b6cf3;
}

.titre-admin, 
.titre-games, 
.titre-anime, 
.titre-trad,
.titre-AI {
    font-weight: bold;
    font-size: 20px;
    color: #ffffff !important;
    margin-bottom: 20px;
    margin-top: 0;
    display: flex;
    align-items: center;
}

#section-middle ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

#section-middle li {
    background: rgba(59, 108, 243, 0.2);
    color: #95aef5;
    padding: 4px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid rgba(59, 108, 243, 0.3);
}

.sub-text {
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
    color: #ffffff;
}

.button-group {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* BOUTON STYLE*/
.btn-action {
    padding: 12px 30px;
    background-color: #3b6cf3;
    border: none;
    border-radius: 50px; /* Forme pilule moderne */
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 108, 243, 0.4);
}

.btn-action:hover {
    background-color: #5a87ff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 108, 243, 0.6);
}

.btn-action:active {
    border: 3px inset #ffffff;
}

.btn-alt {
    background-color: #4b0082;
    color: #ffffff;
}

/* ===== CONTENU PRINCIPAL ===== */
main {
    width: 100%;
    margin: 0;;
    padding: 0;
    box-shadow: #000000a6 0px 6px 20px 0px;
}

#section-top {
    width: 100%;
    height: 250px;
    margin: 0;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 0;
    box-shadow: #b3c5f721 0px -10px 20px 0px;
    margin-bottom: 0px;
    position: relative;
}

#section-top h1 {
    margin-top: 70px;
    margin-bottom: 0;
    color: #ffffff;
    font-size: 50px;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    text-shadow: #2d2f63 -1px 0px 10px;
    display: inline-block;
}

.add p {
    font-size: 20px;
    color: #ffffff;
    text-align: center;
    margin-top: 0px;
    border-radius: 10px;
    border: rgba(114, 110, 110, 0.452) 2px solid;
    display: inline-block;
    padding: 5px 15px;
    background-color: #2a428573;
}



#section-middle {
    width: 100%;
    padding: 60px 0;
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    position: relative;
    box-shadow: #1875ff1f 0px 20px 20px;
}

#section-login {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.form-container {
    width: 100%;
    margin: 0;
    max-width: 600px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(0, 84, 187, 0.05), rgba(0, 0, 0, 0.2));
    backdrop-filter: blur(10px);
}

.form-container h1 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: #3b6cf3 0px 0px 10px;
}

.field {
    flex-direction: column;
    padding: 15px 20px;
}

.field p {
    color: #555;
    font-size: 10px;
    margin: 0;
    padding: 0;
}

.field label {
    width: 100%;
    margin-bottom: 8px;
    color: #95aef5;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field input[type="text"], 
.field input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(59, 108, 243, 0.3);
    border-radius: 8px;
    padding: 10px;
    color: white;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.field input:focus {
    border-color: #3b6cf3;
    box-shadow: 0 0 10px rgba(59, 108, 243, 0.2);
}

.field.center {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 10px;
}

/* ===== MESSAGE ALERTS ===== */
.message-box {
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 14px;
    font-weight: bold;
    min-height: 20px;
    padding: 0 10px;
}

.message-error {
    color: #ff5555; /* Rouge pour les erreurs */
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.message-success {
    color: #00ff99; /* Vert pour succès */
    text-shadow: 0 0 5px rgba(0, 255, 153, 0.3);
}

.login-footer-links a {
    text-decoration: none;
    color: #3b6cf3;
}

.login-footer-links a:hover{
    transform: scale(1.05);
    color: #3b6cf3;
    text-shadow: 0 6px 10px rgba(59, 108, 243, 0.6);
}

button {
    padding: 6px 18px;
    font-size: 12px;
    font-weight: bold;
    background-color: #00ff99;
    border-top: 2px solid #66ffcc;
    border-left: 2px solid #66ffcc;
    border-bottom: 2px solid #006644;
    border-right: 2px solid #006644;
    cursor: pointer;
}

button:active {
    border-top: 2px solid #006644;
    border-left: 2px solid #006644;
    border-bottom: 2px solid #66ffcc;
    border-right: 2px solid #66ffcc;
}

footer {
    background-color: #0d0d0d;
    border-top: 1px solid rgba(101, 106, 121, 0.4);
    padding: 60px 20px;
    margin-top: 0;
    box-shadow: #1875ff14 0px -20px 20px;
    position: relative;
    z-index: 100;
}

.footer-container {
    max-width: 1100px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footerbar {
    background-color: lab(7 -0.47 -0.17);
    border-top: 1px #656a796b solid;
    margin: 0;
    padding: 100px;
}

.Legal {
    display: flex;
    flex-direction: column;
    float: right;
}

.Legal p {
    font-weight: bold;
    font-size: large;
    float: right;
}

.Service {
    display: flex;
    flex-direction: column;
    float: left;
    padding-bottom: 10px;
}

.Service p {
    font-weight: bold;
    font-size: large;
    float: left;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
}

.footer-description {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.copyright, .copyright-date {
    color: #555;
    font-size: 12px;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.column-title {
    font-weight: bold;
    padding-left: 4px;
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
}

.column-title::after {
    content: '';
    display: block;
    width: 75px;
    height: 2px;
    background-color: #3b6cf3;
    margin-top: 5px;
}

.btn-footer {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    padding-left: 4px;
}

.btn-footer:hover {
    transform: scale(1.05);
    color: #3b6cf3;
    text-shadow: 0 6px 20px rgba(59, 108, 243, 0.6);
}

.footer-item-select select {
    background-color: transparent;
    color: #a0a0a0;
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    width: 120px;
    outline: none;
    transition: all 0.3s ease;
}

.footer-item-select select option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px;
}

.footer-item-select select option:disabled {
    color: #555;
}

.footer-item-select select:hover {
    transform: scale(1.05);
    color: #3b6cf3;
    text-shadow: 0 6px 20px rgba(59, 108, 243, 0.6);
}

.footer-item-select select:hover {
    transform: scale(1.05);
    color: #3b6cf3;
    text-shadow: 0 6px 20px rgba(59, 108, 243, 0.6);
}

/* ===== RESPONSIVE DESIGN (MOBILE) ===== */
#nav-mobile {
    display: none;
}

#nav-mobile select {
    padding: 8px 15px;
    background-color: #293f7f;
    color: white;
    border: 2px solid #ffffff30;
    border-radius: 5px;
    font-weight: bold;
    font-family: Verdana, Arial;
}

/* ===== RESPONSIVE FOOTER ===== */
@media screen and (max-width: 768px) {

    footer {
        margin: 0 !important;
        padding: 40px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .footer-links {
        justify-content: center;
        gap: 40px;
    }

    .column-title::after {
        margin: 5px auto 0;
    }
}

@media screen and (max-width: 1045px) {
    #nav-middle {
        display: none;
    }

    #nav-mobile {
        display: block;
        padding: 10px;
        width: auto;
    }

    #navbar {
        flex-direction: row; 
        justify-content: space-between;
        padding: 0 15px;
        align-items: center;
    }
    
    #navbar #logo {
        height: 40px;
    }

    .content-box {
        margin: 20px;
        padding: 20px;
    }
    
    #section-middle ul {
        justify-content: center;
    }

    main {
    width: 100%;
    margin-left: 0;
}
}