/* Change this file to change the style of the template */
/* It's overwriting the default template files and should be kept when updating the template (I think...) */ 

/* Add your font-face for custom files in this files : */
@import url(custom_fonts.css);

/********************************************************** Variables : Colors, Margins & fonts **/
/* Change this for the global style */
:root {
    --accent-color: #C32A27;
    --accent-color-light: #ff9896 ;
    --block-color: #fef5f5; /* for block in page content like "dates" or "important"*/

    --site-background: #fcfcfd; /* f8f9fa */
    --page-background: #fcfcfd;
    --header-background:#fdfcff;
    --footer-background:#fcfcfd;

    --title-color: var(--accent-color); /* for titles */
    --body-color: #101011; /* for most of the text */
    --body-color-light: #4b4b4d; /* for detail text and some elements like list bullet */
    --link-color: #3975bd; /* for text links*/
    --active-link-color: #C32A27; /* for the selected page in the navigation menu*/

    --title-font: 'Encode Sans', sans-serif;
    --body-font: 'Encode Sans', sans-serif;

    --body-text-size: 0.7rem;

    --paragraph-spacing:0.4rem;
    --list-spacing: 0.1rem;
}

/********************************************************** Page Layout & style */


#header {
    background-color: var(--header-background);
    height: auto;
}

body.header-fixed.header-animated #header.scrolled {
    height: auto;
}

#header .navbar-section {
    height: 3rem;
}

.header-fixed #body-wrapper {
    padding-top: 7rem;
}

#footer {
    background-color: var(--footer-background);
}

#body-wrapper, #page-wrapper {
    background-color: var(--site-background);
}

#body-wrapper .container {
    padding: 1rem 1rem 2rem; /* page content margin */
    margin-top: 1rem;
    background-color: var(--page-background);
    border-radius: 0.2rem;
    /* box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.06); */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
}

.mobile-menu .button_container span {
    background: var(--accent-color);
}

.navbar-section a img { /* Logo */
    display: none !important;
}

/*********************************************************** Typography **/

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--title-color);
    margin-top: 1.2rem;
}

p, li, ul, ol{
    font-family: var(--body-font);
    color: var(--body-color);
    font-size: var(--body-text-size);
}

h1 {
    font-size : 1.6rem;
    font-weight: 300;
}

h2 {
    font-size : 1.05rem;
    font-weight: 500;
}

h3 {
    font-size : 0.9rem;
    font-weight: 500;
}

h4, h5, h6 {
    font-size : 0.8rem;
}

a {
    font-family: var(--body-font);
    color: var(--link-color);
}

.dropmenu ul li a {
    font-size: 0.65rem;
    font-weight: 600;
}

a.visited, a.active, a:hover, a:focus, .dropmenu ul li a.active, .dropmenu ul li a:hover, .dropmenu ul li a:focus { 
    color: var(--active-link-color) !important;
}

.treemenu li a:hover, .treemenu li a:focus, .treemenu li a.active {
    color: var(--accent-color-light) !important;
}

.treemenu li a {
    color: white;
}

.dropmenu ul li a.active {
    font-weight: 700;
}

/********************************************************** Global Layout (Spacing) **/
section > h1 {
    margin-top: 0.2rem;
}

p {
    margin-bottom: var(--paragraph-spacing);
}

ul {
    margin-top: var(--list-spacing);
}

p + ul { /* p right before an ul */
    margin-top: -0.25rem;
}

ul li, ol li {
    margin-top: var(--list-spacing);
}

ul li::marker, ol li::marker {
    font-size: 0.6rem;
    color: var(--body-color-light);
}

#body-wrapper ul {
    margin-left: 0.3rem;
}

#body-wrapper ul li, #body-wrapper ol li {
    text-indent: 0.3rem;
}


#body-wrapper ul li::marker, #body-wrapper ol li::marker {
  content: "›";
}

/** Top navigation menu */
.dropmenu > ul > li a {
    text-decoration: none;
    padding: 0.3rem 1rem 0.3rem 1rem;
}

.dropmenu > ul > li:first-child > a {
    padding-left: 0;
}

.dropmenu ul ul {
    left: 0.5rem;
}


/**Banière logo UPHF INSA etc */
img.logobanner{
    /*max-width: 15vw;*/
    max-width: 23%;
    margin: 0 10px 0 10px;
}

.bannerLogo{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

hr {
    border: 0px;
    padding: 0.75rem 0;
}

/********************************************************** UI Elements */

/************* Blockquote > */
blockquote {
    border: 1px solid rgba(197, 197, 197, 0.28);
    background-color: var(--block-color);
    padding: 0.8rem 1.2rem;
    border-radius: 0.4rem;
    /* box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.06) */
}

blockquote h2 {
    margin-top: 0.2rem;
}

blockquote p {
    line-height: 1.5rem;
}


/************* Asides with infos */
.side_infos {
    position: fixed;
    top: 25vh;
    left: 2vw;
    background: var(--block-color);
    border-radius: 0.2rem;
    padding: 0.5rem 0.5rem; 
    width: 15vw;
    border: 1px solid var(--accent-color);
    
}

.side_infos > * {
    margin-top: 0rem;
}

.side_infos ul, .side_infos ol {
    list-style: none;
    margin-left: 0;
}

/****************Asides sponsors*/

.side_sponsors{
    position: fixed;
    top : 15vh;
    right: 2vw;
    border-radius: 0.2rem;
    border: 1px solid var(--accent-color);
    width: 15vw;
    padding: 0.5rem 0.5rem; 

}

.logo_sponsors_home{
    max-width: 90%;
}


/********************************************************** Tables **/


table{
    table-layout: auto;
    width: 100%;
}

/*tr:hover {background-color: coral;}*/

th, td {
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #C32A27;
  color: white;
}

tr:nth-child(even) {background-color:  #f2f2f2;}


/************************************************************* MEDIA QUERRIES */ 
@media (max-width:768px) {

    :root {
        --body-text-size : 0.8rem;
    }

    .side_infos {
        position: relative;
        top: 1.25vh;
        width: 95%;
    }
    
    .mobilePosition{
        order: -1;
        margin-bottom: 2vh;
    }

    blockquote {
        margin-left: 0;
        margin-right: 0;
    }

    .header-fixed #body-wrapper {
        padding-top: 3.5rem;
    }

    body.header-fixed.header-animated #header.scrolled {
        height: 4rem;
    }

    body.header-fixed.header-animated #header.scrolled ~ .mobile-menu .button_container {
        top: 1.4rem;
    }

    .mobile-menu .button_container {
        top: 1.4rem;
    }

    img.logo {
        max-width: 50vw;
    }
}
