/* must be the first rule of the CSS file */
@import url(glyphicon.css);

/* ============= HEADER ============ */

header {
    background-image: url("../img/banner.jpg");
}

/* Hide SPIP site name, we use an image instead */
.spip_logo_site {
    color: transparent !important;
}
.spip_logo_site a {
    color: transparent !important;
}

.header {
    display: flex;
    width: 100%;
}

.header_content {
    width: 60%;
    margin: auto;
}

/* Override SPIP logo defaults */
.header_content img {
    float: none;
    width: auto;
    margin: auto;
    height: 200px;
}

.header_button_bar {
    float: right;
}

.button {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
    border-width: 1px;
    border-style: solid;
    width: 170px;
    height: 30px;
    margin: 20px;
}

.button a {
    color: #fff;
    text-decoration: none;
}

/* ================ NAV MENU ============== */

.nav li a {
    background-color: #f7941d;
    font-family: "Open Sans", sans-serif;
    color: white;
    text-shadow: 1px 0 0 black, -1px 0 0 black, 0 1px 0 black, 0 -1px 0 black, 1px 1px black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}


nav {
    background-color: #f7941d;
    margin-bottom: 30px;
    height: 40px;
    overflow: hidden;
    width: 100%;
}

/* TODO revise the rest of the nav stuff */

nav ul {
    list-style-type: none;
    margin-left: -40px;
    text-align: center;
}

nav ul li {
    display: inline-block;
    padding: 7px;
}

nav ul li:not(:last-child) {
    margin-right: 20px;
    padding-right: 20px;
}

nav a, nav a:hover, nav a:visited {
    color: white;
    font-size: 19px;
    text-transform: uppercase;
    
    /* Black border around letters */
    text-shadow: 1px 0 0 black, -1px 0 0 black, 0 1px 0 black, 0 -1px 0 black, 1px 1px black, -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black;
}

nav a:hover {
    text-decoration: none;
}

/* ======== WIDGET HORIZONTAL EVENTS ========== */
.widget-calendar-horizontal {
    margin-bottom: 12px;
    width: auto;
    display: grid;
    grid-template-columns: auto auto auto auto;
}

/* ======== ASIDE EVENTS ========== */
.aside-calendar-event {
    margin-bottom: 12px;
    width: 100%;
}

.aside-calendar-event-datebox {
    float: left;
    width: 50px;
    padding: 4px;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font-size: 11px;
    line-height: 17px;
}

.aside-calendar-event-datebox-day {
    font-size: 24px;
    font-weight: bold;
}

.aside-calendar-event-content {
    padding-left: 60px; 
    padding-right: 5px;
    text-align: left;
    font-size: 12px;
}

.aside-calendar-event-content-title a {
    font-family: SPMarkerFont;
    margin-bottom: 5px;
    font-size: 16px;
}

/* ======== ASIDE REFERENCED SITES =========== */

.aside-sites {
    background-color: white;
    margin: auto;
    text-align: center;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 500px;
}

.aside-site {
    margin-bottom: 20px;
}

.aside-site img {
    margin-bottom: 5px;
    margin: auto;
    float: none;
}


/* ======== FOR STATIC PAGES ============= */

.menu_articles .menu_rubriques {
}

.page-article {
    width: 75%;
    margin-bottom: 25px;
}

.page-article-logo {
    float: left;
    margin-right: 15px;
    width: 150px;
}

.page-article-logo img {
    height: auto;
}

.page-article-content {
    margin-left: 170px;
    min-height: 170px;
}

.page-article-title {
    font-weight: bold;
}

.page-archives {
    width: 75%;
    margin-bottom: 25px;
    min-height: 170px;
}

/* ======== MODAL STUFF =========== */

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 10; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* ======== GENERAL DESIGN STUFF ========== */

@font-face {
    font-family: SPMarkerFont;
    src: url(../fonts/SPMarkerFont.woff2);
}

.page {
    width: auto;
    max-width: 100%;
}

.sous-rubrique-title {
    padding-top: 50px;
    padding-bottom: 10px;
    font-weight: bold;
}

/* ==== SPIP theme override remove pink hover effect === */
a:hover {
    background: unset !important;
    color: unset !important;
}

.on {
    background: unset !important;
    color: unset !important;
}

.pagination {
    margin-top: 100px;
    margin-bottom: 0px;
    height: 3.5em;
}

.pagination .pagination-item-label {
    background: unset !important;
}


/* TODO revise the rest */



a {
	color: #f7941d;
}


a:hover {
	color: #a74400;
}



body {
    background-color: #fafafa;
    font-family: "Open Sans", sans-serif;
}

header {
    height: 270px;
    background-size: cover;
    text-align: center;
    padding: 10px;
}

header .logo {
    max-height: 100%;
    max-width: 100%;
}

header .right {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    text-align: right;
}



#content {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
}

h3:not(.panel-title) {
    margin-top: 0;
    font-family: SPMarkerFont;
    border-bottom: 1px solid black;
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

section > a, section > a:hover {
    display: inline-block;
    text-transform: uppercase;
    font-size: 18px;
    margin-bottom: 10px;
    color: gray;
}

content h1 {
    margin-top: 5px;
    margin-bottom: 20px;
    color: #f7941d;
}

content p {
    line-height: 22px;
    text-align: justify;
}

section h2 {
    margin-top: 5px;
}

section .right {
    color: gray;
}

.well {
    background-color: white;
    padding: 10px;
}

* {
    border-radius: 0 !important;
}

a:hover {
    text-decoration: none;
}

.orange, a.orange, a.orange:hover {
    color: #f7941d;
}

.headerSortUp:after {
 content:' ▼'
}
.headerSortDown:after {
 content:' ▲'
}
.tablesorter th {
    cursor: pointer;
}

.green {
    color: green;
}

.red {
    color: red;
}


/* === CALENDAR STUFF === */

.filter_toolbar {
    font-size: 12px;
    width: 80%;
    text-align: center;
    margin: auto;
}

.filter_toolbar label {
    padding-right: 10px;
}

.filter_apply {
    color: #fff;
    text-decoration: none;
    padding: 5px;
}

.calendar_toolbar {
    display: flex;
}

.precedent {
    color: #fff;
    text-decoration: none;
    padding: 5px;
}

.aujourdhui {
    color: #fff;
    text-decoration: none;
    padding: 5px;
}

.suivant {
    color: #fff;
    text-decoration: none;
    padding: 5px;
}

/* FullCalendar CSS */

  /* Title CSS */
.fc-toolbar-title {
	font-family: SPMarkerFont;
	text-transform: uppercase;
	text-align: center;
}

  /* Column header and day number CSS */
.fc-col-header-cell-cushion, .fc-daygrid-day-number {
	color: black;
}

  /* Event Time CSS */
.fc-event-time {
	overflow: visible !important;
}

  /* Event Title CSS */
.fc-event-title {
	white-space: normal;
}