/* TCN : feuille de style propre, qui reproduit l'aspect général de Tucania sur Bootstrap 3. */
:root {
    --tcn-bleu: #3c6fa7;
    --tcn-bleu-fonce: #2f5a8a;
    --tcn-bleu-panneau: #6fadc9;
    --tcn-gris-fond: #f2f2f2;
    --tcn-gris-menu: #f7f7f7;
    --tcn-gris-actif: #e4e4e4;
    --tcn-orange: #f0a030;
    --tcn-header: 50px;
    --tcn-sidebar: 220px;
}

body { background: var(--tcn-gris-fond); font-family: "Open Sans", "Segoe UI", Arial, sans-serif; font-size: 13px; color: #555; }

/* Barre du haut */
.tcn-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1030; min-height: var(--tcn-header); margin: 0; border: 0; border-radius: 0; background: var(--tcn-bleu); }
.tcn-header-inner { display: flex; align-items: center; height: var(--tcn-header); padding: 0 10px; }
.tcn-header .navbar-nav { margin: 0; }
.tcn-header .navbar-nav > li > a { color: #fff; padding: 15px 12px; line-height: 20px; }
.tcn-header .navbar-nav > li > a:hover, .tcn-header .navbar-nav > .open > a, .tcn-header .navbar-nav > .open > a:focus { background: var(--tcn-bleu-fonce); color: #fff; }
.tcn-header .navbar-nav.pull-right { margin-left: auto; }
.tcn-sidebar-collapse { color: #fff; font-size: 16px; padding: 0 14px 0 6px; }
.tcn-sidebar-collapse:hover, .tcn-sidebar-collapse:focus { color: #fff; }
.tcn-brand { background: #fff; color: var(--tcn-bleu); font-weight: 700; font-size: 18px; padding: 4px 12px; border-radius: 3px; margin-right: 12px; letter-spacing: 1px; }
.tcn-brand:hover, .tcn-brand:focus { text-decoration: none; color: var(--tcn-bleu-fonce); }
.tcn-header .username { margin: 0 4px; font-size: 12px; }

/* Colonne de gauche */
#page { padding-top: var(--tcn-header); }
.tcn-sidebar { position: fixed; top: var(--tcn-header); bottom: 0; left: 0; width: var(--tcn-sidebar); overflow-y: auto; background: var(--tcn-gris-menu); border-right: 1px solid #e0e0e0; }
.tcn-search { padding: 12px 10px 8px; }
.tcn-create-file { padding-bottom: 14px; }
.tcn-menu { list-style: none; margin: 0; padding: 0; }
.tcn-menu > li > a { display: block; padding: 11px 12px; color: #555; text-transform: uppercase; font-size: 11px; font-weight: 600; border-bottom: 1px solid #ececec; }
.tcn-menu > li > a:hover { background: var(--tcn-gris-actif); text-decoration: none; }
.tcn-menu > li.active > a { background: var(--tcn-gris-actif); color: #333; }
.tcn-menu .fa { width: 18px; text-align: center; margin-right: 4px; }
.badge-orange { background: var(--tcn-orange); margin-left: 4px; font-size: 10px; }

/* Contenu */
#main-content { margin-left: var(--tcn-sidebar); padding: 15px 20px; min-height: calc(100vh - var(--tcn-header)); }
.tcn-page-header h3 { font-weight: 300; font-size: 26px; color: #666; margin: 5px 0 20px; }
.tcn-panel { border: 1px solid var(--tcn-bleu-panneau); border-radius: 2px; box-shadow: none; }
.tcn-panel > .panel-heading { background: var(--tcn-bleu-panneau); color: #fff; padding: 6px 10px; border-radius: 0; font-size: 12px; }

/* Menu replié */
body.sidebar-collapsed .tcn-sidebar { width: 50px; }
body.sidebar-collapsed .tcn-sidebar .menu-text, body.sidebar-collapsed .tcn-sidebar .badge,
body.sidebar-collapsed .tcn-search, body.sidebar-collapsed .tcn-create-file { display: none; }
body.sidebar-collapsed #main-content { margin-left: 50px; }

/* Connexion */
body.login { background: linear-gradient(160deg, #dfe8f1 0%, #b9cde0 100%); min-height: 100vh; }
.tcn-login-page { padding-top: 60px; }
.tcn-login-logo { text-align: center; margin-bottom: 25px; }
.tcn-login-logo a { display: inline-block; background: #fff; color: var(--tcn-bleu); font-size: 28px; font-weight: 700; padding: 8px 24px; border-radius: 4px; letter-spacing: 2px; }
.tcn-login-logo a:hover { text-decoration: none; }
.login-box { display: none; background: rgba(255, 255, 255, .95); padding: 25px 30px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.login-box.visible { display: block; }
.login-box .bigintro { font-weight: 300; font-size: 26px; margin: 0 0 25px; color: #555; }
.login-box .form-horizontal .form-group { margin-left: 0; margin-right: 0; position: relative; }
.login-box .form-group > .fa { position: absolute; left: 12px; top: 33px; color: #aaa; }
.login-box .form-group > .form-control { padding-left: 34px; }
.login-box .separator { border-top: 1px solid #e5e5e5; margin: 15px 0; }
.login-helpers { margin-top: 10px; }

@media (max-width: 767px) {
    .tcn-sidebar { display: none; }
    #main-content { margin-left: 0; }
}

/* En-tête de page (fil d'Ariane, titre, actions) */
.page-header { margin: 0 0 15px; padding-bottom: 5px; border-bottom: 1px solid #e5e5e5; }
.page-header .breadcrumb { background: none; padding: 0; margin-bottom: 5px; font-size: 12px; }
.content-title { font-weight: 300; font-size: 24px; color: #666; margin: 5px 0 10px; }
.contextual-actions { margin-top: 5px; }
.inner-container { background: #fff; padding: 15px; border: 1px solid #e5e5e5; }
.asterisk { color: #c00; }
.form-actions { margin-top: 15px; }
.table .actions-cell { white-space: nowrap; text-align: right; }
.table .actions-cell form { display: inline; }
.permissions-matrix td, .permissions-matrix th { text-align: center; }
.permissions-matrix td:first-child { text-align: left; }

/* Listes */
.box.border.blue { border: 1px solid var(--tcn-bleu-panneau); margin-bottom: 15px; }
.box-title { background: var(--tcn-bleu-panneau); color: #fff; padding: 6px 10px; font-size: 12px; }
.box-body { padding: 10px; }
.pagination-info { padding-top: 25px; color: #888; }
.sortable.sorted-asc::after { content: " \25B2"; font-size: 9px; }
.sortable.sorted-desc::after { content: " \25BC"; font-size: 9px; }
.tcn-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.inline-form { display: inline; }
