/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 73px;  /* Takes into account the header */
    margin-bottom:100px; /* For the footer and a bit of space*/
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    color: #34495e;
    font-size: 14px;
}

.header-icon {
    position: relative;
    top: -8px;
    color: white;
}

.page-header {
    margin-top: 20px;
}

.debug_body {
    margin-bottom: 400px; /* For the debug footer */
}

html {
        position: relative;
        min-height: 100%;
}

.glyphicon {
        width: 14px;
        height: 14px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
    margin-top: 20px;
}
h1,
.h1 {
  font-size: 33px;
}
.sub-header {
  padding-top: 5px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  font-size: 23px;
}
.sub-sub-header {
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 20px;
  font-weight: bold;
}
.sub-sub-sub-header {
  padding-top: 5px;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}
.sub-sub-sub-sub-header {
  padding-top: 5px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: bold;
}

.navbar {
    background: #297A4A;
    display: inline;
}
.navbar a.navbar-brand {
    color: white;
    text-shadow: 0 1px 0 rgba(0, 90, 90, 1);
}
.navbar-nav > li,
.navbar-nav > li > a,
.navbar-nav > li > a,
.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    background-color: inherit;
    color: white;
    text-shadow: 0 1px 0 rgba(0, 90, 90, 1);
    display: inline;
    padding-top: 15px;
}
.navbar-nav > li > a:hover {
    text-decoration: underline;
}
.navbar-nav > .deactivate {
    display: none;
}
.navbar-toggle{
    float: left;
}
.navbar-toggle .icon-bar{
    background-color: white;
}


.shadow {
    -webkit-box-shadow: 0px 2px 20px 0px rgba(0,0,0,0.45);
    -moz-box-shadow:    0px 2px 20px 0px rgba(0,0,0,0.45);
    box-shadow:         0px 2px 20px 0px rgba(0,0,0,0.45);
}

.nav-pills > li > a {
    padding: 6px 0 2px 0;
    margin-right: 20px;

    background-color: transparent !important;
    text-decoration: none;
    border-radius:0px;
    text-shadow: 0 1px 0 rgba(0, 90, 90, 1);
    font-size: 15px;
}
.nav-pills > .active > a
{
    border-radius:0px;
    color: white;
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-bottom-color: white;
}
.nav-pills > li > a:hover {
    color: white !important;
}

.nav-pills > li > a {
    border-radius:0px;
    color: #d3d3d3;
}

.footer {
        z-index: 1100;
        position: absolute;
        padding-top:15px;
        width: 100%;
        left: 0px;
        background-color: #032939;
        text-shadow: 0 1px 0 rgba(0, 90, 90, 1);
        color: white;
        bottom: 0;
        height: 50px;
        margin: 0;
}

.footer-debug {
        z-index: 1100;
        position: absolute;
        height: 250px;
        width: 100%;
        bottom: 16px;
        padding-bottom: 15px;
        color: #202020;
        background-color: #e5e5e5;
        border-top: 1px solid #eee;
        text-shadow: 0 0px 0 rgba(120, 120, 120, 1);
}

.footer-debug > div {
         padding-top: 0px;
         padding-bottom: 0px;
 }

.jsonerror {
        display: block;
        color: #800000;
}



/*
 * Global add-ons
 */

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */
 .side-nav {
    margin-top: 0;
 }

 @media (max-width: 767px) {
     .side-nav.affix, .side-nav.affix-bottom {
         position: relative;
     }
 }
@media (min-width: 768px) {
    .side-nav.affix, .side-nav.affix-bottom {
        width: 23%;
    }
}
@media (min-width: 992px) {
    .side-nav.affix, .side-nav.affix-bottom {
        width: 18%;
    }
}
@media (min-width: 1200px) {
    .side-nav.affix, .side-nav.affix-bottom {
        width: 19%;
    }
}

.nav-toggle.open, .nav li.start a.nav-selected {
         color: green;
        /* color: #B522B5; */
        font-weight: bold;
}
/* Sidebar navigation */
.nav-sidebar {
 width: 100%;
}
.nav-sidebar > li > a {
    padding: 0.3em;
}

.nav-inner > li > a {
    font-size: 0.95em;
    padding: 0.2em 0.4em;
}

.nav-inner:after {
    padding-bottom: 0.3em;
}
.nav-toggle {
    margin-left: -14px;
}
.nav a.nav-selected {
    font-weight: bold;
    color: #000000;
}
.nav-sidebar > li.heading {
    padding: 9px 4.5px 4.5px 0;
    left: -8px;
    font-weight: bold;
    font-size: 1.04em;
}
.nav-sidebar > li.heading-top {
    padding-top: 0;
}

.nav-sidebar > li > ul {
    /* padding: 0.3em 0 0.75em 0.4em; */
    padding: 0 0 0.0em 0.4em;
    list-style: none;
}
.nav-sidebar > li > ul > li > ul {
    list-style: none;
    margin: 2em 0 0 0 ;
}
.nav-sidebar a {
    cursor:pointer;
    /*color: #34495e; */
}
.nav a {
    color: #34495e;
}
/*
.nav-sidebar > .active > a,
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}
*/
.nav-toggle.collapsed:before {
        content: "▸"; /* Right caret */
        margin-right: 5px;
}
.nav-toggle:not(.collapsed):before {
        content: "▾"; /* down caret */
        margin-right: 3px;
}

/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

pre, code, pre code, .attribute {
        color: #008000;
        font-size: 0.97em;
}

td pre {
        padding: 0px;
        margin: 0px;
        border: 0px;
        font-size: 0.9em;
        background-color: inherit;
}

li code, td p code {
        /* background-color: #f0f0f0; */
        background-color: inherit;
}

td p {
        margin: 0;
}

td li {
        font-size: 0.97em;
}

td.resource {
        color: #008000;
        font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
        text-transform: none;
        font-size: 94%
}

td span.object {
        /* color: #2f373b; */
        color: #a0a0a0;
}

blockquote {
        font-size:15px;
        color: #707070;
}

/* Allows button to be on same row as heading */
.btn-group{
        position: relative;
        top: 0px;
}

.nomargin {
        margin-top: 0px;
        margin-bottom: 0px;
}

.bottommargin {
        margin-top: 0px;
}


.status-desc {
    font-weight: bold;
}
.btn-file {
        position: relative;
        overflow: hidden;
}
.btn-file input[type=file] {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 100%;
        min-height: 100%;
        font-size: 100px;
        text-align: right;
        filter: alpha(opacity=0);
        opacity: 0;
        outline: none;
        background: white;
        cursor: inherit;
        display: block;
}

td > input {
    min-width: 300px;
}

.mime-group {
    display: none;
}
.center-td{
    text-align: center;
}

.nav-title {
    display:inline-block;
    position:relative;
    left:8px;
    color: white;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #172952;
  font-weight: bold;
  font-size: 1em;
  margin-left: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 60px;
  padding: 0 32px;
}

.header-flex > .navbar-header,
.header-flex > .header-bar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.2em;
  color: #fff;
}

@media (max-width: 991px) {
  .header-flex {
    justify-content: center;
  }
  .navbar-header {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .navbar-brand {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }
  .nav-title {
    width: auto;
    text-align: center;
    margin: 0 auto;
    display: block;
  }
  .header-bar-right {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }
}
@media (min-width: 1200px) {
  .header-flex {
    padding: 0 131px;
  }
}


.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #172952;
  font-weight: bold;
  font-size: 1em;
  margin-left: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 60px;
  padding: 0 32px;
}

.header-flex > .navbar-header,
.header-flex > .header-bar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.nav-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #fff;
}

.nav-title-mobile {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  color: #fff;
  text-align: center;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media (max-width: 991px) {
  .header-flex {
    justify-content: center;
  }
  .navbar-header {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .navbar-brand {
    width: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }
  .nav-title {
    width: auto;
    text-align: center;
    margin: 0 auto;
    display: block;
  }
  .header-bar-right {
    position: absolute;
    right: 10px;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .dropdown {
    position: relative;
  }

  .dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
  }
}
@media (min-width: 1200px) {
  .header-flex {
    padding: 0 131px;
  }
}

.sidenav-fixed {
    position: fixed;
    top: 80px;
    bottom: 0;
    margin-left: 8%;
}

/* Ajustement de la marge gauche du contenu principal pour compenser la largeur de la barre latérale */
.offset-lg-3 {
    margin-left: 25%;
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.overlay.show {
    display: block;
}
#header-toggle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='%23ffffff'%3E%3Cg data-name='Layer 2'%3E%3Cpath d='M28 10H4a1 1 0 0 1 0-2h24a1 1 0 0 1 0 2zM28 17H4a1 1 0 0 1 0-2h24a1 1 0 0 1 0 2zM28 24H4a1 1 0 0 1 0-2h24a1 1 0 0 1 0 2z'/%3E%3C/g%3E%3Cpath fill='none' d='M0 0h32v32H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    margin-left:10px
}

#header-toggle:focus {
    outline: none; /* Enlevez le contour bleu au clic */
}

/* Ajustement pour différentes tailles d'écrans */
@media (min-width: 601px) and (max-width: 992px) {
    .offset-lg-3 {
        margin-left: 0;
    }
    .navbar-toggle {
        display: block;
    }

    .side-nav {
        position: fixed;
        top: 0;
        left: -255px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        background-color: white;
        overflow-y: auto;              /* scroll vertical */
        -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
        margin: 0;
        padding: 0;
        padding-top: 73px;
    }

    .side-nav::-webkit-scrollbar {
        width: 10px; /* Largeur de la barre de défilement */
    }

    .side-nav::-webkit-scrollbar-thumb {
        background-color: #ccc; /* Couleur du "pouce" de la barre de défilement */
        border-radius: 5px;     /* Arrondir les coins */
    }

    .side-nav::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Couleur de la piste */
    }

    .side-nav .open {
        left: 0;
    }
    .overlay.show {
        display: block;
    }

    .nav-sidebar {
        padding-left: 15px;
    }

    .navbar-header {
        width: 100%;
        text-align: center;
    }

    .navbar-brand{
        width: 90%;
        text-align: center;
    }
    .main {
        padding-left: 30px;
        padding-right: 30px;
    }
}
@media (max-width: 600px) {
    .offset-lg-3 {
        margin-left: 0;
    }
    .navbar-toggle {
        display: block;
    }

    .side-nav {
        position: fixed;
        top: 0;
        left: -255px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s;
        background-color: white;
        overflow-y: auto;              /* scroll vertical */
        -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
        margin: 0;
        padding: 0;
        padding-top: 73px;
    }

    .side-nav::-webkit-scrollbar {
        width: 10px; /* Largeur de la barre de défilement */
    }

    .side-nav::-webkit-scrollbar-thumb {
        background-color: #ccc; /* Couleur du "pouce" de la barre de défilement */
        border-radius: 5px;     /* Arrondir les coins */
    }

    .side-nav::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Couleur de la piste */
    }

    .side-nav .open {
        left: 0;
    }
    .overlay.show {
        display: block;
    }

    .nav-sidebar {
        padding-left: 15px;
    }

    .navbar-header {
        width: 100%;
        text-align: center;
    }

    .navbar-brand{
        width: 70%;
        text-align: center;
    }

    .main {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* plus glyph for showing collapsible panels */
.panel-heading .accordion-plus-toggle:before {
    font-family: FontAwesome;
    content: "\f068";
    float: right;
    color: silver;
}

.panel-heading .accordion-plus-toggle.collapsed:before {
    content: "\f067";
    color: silver;
}

/* arrow glyph for showing collapsible panels */
.panel-heading .accordion-arrow-toggle:before {
    font-family: FontAwesome;
    content: "\f077";
    float: right;
    color: silver;
}

.panel-heading .accordion-arrow-toggle.collapsed:before {
    content: "\f078";
    color: silver;
}

/* sets the link to the width of the entire panel title */
.panel-title > a {
    display: block;
}

canvas {
    margin-top: 20px;
}
.current-plan-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    margin: 16px 0;
    font-weight: 600;
    padding: 0 16px;
}
.current-plan-badge svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

@media (min-width: 768px) {
  .navbar-right {
    margin-right: 15px !important;  

  }
}


  
  /* Amélioration du positionnement du dropdown sur mobile */
  .header-bar-right .dropdown {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .header-bar-right .dropdown-menu {
    margin-top: 8px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

/* Padding spécifique pour les petits écrans */
@media (max-width: 767px) {
  .header-right-column {
    padding-right: 30px;
  }
}

/* Classe pour centrer verticalement le contenu */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header row pour centrage vertical */
.header-row {
  display: flex;
  align-items: center;
  min-height: 50px;
}