/* MOBILE FIRST */

/* Défilement animé vers les ancres (ex. clic sur une catégorie de la page projets) */
@media (prefers-reduced-motion: no-preference){
	html{
		scroll-behavior: smooth;
	}
}

* {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
}


body{
	font-family: var(--fontFamily);
	font-size: var(--textSize);
	line-height: 1.3;
	margin: var(--bodyMargin);
	background: var(--backgroundColor);
	overflow-x: hidden;
}

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

a:hover{
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible{
	outline: 2px solid var(--mainColor);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6{
	font-family: var(--fontTitle);
	color: var(--mainColor);
}

h1{
	font-size: var(--h1Size);
}

p{
	margin-bottom: 1rem;
}

p a{
	color: var(--mainColor);
}

li.active a{
	text-decoration: underline;
}

img{
	width: 100%;
}

main{
	margin-top: 135px;
	margin-bottom: 150px;
	/*min-height: 52vh;*/
}

/* fade entre les pages (uniquement si JS actif et sans préférence pour un mouvement réduit, sinon le contenu reste visible) */
@media (prefers-reduced-motion: no-preference){
  .js #fade{
    opacity: 0;
    transition: opacity 1s ease-out;
  }
}

#fade.loaded{
  opacity: 1;
}

select{
	background: #FFF;
	border: 1px solid #000;
	width: 150px;
}

.block figure{
	margin-bottom: calc(var(--margin) * 2);
}

.glightbox-clean .gslide-title{
	font-family: var(--fontFamily);
	font-weight: 600;
	line-height: 1.2;
}

.show-for-small-only{
	display: block;
}

.hide-for-small-only{
	display: none;
}

.skip-link{
	position: fixed;
	top: -100px;
	left: 10px;
	background: #FFF;
	color: var(--mainColor);
	padding: 10px 20px;
	border: 1px solid var(--mainColor);
	border-radius: 4px;
	z-index: 2000;
	transition: top 0.2s ease;
}

.skip-link:focus{
	top: 10px;
}

/* Pas d'anneau de focus sur tout le bloc <main> quand le lien d'évitement y envoie le focus */
#fade:focus{
	outline: none;
}

/* Cache visuellement un élément sans le retirer de l'arbre d'accessibilité (SEO, lecteurs d'écran) */
.visually-hidden{
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.white-block{
	padding: 15px 20px 10px;
	background: #FFF;
	margin-bottom: calc(var(--margin)*3);
}

.white-block h2{
	font-weight: 700;
	margin-bottom: var(--margin);
}

.white-block h2::after{
	content: "—";
	display: block;
}

.grid {
  grid-template-columns: repeat(6, 1fr);
  margin-top: calc(var(--margin) * 2);
  margin-bottom: calc(var(--margin) * 2);
}

.column {
  grid-column: span min(var(--span), 6);
  row-gap: 30px;
}

.grid .column figure{
	margin-bottom: 0 !important;
}

.grid .column .blocks {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  height: 100%;
  align-content: center;
}


/* ---- H E A D E R -----*/
header{
	position: absolute;
	/*width: calc(100% - 55px);*/
	top:0;
	left:0;
	right: 0;
	padding: 15px;
	z-index: 1000;
}

header.row{
	margin:0;
	/*margin-left: -0.2em;*/
}

header .site__logo{
	z-index: 2;
}

header .site__logo figure{
	width: 70px;
	background: #FFF;
	padding: 10px;
	border-radius: 100%;
}

header .header__inner{
	padding: 7.5px 20px 7.5px 30px;
	background: #FFF;
	margin-left: -10px;
	border-radius: 0px 20px 20px 0px;
}

header .header__title{
	font-weight: 600;
	font-family: var(--fontTitle);
	font-size: var(--menuSize);
	line-height: 1.2;
}

header .header__title a{
	color: var(--mainColor);
}

header nav{
	position: relative;
	width: 100%;
}

header nav .main-menu_wrapper{
	max-height: 0;
	overflow: hidden;
	background: #FFF;
	margin: 0;
	transition: all 0.5s linear;
	position: absolute;
	top:0;
	left: -10px;
	padding: 0px 10px 0px;
}

#mobile-menu-toggle:checked ~ nav .main-menu_wrapper {
	max-height: 100vh;
	overflow: auto;
	padding: 20px 10px 15px;
}

header nav ul.main-menu{
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
}

header nav ul.main-menu li{
	font-weight: 600;
	font-family: var(--fontTitle);
	font-size: var(--menuSize);
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 5px;
}

header nav ul li a{
	color: var(--mainColor);
}

header .mobile__menu_btn {
  display: block;
  position: absolute;
  right: 22px;
  top: 28px;
  cursor: pointer;
  height: 44px;
  width: 44px; 
  padding: 8px;
  background: #FFF;
  border-radius: 100%;
  border: 1px solid var(--mainColor);
  z-index: 10;
}

header .mobile__menu_btn span {
  display: block;
  background: var(--mainColor);
  height: 2px;
  width: 26px;
  position: absolute;
  transition: all 0.5s ease;
}

header .mobile__menu_btn span:nth-child(1) { top: 12px; }
header .mobile__menu_btn span:nth-child(2) { top: 20px; }
header .mobile__menu_btn span:nth-child(3) { top: 28px; }

#mobile-menu-toggle:checked ~ .mobile__menu_btn span:nth-child(2) { opacity: 0; }

#mobile-menu-toggle:checked ~ .mobile__menu_btn span:nth-child(1) {
  -ms-transform: rotate(45deg);
  transform: rotatez(45deg);
  -webkit-transform-origin: 0%;
  left: 13px;
  top: 11px !important;
}

#mobile-menu-toggle:checked ~ .mobile__menu_btn span:nth-child(3) {
  -ms-transform: rotate(-45deg);
  transform: rotatez(-45deg);
  -webkit-transform-origin: 15%;
  top: 27px !important;
  left: 10px;
}

#mobile-menu-toggle:focus-visible ~ .mobile__menu_btn {
  outline: 2px solid var(--mainColor);
  outline-offset: 2px;
}

header .languages{
	margin-top: 15px;
	font-size: var(--menuSize);
}

header .languages li{
	margin-right: 10px;
}

header .languages li::after{
	content: "/";
	color: #000;
	margin-left: 5px;
	color: var(--mainColor);
}

header .languages li:last-child::after{
	content: none;
}



/* ----- H O M E -------- */
.home .home_header__wrapper{
	width: 100%;
	position: relative;
	width: 100%;
}

.home .big_logo__wrapper{
	padding: 0;
}

.home .subtitle{
	margin-top: calc(var(--margin) * 1);
	padding: 0;
	position: relative;
}

.home .subtitle h2{
	color: #000;
	font-size: var(--h1Size);
	font-weight: 600;
	line-height: 1.1;
}

@media (prefers-reduced-motion: no-preference){
	.js .home .subtitle h2{
		transition: all 2s ease;
		transform: translateX(200%);
	}
}

.home .subtitle.loaded h2{
	transform: translateX(0);
}

#home_graphic_el{
	height: calc(var(--h1Size) + (var(--h1Size)/3));
	background: #FFF;
	width: 90%;
	position: absolute;
	top: calc(var(--h1Size) * 0.5);
	left: 0%;
	z-index: -1;
}

@media (prefers-reduced-motion: no-preference){
	.js #home_graphic_el{
		transition: all 1s ease;
		transform: translateX(-300%);
	}
}

.home .subtitle.loaded #home_graphic_el{
	transform: translateX(0);
}

.catch_phrase{
	border-bottom: 1px solid #000;
	margin-bottom: calc(var(--margin) * 2);
	margin-top: calc(var(--margin) * 2);
}

.catch_phrase p{
	text-align: center;
	font-size: 1.35em;
	font-weight: 600;
}

.home .home_presentation{
	margin-top: calc(var(--margin) * 1);
	width: 100%;
}

.home .home_presentation strong{
	position: relative;
}

.home .home_presentation strong:before{
	content: "";
	background: #FFF;
	width: calc(100% + 10px);
	height: calc(var(--textSize) + 10px);
	display: block;
	position: absolute;
	top: 0;
	left: -5px;
	z-index: -1;
	min-width: 100px;
}

@media (prefers-reduced-motion: no-preference){
	.js .home .home_presentation strong:before{
		transition: all 2s ease 1s;
		transform: translateX(-600%);
	}
}

.home.loaded .home_presentation strong:before{
	transform: translateX(0);
}

.home .home_projects h2{
	font-size: var(--h1Size);
	line-height: 1.1;
	color:#FFF;
	padding: 0;
	margin-bottom: var(--margin);
}

.home .home_projects h2 span{
	background: var(--mainColor);
	padding: 10px 15px 15px;
	display: inline-block;
}

.home .home_projects h2 span:last-child{
	margin-top: -15px;
}

.home .home_projects article{
	position: relative;
	margin-bottom: calc(var(--margin) * 3);
}

.home .home_projects article .project_link{
	background: #FFF;
	padding: 15px 20px;
}

.home .home_projects article .project_link a{
		color: var(--mainColor);
}

.home .home_projects article .project_text{
	background: #FFF;
	padding: 15px 20px 10px;
	font-size: 0.7em;
}

.home_contact a{
	border: 2px solid var(--mainColor);
	padding: 10px;
	text-align: center;
	color: var(--mainColor);
	text-transform: uppercase;
	font-weight: 600;
	display: inline-block;
	margin-top:var(--margin);
}

.home_contact a:hover{
	background: var(--mainColor);
	color: #FFF;
	text-decoration: none;
}

.home_logos {
	padding-bottom: 15px;
}

.home_logos__gallery .grid{
	margin: 0;
	padding-left: 15px;
	padding-right: 15px;
	gap: calc(var(--margin) * 1);
}

@media only screen and (max-width: 47.99em) {
	.home_logos__gallery .grid{
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.home_logos__gallery .column{
		grid-column: span 1;
	}
}

.home_logos__gallery figure{
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	aspect-ratio: 1 / 1;
}

.home_logos__gallery figure a{
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.home_logos__gallery figure img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: url(#logoMonochrome);
}

#logoMonochrome feFlood{
	flood-color: var(--mainColor);
}

/* ----- P A G E S  G É N É R A L */
.page_header__wrapper{
	position: relative;
	margin-bottom: 200px;	
}

.page_header__wrapper h1{
	color: #000;
	font-size: var(--h1Size);
	font-weight: 500;
	line-height: 1.1;
	/*text-transform: uppercase;*/
	/*text-decoration: underline;*/
	position: absolute;
	top: calc(var(--h1Size) * -0.6);
}

@media (prefers-reduced-motion: no-preference){
	.js .page_header__wrapper h1{
		transition: all 1.5s ease;
		transform: translateX(-200%);
	}
}

.page_header__wrapper.loaded h1{
	transform: translateX(0%);
}

/* ----  P A G E  P R O J E T S ----  */
main.projets-wrapper{
	margin-top: calc(135px + (var(--h1Size) * 0.5));
}

.categories_tags_wrapper{
	padding-top: calc(var(--h1Size) * 0.8);
	margin: 0;
}

.categories_list{
	column-count: 2;
	column-gap: var(--margin);
	padding: 0;
}

.categories_list li{
	font-size: var(--menuSize);
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.2;
}

.categories_list li a{
	color: var(--grey);
}

.tags_list{
	line-height: 1;
	padding: 0;
	margin-top: var(--margin);
}

.tags_list li{
	font-size: var(--smallSize);
	font-weight: 300;
	display: inline;
	vertical-align: top;
}

.tags_list li:first-letter{
	text-transform: capitalize;
}

.tags_list li::after{
	content:"|";
	margin-left: 5px;
	vertical-align: baseline;
}

.tags_list li:last-child::after{
	content: "";
}

.tags_list .tag-filter{
	display: inline;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	color: #000;
	font: inherit;
	cursor: pointer;
}

.tags_list .tag-filter:hover{
	text-decoration: underline;
}

.tags_list .tag-filter.active{
	color: var(--mainColor);
	text-decoration: underline;
}


.projets-wrapper .projets__list_cat{
	position: relative;
	margin-bottom: 250px;
	opacity: 1;
}

@media (prefers-reduced-motion: no-preference){
	.projets-wrapper .projets__list_cat{
		transition: opacity 0.25s ease;
	}
}

.projets-wrapper .projets__list_cat.is-fading{
	opacity: 0;
}

.projets-wrapper h2{
	font-size: var(--h2Size);
	line-height: 1.1;
	color:var(--mainColor);
	font-weight: 500;
	position: absolute;
	top: calc(var(--h2Size) * -2 - var(--h2Size));
	padding-top: 50px;
}

.projets-wrapper h2::after{
	content:"";
	width: 102%;
	height: calc(var(--h2Size) * 0.7);
	background: #FFF;
	display: block;
	position: absolute;
	top: calc(var(--h2Size) * 1.7);
	left: -1%;
	z-index: -1;
}

.projets-wrapper .projets__list_cat:nth-child(even) h2{
	text-align: right;
	right:0;
}

.projets-wrapper .projets__list_cat:nth-child(even) h2::after{
	right:0;
}

.projets-wrapper #filtered-projects h2{
	text-align: left;
	right: auto;
	left: 0;
}

.projets-wrapper #filtered-projects h2::after{
	right: auto;
	left: -1%;
}

.projets-wrapper #filtered-projects h2::first-letter{
	text-transform: capitalize;
}

#filtered-projects__title{
	/*top: -50px;*/
}

.projets__list{
	padding: 0 0.8em;
}

.projets__list li{
	position: relative;
	margin:0;
	padding: 0;
	margin-bottom: var(--margin);
}

.projets__list li a{
	display: block;
	position: relative;
}

.projets__list li .projets__projet__cover img{
	display: block;
	width: 100%;
	height: auto;
}

.projets__list li .projet_info__wrapper{
	height: 100%;
	width: 100%;
	position: absolute;
	background: var(--mainColor);
	padding: var(--margin);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.projets__list li:hover .projet_info__wrapper{
	opacity: 1;
}

.projets__list li:hover{
	z-index: 400;
}

.projets__list li .projet_info__wrapper h3, 
.projets__list li .projet_info__wrapper h4, 
.projets__list li .projet_info__wrapper h5{
	color: #FFF;
	font-family: var(--fontFamily);
}

.projets__list li .projet_info__wrapper h4{
	position: absolute;
	bottom: var(--margin);
	font-size: 1.4em;
}

.projets__list li .projet_info__wrapper h3{
	font-style: italic;
}

.projets__list li figure{
	margin:0;
	padding: 0;
}

/* ------------ P R O J E T -------- */
.projet__page{
	position: relative;
}

.projet__page h1{
	text-transform: uppercase;
	font-weight: 600;
	line-height: 1.2;
	font-size: var(--h2Size);
}

.projet__page h1::after{
	content:"—";
	display: block;
	margin-top: -20px;
}

.projet_presentation{
	padding-bottom: var(--margin);
}

.projet_presentation .year,
.projet_presentation .client{
	color: var(--mainColor);
	font-size: 1.2em;
	font-weight: 600;
	font-family: var(--fontTitle);
	margin:0;
}

.projet_presentation .client{
	margin-bottom: var(--margin);
}

.projet_presentation{
	font-size: var(--menuSize);
}

.projet_presentation_supports ul{
	column-count: 2;
	column-gap: var(--margin);
}

.projet_presentation_supports.no-balance ul{
	column-fill: auto;
}

.projet__gallery .grid{
	margin-top: var(--margin);
	margin-bottom: var(--margin);
}

.projet_presentation_supports li{
	font-weight: 300;
}

/*.projet_presentation_supports li::before {
  content: "- ";
}*/

.projets__related{
	margin-top: calc(var(--margin) * 3);
}

.projets__related li{
	padding-left: 0.8rem;
	padding-right: 0.8rem;
	margin-bottom: var(--margin);
}

.projets__related li h3{
	font-family: var(--textFont);
	font-size: var(--menuSize);
	margin-top: 10px;
	line-height: 1.2;
}

.projets__related li a{
	color: var(--mainColor);
}

/* ------------ A B O U T ---------- */
.about__page h1{
	position: relative;
	font-weight: 500;
	margin-bottom: calc(var(--margin) * 2);
	color: #000;
	z-index: -1;
}

@media (prefers-reduced-motion: no-preference){
	.js .about__page h1{
		transition: all 1.5s ease;
		transform: translateX(300%);
	}
}

.about__page h1.loaded{
	transform: translateX(0%);
}

/* Titre de page conservé dans le HTML pour le SEO et les lecteurs d'écran, mais invisible à l'écran (le design visuel de la page vient d'ailleurs) */
.about__page h1.page-title{
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.about__page h1::after{
	content:"";
	width: 100%;
	height: calc(var(--h1Size) * 1);
	background: #FFF;
	display: block;
	position: absolute;
	top:50%;
	z-index: -1;
}

.about_presentation,
.about_bio{
	pointer-events: none;
}

.about_presentation > *,
.about_bio > *{
	pointer-events: auto;
}

.about__page .about_photo{
	margin-top: calc(var(--margin) * 1);
	margin-bottom: calc(var(--margin) * 3);
	z-index: -1;
}

@media (prefers-reduced-motion: no-preference){
	.js .about__page .about_photo{
		transform: translateY(100%);
		transition: all 1s ease;
	}
}

.about__page .about_photo.loaded{
	transform: translateY(0%);
}

.about__page .about_photo picture img{
	border-radius: 100%;
}

.about_photo__inner{
	display: grid;
}

.about_photo__img{
	grid-area: 1 / 1;
	width: 100%;
}

.about_photo__img--hover{
	opacity: 0;
	transition: opacity 0.4s ease;
	/*pointer-events: none;*/
}

.about_photo__img--hover img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about_photo__inner:hover .about_photo__img--hover{
	opacity: 1;
}

/* ------------ D E F A U L T ---------- */
.default__page h1{
	position: relative;
	font-weight: 500;
	color: #000;
	z-index: 1;
}

@media (prefers-reduced-motion: no-preference){
	.js .default__page h1{
		transition: all 1.5s ease;
		transform: translateX(-200%);
	}
}

.default__page h1.loaded{
	transform: translateX(0%);
}

.default__page .default_content{
	padding-top: calc(var(--h1Size)  / 1.5);
	margin-top: calc(var(--h1Size) * -0.6);
	margin-bottom: var(--margin);
}

.default__accroche{
	font-style: italic;
	text-align: center;
}


/* ----- SLICK SLIDER CUSTOM ------ */
.slick-prev{
	left: var(--margin);
	z-index: 1000;
}

.slick-next{
	right: var(--margin);
	z-index: 1000;
}

.slick-prev:before, .slick-next:before{
	font-family: var(--fontFamily);
}

.slick-next:before {
    content: '▶';
}

.slick-prev:before {
    content: '◀';
}

/* ----- F O O T E R ------- */
footer{
	border-top: 1px solid var(--grey);
	padding-top: var(--margin);
	font-size: var(--smallSize);
	color: var(--grey);
	width: calc(100% - (var(--bodyMargin) * 1));
}


footer a{
	color: var(--grey);
}

footer .footer__menu li:not(:last-child):after{
	content:"|";
	margin-right: 0.4em;
	margin-left: 0.4em;
}

footer .social-network li{
	font-size: 30px;
	vertical-align: top;
}

footer .colophon{padding: 0}

footer .colophon p{
	margin:0;
}

/* ------------ B A C K   T O   T O P ---------- */
.back-to-top{
	position: fixed;
	right: 20px;
	bottom: 20px;
	height: 44px;
	width: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFF;
	color: var(--mainColor);
	border: 1px solid var(--mainColor);
	border-radius: 100%;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
	z-index: 999;
}

.back-to-top:hover{
	background: var(--mainColor);
	color: #FFF;
}

.back-to-top.visible{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}






