* {
box-sizing: border-box;
margin: 0;
padding: 0;
}

/* Polices et styles de texte */
:root {
    --font-default: Tahoma, Arial, Helvetica, sans-serif;
    --font-bahn: "bahn";
    --font-sketch: "sketch";
}

@font-face {
   font-family: var(--font-bahn);
   src: url("../fonts/bahnschrift.ttf");
}

@font-face {
   font-family: var(--font-sketch);
   src: url("../fonts/Sketch_Nice.ttf");
}

.texte {
   font-family: var(--font-default);
   font-size: 16px;
}
.petit-texte {
   font-family: var(--font-default);
   font-size: 14px;
}
.grand-texte{
	font-family: var(--font-default);
	font-size:18;
}
.grand2-texte {
	font-family: var(--font-default);
   font-size: 24px;
}

.arial {
   font-family: var(--font-default);
}

.gras {
   font-weight: bold;
}

.txtban {
    font-family: var(--font-bahn);
    color: blue;
    font-size: 18px;
}

/* Liens */
a:link, a:visited, a:active {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.lk a:link, .lk a:visited, .lk a:active {
    text-decoration: none;
    color: #F7F7F7;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.lk a:hover {
    text-decoration: underline;
}

/* Inputs et Textareas */
input, textarea {
    background-color: #FFFFFF;
    border: 1px solid #CCCCCC;
}

/* Boutons */
a.boutonx:hover {
    background-color: #99CCFF;
    color: #666666;
}

.boutonx, a.boutonx:link, a.boutonx:visited {
    background-color: #CCCCCC;
    height: 32px;
    padding: 5px 1px;
    cursor: pointer;
    border: 1px solid #000000;
    overflow: visible;
    text-align: center;
    font-size: 16pt;
    color: black;
    font-family: Arial;
    font-weight: bold;
    text-decoration: none;
}

.errmdp {
    margin-top: 20px;
    background-color: red;
    padding: 5px;
}

.plusgrand {
    width: 20px;
    height: 20px;
}

/* Layout principal */
.main-content {
    display: flex;
    gap: 20px;
}

/* =============== Treeview ============== */
.treeview {
    width: 310px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #ccc;
    padding: 0 10px 0 20px;
    font-family: var(--font-default);
    font-size: 14px;
    color: #000;
    box-sizing: border-box;
}

.tree-separator {
    border: none;
    border-top: 1px solid #ccc;
    position: absolute;
    left: 0;
    right: 0;
    top: 24px;
    width: auto;
    margin: 0;
}

.dtree-header {
    padding: 10px 0 12px;
    position: relative;
    margin-bottom: 8px;
    font-family: var(--font-default);
    font-size: 16px;
    color: #000;
}

.dtree-header a {
    color: black;
    text-decoration: none;
    font-family: var(--font-default);
    font-size: 16px;
    margin-right: 5px;
}

.dtree-header a:hover {
    text-decoration: underline;
}

.dtree-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -20px;
    right: -10px;
    border-top: 1px solid #ccc;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.tree-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tree-item a {
    color: #000;
    text-decoration: none;
    flex: 1;
}

.tree-item a:hover {
    text-decoration: underline;
}

.dTreeNode, .tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.dTreeNode img, .tree-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
}

.dTreeNode a, .tree-item a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-family: var(--font-default);
}

.dTreeNode a:hover, .tree-item a:hover {
    text-decoration: underline;
    color: #000;
}
/* =================== fim TREEVIEW ================ */
.page {
    flex: 1;
    overflow-x: auto;
}

/* Header */
.cima {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.logo {
    font-weight: bold;
    font-size: 1.5em;
    margin-right: 20px;
}

.text-variable {
    font-family: var(--font-default);
    font-size: 16px;
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

.lang-icons {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.lang-icons img {
    width: 30px !important;
    height: 30px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

/* Responsive */
@media (max-width: 992px) {
    .treeview {
        width: 250px;
    }

    .lang-icons img {
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 768px) {
    .treeview {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .cima {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .lang-icons {
        justify-content: center;
        width: 100%;
    }

    .lang-icons img {
        width: 40px !important;
        height: 40px !important;
    }

    .main-content {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .page {
        overflow-x: hidden;
    }
}
