/* ======================================================== MOBILE FIRST ===== */
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ VARIABLES */
:root {
	--color-bg: #eeeeee;
	--color-bg-light: #e5e5e5;
	--color-text: #1a1a1a;
	--color-caption: #686868;
	--color-light: #d1d1d1;
	--color-link: #007acc;
	
	--margin-side-smallscreen: 7.7%;
	--margin-side-largescreen: 4.5%;
	--margin-side-largescreen-int: 18%;
	--margin-top: 1.25em;
	--margin-bottom: 2em;
	
	--border-radius: 4px;
	
	--gallery-rowcount-large: 5;
	--gallery-rowcount-small: 3;
	--gallery-gap: 8px;
	
	--project-padding: 0.65em;
	--project-prize-width: 3.5em;
	
	--scrollpoint-size: 18px;
}


/* ------------------------------------- GENERAL ELEMENTS / SITE CONTENT */
* {
	margin: 0;
	font-family: Montserrat, sans-serif;
	color: var(--color-text);
	background-color: transparent;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--color-bg);
	
	margin: 0 auto;
	max-width: 1320px;
	width: calc(100% - var(--margin-side-smallscreen) * 2);
	
	display: flex;
	flex-direction: column;
	min-height: 100dvh;
	
	font-size: 1rem;
	line-height: 1.8;
}

.body-content {
	flex: 1;
	max-width: 100%;
	margin-bottom: 4em;
}
.body-content > * {
	max-width: 100%;
}

/* ------------------------------------- TEXT STYLING / FONTS */
.text-strong, strong, h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
}

.body-content h1 {
	font-size: 1.75rem;
	line-height: 1.25;
	margin-bottom: 1em;
}

.body-content h2 {
	font-size: 1.4375rem;
	line-height: 1.2;
	margin-top: 2.4em;
	margin-bottom: 1.2em;
}

.body-content h3 {
	font-size: 1.1875rem;
	line-height: 1.1;
	margin-top: 2.8em;
	margin-bottom: 1.4em;
}

.body-content p {
	text-align: justify;
	margin-bottom: 1.75em;
}

.body-content ul {
	margin-bottom: 1.75em;
	padding: 0;
}

.body-content li {
	list-style-type: none;
	background: url('medias/illustrason_logos/play_icon.png') no-repeat left+0.25rem top+0.6rem;
	background-size: 0.45rem;
	text-indent: 1.2rem;
}

.aside-text {
	font-style: italic;
	color: var(--color-caption);
	line-height: 1.25;
	font-weight: 300;
}

/* ------------------------------------- LINKS */
a {
	text-decoration: none;
	color: var(--color-text);
}
a:hover, button:hover {
	color: var(--color-link);
	fill: var(--color-link);
	cursor: pointer;
}
a:hover svg, button:hover svg {
	fill: var(--color-link) !important;
}

.body-content a {
	text-decoration: underline;
	color: var(--color-link);
}

/* ------------------------------------- OTHER ELEMENTS */
img {
	box-sizing: border-box;
	height: auto;
	max-width: 100%;
}

figure {
	margin-bottom: 1em;
}

figcaption {
	color: var(--color-caption);
	font-size: 0.8125rem;
	line-height: 1.6;
	margin: 0.5em 0 2em 0;
	text-align: center;
}

hr {
	width: 100px;
	height: 10px;
	margin: 3em auto 2em auto;
	border: none;
	border-top: 1px solid var(--color-light);
}

hr.seersisle {
	background: url('medias/works/seersisle/seersisle-separator2.png') no-repeat center center;
	height: 40px;
	border: none;
	opacity: 1;
}

.nobreak {
	white-space: nowrap;
}

/* DESCRIPTION TEXT */
.secondary-text-block {
	background-color: var(--color-bg-light);
	padding: 1.25em 2em;
	margin-bottom: 2.5em !important;
}

/* COLUMNS > ROWS */
.columns-1-2 {
	display: flex;
	flex-flow: column wrap;
	justify-content: space-between;
}

/* ROWS */
.row-simple {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 1.5em;
	margin-bottom: 1.5em;
}

/* ICONS EMBEDDED IN TEXT */
.text-icon {
	height: 18px;
	vertical-align: -4px;
	padding: 0 5px;
}

/* EMPTY ELEMENTS */
.empty-element {
	width: 0;
	height: 0;
	position: absolute;
}

/* ------------------------------------- HEADER */
#bloc-header {
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	flex: 0 0;
	
	margin-top: var(--margin-top);
	margin-bottom: 3em;
}

#bloc-header-horizontal {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
}

header {
	margin: 0.875em auto 0.875em 0;
}

#site-title {
	font-size: 1.4375rem;
	line-height: 1.22;
}

#site-subtitle {
	color: var(--color-caption);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.1;
	margin-top: 0.55em;
	
	display: none;
}


#nav-button {
	border: 1px solid var(--color-light);
	border-radius: var(--border-radius);
	
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.046875em;
	
	margin: 1.08em 0;
	padding: 0.8em 1em;
}
#nav-button[active] {
	background-color: var(--color-text);
	color: var(--color-bg);
	border-color: var(--color-text);
}
#nav-button:hover:not([active]) {
	border-color: var(--color-link) !important;
}

nav {
	margin: 0.8125em 0;
}

nav.hidden {
	display: none;
}

nav ul {
	list-style: none;
	padding: 0;
}

nav ul:first-child {
	border-top: 1px solid var(--color-light);
}
nav li {
	line-height: 1.75;
	border-bottom: 1px solid var(--color-light);
}

nav a {
	display: block;
	font-size: 1rem;
	line-height: 1.3125;
	padding: 0.85em 0;
}
nav a.active {
	font-weight: 700;
}



/* ------------------------------------- FOOTER */
footer {
	margin-bottom: var(--margin-bottom);
}

footer a {
	margin-right: 0.5rem;
}

footer svg {
	height: 1.8rem;
	padding: 0.25rem;
	border-radius: var(--border-radius);
	fill: var(--color-text);
}
footer a:hover svg {
	fill: var(--color-link);
}

/* ------------------------------------- BACK TO TOP BUTTON */
#button-top-container {
	width: 100%;
	height: 0;
	position: sticky;
	top: calc(100dvh - var(--margin-bottom) - 1em);
	z-index: 100;
}

#button-top {
	background-color: var(--color-caption);
	border-radius: var(--border-radius);
	
	width: 3.2em;
	height: 3em;
	position: absolute;
	right: 0;
	bottom: 0;
	
	transform: translateY(100px);
	opacity: 0;
	filter: opacity(70%);
	transition: transform 2s, opacity 1s;
}
#button-top.visible {
	transform: translateY(0);
	opacity: 0.8;
	transition: transform 1s, opacity 2s;
}
#button-top:hover {
	cursor: pointer;
	filter: opacity(100%);
}

#button-top p {
	color: var(--color-bg);
	font-size: 2rem;
	text-align: center;
	position: relative;
	top: -0.2em;
}

/* ===================================== INDEX PAGE */
#welcome-link img {
	/* margin: 0 auto; */
	margin: 2em auto 0 auto;
	display: block;
}

/* ===================================== STUDIO PAGE */
#clients-list {
	display: flex;
	flex-flow: row wrap;
	gap: var(--gallery-gap);
}

#clients-list figure {
	margin: 0;
	width: calc((100% - (var(--gallery-gap) * (var(--gallery-rowcount-small) - 1))) / var(--gallery-rowcount-small));
	background-color: var(--color-light);
	display: flex;
}
#clients-list img {
	padding: 5px;
	margin: auto;
}

/* ===================================== DEMOS PAGE */
/* ------------------- Filters */
#demo-filters {
	display: flex;
	flex-flow: row wrap;
	justify-content: flex-start;
	gap: 0.5em;
	margin: 0 0 1em 0;
}

#demo-filters button {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.25em;
	
	height: 2.5em;
	border: 1px solid var(--color-light);
	border-radius: var(--border-radius);
	padding: 0em 0.75em;
	font-size: 1em;
	text-transform: capitalize;
	color: var(--color-text);
}
#demo-filters button:hover {
	color: var(--color-link);
}
#demo-filters button:focus {
	color: inherit;
}
#demo-filters button:focus:not(.selected) svg {
	fill: var(--color-light) !important;
}
#demo-filters button.selected {
	border-color: var(--color-link);
	color: var(--color-link);
	background-color: var(--color-bg-light);
	/* font-weight: 500; */
}
#demo-filters button.selected svg {
	fill: var(--color-link);
}

#demo-filters span {
	pointer-events: none;
}
#demo-filters svg {
	width: 1.2em;
	fill: var(--color-light);
	vertical-align: top;
}


/* ------------------- Container and demoGroups */
#demos-container {
	display: flex;
	flex-flow: row nowrap;
	
	position: relative;
	margin-top: 0.5em;
	
	width: 100%;
	overflow-x: scroll;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
}

.demo-group {
	display: flex;
	flex-direction: column;
	flex: 0 0 100%;
	padding-right: 1em;
	
	position: relative;
	
	scroll-snap-align: start;
	/* Force stop on all elements, no "superscroll" allowed : */
	scroll-snap-stop: always;
}
.demo-group:last-child {
	padding-right: 0;
}

.demo-video, .demo-group video, .demo-poster {
	width: 100%;
	position: relative;
	line-height: 0;
}

.demo-poster {
	display: none;
	position: absolute;
	z-index: 1;
	opacity: 1;
	transition: opacity 0.1s;
}
.playing.loaded .demo-poster {
	opacity: 0;
	transition: opacity 0.25s;
}

.demo-controls .demo-video::after {
	content: "";
	background: url('medias/illustrason_logos/play_icon.png') 56% 50% no-repeat;
	background-size: 2.25em 2.25em;
	padding: 2.75em;
	display: block;
	background-color: var(--color-bg);
	opacity: 0.5;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	pointer-events: none;
	transition: opacity 0.25s;
	z-index: 2;
}
.demo-video:hover {
	cursor: pointer;
}
.demo-controls .demo-video:hover::after {
	opacity: 0.85;
	transition: opacity 0.1s;
}

.demo-group .demo-description {
	box-sizing: border-box;
	z-index: 10;
	pointer-events: none;
}

.demo-description {
	margin: 1em 0;
	background-color: var(--color-light);
	display: flex;
	flex-flow: column nowrap;
}

.demo-description p {
	padding: 0.6em 1em;
	margin: 0;
	font-style: italic;
	line-height: 1.5;
	color: var(--color-caption);
	text-align: left;
	
	box-sizing: border-box;
}

.demo-description p:nth-child(1) {
	flex-grow: 0;
	font-style: normal;
	font-weight: bold;
}
.demo-description p:nth-child(2) {
	flex-grow: 1;
}
.demo-description p:nth-child(3) {
	flex-grow: 0;
	text-align: right;
	font-style: normal;
	font-weight: 300;
}

.demo-group .family svg {
	width: 1.5em;
	position: absolute;
	top: 0.5em;
	right: 0.5em;
	fill: var(--color-bg);
	filter: drop-shadow(0 0 4px var(--color-text));
	opacity: 0.75;
	pointer-events: none;
	z-index: 2;
}

.progress-bar {
	width: 0%;
	height: 4px;
	background-color: var(--color-link);
	position: absolute;
	bottom: 0;
	left: 0;
}


#demos-container > p {
	flex-basis: 100%;
	margin: 1em 0 0 0;
}

#demos-container > p svg {
	fill: var(--color-link);
	width: 1.2em;
	vertical-align: text-top;
	margin-right: 0.4em;
}

/* ------------------- Scroll points */
#demo-scrollpoints {
	width: calc(7 * var(--scrollpoint-size));
	height: var(--scrollpoint-size);
	margin: 0 auto;
	position: relative;
	
	display: flex;
	flex-flow: row nowrap;
	
	overflow: hidden;
}

.demo-scrollpoint-wrap {
	box-sizing: border-box;
	flex: 0 0 var(--scrollpoint-size);
	height: var(--scrollpoint-size);
	
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	align-items: center;
}

.demo-scrollpoint-wrap div {
	border-radius: 50%;
	background-color: var(--color-light);
	width: 100%;
	height: 100%;
}
.demo-scrollpoint-wrap.enabled div {
	background-color: var(--color-caption);
}
.demo-scrollpoint-wrap:nth-child(5) div {
	/* --> center point <-- */
}


/* ===================================== PROJECTS PAGE */
.project-group {
	display: flex;
	flex-flow: column nowrap;
	margin-bottom: 1.25em;
	position: relative;
	border-radius: var(--border-radius);
}
.project-group:hover {
	background-color: var(--color-light);
}

.project-group img {
	padding: var(--project-padding);
}
.project-group p {
	padding: 0 var(--project-padding) var(--project-padding) var(--project-padding);
	margin-bottom: 0;
	line-height: 1.4em;
	position: relative;
	text-align: left;
}
.project-group a {
	line-height: 2;
}


.project-group.project-wip img {
	filter: grayscale(100%) opacity(0.4);
}

.project-note {
	color: var(--color-caption);
	font-style: italic;
	background-color: var(--color-light);
}
.project-group:hover .project-note {
	background-color: var(--color-bg);
}

.project-prize .project-note::before {
	content: "_";
	color: transparent;
	position: relative;
	display: block;
	float: left;
	margin: 0 0.4em 0 0.25em;
	top: 0.2em;
	left: 0;
	width: 0.8em;
	height: auto;
	background-image: url('medias/illustrason_logos/illustrason-prize-simple.png');
	background-size: 100%;
	background-repeat: no-repeat;
}

.project-prize::before {
	content: "";
	position: absolute;
	top: var(--project-padding);
	left: var(--project-padding);
	width: calc(var(--project-prize-width) * 2.2);
	height: calc(var(--project-prize-width) * 2.2);
	background-image: linear-gradient(to top left, transparent 50%, var(--color-bg) 0);
	opacity: 0.6;
}
.project-prize::after {
	content: "";
	position: absolute;
	top: calc(var(--project-padding) * 2);
	left: calc(var(--project-padding) * 2);
	width: var(--project-prize-width);
	height: 100%;
	background-image: url('medias/illustrason_logos/Illustrason-prize-black.png');
	background-size: 100%;
	background-repeat: no-repeat;
}


/* ===================================== CONTACT PAGE */
#team-contact {
	display: flex;
	flex-flow: column nowrap;
}

#team-contact img {
	display: block;
	margin: auto;
}

#team-contact figcaption {
	font-size: 1rem;
}