﻿/* Cadres */

body,
body > header,
body > #pageMiddle,
body > #pageMiddle > #mainMenu,
body > #pageMiddle > #pageContent,
body > footer {
    margin: 0;
    padding: 0;
    padding-bottom: 24px; /* pour bouton enregistrer (pas en dessous du footer) */
    height: initial;
    width: initial;
    min-height: initial;
    min-width: initial;
    max-height: initial;
    max-width: initial;
}

body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-width: 1200px;
    padding-top: 100px;
    padding-bottom: 30px;
}

body > header {
    flex: 0 0 100px;
    display: block;
    position: fixed;
    width: 100%;
    height: 100px;
    padding: 10px 15px 20px 20px;
    top: 0px;
}

body > #pageMiddle {
    flex: 1 1 100px;
    display: flex;
    flex-direction: row;
}

body > #pageMiddle > #mainMenu {
    flex: 0 0 210px;
    display: block;
    position: relative;
    overflow: hidden;
    z-index: 10 !important;
}

body > #pageMiddle > #pageContent {
    flex: 1 1 100px;
    display: block;
    position: relative;
}

body > footer {
    flex: 0 0 30px;
    display: block;
    position: fixed;
    padding: 2px -5px 10px 20px;
    overflow: hidden;
    width: 100%;
    height: 30px;
    bottom: 0px;
}

.dropdown-menu {
    position: absolute;
    z-index: 1000;
}

/* Style */

#manageUser {
    margin-right: 25px;
}

body > header {
    background: #2b579a;
    z-index: 100 !important;
}

body > header *
{
    color: White;
}

body > header .breadcrumb-item::before
{
    color: White !important;
}

body > header > .breadcrumb 
{
    position: absolute;
    bottom: 0px;
    background: none;
    border: 0px;
    margin: 0px;
}

body > header > #shortcut 
{
    position: absolute;
    bottom: 10px;
    right: 10px;
}

body > header > #shortcut > *
{
    margin-left: 5px;
}

    body > header > #shortcut > #menuSites.hidden {
        visibility: hidden;
    }

body > header > #shortcut .dropdown {
    margin-right: 15px;
}

body > header > #shortcut .dropdown-toggle::after 
{
    color: hsl(0, 100%, 70%);
    color: Red;
    vertical-align: -5px;
    margin-left: -6px;
}

body > header > #shortcut .dropdown .badge 
{
    position: absolute;
    top: -10px;
    margin-left: -18px;
    font-size: 70%;
    padding: 4px 7px 5px 6px;
}

body > header > #login 
{
    position: absolute;
    top: 10px;
    right: 10px;
}

body > header > #login .fa 
{
    font-size: small;
}

body > header a:hover,
body > header > #login:hover,
body > header > #login:hover .fa,
body > header .fa:hover,
a:hover
{
    color: Lavender;
    cursor: pointer;
}

body > nav
{
    z-index: 1;
    background: #D4E4F7;
}

body > nav a
{
    color: #007bff !important;
}

body > nav a:hover 
{
    color: #236AB9 !important;
}


#menu ul {
    height: inherit !important;
}

#menu ul {
    height: inherit !important;
}

#menu li {
    padding: 0 !important;
    border: none !important;
    border-bottom: 1px solid #ccc !important;
    z-index: 200 !important;
}

#menu li a {
    color: #222;
}

#menu li ul {
    position: absolute;
    visibility: hidden;
    left: 100%;
    top: -1px;
    background-color: #fff !important;
    opacity: 1;
    /*transition: opacity 0.1s linear;*/
    /*border-top: 1px solid rgba(69, 74, 84, 0.7);*/
    /*margin-left: -5px;*/
    border-top: none !important;
    box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.5) !important;
    /*box-sizing: border-box !important;*/
    /*border-left: 2px solid #eee !important;*/
    border-left: 0 !important;
    z-index: 100 !important;
}

#menu li ul li {
    position: relative;
    z-index: 200 !important;
    background-color: inherit;
    border-left: 3px solid #fff !important;
    background-color: #fff !important;
    border-left: 3px solid #fff !important;
}

#menu li ul li:hover {
    background-color: inherit;
    border-left: 3px solid #2B579A !important;
}

body > #pageContent
{
    /*background-color: Fuchsia;*/
}

body > footer 
{
    z-index: 100;
    background-color: black;
    /*text-align: right;*/
}

body > nav li[data-isactive="true"]
{
    background-color: rgba(0,0,0,0.05);
}

#log 
{
    display: block;
    position: fixed;
    bottom: 29px;
    width: 100%;
    z-index: 100;
    opacity: 0.85;
}
#log > div 
{
    position: relative;
    border: 1px solid black;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    box-shadow: 0 0 8px rgba(0,0,0,0.7);
    background-color: #236AB9;
}
#log > div > header 
{
}
#log > div > div
{
    max-height: 500px;
    background-color: white;
    overflow-y: scroll;
    overflow-x: hidden;
}

.btn-sm
{
    margin: 2px 0px;
}

/*.md-transition-in{
    min-width:1000px;
    min-height:500px;
}
*/
.dialog-small md-dialog {
    width: 300px !important;
    height: 200px !important;
    max-width: none !important;
    max-height: none !important;
}

.dialog-medium md-dialog {
    width: 600px !important;
    height: 400px !important;
    max-width: none !important;
    max-height: none !important;
}

.dialog-large md-dialog {
    width: 900px !important;
    height: 600px !important;
    max-width: none !important;
    max-height: none !important;
}

.icon-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
    margin: 0 0.5rem;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.icon-button:hover {
    transform: scale(1.2);
    color: #FFD700;
}

.icon-button:focus {
    outline: 2px solid #fff;
}

.home-link {
    color: white;
    font-size: 1.3rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-link:hover {
    color: #03A9F4; /* bleu clair moderne */
    transform: scale(1.2); /* léger zoom */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.home-link i {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.home-link:hover i {
    transform: scale(1.2);
    color: #03A9F4;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    /*    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;*/
}

h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

/*button, .btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;*/
    /*text-transform: uppercase;*/
/*}*/

/*Règle appliquée uniquement aux boutons sans icônes*/
.btn:not(.fa):not(.fas):not(.fa-solid) {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ——— ALERT (petit toast en haut-droite) ——— */
.page-alert {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: inline-block;
    max-width: 300px;
    padding: 1rem 2.5rem 1rem 1.2rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 0.95rem;
    line-height: 1.3;
    color: #fff;
    animation: fadeInDown 0.3s ease-out;
    z-index: 10000;
}

/* bouton de fermeture */
.alert-close {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.alert-close:hover {
    color: #fff;
}

/* thèmes */
.page-alert.normal {
    background: #333;
}

.page-alert.success {
    background: #16a34a;
}

.page-alert.warning {
    background: #f59e0b;
}

.page-alert.error {
    background: #dc2626;
}

/* ——— DIALOG (overlay + boîte centrée) ——— */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.page-dialog {
    background: #fff;
    border-radius: 8px;
    border-top: none !important;
    /*box-shadow: 0 4px 16px rgba(0,0,0,0.3);*/
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
    padding: 1.5rem;
}
/* thèmes */
.page-dialog.normal {
    border-top: 4px solid #333;
}

.page-dialog.success {
    border-top: 4px solid #16a34a;
}

.page-dialog.warning {
    border-top: 4px solid #f59e0b;
}

.page-dialog.error {
    border-top: 4px solid #dc2626;
}

/* croix de fermeture */
.dialog-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

/* titre & corps */
.dialog-title {
    margin: 0;
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.dialog-body {
    flex: 1;
    margin: 1rem 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

/* actions (boutons) */
.dialog-actions {
    display: flex;
    /*justify-content: flex-end;*/
    justify-content: flex-start;
    padding-left: 8px;
    gap: 0.5rem;
}

/* Boutons du dialog */
.dialog-actions .dialog-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/*.dialog-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
}*/

.dialog-btn--warn {
    background: #dc2626;
    color: #fff;
}

.dialog-btn--ok {
    background: #007bff;
    color: #fff;
}

.dialog-btn--warn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

.dialog-btn--ok:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.page-alert {
    position: fixed;
}

.page-alert .alert-text {
    display: inline;
    margin-left: 0;
    /* on peut ajouter un petit padding si besoin */
    /* padding-left: 0.2rem; */
    font-size: 0.9rem;
}

.page-dialog {
    animation: fadeInScale 0.25s ease-out;
}

.page-overlay {
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.4);
}

.dialog-btn--close {
    background: #e13737;
    color: #fff;
}

.dialog-btn--close:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}




