@font-face {
	font-family: merlo;
	src: url('../fonts/merlo/merlotx-regular.otf');
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: merlo;
	src: url('../fonts/merlo/merlotx-regular-italic.otf');
	font-weight: 400;
	font-style: italic;
}

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	box-sizing: border-box;
	vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* CUSTOM */


* {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	--hugeSize: 50px;
	--hugeLeading: 56px;
	--bigSize: 34px;
	--bigLeading: 40px;
	--bodySize: 26px;
	--bodyLeading: 30px;
	--noteSize: 20px;
	--noteLeading: 23.4px;
	--headerSize: 36px;
	--headerLeading: 38px;
	--credit: 15px;
	--blue: rgb(0, 0, 255, 1)
}

html {
	scroll-behavior: smooth;
	scroll-padding: 99px;
}

a,
a:visited,
a:hover {
	color: inherit;
	text-decoration: none
}
small{
	font-size: var(--noteSize);
	line-height: var(--noteLeading);
}

em {
	font-style: italic;
}

body {
	font-family: merlo;
	font-size: var(--bodySize);
	line-height: var(--bodyLeading);
}

h1 {
	font-size: 50px;
	line-height: 1;
}

.main-carousel {
	position: fixed;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: calc(100% - 70px);
	z-index: -1;
}

.flickity-viewport {
	height: 100% !important;
	width: 100%;
}

.carousel-cell {
	height: 100%;
	width: 100%;
}

.carousel-cell img {
	object-fit: scale-down;
	object-position: 50%;
	padding: 0px 30px 20px;
	height: 100%;
	width: 100%;
}

/* menu */

nav#main-menu {
	background-color: #fff;
	font-size: var(--hugeSize);
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	padding: 6px 30px 9px;
	min-height: 70px;
	line-height: 1;
	z-index: 11;
}

nav#main-menu.open {
	height: 100vh;
}

nav#main-menu a {
	text-decoration: none;
	color: inherit;
	position: relative;
}

nav#main-menu ul {
	display: none;
	width: 100%;
	line-height: var(--hugeLeading);
}

nav#main-menu.open ul {
	display: block;
}

nav#main-menu ul li a {
	display: block;
}

nav#main-menu ul li:hover,
nav#main-menu ul li:active,
nav#main-menu ul li:focus,
nav#main-menu ul li:focus-visible,
nav#main-menu ul li:focus-within,
nav#main-menu ul li.active {
	padding-left: 28px;
	outline: none !important;
	border: 0 solid !important;
}

article {
	padding: 74px 30px;
}

.lnum {
    font-feature-settings: 'lnum';
}

h2 {
	font-size: var(--bigSize);
	line-height: var(--bigLeading);
	display: flex;
}

.tpl-textes .pubdate {
	display: inline-block;
	width: 104px;
	margin-right: 60px;
	flex: 0 0 104px;
}

.tpl-textes .titre {
	display: inline-block;
	max-width: 880px;
	flex: 0 1 880px;
}

.tpl-texte main {
	display: flex;
	column-gap: 15px;
}


.tpl-texte section#maintext {
	font-size: var(--bodySize);
	line-height: var(--bodyLeading);
	max-width: 880px;
	flex: 0 1 880px;
}

.tpl-texte aside figure {
	position: relative;
}

.tpl-texte aside#imageszone {
	max-width: 248px;
	flex: 0 1 248px;
	position: relative;
}

.tpl-texte aside#imageszone a {
	/* translate: 0 -50% ; */
	position: absolute;
	width: 100%;
}

.tpl-texte aside#imageszone .portrait img {
	width: 172px;
	margin: 0 37.5px;
	position: relative;
}

.tpl-texte aside#imageszone a img {
	width: 100%;
}




.tpl-texte aside#imageszone a img:hover {
	scale: 220%;
	transform-origin: 100% 50%;
	z-index: 10;
}

.tpl-texte aside#imageszone .vignette.portrait img:hover {
	scale: 200%;
	transform-origin: calc(100% - 35px) 50%;
}

.tpl-texte aside#imageszone figcaption {
	display: none;
}


.tpl-texte section#maintext p {
	margin-bottom: 30px;
}

.tpl-texte article {
	padding: 99px 30px 80px;
	max-width: 100%;
}

.tpl-texte h1 {
	text-align: center;
	font-size: var(--headerSize);
	line-height: var(--headerLeading);
	margin-bottom: 28px;
	margin-top: -4px;
}

.tpl-texte .dltext {
	font-size: var(--noteSize);
	height: 30px;
	font-style: italic;
	display: inline-block;
	position: absolute;
	translate: 0 -100%;
}

.entretien {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-skip: none;
	text-decoration-thickness: 1px;
	display: inline-block;
	margin-right: 39px;
	min-width: 40px;
}

/* menu */

nav li.file:hover a::after {
	content: " ";
	background-image: url(../img/white-glove.svg);
	width: 38px;
	height: 33px;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: 37px;
	top: 22px;
	position: absolute;
}

/* nav li.file, 
nav li.file a {
    cursor: url(../img/white-glove.svg) 0 0 , pointer;
}
nav li.page,
nav li.page a {
    cursor: url(../img/black-glove.svg) 0 0 , pointer;
} */

/* FOOTNOTES */

.footnotes hr {
	display: none;
}

.footnotes {
	padding-left: 60px;
	margin-top: 30px;
}

.footnotes ol {
	counter-reset: ft-list;
}

.footnotes ol li {
	counter-increment: ft-list;
}

.footnotes ol li p:before {
	content: "[" counter(ft-list)"]";
	display: inline-block;
	font-feature-settings: "lnum", "tnum", "case";
	width: 65px;
}

.footnote-ref {
	font-feature-settings: "lnum", "tnum";
}

.footnote-ref::before {
	content: "[";
	font-feature-settings: "case";
}

.footnote-ref::after {
	content: "]";
	font-feature-settings: "case";
}

.footnote-backref {
	color: transparent !important
}

.footnote-backref {
	background-image: url("../img/fleche.svg");
	background-size: auto 23px;
	background-repeat: no-repeat;
	background-position: 0 50%;
}

.footnote-backref::before {
    content: 'Resume reading';
    color: #000;
    padding-left: 25px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-skip-ink: none;
    text-decoration-thickness: 2px;
}

html[lang=fr] .footnote-backref::before {
	content: 'Reprendre la lecture';
	color: #000
}

.footnotes li p {
	margin-bottom: 0 !important;
}

/* TEXTS */
.tpl-textes h2 a:hover {
	padding-left: 60px;
}

h2.frVersion {
	color: blue
}

.notes {
	font-size: var(--noteSize);
	line-height: var(--noteLeading);
}

.vignette img {
	display: block;
}

.lightboxOverlay {
	background-color: #fff;
	opacity: 1;

}

/* lightbox */
#lightbox {
	position: fixed;
	top: 0;
	left: 0;
	background-color: #fff;
	width: 100%;
	height: 100%;
	z-index: 1000;
}

#lightbox-content {
	padding: 30px 80px 80px;
	height: 100%;
	width: 100%;
	display: flex;
	justify-content: center;
}

#lightbox-content img {
	object-fit: scale-down;
	width: 100%;
	height: 100%;
}

#lightboxclose {
	background-image: url('../img/close.svg');
	position: absolute;
	right: 30px;
	top: 30px;
	height: 30px;
	width: 30px;
}

#next,
#prev {
	background-image: url('../img/black-arrow.svg');
	position: absolute;
	right: 30px;
	top: 50%;
	height: 30px;
	width: 30px;
	cursor: pointer;
}

#prev {
	left: 30px;
	rotate: 180deg;
}

#caption {
	position: absolute;
	bottom: 30px;
	padding: 0 80px;
	width: 100%;
	height: auto;
}

.notepopin {
	position: absolute;
	background-color: #fff;
	padding: 10px 0 0;
	font-size: var(--noteSize);
	line-height: var(--noteLeading);
	margin-top: -35px;
	font-feature-settings: "case", "lnum";
}

/* films */

#catalog {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	column-gap: 15px;
	row-gap: 23px;
}

#catalog .item {
	flex: 0 1 calc(33.333% - 10px);
	font-size: var(--noteSize);
	line-height: var(--noteLeading);
}

#catalog .item img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
}

.imgItem {
	background-color: #eee;
	margin-bottom: 10px;
}

.imgItem img {
	display: block;
}

.tpl-publications #catalog .item .portrait img {
	object-fit: contain;
	padding: 2%;
}

.tpl-publications #catalog .item .square img,
.tpl-publications #catalog .item .landscape img {
	object-fit: cover;
	padding: 0;
}

.publicationmeta span,
.pubTitle {
	display: inline-block;
	margin-right: 20px;
}

h2#pubTitle {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	text-decoration-skip-ink: none;
}

.pubdescription {
	font-size: var(--bigSize);
	line-height: var(--bigLeading);
}

.pubdescription.lang-fr, .lang-other{
	color: var(--blue)
}

#fiche {
	margin: 20px 0 20px;
}

.tpl-publication article {
	max-width: 900px;
}

#publicationmeta span {
	margin-right: 30px;
	display: inline-block;
}

.moreinfo {
	margin-top: 1em;
	display: inline-block;
}

.moreinfo:hover {
	padding-left: 60px;
}

/* default */
.tpl-default article {
	width: 880px;
}

.tpl-default section.lang-fr,
.tpl-textes h2.lang-fr {
	color: blue
}

.tpl-default p,
.tpl-default img {
	margin-bottom: 1em;
}
.tpl-default img {
	width: 525px;
	max-width: 100%;
}

.tpl-default a[download] {
	position: relative;
	/* transition: padding-left 0.15s; */
}

.tpl-default a[download]:hover {
	/* transition: padding-left 0.15s; */
	padding-left: 60px;
}

.tpl-default a[download]:hover::after {
	content: " ";
	background-image: url(../img/white-glove.svg);
	width: 38px;
	height: 33px;
	display: inline-block;
	background-repeat: no-repeat;
	background-size: 37px;
	top: 0px;
	position: absolute;
}

.tpl-default figure,
figure.sidecaption {
	position: relative;
	display: inline-flex;
}

.tpl-default figure figcaption,
.sidecaption figcaption {
	position: absolute;
	rotate: -90deg;
	transform-origin: 0% 0%;
	left: 100%;
	top: calc(100% - 25px);
	font-size: var(--credit);
	width: 50%;
	margin-left: 6px;
}

span.tab {
	display: inline-block;
	width: 58px;
}

/* nav#main-menu.open.transparent{
		background-color: #ffffffc4;
		backdrop-filter: blur(0.5px);
} */
nav#main-menu.open:hover {
	cursor: url('../img/close.svg') 16 16, crosshair;
}

#siteName {
	display: flex;
	justify-content: space-between;
}

.lang-select {
	font-feature-settings: "smcp";
	display: none;
}

.smcp{
	font-feature-settings: "smcp";
}

.textin{
	font-size: 20px;
}

.open .lang-select {
	display: block;
}

blockquote{

	margin-left: 60px;
}


@media screen and (max-width: 1024px) {
	#catalog .item {
		flex: 0 1 calc(50% - 10px);
		font-size: var(--noteSize);
		line-height: var(--noteLeading);
	}
}

@media screen and (max-width: 750px) {

	* {
		--hugeSize: 36px;
		--hugeLeading: 42px;
		--bigSize: 23px;
		--bigLeading: 27px;
		--bodySize: 18px;
		--bodyLeading: 22px;
		--noteSize: 16px;
		--noteLeading: 18.7px;
		--headerSize: 36px;
		--headerLeading: 38px;
		--credit: 12px;
	}

	#siteName {
		display: block;
	}

	a#mobilelangselect {
		font-size: var(--bodySize);
	}

	nav#main-menu {
		padding: 6px 15px 9px;
		text-align: center;
	}

	nav#main-menu ul li:hover {
		padding-left: 0;
	}

	.carousel-cell img {
		padding: 0px 15px 20px;
	}

	.tpl-texte article,
	.tpl-textes article {
		padding: 75px 15px 80px;
		max-width: 100%;
	}
	

	.tpl-textes .titre {
		display: inline-block;
		max-width: 100%;
		flex: 0 1 auto;
		padding-left: 30px;
	}


	.tpl-texte section#maintext {
		max-width: 100%;
		flex: 0 0 100%;
	}

	.tpl-texte figcaption {
		margin-top: 8px;
		font-size: var(--credit);
		line-height: 1.35;
	}

	.tpl-texte figure a {
		pointer-events: none;
	}

	.pubdescription {
		font-size: var(--bodySize);
		line-height: var(--bodyLeading);
	}

	.moreinfo a {
		line-break: anywhere;
	}

	.moreinfo:hover {
		margin-left: 0px;
	}

	span.tab {
		width: 30px;
	}

	.tpl-default.contact span.tab {
		/* display: none; */
	}
	.tpl-texte section#maintext p {
    margin-bottom: 17px;
}

	#maintext figure {
		margin-bottom: 1em
	}

	#maintext figure,
	#maintext figure img {
		width: 100%;
	}

	nav#main-menu ul {
    	padding-top: 2px;
	}
	.tpl-textes h2 {
		display: flex;
		flex-direction: column;
	}

	.tpl-publication h2#pubTitle {
		text-decoration-thickness: 1px;
		text-underline-offset: 2px;
	}

	.tpl-textes .pubdate {
		margin: 0;
		flex: 0 0 auto;
	}

	.tpl-textes article li {
        margin: 0 0 12px;
    }

	.tpl-texte h1 {
		text-align: center;
		font-size: var(--bigSize);
		line-height: var(--bigLeading);
		margin-bottom: 28px;
		margin-top: -4px;
	}

	.tpl-textes h2 a:hover {
		padding-left: 0;
	}

	.footnotes {
    	/* font-size: var(--credit); */
    	/* line-height: 1.35; */
		padding-left: 30px;
		margin-top: 30px;
	}

	.tpl-films article,
	.tpl-publications article,
	.tpl-default article {
		width: 100%;
		padding: 74px 15px;
	}

	h2#pubTitle {
		font-size: var(--bodySize);
	}

	.tpl-default figure:not(.sidecaption) img {
		width: calc(100%);
	}

	.tpl-default figure,
	figure.sidecaption {
		width: calc(100% - 10px);
	}

	.tpl-default figure figcaption,
	figure.sidecaption figcaption {
		position: absolute;
		rotate: -90deg;
		transform-origin: 0% 0%;
		left: 100%;
		top: calc(100% - 17px);
		font-size: var(--credit);
		width: 50%;
		margin-left: 0px;
	}
	.tpl-default figure img,
	figure.sidecaption img {
		width: 100%;
	}

	#catalog .item {
		flex: 0 0 100%;
		font-size: var(--bodySize);
		line-height: var(--bodyLeading);
	}


	.tpl-publication article {
		max-width: 900px;
		width: 100%;
		padding: 74px 20px;
	}

	.footnote-backref {
		background-size: auto 16px;
	}

	.footnote-backref::before {
		padding-left: 20px;
		text-underline-offset: 2px;
		text-decoration-thickness: 1px;
	}

	.footnotes ol li p:before {
		width: 45px;
	}

	.entretien {
		display: block;
	}

	nav#main-menu ul li:hover,
	nav#main-menu ul li:active,
	nav#main-menu ul li:focus,
	nav#main-menu ul li:focus-visible,
	nav#main-menu ul li:focus-within,
	nav#main-menu ul li.active {
		padding-left: 0px;
		outline: none !important;
		border: 0 solid !important;
	}
	
}

@media screen and (max-width: 375px) {
	.tpl-texte #maintext p{
        hyphens: auto;
		hyphenate-limit-chars: 8 4 4;
        -webkit-hyphenate-limit-chars: 8;
        -webkit-hyphenate-limit-lines: 2;
        -webkit-hyphenate-limit-before: 4;
        -webkit-hyphenate-limit-after: 4;
    }
}