/*
 * Charte Essendi : jetons de couleur, polices, taille de police et planches d'icones.
 * Les regles de style (theme a plat) sont dans customTheme.css et lisent ces jetons (P1.1).
 * Source des couleurs : Brand Book Essendi 2025 - English green #015046, Mint green #a0f59b,
 * teintes 20 % (#ccdcda) et 50 % (#80a8a3), gris chaud #343434 ; teinte 80 % #34736b deja
 * utilisee par l'application (decision D8).
 */
:root {
    --mt-primaire: #015046;
    --mt-charte: #015046;
    --mt-accent: #a0f59b; /* accent sur fond vert uniquement : trait du menu sur le bandeau vert */
    --mt-primaire-clair: #ccdcda;
    --mt-selection: #80a8a3; /* ligne selectionnee : teinte 50 % du Brand Book */
    --mt-entete: #e6eeed; /* teinte 10 %, deja utilisee (D8) : plus de blanc sur blanc */
    --mt-entete-fort: #015046; /* barres de titre : popups, panneaux, tableaux */
    --mt-fond-appli: #e6eeed; /* fond des zones de page : teinte 10 %, deja utilisee (D8) */
    --mt-texte: #343434;
    --mt-libelle: #015046;
    --mt-fond: #ffffff;
    --mt-fond-page: #ecfdeb; /* zebrage, pieds de popup : menthe 20 %, le « pop of freshness » du Brand Book */
    --mt-bord: #ccdcda; /* filets : teinte 20 % */
    --mt-bord-champ: #34736b;
    --mt-danger: #cd0a0a; /* provisoire, decision D9 */
    --mt-avert: #ffb43c;
    --mt-voile: rgba(1, 80, 70, .45);
    --mt-rayon: 4px;
    --mt-police: niveau-grotesk, Arial, sans-serif;
}

/* Polices : Light pour le texte, Medium pour le gras (arbitrage du 2026-11-10, ne pas passer en Regular) */
@font-face {
    font-family: niveau-grotesk;
    src: url("/maintotel/javax.faces.resource/primefaces-maintotel/css/fonts/essendi/niveau-grotesk/niveauGroteskLight.426e6580dc923993d528.otf.xhtml");
}

@font-face {
    font-family: niveau-grotesk;
    src: url("/maintotel/javax.faces.resource/primefaces-maintotel/css/fonts/essendi/niveau-grotesk/niveauGroteskMedium.2e45c4354ce757bc5890.otf.xhtml");
    font-weight: bold;
}

@font-face {
    font-family: niveau-grotesk;
    src: url("/maintotel/javax.faces.resource/primefaces-maintotel/css/fonts/essendi/niveau-grotesk/niveauGroteskLight-Italic.f4c0c25922e246544528.otf.xhtml");
    font-style: italic;
}

@font-face {
    font-family: niveau-grotesk;
    src: url("/maintotel/javax.faces.resource/primefaces-maintotel/css/fonts/essendi/niveau-grotesk/niveauGroteskMedium-Italic.e252e9a8cb553f32576a.otf.xhtml");
    font-weight: bold;
    font-style: italic;
}

.ui-widget {
    font-size: 85%;
}

.ui-widget, .fc button {
    letter-spacing: 0.03em;
}

/* Icones (planches PNG propres a la charte) ----------------------------------*/
.ui-icon {
    width: 16px;
    height: 16px;
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_015046_256x240.6d2aa96242fd15f4dcbb.png.xhtml");
}

.ui-widget-content .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_015046_256x240.6d2aa96242fd15f4dcbb.png.xhtml");
}

.ui-widget-header .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_015046_256x240.6d2aa96242fd15f4dcbb.png.xhtml");
}

/* barres de titre en couleur pleine : planche blanche (avant les etats, pour garder le survol) */
.ui-dialog-titlebar .ui-icon, .ui-panel-titlebar .ui-icon, .filtre .ui-accordion-header .ui-icon, .ui-datepicker-header .ui-icon,
.mt-planning .fc-more-popover .fc-header .ui-icon,
.menu .ui-menu.megaMenu > .ui-menu-list > .ui-menuitem > .ui-menuitem-link .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_ffffff_256x240.2f10d3f2ef7b9c43c79d.png.xhtml");
}

.ui-state-default .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_015046_256x240.6d2aa96242fd15f4dcbb.png.xhtml");
}

.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_34736B_256x240.27f5382a85dbedc2b5b5.png.xhtml");
}

/* fond actif vert plein : planche blanche (P1.2) */
.ui-state-active .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_ffffff_256x240.2f10d3f2ef7b9c43c79d.png.xhtml");
}

.ui-state-highlight .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_015046_256x240.6d2aa96242fd15f4dcbb.png.xhtml");
}

.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_ffffff_256x240.2f10d3f2ef7b9c43c79d.png.xhtml");
}

/******************************************************************************/
/* Particularites Essendi */
.fc {
    font-size: 110% !important;
}

.ui-menu.megaMenu .ui-menuitem-text {
    font-size: 120%;
}

.ui-button-icon-only {
    width: 2.3em;
}

.ui-button-text-only .ui-button-text {
    padding: 0.25em 1em;
}

.ui-inputfield {
    padding-bottom: 2px;
}

.ui-paginator .ui-paginator-page,
.ui-paginator .ui-paginator-pages {
    padding: 2px 7px;
}

/* ui-datatable */
.ui-datatable table {
    font-size: 0.9em;
}

.ui-datatable .ui-sortable-column.ui-state-active .ui-column-title {
    color: #ffffff;
}

.ui-datatable .ui-sortable-column.ui-state-active .ui-sortable-column-icon.ui-icon {
    background-image: url("/maintotel/javax.faces.resource/primefaces-maintotel/images/essendi/ui-icons_ffffff_256x240.2f10d3f2ef7b9c43c79d.png.xhtml");
}

