/*
 Theme Name:   SandBox
 Theme URI:    https://generatepress.com
 Description:  Theme for SandBox - GeneratePress child theme
 Author:       Centre Inffo
 Author URI:   https://www.centre-inffo.fr
 Template:     generatepress
 Version:      0.1
*/

:root { 
	
	/* colors */
	--orange: rgb(235, 105, 11);
	--green: rgb(0, 159, 162);
	--light-gray: rgb(221, 221, 221);
	--medium-gray: rgb(153, 153, 153);
	--text-color: rgb(51, 51, 51);
	
	/* spacing */
	--small-spacing: 15px;
	--medium-spacing: 30px;
	--large-spacing: 60px;
}

/* general */

* {
	box-shadow: none !important;
}

body {
	border-top: 5px solid var(--green);
}

a {
	text-decoration: none;
	transition: ease-in .3s;
}

a.gb-button {
	border-radius: 4px !important;
}

div.base-2-color-button a:hover {
	color: var(--text-color);
	border-color: var(--text-color);
}

a.wp-block-button__link {
	border-width: 1px;
	border-radius: 4px;
}

a.read-more.button {
	padding: 6px 12px;
	margin-top: 10px;
	border-radius: 4px;
}

hr, hr.wp-block-separator {
	margin: 30px 0;
	height: 1px;
	background-color: #ddd;
	border: 0;
}

hr:after, hr.wp-block-separator:after {
	position: absolute;
	display: block;
	margin-top: 3px;		
	height: 1px;
	width: 75px;
	content: "";
	background-color: var(--green);			
}

img {
	border-radius: 4px;
}

/* header */

div.top-bar {
	border-bottom: 1px solid var(--light-gray);
}

div.inside-top-bar img {
	margin-bottom: -8px;
}

header.site-header {
	padding: 30px 0;
}

/* main navigation */

nav.main-navigation {
	border-top: 1px solid var(--light-gray);
	border-bottom: 1px solid var(--light-gray);
}

ul#menu-menu-principal-1 li.current-menu-item {
	border-bottom: 2px solid var(--green);
	margin-top: 2px;
}

ul.sub-menu {
	border-right: 1px solid var(--light-gray);
	border-bottom: 1px solid var(--light-gray);
	border-left: 1px solid var(--light-gray);
}

/* content */

h1.page-title {
	font-size: 36px;
	padding-bottom: 30px;
	margin-bottom: 30px;
	border-bottom: 1px solid var(--light-gray);
}

div.entry-meta, time.wp-block-latest-posts__post-date {
	font-style: italic;
}

span.posted-on:before, time.wp-block-latest-posts__post-date:before {
	content: "Le ";
}

span.posted-on:after {
	content: ", ";
}

ul.wp-block-latest-posts__list.has-dates.homepage-last-news.wp-block-latest-posts {
	padding-left: 0;
	margin-left: 0;
}

ul.wp-block-latest-posts__list.has-dates.homepage-last-news.wp-block-latest-posts li div.wp-block-latest-posts__featured-image.alignleft {
	margin-bottom: var(--small-spacing);
}

/* members */

div.member-infos {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid var(--light-gray);
}

div.member-infos i {
	color: var(--medium-gray);
}

/* hubbub (share) */

.dpsp-network-btn:hover, .dpsp-network-btn:active {
	box-shadow: unset;
}

.dpsp-email {
	background-color: rgb(3, 34, 76) !important;
	border-color: rgb(3, 34, 76) !important;
}

.dpsp-print {
	background-color: rgb(19, 65, 151) !important;
	border-color: rgb(19, 65, 151) !important;
}

/* the events calendar */

header.tribe-events-widget-events-list__header h2 {
	display: none !important;
}

h3.tribe-events-widget-events-list__event-title.tribe-common-h7 {
	font-weight: normal;
	font-size: 15px !important;
}

h3.tribe-events-widget-events-list__event-title.tribe-common-h7 a {
	color: var(--green) !important;
	transition: ease-in .3s;
	text-decoration: none;
	border: 0;
}

h3.tribe-events-widget-events-list__event-title.tribe-common-h7 a:hover {
	color: var(--text-color) !important;
	text-decoration: none;
	border: 0;
}

div.tribe-events-widget-events-list__view-more.tribe-common-b1.tribe-common-b2--min-medium, 
a.tribe-events-widget-events-list__view-more-link.tribe-common-anchor-thin {
	display: none;
}


div.tribe-common-l-container.tribe-events-l-container, 
section.tribe-events-pg-template {
	margin: 0 !important;
	padding: 0 !important;
}

div.tribe-events-header__events-bar {
	margin-top: 30px;
}

h3.tribe-events-calendar-list__event-title {
	font-family: 'Barlow Condensed', sans-serif !important;
	font-weight: normal !important;
}

div.tribe-block__organizer__title h3, 
div.tribe-block__venue__name h3 {
	font-size: 22px !important;
}

span.tribe-block__venue__phone:before {
	content: "Tél. : "
}

span.tribe-block__venue__website a {
	display: none;
}

button.tribe-events-c-subscribe-dropdown__button-text.tribe-common-c-btn--clear {
	font-weight: normal;
}

/* footnotes */

a.footnote-link.footnote-identifier-link {
	display: inline-block;
	margin-left: 3px;
	font-weight: 900;
}

ol.footnotes {
	margin-left: 0;
	padding-top: 20px;
	border-top: 1px solid var(--light-gray);
}

ol.footnotes li {
	font-size: 15px !important;
	margin-left: 15px;
}

span.footnote-back-link-wrapper {
	display: none;
}

/* right sidebar */

div.inside-right-sidebar aside.inner-padding {
	padding-top: 0;
	padding-bottom: 0;
}

aside h2.wp-block-heading {
	font-size: 22px;
}

div.inside-right-sidebar div.tribe-compatibility-container {
	padding: 0 40px;
}

div.inside-right-sidebar div.tribe-compatibility-container a {
	color: var(--text-color) !important;
}

div.inside-right-sidebar div.tribe-compatibility-container a:hover {
	color: var(--green) !important;
}

/* footer */

div.footer-widgets {
	border-top: 1px solid var(--light-gray);
	border-bottom: 1px solid var(--light-gray);
}

div.footer-widgets h2.wp-block-heading {
	font-size: 22px;
}

div.footer-widgets ul li {
	list-style-type: disc;
	list-style-position: inside;
	transition: ease-in .3s;
}

div.footer-widgets ul li:hover {
	margin-left: 5px;
}

a.generate-back-to-top {
	bottom: 12px;
	right: 12px;
	border-radius: 25px !important;
	transition: ease-in .3s;
}

a.generate-back-to-top {
	bottom: 8px;
	right: 90px;
}

/* tablets & smartphones */

@media screen and (max-width: 768px) {
	
	div.top-bar {
		display: none;
	}
	
}