/* 
	============
	CSS Pergola 
	Créé à partir de Prairial
	============
*/

/* Variables et polices */
:root {
	--color-primary: #5eb6a0;
	--color-secondary: #5daa22;
	--color-secondary-lt: #b0cd58;
	--color-ter: #e1e041;
	--font-1: Public-Sans,Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif;
	--font-2: Libre-Baskerville,Ubuntu, "DejaVu Sans", "Bitstream Vera Sans", Geneva, sans-serif;
	--text-color: black;
}

@font-face {
    font-family: "Public-Sans";
    src: url('../fonts/Public-Sans.ttf');
}

@font-face {
    font-family: "Libre-Baskerville";
    src: url('../fonts/Libre-Baskerville-Regular.ttf');
}

@font-face {
    font-family: "Libre-Baskerville";
    src: url('../fonts/Libre-Baskerville-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: "Libre-Baskerville";
    src: url('../fonts/Libre-Baskerville-Italic.ttf');
    font-style: italic;
}

/* Styles génériques */

body {
	background: #fff;
	font-family: var(--font-1);
}

body * {
    -webkit-transition:0.2s;
    -moz-transition:0.2s;
    -o-transition:0.2s;
    transition:0.2s;
}

a, a:visited {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover, a:focus, a:active {
	color: var(--color-secondary);
	text-decoration: none;
}

section {
	padding: 20px 0;
}

.hidden {
	display: none;
}

a.btn-primary:hover, a.btn-primary:focus, a.btn-primary:active {
	background-color: var(--color-primary) !important; 
	border-color: var(--color-primary) !important;
	outline: none !important;
}

a.btn-primary:active, a.btn-primary:focus {
	box-shadow: 0 0 0 4px var(--color-secondary) !important;
}

.btn-lg {
	padding: .5rem 1rem .6rem;
}

.btn-outline-primary {
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.section-h {
	font-family: var(--font-2);
	text-align: center;
	margin: 30px auto 50px;
	font-size: 2.6rem;
	font-weight: 300;
	line-height: 1.2;
}

.section-h-small {
	font-family: var(--font-2);
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1.2;
	color: var(--text-color);
	margin-bottom: 20px;
}

.retour {
	display: block;
	margin-top: 2rem;
}

h1, h2, h3, h4, h5, h6, .titre {
	font-weight: bold;
	font-family: var(--font-2);
}
/* Structure (et variantes) */

.main-container {
	background: #FFF;
	padding-top: 1px;
	padding-bottom: 50px;
}

.tpl-article .main-container {
	padding-top: 50px;
}

.tpl-actualites .main-container {
	padding-top: 20px;
}

.tpl-catalogue .main-container {
	background: #fbfffb;
	border: 1px solid #eee;
}

.tpl-catalogue .revues .card {
	box-shadow: 0px 0px 5px rgba(0,0,0,.3);
}

.tpl-home .section-h {
	font-size: 2rem;
}

.tpl-home .presentation h1 {
	font-weight: normal;
    font-size: 2rem;
}

.tpl-home .revues {
	background-color: var(--color-secondary);
	background-image:url('../images/fond-colore.jpg');
	background-size: cover;
}
.tpl-home .revues .section-h {
	color: #FFF;
}

.tpl-home .revues .section-h a:hover {
	color: #E0FFE0 !important;
}

.tpl-home .revues .lien-catalogue {
	margin-top: -15px;
	margin-bottom: 5px;
}

.tpl-home .revues .lien-catalogue a {
	font-size: 1.15rem;
	color: white;
}

.tpl-home .revues .lien-catalogue a:hover {
	color: #E0FFE0;
}

.tpl-home .revues .card {
	box-shadow: 0px 0px 5px rgba(0,0,0,.7);
}

@media(max-width: 992px) {
	.tpl-home .revues .revues-container .revue:nth-child(0n+3) {
		display:none;
	}

	.tpl-home .actus .actus-grid .actu:nth-child(0n+3) {
		display:none;
	}
}


/* Header principal */

.main-header {
	padding: 0;
	background: #fff;
}

.logo {
	display: block;
	max-width: 100%;
	max-height: 350px;
	margin: 0;
	opacity: 1;
	width:100%;
	object-fit: contain;
}

.logo:hover, .logo:focus {
	opacity: 1;
}

/* Navigation principale */

.main-nav, a.btn-primary {
	background-color: #fff;
	border-top: solid 2px #818181;
	border-bottom: solid 2px #818181;
	color: var(--text-color);
}

.main-nav {
	padding: 0;
}

.main-nav .navbar-collapse {
	padding: 0 5px 20px 10px;
	font-family: var(--font-2);
	font-weight: bold;
}

.main-nav a {
	color: var(--text-color);
	font-size: 1.1rem;
}

.main-nav .nav-item {
	padding: 5px;
}

.main-nav .nav-item.active, .main-nav .nav-item.active .nav-link {
	color: var(--color-primary);
}

.main-nav .nav-item:hover,.main-nav .nav-link:hover, .main-nav .nav-item:focus, .main-nav .nav-link:focus {
	color: var(--color-secondary);
}

.main-nav .navbar-toggler {
	border: 0px;
	width:100%;
	padding: 10px 0;
	font-family: var(--font-2);
}

.main-nav .navbar-toggler:hover {
	color: var(--color-secondary);
}


.main-nav .navbar-toggler::before, .main-nav .navbar-toggler::after {
    -webkit-transition:0.4s;
    -moz-transition:0.4s;
    -o-transition:0.4s;
    transition:0.4s;
	display: inline-block;
	content: "\25be";
	font-size: 1.1rem;
	margin-right: 10px;
}

.main-nav .navbar-toggler[aria-expanded="true"]::before, .main-nav .navbar-toggler[aria-expanded="true"]::after {
	transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	-o-transform: rotate(180deg);
}

.main-nav .navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 992px) { 
	.main-nav .navbar-collapse {
		padding: 0;
		justify-content: center;
	}

	.main-nav .nav-item {
		padding: 10px 10px 5px 10px;
		border-bottom: 5px solid transparent;
		-webkit-transition : border 200ms ease-out;
		-moz-transition : border 200ms ease-out;
		-o-transition : border 200ms ease-out;
		transition : border 200ms ease-out;
	}
}

@media(min-width: 1200px) {
	.main-nav a {
		font-size: 1.2rem;
	}
}

/* Footer principal */

.main-footer {
	color: #fff;
	padding-top: 50px;
	padding-bottom: 50px;
	background-color: var(--color-primary);
}

.main-footer a, .main-footer a:visited {
	color: #fff;
}

.main-footer a:hover, .main-footer a:focus {
	color: #fff;
}

.footer-links, .footer-links .nav-link, .footer-links .nav-item {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links a.nav-link:hover {
	color:var(--color-ter);
}

.footer-section-title {
	font-size: 1.2rem;
	margin-bottom: 20px;
}

.logos-img {
	width: 100%;
	max-width: 200px;
	opacity: .9;
	margin-bottom: 20px;
}

.logos-img:hover, .logos-img:focus {
	opacity: 1;
}

/* Billet de presentation */

.jumbotron-h {
	font-size: 2.6rem;
	font-weight: 300;
	line-height: 1.2;
}

.jumbotron {
	background: #fff;
}

.list-img-container {
	width: 100%;
	max-width: 100px;
	position: relative;
}

.list-img-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	box-shadow: inset 0 0 5px 1px rgba(0, 0, 0, 0.1)
}

.list-img {
	width: 100%;
	border-radius: 50%;
}

.list-text {
	margin-left: 20px;
}

.list-group-item-action:focus, .list-group-item-action:hover {
	background: none;
	border-color: transparent;
}

.presentation-more {
	font-size: 1.3rem;
}

a.presentation-link {
	color: #000;
	text-decoration: none;
}

a.presentation-link:hover, a.presentation-link:focus {
	color: var(--color-secondary);
}

/* Catalogue */
.tpl-catalogue .section-h {
	/*color: var(--color-primary);*/
	font-weight: 700;
}

.revues-container {
	opacity: 1;
	-webkit-transition: opacity 0.2s;
	transition: opacity 0.2s;
}

.revues-container.loading {
	opacity: 0;
}

.revue {
	margin-bottom: 40px;
}

.card {
	height: 100%;
	min-height: 450px;
}

.card-img-top {
	border-bottom: solid 1px rgba(0,0,0,.125);
	aspect-ratio: 35 / 13;
	object-fit: cover;
}

.card-footer {
	border-top: solid 1px rgba(0,0,0,.125);
	padding: 0;
}

.card-footer .card-footer-link {
	color: black;
	display: block;
	line-height: 3rem;
	background-color: transparent;
	font-weight:bold;
}
.card-footer .card-footer-link:hover {
	color: var(--color-secondary);
	background-color: rgba(238, 255, 225, 0.5);
}
/* Filtres du catalogue */

.filters-navbar {
	padding: 0;
	margin-bottom: 40px;
}

.filters-navbar .navbar-brand {
	display: block;
	width: 100%;
}

.filter-control {
	margin-top: .5rem;
}

@media (min-width: 768px) { 
	.filter-control {
		margin-top: 0;
		margin-left: .5rem;
	}

	.filter-control:first-child {
		margin-left: 0;
	}
}

.filter-reset {
	white-space: nowrap;
	color: var(--color-primary);
}

.filter-reset:hover, .filter-reset:focus {
	color: var(--color-secondary);
}

/* Actualites */

.tpl-actualites .section-h {
	font-weight: 700;
	/*color: var(--color-primary);*/
}

.actus-grid {
	margin-top: 30px;
}

.actus-grid > div {
	margin-bottom: 30px;
}

.actu__date {
	font-family: var(--font-2);
	font-size: .9rem;
	margin-bottom: .2rem;
	color: #888;
}

.actu__img {
	max-width: 100%;
	height: auto;
	margin-bottom: 10px;
}

.actu__img.card-img-top {
	aspect-ratio: 3/2;
}

.lien-actus a {
	font-size: 1.15rem;
	color: var(--text-color);
}

.lien-actus a:hover {
	color: var(--color-secondary);
}

.actu .card {
	border:none;
	min-height:0px;
}

.actu .card-body {
	padding:0;
	padding-top:1rem;
	padding-bottom:1rem;
}

.actu .card-footer {
	border: none;
	background: transparent;
	font-family: var(--font-2);
}
.actu__img_default {
	content: url('../images/actu_default.png');
}

/* Styles article */
.tpl-article h1 {
	color: var(--color-primary);
}


.titre {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
	/*color: var(--color-primary);*/
}

.soustitre {
	font-size: 1.25rem;
	font-weight: 300;
	margin-bottom: 1rem;
}

.texte-container {
	font-size: 1.15rem;
}

.texte-container h1 {
	margin: 2rem 0 1rem;
	font-size: 2rem;
}

.texte-container h2 {
	margin: 1.6rem 0 1rem;
	font-size: 1.6rem;
}

.texte-container h3 {
	margin: 1.2rem 0 1rem;
	font-size: 1.2rem;
}

.epigraphe, .citation, .citationbis, .citationter {
	margin-left: 5rem;
}

p.texte img {
	max-width: 100%;
	margin: 40px auto;
	display: block;
}

.titreillustration {
	margin-top: 30px;
	font-weight: bold;
	text-align: center
}

.legendeillustration, .creditillustration {
	color: #666;
	font-size: 1rem;
}

.titreillustration + p.texte img {
	margin-top: 10px;
}

p.texte + .legendeillustration, p.texte + .creditillustration, .legendeillustration + .creditillustration {
	margin-top: -25px;
	margin-bottom: 30px;
}

.texte li p {
	margin-bottom: 5px;
}

.encadre {
    padding: 20px;
    margin: 30px 0;
}

p.encadre {
  background-color: #D2DCE6;
  margin-bottom: 0;
}

p.encadre + p.encadre {
	margin-top: 0;
}

img.texte-vignette {
	width: 100%;
	max-width: 100%;
	margin: 20px auto;
}

@media (min-width: 768px) { 
	img.texte-vignette {
		max-width: 300px;
		margin: 0 0 20px 20px;
		float: right
	}
}

@media (min-width: 992px) { 
	img.texte-vignette {
		max-width: 400px;
		margin-right: -100px;
	}
}

.date {
	font-size: 1rem;
	color: #333;
	margin-bottom: 10px;
}

.docannexes {
	margin: 30px 0;
	border-left: 5px solid var(--color-primary);
	padding: 5px 0 5px 20px;
}

.docannexes__items {
	padding: 0;
	margin: 0;
	list-style: none;
}

.docannexe {
	font-size: 1.1rem;
	margin: 10px 0 10px;
}

.docannexe__title {
	margin: 0;
}

.docannexe__description {
	color: #57636e;
}

.img-rss {
    height: 1rem;
}

@media (min-width: 992px) { 
	.lang-select {
		position: absolute;
		right: 60px;
	}
}

.lang-select a {
	font-size: 1rem;
}
