/* Couleurs APT */
:root {
    --primary: #005556; 
    --primary-rgba: 0, 85, 86;
}

/* Background APT */
body:has(#logincontent) {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            -68deg,
            var(--primary) 0% 55%,
            #003C3D 55%,
            var(--primary) 57% 100%
        );
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Colonne gauche virtuelle avec logo centré */
body:has(#logincontent)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('./Logo_140x39px.svg') no-repeat center center;
    background-size: 300px auto;
}

/* Décale le contenu vers la droite */
#wrap:has(#logincontent) {
    position: relative;
    padding-left: 50% !important;
    padding: 2rem;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh !important;
    overflow-y: auto !important;
}

/* === Mobile / Petits écrans === */
@media (max-width: 992px) {
    body:has(#logincontent) {
        background: 
            url('./Logo_140x39px.svg'),
            var(--primary); /* fond uni */
        background-size: 140px, cover;
        background-repeat: no-repeat;
        background-position: top 2% left 2%;
    }

    /* Supprimer le bloc ::before sur mobile */
    body:has(#logincontent)::before {
        content: none;
    }

    /* Formulaire normal sur toute la largeur */
    #wrap:has(#logincontent) {
        padding: 0 !important;
        max-height: 100%;
        overflow-y: scroll;
    }
}



/* Masquage du header et footer */
#header,
#footer {
    display: none !important;
}

/* 
    Page de connexion
*/

/* Centrer le formulaire et replacer l'erreur en haut */
#logincontent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    min-height: 100%;
    gap: 1rem;
    margin-top: auto !important;
    margin-bottom: auto !important;
    overflow-y: auto;
}

/* Boîte de login */
#logincontent > .card {
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.2);
    max-width: 400px;
    width: 100%;
}

/* Masquage de cette div qui possède un margin */
#logincontent #lform > .actions {
    display: none;
}

/* Changement de couleur de l'aura du form */
#logincontent .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgba), 0.25);
}

/* Input-group plus jolie */
#logincontent .input-group-text {
    background-color: var(--primary);
    color: white;
    border: none;
}

/* Bouton se connecter */
#logincontent button.btn-success {
    width: 100%;
    background-color: var(--primary);
    border-color: #ced4da;
}

#logincontent button.btn-success:hover {
    background-color: rgba(var(--primary-rgba), 0.8);
}

#logincontent button.btn-success:focus,
#logincontent button.btn-success:active {
    background-color: var(--primary) !important;
    border-color: #ced4da !important;
}

/* Classes utilitaires */
.mw-80 {
    max-width:80%;
}

.bg-opacity-65 {
    background-color:rgba(255, 255, 255, 0.65) !important;
}

/* 
    Dashboard
*/

/* #menucontent .navbar,
#menucontent .category {
    margin-bottom: 1rem;
}

#menucontent .category {
    background-color: rgba(255, 255, 255, 0.75);
}

#menucontent .category > .card-header > .card-title {
    margin-bottom: 0;
}

#menucontent .category > .card-body .appname {
    color: var(--primary);
    text-align: center;
}

#menucontent .category > .card-body .appdesc {
    text-align: center;
}

#menucontent .category > .card-body > .row > .col-md-4 > .application > a > .card-body > .row > .col-3 {
    display: flex;
    justify-content: center;
    align-items: center;
} */