*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 16px;
	--page-padding: 1.5rem;
	--color-text: #fff;
	--color-bg: #12100e;
	--color-link: rgba(255,255,255,0.6);
	--color-link-hover: #fff;
	--color-bg-1: #2f251e;
	--color-bg-2: #43392f;
	--color-bg-3: var(--color-bg-1);
	--color-bg-4: var(--color-bg-2);
	--color-bg-5: var(--color-bg-1);
	--color-bg-6: var(--color-bg-2);
	--my-color-1: #f35f34;
	--my-color-2: #097784;
	--my-color-3: #fbcc02;
	--my-color-4: #008B8B;
	--my-background-color: #e3f5f8;
}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-heavyitalic-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-heavyitalic-webfont.woff') format('woff');
	font-weight: 700;
	font-style: italic;

}

@font-face {
	font-family: 'lindytitle';
	src: url('../fonts/LindyHop-HeavyItalic.woff2') format('woff2'),
	url('../fonts/LindyHop-HeavyItalic.woff') format('woff');
	font-display:block;
	font-weight: 700;
	font-style: italic;

}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-book-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-book-webfont.woff') format('woff');
	font-weight: 400;
	font-style: normal;

}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-bookitalic-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-bookitalic-webfont.woff') format('woff');
	font-weight: 400;
	font-style: italic;

}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-heavy-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-heavy-webfont.woff') format('woff');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-light-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-light-webfont.woff') format('woff');
	font-weight: 300;
	font-style: normal;

}

@font-face {
	font-family: 'lindyfont';
	src: url('../fonts/majesti-banner-lightitalic-webfont.woff2') format('woff2'),
		 url('../fonts/majesti-banner-lightitalic-webfont.woff') format('woff');
	font-weight: 300;
	font-style: italic;

}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--my-background-color); 
	font-family: "Work Sans", sans-serif;
	font-variation-settings: "slnt" 0, "wdth" 150, "wght" 300, "INKT" 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	width: 100%;
	overflow-x: hidden;
}

#mini-title {
	display: none;
	top:-5px;
	right:10px;
	position:fixed;
	cursor: pointer;
}

.main__title {
	z-index:999;
}


.name-staff-1 {
	color: var(--my-color-1);
}
.name-staff-2 {
	color: var(--my-color-2);
}
.name-staff-3 {
	color: var(--my-color-3);
}

.medium-title, #mini-title {
	font-family:'lindytitle';
	font-style:italic;
	letter-spacing:-0.058em;
	font-weight:normal;
	text-transform:lowercase;
}

.medium-title {
	font-size:4rem;
	margin-top:50px;
}

.copyright-logo {
	font-family:'lindytitle';
	font-style:italic;
	letter-spacing:-0.058em;
	font-weight:normal;
	text-transform:lowercase;
	font-size:1.4em;
}


.color-white {
	color:#FFF;
}

.color-black {
	color:#000;
}

.text-meta {
	font-size:1.4em;
	font-weight:200;
	text-transform: initial;
	letter-spacing:0.05em;
}

.my-text-card {
	font-size:1.0em;
	letter-spacing:0.00em;
}

.swipper-slide img {
	/* height:100px!important; */
}


.demo-2, 
.demo-4,
.demo-6,
.demo-8,
.demo-10,
.demo-12,
.demo-14 {
	--color-title: #355070;
	--color-text: #000;
	--color-bg: #e3f5f8;
	--color-link: rgba(0,0,0,0.6);
	--color-link-hover: #000;
	--color-bg-1: var(--my-color-1);
	--color-bg-2: var(--my-color-2);
	--color-bg-3: var(--my-color-3);
	--color-bg-4: var(--my-color-4);
	--color-bg-5: var(--my-color-5);
	--color-bg-6: var(--color-bg-2);
}

.my-background-color: {
	background-color: var(--my-background-color);
}

.my-color-1 {
	color: var(--my-color-1);
}
.my-color-2 {
	color: var(--my-color-2);
}
.my-color-3 {
	color: var(--my-color-3);
}
.my-color-4 {
	color: var(--my-color-4);
}

.demo-9 {
	--color-bg-1: #2f251e;
	--color-bg-2: #43392f;
	--color-bg-3: #18130e;
	--color-bg-4: var(--color-bg-1);
	--color-bg-5: var(--color-bg-2);
	--color-bg-6: var(--color-bg-3);
}

.demo-10 {
	--color-bg-1: #9d9d9d;
	--color-bg-2: #c7c7c7;
	--color-bg-3: #7c7c7c;
	--color-bg-4: var(--color-bg-1);
	--color-bg-5: var(--color-bg-2);
	--color-bg-6: var(--color-bg-3);
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 5000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
}

.title__color {
	color: var(--color-title);
}

.name-staff {
	font-weight:700!important;
	font-variation-settings: "slnt" 0, "wdth" 150, "wght" 500, "INKT" 0;
}

.button-contact-2 {
	background-color: var(--my-color-2)!important;
}

.button-contact-2:hover {
	color: inherit;
	opacity: 0.9;
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	padding: var(--page-padding);
	position: relative;
	display: grid;
	z-index: 1000;
	width: 100%;
	grid-row-gap: 1rem;
	grid-column-gap: 2rem;
	justify-items: start;
	text-transform: uppercase;
	font-size: 12px;
}

.frame--header {
	height: 100%;
	z-index: 1;
	background-size: auto 60%;
	background-position: 120% -10%;
	background-repeat: no-repeat;
	grid-template-areas: 'title' 'prev' 'back' 'sub' 'sponsor' 'demos' 'heading';
}

.frame--footer {
	grid-template-areas: 'credits' 'author';
	align-content: end;
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  margin: 0;
}

.frame__back {
  grid-area: back;
  justify-self: start;
}

.frame__prev {
  grid-area: prev;
  justify-self: start;
}

.frame__sub {
  grid-area: sub;
}

.frame__demos {
	grid-area: demos;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	align-self: start;
	flex-wrap: wrap;
	background: var(--color-bg);
	border: 1px solid;
	padding: 1rem;
	border-radius: 10px;
}

.frame__demos > * {
	width: 2rem;
	display: block;
	flex: none;
	text-decoration: none;
	border-radius: 50%;
	aspect-ratio: 1;
	border: 1px solid var(--color-link-hover);
	display: grid;
	place-items: center;
	padding-top: 0.2em;
	background: var(--color-bg);
}

.frame__demos > span {
	filter: invert(100%);
}

.frame__demos::before {
	content: "Variations:";
}

.frame__heading {
	grid-area: heading;
	align-self: center;
	justify-self: center;
	width: min-content;
	display: flex;
	flex-direction: column;
	margin-top: 10vh;
}

.frame__heading h2 {
	font-family: 'lindyfont';
	font-style: italic;
	margin: 0;
	line-height: 0.9;
	/* text-transform: uppercase; */
	margin-left: -0.065em;
	font-size: clamp(2.5rem,12vw,7rem);
	letter-spacing: 0;
	/* font-variation-settings: "slnt" 0, "wdth" 400, "wght" 900, "INKT" 400; */
}

i {
	font-style: normal;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 300, "INKT" 400;
}

.frame__heading p {
		margin: 0;
}

.frame__credits {
	grid-area: credits;
}

.frame__author {
	display: flex;
	gap: 1.5rem;
	grid-area: author;
}

.content {
	padding: var(--page-padding);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.content--perspective {
	perspective-origin: 50% 0%;
	perspective: 1000px;
}

.text-large {
	font-size: clamp(1.5rem,5vw,3rem);
	max-width: 900px;
	margin: 0 0 0.85em 0;
	line-height: 1.2;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500, "INKT" 100;
}

.content--sticky {
	width: 100vw;
	position: sticky;
	top: 0;
	--offset: 0px;
	top: var(--offset);
	height: calc(100vh - var(--offset));
}

.content--grid,
.content--grid .content__inner {
	display: grid;
	overflow: hidden;
	grid-column-gap: 5vw;
	grid-row-gap: 2vh;
	align-content: center;
	grid-template-areas: 'content-img' 'content-title' 'content-text';
	justify-items: center;
}

.content--grid:has(.content__inner) {
	display: block;
	padding: 0;
}

.content__inner {
	width: 100%;
	height: 100%;
	border-radius: 0 0 2rem 2rem;
}

.content--card {
	display: flex;
	flex-direction: column;
	height: 70vh;
	width: 95vw;
	max-width: 500px;
	aspect-ratio: 0.8;
	top: 10vh;
	margin: auto;
	border-radius: 14px;
	gap: 3vh;
	text-align: center;
	margin-bottom: 5vh;
}

.img-container {
	max-width: 400px;
	overflow-x:hidden;
	align-items: center;
	justify-content: flex-start;
	transition: all 1s ease;
}
.img-container img {
	width: auto;
	margin-right:50px;
}

.content--card .content__title i {
	display: block;
}

.content--half {
	display: flex;
	flex-direction: column;
	gap: 3vh;
	text-align: center;
}

.content--half:nth-child(odd) {
	margin-left: auto;
}

.content__img {
	grid-area: content-img;
	width: 100%;
	max-width: 600px;
	height: auto;
}

.content__img--large {
	width: 60%;
	height: auto;
}

.content__img--small {
	height: 20%;
	width: auto;
	transform: scale(1.8) translateY(-10px);
}

.spacer {
	margin-top: 20vh;
}

.content__title {
	grid-area: content-title;
	letter-spacing: -0.1em;
	text-transform: initial;
	line-height: 1;
	font-weight: 300;
	font-size: clamp(2rem,6vw,5rem);
	margin: 0;
	letter-spacing: -0.1rem;
	font-variation-settings: "slnt" 0, "wdth" 400, "wght" 600, "INKT" 400;
}
.main__title {
	font-size: clamp(5rem,20vw,15rem)!important;
}

.content--card .content__title {
	font-size: clamp(1.5rem,4vw,3.5rem);
}

.content__text {
	margin: 0;
	max-width: 500px;
	grid-area: content-text;
	text-align: center;
	line-height: 1.5;
	padding: 0 1rem;
	backface-visibility: hidden;
}

.content__text--narrow {
	max-width: 300px;
}

.content--intro {
	padding-top: 25vh;
	padding-bottom: 25vh;
	z-index: 2;
}

.content--outro {
	padding-top: 25vh;
	padding-bottom: 30vh;
}

.bg-1 { background: var(--color-bg-1); }
.bg-2 { background: var(--color-bg-2); }
.bg-3 { background: var(--color-bg-3); }
.bg-4 { background: var(--color-bg-4); }
.bg-5 { background: var(--color-bg-5); }
.bg-6 { background: var(--color-bg-6); }

.personne-container {
	padding:6%;
	max-width:900px;
}

.personne-section {
	line-height:1.3em;
	margin-bottom:50px;
}

.personne-section img {
	float:left;
	height:100px;
	width:100px;
	border-radius:50px;
	margin-right: 15px;
}
.personne-nom {
	font-family: 'lindyfont';
	font-weight:700;
	font-style:italic;
	font-size:1.25em;
	color:var(--my-color-3);
}

.personne-nom-2 {
	color:var(--my-color-1);
}

.personne-tel span {
	transform: translateY(5px);
	display: inline-block;
}
.personne-tel a {
	padding:1px 8px 1px 8px;
	border-radius:15px;
	margin-left:15px;
	font-size:0.9em;
	font-variation-settings:"wght"500;
	color:#FFF;
}

.personne-tel a svg {
	display: inline-block;
	border-radius: 50px;
	padding: 5px;
	height: 25px;
	margin-left: -10px;
	transform: translateY(8px);
	margin-right: 1px;
	fill:#FFF;
}

.personne-tel {
margin-top:-15px;
display: inline-block;
}

.personne-tel-1 a, .personne-tel-1 a svg {
	background-color:var(--my-color-4);
}
.personne-tel-2 a, .personne-tel-2 a svg {
	background-color:var(--my-color-3);
}

.arrow-name {
	display:inline-block;
	height:5px;
	margin-left:10px;
	margin-bottom:1px;
	transition:all 0.3s ease;
}
.button-contact {
	cursor:pointer;
	text-align: center;
	display:inline-block;
	border-radius:15px;
	color:#FFF;
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500, "INKT" 100;
	padding:8px 12px 8px 12px;
	background-color:var(--my-color-3);
}

#wrapper-main-logo {
	position: absolute;
	top: -23%;
	right: 19%;
	height: 20%;
	pointer-events: none;
}

#wrapper-main-logo svg {
	height:300%;
	width:300%;
}

@media screen and (min-width: 63em) {
	body {
		--page-padding: 2rem 3rem;
	}
	
	.img-container {
		max-width:700px;
		
	}
	.frame--header {
		height: 100vh;
		grid-template-columns: auto auto auto 1fr 1fr;
		grid-template-rows: auto 1fr auto;
		align-content: space-between;
		grid-template-areas: 'title back prev sub sponsor' 'heading heading heading heading heading' 'demos demos demos demos demos';
		background-size: 90% 90%;
		background-position: 455% -300%;
	}
	.frame__heading {
		margin-top: 0;
	}
	.frame__heading h2 {
		white-space: nowrap;
	}
	.frame__heading p {
		margin: 0 0 0 auto;
	}
	.content--grid .content__title {
		align-self: end;
	}
	.frame__demos {
		position: fixed;
		bottom: 2rem;
	}
	.frame--footer {
		padding-bottom: 0;
		grid-template-areas: 'credits ...' '... author';
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 6rem;
	}
	.frame__author {
		align-self: center;
	}
	.frame #cdawrap {
		max-width: 300px;
		text-align: right;
	}
	.frame #cdawrap, 
	.frame__author,
	.frame__sub {
		justify-self: end;
	}
	.content--grid,
	.content--grid .content__inner {
		grid-template-areas: 'content-img content-title' 'content-img content-text';
		grid-template-columns: 30% 1fr;
		justify-items: start;
	}
	
	.content__img--large {
		width: 160%;
	}
	.content__img--left {
		justify-self: end;
	}
	.content__text--left {
		text-align: left;
		align-self: start;
	}
	.content--card {
		width: 90vw;
		max-width:900px;
	}
	.content--half {
		width: 50%;
	}
	.my-text-card {
		font-size:1.4em;
		letter-spacing:0.00em;
	}

}

@media only screen and (max-width: 640px) {
	.content--card {
		height: auto;
	}
	
	.img-container {
		max-width:350px;
	}
	
	.content__img--small {
		transform: scale(1.8) translateY(0);
		margin-top:2%;
		margin-bottom:2%;
	}
	.personne-section img {
		margin-right: 10px;
	}
	
	#wrapper-main-logo {
	top: -35%;
	right: 42%;
	height: 33%;
	}

}

/* Medium devices such as tablets (768px and up) */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	
	.content--card {
		max-width: 650px;
	}
	
	#wrapper-main-logo {
		top: -38%;
		right: 37%;
		height: 35%;
	}
	
}

/* Medium devices such as tablets (768px and up) */
@media only screen and (min-width: 1024px) {
	.content__text {
		max-width:700px;
	}
}

/* MacBook Air */
@media only screen and (max-height: 800px) and (max-height: 950px) and (min-width:1400px) {
	.content--card {
	height: 85vh;
	max-width:1800px;
	}
	
	.content__img--small {
	height: 15%;
	}
}
/* Notebook */
@media only screen and (max-height: 700px) and (max-height: 799px) and (min-width:1300px) {
	.content--card {
	height: 85vh;
	max-width:1800px;
	}
	
	.content--intro {
		padding-bottom:2vh;
	}
	
	.content__text, .img-container  {
		max-width:900px;
	}
	
	.content__img--small {
	height: 15%;
	}
}

/* Medium devices such as tablets (768px and up) */
@media only screen and (min-width: 1024px) {
	.content__text {
		max-width:700px;
	}
}

@media only screen and (min-width: 1400px) {
		
	#wrapper-main-logo {
		top: -34%;
		right: 34%;
		height: 30%;
	}
}

@media only screen and (max-height: 670px) {
		
.content__text {
	line-height: 1.2;
}
}
