/*
Theme Name: vvb
Theme URI: n/a
Author: Thomas
Author URI: n/a
Description: Theme pour VVB
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: <https://www.gnu.org/licenses/gpl-2.0.html>
Text Domain: vvb
Tags: custom-background
*/

* {
	margin: 0;
	padding: 0;
}

:root {
	--article-padding: 20px;
	--corner-radius: 4px;
	--carousel-heigth: 300px;
	--local-blue: #001882;
	--local-blue-anchor: #355dd7;
	--carousel-dots-theme: #001882; /* #4d4d4d */
}

::selection {
	background-color: var(--local-blue);	
	color: #fff;
}

@font-face {
	font-family: "Anton";
	src: url("fonts/Anton-Regular.ttf") format("truetype");
}

body {
	font-family: "Cantarell", sans-serif;
	line-height: 22px;
}

header {
	display: flex !important;
	height: 180px;
	background-position-y: -90px;
	background-image: linear-gradient(white, black), url("images/header-back.jpg");
	background-size: cover;
	background-blend-mode: saturation;
	align-items: center;
	padding-left: 40px;
}

header h1 {
	font-family: "Anton", sans-serif;
  	font-style: normal;
	margin-left: 20px;
	font-size: 50px;
	color: white;
}

header img {
	width: 100px;
}

main {
	display: flex !important;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	margin-top: 50px;
	gap: 40px;
}

.preamble {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 60%;
	border-bottom: 1px solid var(--local-blue);
	padding-bottom: 10px;
}

.preamble h2 {
	font-family: "Anton", sans-serif;
	font-style: normal;
  	font-size: 25px;
	color: var(--local-blue);
}

.team-gallery {
	width: 60%;
}

.team-gallery-figure {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.team-gallery-figure figure {
	height: 300px;
	position: relative;
	flex-grow: 1;
}

.team-gallery-figure figure img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	vertical-align: middle;
	border-radius: 5px;
	transition: all 0.3s;
}

.team-gallery-figure figure img:hover {
	filter: opacity(80%);
}

.main-mosaic-container {
	width: 60%;
	-webkit-column-count: 2;
	-webkit-column-gap: 8px; 
	-moz-column-count: 2;
	-moz-column-gap: 20px;
	column-count: 2;
	column-gap: 20px;
}

.main-mosaic-container article {
	display: inline-grid;
	width: 100%;
	border-radius: var(--corner-radius);
	margin-bottom: var(--article-padding);
	gap: 10px;
	background-color: #fff;
}

.main-mosaic-container article h2 {
	font-family: "Anton", sans-serif;
  	font-style: normal;
  	font-size: 25px;
	color: var(--local-blue);
}

.main-mosaic-container article section {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--local-blue);
	border-radius: var(--corner-radius);
	padding: 8px;
	gap: 10px;
}

.main-mosaic-container article section p {
	text-align: justify;
}

.main-mosaic-container article section ul {
	padding-left: 20px;
}

.carousel-photo, .carousel-une, .carousel-boutique {
	width: 100%;
	height: var(--carousel-heigth);
	position: relative;
	overflow: hidden;
	border-radius: var(--corner-radius);
}

.carousel-photo > img {
	width: 100%;
	height: var(--carousel-heigth);
	position: absolute;
	transition: all 1s;
	background-color: #fff;
	object-fit: cover;
}

.carousel-une .carousel-une-article, 
.carousel-boutique .carousel-boutique-article {
	display: flex;
  	flex-direction: column;
	gap: 10px;
	width: 100%;
	height: var(--carousel-heigth);
	position: absolute;
	transition: all 1s;
	background-color: #fff;
	object-fit: cover;
}

/* wordpress mets l'image (1er element) des articles dans une balise p */

.carousel-une .carousel-une-article p,
.carousel-boutique .carousel-boutique-article p {
	width: 95%;
} 

.carousel-une .carousel-une-article p:first-child,
.carousel-boutique .carousel-boutique-article p:first-child {
	width: 100%;
} 

.carousel-une .carousel-une-article p:first-child img, 
.carousel-boutique .carousel-boutique-article p:first-child img {
	height: calc(var(--carousel-heigth) / 2);
	object-fit: cover;
	width: 100%;
}

.carousel-boutique .carousel-boutique-article p:first-child img {
	object-fit: contain;
}

.carousel-photo .carousel-photo-button, 
.carousel-une .carousel-une-button, 
.carousel-boutique .carousel-boutique-button {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	width: 40px;
	height: 40px;
	padding: 10px;
	border: none;
	border-radius: 50%;
	z-index: 10px;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 1);
	top: 5px;
	transition: all 0.2s;
	filter: opacity(70%);
}

.carousel-photo .carousel-photo-button:hover, 
.carousel-une .carousel-une-button:hover, 
.carousel-boutique .carousel-boutique-button:hover {
	filter: opacity(100%);
	background-color: #fff;
}

.carousel-photo .carousel-photo-button img, 
.carousel-une .carousel-une-button img, 
.carousel-boutique .carousel-boutique-button img {
	width: 30px;
}

.carousel-photo #carousel-photo-button-next, 
.carousel-une #carousel-une-button-next, 
.carousel-boutique #carousel-boutique-button-next {
	right: 5px;
}

.carousel-photo #carousel-photo-button-next img, 
.carousel-une #carousel-une-button-next img, 
.carousel-boutique #carousel-boutique-button-next img {
	transform: rotate(180deg);
}

.carousel-photo #carousel-photo-button-prev, 
.carousel-une #carousel-une-button-prev,
.carousel-boutique #carousel-boutique-button-prev {
	left: 5px;
}

.carousel-photo .carousel-photo-dotline,
.carousel-une .carousel-une-dotline,
.carousel-boutique .carousel-boutique-dotline {
	display: flex;
	justify-content: center;
	position: absolute;
	bottom: 0;
	gap: 10px;
	height: 5px;
	width: 100%;
}

.carousel-photo .carousel-photo-dotline {
	bottom: 5px;
}

.carousel-photo .carousel-photo-dotline .carousel-photo-dotline-dot,
.carousel-une .carousel-une-dotline .carousel-une-dotline-dot,
.carousel-boutique .carousel-boutique-dotline .carousel-boutique-dotline-dot {
	background-color: #fff;
	border-radius: 5px;
	border: 1px solid var(--carousel-dots-theme);
	width: 30px;
}

.carousel-photo .carousel-photo-dotline .carousel-photo-dotline-dot {
	background-color: transparent;
}

.dot-active {
	background-color: var(--carousel-dots-theme) !important;
}

.social-list li {
	display: flex;
	align-items: center;
	line-height: 40px;
	gap: 10px;
}

.social-list img {
	width: 30px;
}

.noscript-notice-article {
	color: #fff;
}

.noscript-notice-article h2 {
	color: #000;
	padding-left: 10px;
}

.noscript-notice-article section {
	border: none !important;
	font-weight: bold;
	background-color: #d00000;
}

.text-anchor {
	color: var(--local-blue-anchor);
	transition: color 0.3s;
}

.text-anchor:hover {
	color: var(--local-blue);
}

footer {
	background-color: var(--local-blue);
	text-align: center;
}

.footer-partnership-section {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	color: white;
	gap: 20px;
	padding: 20px;
}

.footer-team {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background-color: initial;
	height: 100px;
}

.footer-partnership-section section {
	display: flex;
	gap: 30px;
}

.footer-partnership-section section img {
	background-color: #fff;
	border-radius: var(--corner-radius);
	padding: 5px;
	height: 50px;
	width: auto;
}

.footer-partnership-section h2 {
	font-family: "Anton", sans-serif;
  	font-style: normal;
  	font-size: 25px;
}

.footer-partnership-section h2, 
.footer-partnership-section p, 
.footer-coordinates-section h2, 
.footer-coordinates-section p {
	margin-bottom: 0 !important;
}

.footer-coordinates-section {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	background-color: white;
	height: 60px;
}

.secondary ul {
	padding-left: 9px !important;
}

.bold-text {
	font-size: 18px;
	font-weight: bold;
}

.button {
	padding: 6px;
	border-radius: var(--corner-radius);
	background-color: var(--local-blue);
	text-decoration: none;
	color: #fff;
	transition: all 0.5s;
	border: 1px solid var(--local-blue);
}

.button:hover {
	color: var(--local-blue);
	background-color: #fff;
}

@media (max-width: 1500px){
	.main-mosaic-container, .preamble { width: 85%; }
}

@media (max-width: 980px){
	main { margin-top: 30px; }

	header {
		height: 170px;
		gap: 20px;
	}
}

@media (max-width: 870px) {
	.team-gallery { width: 90%; }
}

@media (max-width: 780px){
	.preamble { width: 95%; }

	.main-mosaic-container {
		width: 95%;
		-webkit-column-count: 1;
		-moz-column-count: 1;
		column-count: 1;
	}
}

@media (max-width: 610px) {
	header { line-height: 70px; }
}

@media (max-width: 550px){
	header {
		line-height: 22px;
		padding-left: 0;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background-size: cover;
		background-position-y: initial;
	}

	header h1 {
		text-align: center;
		font-size: 35px;
		margin-left: 0;
		width: 90%;
	}

	header img {
		width: 80px;
	}

	.footer-partnership-section {
		height: 120px;
		flex-direction: column;
	}
}