/* || Contenu du cours */


/* Couleurs du cours */
#page-content, #region-main{
    background-color: #fdfcff;
    color: black;
}

/* Masquer bordure activités */
div.activity-item{
    padding: 0!important;
    border: none!important;
}


/* Grille et complétion des activités */
div.card-header{
    color: #0c2d6c;
}
.format-grid .grid-completion.grid-completion-colour-low {
    background-color: #e96b6b;
    color: black;
}
.format-grid .grid-completion.grid-completion-colour-middle{
    background-color: #ecf56c;
    color: black;
}
.format-grid .grid-completion.grid-completion-colour-high {
    background-color: #248150;
    color: black;
}


/* Titre des activités */
div span.instancename{
    color: #0c2c6c;
}
div.activity-instance{
    border: 2px solid #aaa;
    border-radius: 15px;
    padding: 10px;
    display:block;
    min-width: 40%;
}
div.activitytitle div.media-body div.text-uppercase{
    display: none;
}

/* Couleur des URL */
div.gd-selection-selector-item a{
    color: white!important;
}
div.course-content div.stateready a{
    color: #00083d!important;
}

/* Couleur des activités selon le type */
div.activity-instance:has(div.activitytitle div.activityiconcontainer img[alt="Icône URL"]){
    background-color: #bfa96e;
}
div.activity-instance:has(div.activitytitle div.activityiconcontainer img[alt="Icône Fichier"]){
    background-color: #589d77;
}
div.activity-instance:has(div.activitytitle div.activityiconcontainer img[alt="Icône Page"]){
    background-color: #92ac9a;
}
div.activityiconcontainer:has(img[alt="Icône Page"]){
    background-color: #0f2c66;
}




/* || Apparence générale */


/*Paramètres titre cours et fil d'Ariane*/

/* Masquer navigation haut (Toute) */
/*nav a.navbar-brand, nav ul.d-none, nav div.ml-auto, nav ul li:first-child, .nav.usernav li:first-child{
    display: none;
}*/

/* Masquer menus navigation */
#usernavigation .popover-region, #nav-notification-popover-container, li[data-key="myhome"], li[data-key="home"]/*, nav.navbar .primary-navigation, nav.navbar .navbar-brand*/{
    display: none!important;
}

/* Masquer menu gauche */
#theme_boost-drawers-courseindex, .drawer-toggler, .modal-backdrop{
    display: none!important;
}
#page{
    margin-left: 0px!important;
}

/* Masquer onglets du cours */
li[data-key="coursehome"], li[data-key="coursereports"], li[data-region="morebutton"], li[data-key="participants"], li[data-key="grades"], li[data-key="competencies"], li[data-key="questionbank"]{
    display: none;
}
#page-header{
    display: none;
}

/* Afficher logo au lieu du texte */
div.course-content div ul div.course-section-header h3.sectionname{
    background:url("https://cegeptr.moodle.decclic.qc.ca/pluginfile.php/322910/mod_resource/content/10/Logo%20EDI.jpg");
    background-size: cover;
    width: 200px;
    height: 200px;
}
div.course-content div ul div.course-section-header  h3.sectionname a{
    opacity: 0%;
}




/* || Page d'accueil */
div.copyright{
    border: 1px solid #fdfcff;
    border-radius: 10px;
    width: auto;
    color: #fdfcff;
    padding-left: 10px;
}



/* || SECTION AIDE */



/* Variables
================================== */
/* Tables
================================== */
.Rtable {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 3em 0;
    padding: 0;
  }
  .Rtable-cell {
    box-sizing: border-box;
    flex-grow: 1;
    width: 100%;
    padding: 0.8em 1.2em;
    overflow: hidden;
    list-style: none;
    border: solid 3px white;
    /*background: rgba(112, 128, 144, 0.2);*/
  }
  .Rtable-cell > h1,
  .Rtable-cell > h2,
  .Rtable-cell > h3,
  .Rtable-cell > h4,
  .Rtable-cell > h5,
  .Rtable-cell > h6 {
    margin: 0;
  }
  /* Table column sizing
  ================================== */
  .Rtable--2cols > .Rtable-cell {
    width: 50%;
  }
  .Rtable--3cols > .Rtable-cell {
    width: 35%;
  }
  .Rtable--3cols > .Rtable-cell--head {
    width: 26%;
  }
  .Rtable--4cols > .Rtable-cell {
    width: 25%;
  }
  .Rtable--5cols > .Rtable-cell {
    width: 20%;
  }
  .Rtable--6cols > .Rtable-cell {
    width: 16.6%;
  }
  /* Page styling
  ================================== */
 /* @font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 400;
    src: url(https://fonts.gstatic.com/s/josefinsans/v32/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_DjQbMZhKg.ttf) format('truetype');
  }
  @font-face {
    font-family: 'Josefin Sans';
    font-style: normal;
    font-weight: 700;
    src: url(https://fonts.gstatic.com/s/josefinsans/v32/Qw3PZQNVED7rKGKxtqIqX5E-AVSJrOCfjY46_N_XbMZhKg.ttf) format('truetype');
  }*/
  /*html {
    height: 100%;
    background-color: #EEE;
  }
  body {
    box-sizing: border-box;
    min-height: 100%;
    margin: 0 auto;
    padding: 2em;
    max-width: 800px;*/
    /*font-family: 'Josefin Sans', sans-serif;
    font-size: 1.2em;*/
    /*background-color: white;
    border: double 3px #DDD;
    border-top: none;
    border-bottom: none;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 0;
  }
  h3 {
    font-size: 1.2em;
  }
  h4 {
    font-size: 1em;
  }
  strong {
    color: #434d57;
  }*/
  /* Apply styles
  ================================== */
  .Rtable {
    position: relative;
    top: 3px;
    left: 3px;
  }
  .Rtable-cell {
    margin: -3px 0 0 -3px;
    background-color: white;
    border-color: #e2e6e9;
  }
  /* Cell styles
  ================================== */
  .Rtable-cell--dark {
    background-color: slategrey;
    border-color: #5a6673;
    color: white;
  }
  .Rtable-cell--dark > h1,
  .Rtable-cell--dark > h2,
  .Rtable-cell--dark > h3,
  .Rtable-cell--dark > h4,
  .Rtable-cell--dark > h5,
  .Rtable-cell--dark > h6 {
    color: white;
  }
  .Rtable-cell--medium {
    background-color: #b8c0c8;
    border-color: #a9b3bc;
  }
  .Rtable-cell--light {
    background-color: white;
    border-color: #e2e6e9;
  }
  .Rtable-cell--highlight {
    background-color: lightgreen;
    border-color: #64e764;
  }
  .Rtable-cell--alert {
    background-color: darkorange;
    border-color: #cc7000;
    color: white;
  }
  .Rtable-cell--alert > h1,
  .Rtable-cell--alert > h2,
  .Rtable-cell--alert > h3,
  .Rtable-cell--alert > h4,
  .Rtable-cell--alert > h5,
  .Rtable-cell--alert > h6 {
    color: white;
  }
  .Rtable-cell--head {
    background-color: rgb(170, 200, 230);
        /*border-color: #5a6673;*/
    /*color: white;*/
    text-align: center;
  }
  .Rtable-cell--head > h1,
  .Rtable-cell--head > h2,
  .Rtable-cell--head > h3,
  .Rtable-cell--head > h4,
  .Rtable-cell--head > h5,
  .Rtable-cell--head > h6 {
    color: white;
  }
  .Rtable-cell--foot {
    /*background-color: #b8c0c8;*/
    /*border-color: #a9b3bc;*/
  }
  /* Responsive
  ==================================== */
  @media all and (max-width: 900px) {
    .Rtable--collapse {
      display: block;
    }
    .Rtable--collapse > .Rtable-cell {
      width: 100% !important;
    }
    .Rtable--collapse > .Rtable-cell--foot {
      margin-bottom: 1em;
    }
  }
  .no-flexbox .Rtable {
    display: block;
  }
  .no-flexbox .Rtable > .Rtable-cell {
    width: 100%;
  }
  .no-flexbox .Rtable > .Rtable-cell--foot {
    margin-bottom: 1em;
  }
  @media all and (max-width: 900px) {
    .hiddenSmall {
      display: none;
    }
  }
  /* Tab Styling
  ==================================== */
  .Tablist {
    display: flex;
    flex-direction: row;
    margin-left: -3px;
  }
  @media all and (min-width: 900px) {
    .Tablist {
      display: none;
    }
  }
  .Tab {
    padding: 0.6em 1em;
    margin: 0 3px 3px 0;
    text-align: center;
    background-color: darkcyan;
    border: solid 3px darkcyan;
    border-bottom-width: 0;
    border-radius: 0.5em 0.5em 0 0;
    font-weight: bold;
    color: #002525;
    text-decoration: none;
    transition: background-color 0.1s;
    cursor: pointer;
  }
  .Tab:hover,
  .Tab:focus {
    background-color: #199797;
    border-color: #199797;
    outline: none;
  }
  .Tab[aria-selected="false"]:active {
    margin-top: 0.2em;
    padding-bottom: 0.4em;
  }
  .Tab[aria-selected="true"] {
    background: #e6f3f3;
    cursor: default;
  }
  /* Accordion Styling
  ==================================== */
  .Accordion {
    position: relative;
    top: -3px;
    left: -3px;
    width: 100%;
    margin: 0 0 0.5em 0;
    padding: 0.6em 0.6em 0.6em 2em;
    border-radius: 0.5em;
    text-align: left;
    border: solid 3px #007676;
    background-color: darkcyan;
    font-weight: bold;
    color: #002525;
    text-decoration: none;
    transition: background-color 0.1s;
    cursor: pointer;
  }
  @media all and (min-width: 900px) {
    .Accordion {
      display: none;
    }
  }
  .Accordion:hover,
  .Accordion:focus {
    outline: none;
    filter: contrast(150%);
  }
  .Accordion[aria-selected="true"] {
    margin-bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-width: 0;
    background: #b3dcdc;
  }
  .Accordion:before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 0.3em;
    margin-top: -1.14285714em;
    font-weight: normal;
    font-size: 2em;
    line-height: 2em;
    background-size: 2em 2em;
  }
  .Accordion[aria-selected="true"]:before {
    content: "-";
  }
  .js-RtableTabs,
  .js-RtableAccordions {
    min-width: 240px;
  }