/* =========================================================
   CSS COMMUN — hennus / umklappchen / ladiligence
   Utilisation :
     1) <link rel="stylesheet" href="/css/site-commun.css">
     2) <link rel="stylesheet" href="/css/hennus-site.css">  (ou umklappchen-site.css / ladiligence-site.css)
   Les couleurs (fond + bordures + boutons) sont définies dans le mini CSS via :
     --site-bg, --accent, --btn-doc-bg
   ========================================================= */

/* =========================================================
   VARIABLES (valeurs par défaut, écrasées par le mini CSS)
   ========================================================= */
:root{
  --site-bg: #444;
  --accent: #999;
  --btn-doc-bg: #444;
}

/* =========================================================
   BOUTONS + BLOCS DOCUMENTS
   ========================================================= */
.btn-doc{
  background-color: var(--btn-doc-bg);
  color:#fff;
  padding:8px 14px;
  border-radius:6px;
  display:inline-block;
  text-decoration:none;
  margin-top:5px;
}
.document-block{
  background:#f4f4f4;
  padding:20px;
  border-radius:8px;
  margin-bottom:25px;
}

/* =========================================================
   BASE
   ========================================================= */

body {
	background-color: var(--site-bg);
	font-family: "Times New Roman", Times, "Liberation Serif", FreeSerif, serif;
	color: #e6e6e6;
	font-weight: normal;
	font-style: normal;
	text-decoration: none;
	}

/* =========================================================
   NAV HAUT + FOOTER
   ========================================================= */

#global-nav {
	background-image: linear-gradient(#050505, #3F424D);
	height: 40px;
	border-bottom: 2px solid var(--accent);
	top:0;
	left:0;
	width:100%;
	position:fixed;
	}

#footer {
	background-image: linear-gradient(#3F424D, #050505);
	height: 40px;
	border-top: 2px solid var(--accent);
	bottom:0;
	left:0;
	width:100%;
	position:fixed;
	}

#nav-centre {
	width:60%;
	margin-left: auto;
	margin-right: auto;
}

#global-nav #nav-centre ul.projects {
	padding-left: 0px;
	text-align: left;
	display: inline;
	float: left;
	margin: 0;
	list-style: none;
}

#global-nav #nav-centre ul.parametres {
	text-align: left;
	display: inline;
	float: right;
	margin: 0;
	list-style: none;
}

#global-nav #nav-centre ul.projects li {
	display: inline-block;
	float: left;
	top: 1px;
	cursor: pointer;
}

/* =========================================================
   ICONES PROJETS (haut gauche)
   ========================================================= */

#global-nav #nav-centre ul.projects li.Hennus {
	float: left;
	width: 38px;
	height: 38px;
	margin-top:4px;
	text-indent: -9999px;
	background: url(/Images/hennus-unselected.png);
}

#global-nav #nav-centre ul.projects li.UmKlappchen {
	border-left: none;
	width: 38px;
	height: 38px;
	margin-top:4px;
	text-indent: -9999px;
	background: url(/Images/umklappchen-unselected.png);
}

#global-nav #nav-centre ul.projects li.LaDiligence {
	width: 115px;
	height: 38px;
	margin-top:2px;
	text-indent: -9999px;
	background: url(/Images/ladiligence-unselected.png);
}

#global-nav #nav-centre ul.projects li.Immobilier {
	width: 39px;
	height: 38px;
	margin-top:2px;
	text-indent: -9999px;
	background: url(/Images/immobilier-unselected.png);
}

#global-nav #nav-centre ul.projects li.Randonnees {
	width: 77px;
	height: 38px;
	margin-top:2px;
	text-indent: -9999px;
	background: url(/Images/randonnees-unselected.png);
}

#global-nav #nav-centre ul.projects li.VUAR {
	width: 36px;
	height: 38px;
	margin-top:2px;
	text-indent: -9999px;
	background: url(/Images/Logonguoi-unselected.png);
}

/* =========================================================
   SOUS-MENU LANGUES
   ========================================================= */

#global-nav #nav-centre ul.parametres li.langues {
	display: inline-block;
	float: left;
	top: 1px;
	cursor: pointer;
}

#global-nav #nav-centre ul.parametres button.Connexion {
	display: inline-block;
	float: left;
	top: 1px;
	cursor: pointer;
}

#global-nav nav ul li a {
	color: #e6e6e6;
	font-weight: normal;
	font-style: normal;
	text-decoration: none;
	display: block;
	padding: 12px 12px;
}

#global-nav #nav-centre ul.parametres ul {
	display: none;
	position: absolute;
	top: 40px;
	margin:0px;
	padding: 0px;
	border-right: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent);
	border-left: 2px solid var(--accent);
	border-top: 2px solid #3F424D;
	background-image: linear-gradient(#3F424D, #050505);
}

#global-nav #nav-centre ul.parametres li:hover ul.liste-langues {
	display: block;
}

#global-nav #nav-centre ul.parametres li.langues {
	width: 38px;
	height: 38px;
	margin-top:1px;
	text-indent: -9999px;
	background: url(/Images/langues.png);
	opacity: 1;
}

#global-nav #nav-centre ul.parametres li.Francais {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/fr.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Allemand {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/de.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Luxembourgeois {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/lu.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Espagnol {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/es.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Anglais {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/gb.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Portugais {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/pt.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres li.Vietnamien {
	list-style-type: none;
	text-indent: 45px;
	background: url(/Icones/vn.png);
	background-repeat: no-repeat;
	background-position: left;
}

#global-nav #nav-centre ul.parametres button.Connexion {
	width: 69px;
	height: 38px;
	margin-top:2px;
	border: none;
	text-indent: -9999px;
	background: url(/Images/Connected-no.png);
}

/* =========================================================
   STRUCTURE PAGE
   ========================================================= */

#global {
	width:60%;
	margin-top: 50px;
	margin-left:auto;
	margin-right:auto;
	border: 0;
	padding: 0;
}

#titre table {
border-collapse:collapse;
width:100%;
margin:auto;
}

#titre tbody td:nth-child(1)  {
	width: 150px;
	height: 50px;
	text-align: center;
}

#titre tbody td:nth-child(2)  {
	height: 50px;
	text-align: center;
}

#titre tbody td:nth-child(3)  {
	width: 150px;
	height: 50px;
	text-align: center;
}

#nom_site {
	font-size: 50px;
	text-shadow: black 0.1em 0.1em 0.2em;
}

#citation {
	max-width: 500px;
	width: 500px;
	font-size: 20px;
	font-style: italic;
	overflow: hidden;
	white-space: nowrap;
}

.defilement {
	animation-duration: 30s;
	animation-name: defilement;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes defilement {
  from { margin-left: 100%;
  			width: 100%; }
  to { 	margin-left: -300%;
  			width: 100%; }
}

#page {
	position: relative;
	background-color: #dddddd;
	margin-top: 10px;
	height: 665px;
	border: 2px solid var(--accent);
	padding: 0;
}

#menu {
	float:left;
	background-color: #666666;
	margin-left: 5px;
	margin-top: 5px;
	color: white;
	padding: 5px;
	height: 400px;
	width: 200px;
	border: 2px solid #222222;
}

#contenu {
	float:left;
	margin-left: 5px;
	margin-top: 5px;
	margin-right: 0;
	padding: 5px;
	color: black;
	height: 400px;
	width: 300px;
	text-align: center;
	overflow-y : scroll;
}

#footer-nav {
	width:60%;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* =========================================================
   BLOCS CODE
   ========================================================= */
   
.code-block {
    background: #1e1e1e;          /* style éditeur type VSCode */
    color: #d4d4d4;
    padding: 12px 14px;
    border-radius: 6px;
    font-family: "Fira Code", "Consolas", "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Couleurs syntaxiques */
.code-kw   { color: #569cd6; }    /* mots-clés / clés YAML / mots réservés */
.code-str  { color: #ce9178; }    /* chaînes de caractères */
.code-num  { color: #b5cea8; }    /* nombres */
.code-com  { color: #6a9955; }    /* commentaires */
.code-var  { color: #9cdcfe; }    /* variables, noms d’entités */
.code-func { color: #dcdcaa; }    /* fonctions / services (optionnel) */
.code-tag  { color: #4ec9b0; }    /* balises HTML / tags (optionnel) */

/* =========================================================
   DIAGRAMMES DB
   ========================================================= */

.db-diagram {
    max-width: 760px;
    margin: 20px auto;
    border: 1px solid #888;
    border-radius: 6px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    font-size: 13px;
}

.db-diagram-header {
    background: #e0e0e0;
    padding: 8px 12px;
    border-bottom: 1px solid #888;
    text-align: left;
}

.db-diagram-header span {
    font-size: 14px;
}

.db-diagram-body {
    padding: 4px 0;
}

.db-diagram-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 10px;
    border-bottom: 1px solid #ddd;
}

.db-diagram-row:last-child {
    border-bottom: none;
}

.db-diagram-row:nth-child(even) {
    background: #f5f5f5;
}

.db-diagram-main {
    width: 65%;
}

.db-diagram-name {
    font-size: 13px;
    margin-bottom: 2px;
}

.db-diagram-role {
    font-size: 12px;
    color: #555;
}

.db-diagram-meta {
    width: 35%;
    text-align: right;
}

.db-tag {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 4px;
    margin-bottom: 3px;
    border-radius: 999px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 11px;
    color: #444;
}

/* =========================================================
   jQuery UI – adaptation au thème du site
   ========================================================= */

.ui-widget-header,
.ui-button,
.ui-state-default,
.ui-state-hover,
.ui-state-active{
  border-color: var(--accent);
}

.ui-button,
.ui-state-default{
  background: var(--ui-btn-bg);
}

.ui-state-hover{
  background: var(--ui-btn-bg-hover);
}

.ui-state-active{
  background: var(--ui-btn-bg-active);
}

/* ===============================
   JQUERY UI — COULEURS SITE
   =============================== */

/* Bouton normal */
.ui-button {
    background: #212121;
    border: 1px solid var(--accent);
    color: #fff;
}

/* Hover */
.ui-button:hover,
.ui-state-hover.ui-button {
    background: var(--site-bg);
    border-color: var(--accent);
    color: #fff;
}

/* Focus / actif */
.ui-button:focus,
.ui-state-active.ui-button {
    background: var(--site-bg);
    border-color: var(--accent);
    color: #fff;
}

/* Icône fermeture (X) */
.ui-dialog-titlebar-close {
    background: transparent;
    border: none;
}
.ui-dialog-titlebar-close:hover {
    background: var(--site-bg);
}

.ui-dialog {
    border: 2px solid var(--accent);
}

.ui-dialog-titlebar {
    background: var(--site-bg);
    border-bottom: 2px solid var(--accent);
    color: #fff;
}

.ui-widget-content input:focus {
    outline: none;
    border: 1px solid var(--accent);
}

/* ===============================
   JQUERY UI — DIALOG BACKGROUND
   =============================== */

/* Fond principal de la boîte */
.ui-dialog .ui-dialog-content {
    background: #636363;
    color: #ffffff;
}

/* Barre de titre */
.ui-dialog .ui-dialog-titlebar {
    background: #212121;
    border-bottom: 2px solid var(--accent);
    color: #ffffff;
}

/* Bordure générale */
.ui-dialog {
    border: 2px solid var(--accent);
    background: #636363;
}


/* =========================================
   JQUERY UI – ZONE BOUTONS (button pane)
   ========================================= */

/* Fond derrière le bouton */
.ui-dialog .ui-dialog-buttonpane{
    background-color: #636363;
}

/* =========================================================
   MENU PRINCIPAL – COULEUR HOVER = COULEUR DU SITE
   ========================================================= */

/* Hover menu gauche */
#menu li:hover,
#menu li:hover > a,
#menu li.active,
#menu li.ui-state-hover{
    background-color: var(--site-bg);
    color: #ffffff;
}

/* Sous-menus */
#menu li ul li:hover,
#menu li ul li:hover > a{
    background-color: var(--site-bg);
    color: #ffffff;
}

/* =========================================================
   FIX DEFINITIF – ORANGE MENU -> COULEUR DU SITE
   (menu jQuery UI + menu classique)
   ========================================================= */

/* 1) jQuery UI Menu (le cas le plus fréquent) */
#menu .ui-menu-item-wrapper.ui-state-active,
#menu .ui-menu-item-wrapper.ui-state-focus,
#menu .ui-menu-item-wrapper.ui-state-hover,
#menu .ui-menu-item-wrapper:hover{
  background: var(--site-bg) !important;
  color: #fff !important;
}

/* 2) <li> / <a> classique */
#menu li:hover,
#menu li:hover > a,
#menu li.active,
#menu li.active > a,
#menu li.ui-state-hover,
#menu li.ui-state-hover > a,
#menu a:hover{
  background: var(--site-bg) !important;
  color: #fff !important;
}

/* 3) sous-menus (2e niveau) */
#menu li ul li:hover,
#menu li ul li:hover > a,
#menu li ul li a:hover{
  background: var(--site-bg) !important;
  color: #fff !important;
}

/* =========================================================
   MENU – SUPPRESSION BORDURE ORANGE (élément sélectionné)
   ========================================================= */

/* jQuery UI menu – état sélectionné / actif */
#menu .ui-menu-item-wrapper.ui-state-active,
#menu .ui-menu-item-wrapper.ui-state-focus,
#menu .ui-menu-item-wrapper.ui-state-hover{
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Cas où la bordure est sur le <li> */
#menu li.ui-state-active,
#menu li.ui-state-focus,
#menu li.ui-state-hover,
#menu li.active{
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Cas où la bordure est sur le <a> */
#menu a.ui-state-active,
#menu a.ui-state-focus,
#menu a:focus{
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Sécurité : enlever tout border-left hérité */
#menu li,
#menu li a,
#menu .ui-menu-item-wrapper{
    border-left: none !important;
}

/* =========================================================
   JQUERY UI – SUPPRIMER TOUT ORANGE RESIDUEL
   (boutons, radios, highlight, focus, active)
   ========================================================= */

/* Base boutons */
.ui-button,
.ui-button.ui-state-default,
.ui-widget-content .ui-button,
.ui-widget-header .ui-button{
  background: #212121 !important;
  border: 1px solid var(--accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Hover / focus */
.ui-button:hover,
.ui-button:focus,
.ui-button.ui-state-hover,
.ui-button.ui-state-focus{
  background: var(--site-bg) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
  outline: none !important;
}

/* Active (click / sélection) */
.ui-button:active,
.ui-button.ui-state-active,
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active{
  background: var(--site-bg) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
}

/* Highlight (souvent ORANGE dans les thèmes jQuery UI) */
.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight{
  background: var(--site-bg) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
}

/* Radios/checkbox “pill” jQuery UI : enlever glow/orange interne */
.ui-checkboxradio-label.ui-state-active,
.ui-controlgroup .ui-state-active{
  background: var(--site-bg) !important;
  border-color: var(--accent) !important;
  color:#fff !important;
  box-shadow: none !important;
}

/* =========================================
   BOUTON CONNEXION — ISOLATION TOTALE
   ========================================= */

#global-nav #nav-centre ul.parametres button.Connexion,
#global-nav #nav-centre ul.parametres button.Connexion.ui-button{
  all: unset; /* ← CLÉ ABSOLUE */
  width:69px;
  height:38px;
  display:inline-block;
  cursor:pointer;

  background-repeat:no-repeat;
  background-position:center center;
  background-size:contain;

  text-indent:-9999px;
}

/* état OFF par défaut */
#global-nav #nav-centre ul.parametres button.Connexion{
  background-image:url(/Images/Connected-no.png);
}

/* état ON */
#global-nav #nav-centre ul.parametres button.Connexion.connected{
  background-image:url(/Images/Connected-ok.png);
}
