*,
*::after,
*::before {
	box-sizing: border-box;
}
/* EFFECTS
***************/

.glow {
  text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    -webkit-transition: text-shadow 1s linear;
       -moz-transition: text-shadow 1s linear;
         -o-transition: text-shadow 1s linear;
            transition: text-shadow 1s linear;
}

.glow.in {
  text-shadow: 
    0.025em 0.025em 0.025em rgba(0, 0, 0, 0.8),
    0 0 0.5em rgba(255, 255, 255, 0.3);
}

.fade {
  opacity: 0;
    -webkit-transition: opacity 1s linear;
       -moz-transition: opacity 1s linear;
         -o-transition: opacity 1s linear;
            transition: opacity 1s linear;
}

.fade.in {
  opacity: 1;
}

body {
	/* Grid gap */
	--gap: 30px;
	/* Color scheme */
	--body-text: #333;
	--body-bg: #ccd8e4;
	--link-text: #ef3b3b;
	--link-text-hover: #333;
	--grid-name-text: #ef3b3b;
	--grid-title-text: #ef3b3b;
	--grid-nav-text: #fff;
	--grid-nav-bg: #442ef4;
	--grid-nav-text-hover: #fff;
	--grid-nav-bg-hover: #1f1f1f;
	--grid-text: #333;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	min-height: 600px;
	color: #333;
	color: var(--body-text);
	background: #ccd8e4;
	background: var(--body-bg);
}
.container-fluid.slider.js {
    height: 920px;
    padding-top: 60px;    
}
.js .row {
    position: relative;
    display: block;
    clear: both;
    width: 100%;
    height: 840px;
    margin: 5px auto !important
}
a {
	text-decoration: none;
	color: #ef3b3b;
	color: var(--link-text);
	outline: none;
}

a:hover,
a:focus {
	color: #333;
	color: var(--link-text-hover);
}

.hidden {
	position: absolute;
	overflow: hidden;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Icons */
.icon {
	display: block;
	width: 1.5em;
	height: 1.5em;
	margin: 0 auto;
	fill: currentColor;
}

/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 10000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ccd8e4;
	background: var(--body-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 10000;
	top: 50%;
	left: 50%;
	width: 80px;
	height: 80px;
	margin: -40px 0 0 -40px;
	pointer-events: none;
	background: #333;
	background: var(--body-text);
	transform-origin: 0% 50%;
	animation: loaderAnim 1.5s linear infinite alternate forwards;
}

@keyframes loaderAnim {
	0% {
		transform: scale3d(0,1,1);
		transform-origin: 0% 50%;
	}
	50% {
		transform: scale3d(1,1,1);
		transform-origin: 0% 50%;
	}
	51% {
		transform: scale3d(1,1,1);
		transform-origin: 100% 50%;
	}
	100% {
		transform: scale3d(0,1,1);
		transform-origin: 100% 50%;
	}
}

/* Frame */
.frame {
	top: 0;
	left: 0;
	position: fixed;
	display: grid;
	width: 100%;
	height: 100vh;
	z-index: 100;
	pointer-events: none;
	padding: 2em;
	grid-template-columns: 50% 50%;
	grid-template-rows: auto auto 4em;
	grid-template-areas: 	"header header"
							"... ..."
							"... demos";
}

.no-js .frame {
	position: relative;
	display: block;
	height: auto;
}

.frame a {
	pointer-events: auto;
}

.message {
	background: #333;
	background: var(--body-text);
	color: #ccd8e4;
	color: var(--body-bg);
	text-align: center;
	padding: 1em;
	display: none;
}

/* Header */
.codrops-header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	z-index: 100;
	grid-area: header;
	align-self: start;
}

.codrops-header__title {
	font-size: 1em;
	margin: 0;
	font-weight: 400;
}

.no-js .codrops-header {
	flex-direction: column;
}

.no-js .codrops-header__title {
	padding: 1em 0;
}

.github {
	margin: 0 0 0 auto;
}

/* Top Navigation Style */
.codrops-links {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0.5em 0 0;
	text-align: center;
	white-space: nowrap;
}

.codrops-icon {
	display: inline-block;
	margin: 0 0.25em;
	padding: 0 0.25em;
}

/* Demos */
.demos {
	grid-area: demos;
	align-self: end;
	justify-self: end;
	display: block;
	text-align: center;
}

.demo {
	margin: 0 0 0 1em;
}

.demo--current {
	color: #333;
	color: var(--link-text-hover);
}

/* Grid */
.grid {
    display: grid;
	width: calc(100% - 6em);
    height: calc(100vh - 6em);
	grid-auto-rows: calc((calc(100vh - 0em) / 26) - var(--gap));
    grid-auto-columns: calc((calc(100% - 0em) /26) - var(--gap));   
    justify-content: center;
    align-content: center;
    grid-gap: var(--gap);
	pointer-events: none;
}

.no-js .grid {
	margin: 0 0 15vh;
}

/*.js .grid {
	position: absolute;
	top: 3em;
	left: 3em;
	opacity: 0;
}*/

.js .grid--current {
	opacity: 1;
	pointer-events: auto;
}

.grid__item {
    overflow: hidden;	
	position: relative;
	padding: 0px;
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
	transition: transform 0.2s ease-out;
}

.grid__item .bg_img{
	background-position: center;
	background-size: cover;
	transition: all .5s;	
    width: 100%;
    height: 100%;		
    position: relative;    
    transition: all 0.2s ease 0s;
    -webkit-transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    -ms-transition: all 0.2s ease 0s;    
}
.grid__item:hover .bg_img{
	transform: scale(1.1) rotate(-2deg);
	-webkit-transform: scale(1.1) rotate(-2deg);
	transition: all 0.2s ease 0s;
    -webkit-transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    -ms-transition: all 0.2s ease 0s;
}
.grid__item:hover .titre_ref{
    display: block;
    width: 100%;
    font-size: 25px;
    padding-right: 25px;
    text-transform: uppercase;
    font-weight: 800;
    color: white;
    text-align: left;
}
.lien_ref:hover .legende_ref
{
	margin-bottom: 0px;
}
.grid__item:hover .titre_ref{
	padding-bottom: 0px;
    margin-bottom: 0px;	
}
.grid__item--name,
.grid__item--title,
.grid__item--text {
	pointer-events: none;
	padding: 0;
	margin: 0;
}

.grid__item--name,
.grid__item--title {
	text-transform: uppercase;
	line-height: 0.8;
	font-family: 'Kanit', sans-serif;
}

.grid__item--name {
	font-size: 43px;
	color: #ef3b3b;
	color: var(--grid-name-text);
}

.grid__item--title {
	text-transform: uppercase;	
	text-align: right;
	display: flex;
	justify-content: flex-end;
	color: #ef3b3b;
	color: var(--grid-title-text);
    font-size: 16px;
    /*background-image: url(/wp-content/themes/theme-bms/images/bg_btn_more.png) !important;*/
    background-size: contain;
    text-align: center;
    display: block;
    padding: 18px;
    color: white;
    font-family: "Gotham Bold";
    border-radius: 35px;	
}

.grid__item--text {
	font-size: 0.85em;
	line-height: 1.2;
	display: flex;
	color: inherit;
	color: var(--grid-text);
}

.grid__item--nav {
	background: #c30335 !important;
	background: var(--grid-nav-bg);
	color: #fff;
	color: var(--grid-nav-text);
	display: flex;
	align-items: center;
	cursor: pointer;
    height: 55px;
    width: 55px;	
    
	transition: all 0.2s ease 0s;
    -webkit-transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    -ms-transition: all 0.2s ease 0s;
}

.grid__item--nav:hover {
	background: #e31b22 !important;
	background: var(--grid-nav-bg-hover);
	color: #fff;
	color: var(--grid-nav-text-hover);
}

.grid__item--nav-next .icon--nav-arrow {
	margin: 0 0 0 auto;
}

.grid__item--nav-prev .icon--nav-arrow {
	transform: rotate(180deg);
	margin: 0;
}

.grid__item--nav-next, .grid__item--nav-prev
{
	padding: 15px 20px;
}
.no-js .grid__item--nav {
	display: none;
}

.grid__item--animateOut {
	animation: animateOut 0.8s cubic-bezier(0.7,0,0.3,1) forwards;
}

@keyframes animateOut {
	to {
		opacity: 0;
	}
}

.grid__item--animateIn {
	animation: animateIn 0.8s cubic-bezier(0.7,0,0.3,1) forwards;
}

.grid__item--name.grid__item--animateIn, .grid__item--name.grid__item--animateOut,
.grid__item--title.grid__item--animateIn, .grid__item--title.grid__item--animateOut,
.grid__item--text.grid__item--animateIn, .grid__item--text.grid__item--animateOut {
	animation: animateIn 0s ;
}
@keyframes animateIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.revealer{
    background-color: #eeeeee !important;
}
.grid__item--nav .revealer, .grid__item.item-nav .revealer{
    background-color: transparent !important;
}
.slide_num:nth-child(2) {
    margin: 15px 10px;
}
/* Layout 1 */
.grid--layout-1 .grid__item:first-child { grid-area: 4 / 1 / 14 / 6; background-color: #eeeeee; }
.grid--layout-1 .grid__item:nth-child(2) { grid-area: 1 / 6 / 14 / 15; background-color: #eeeeee;}
.grid--layout-1 .grid__item:nth-child(3) { grid-area: 3 / 15 / 11 / 21; background-color: #eeeeee;}
.grid--layout-1 .grid__item:nth-child(4) { grid-area: 14 / 10 / 23 / 15; background-color: #eeeeee;}
.grid--layout-1 .grid__item:nth-child(5) { grid-area: 11 / 15 / 20 / 20; background-color: #eeeeee;}
.grid--layout-1 .grid__item:nth-child(6) { grid-area: 4 / 5 / 2 / 6; background-image: url(../img/14.jpg); }
.grid--layout-1 .grid__item:nth-child(7) { grid-area: 20 / 15 / 22 / 16; }
.grid--layout-1 .grid__item:nth-child(8) { grid-area: 15 / 3 / 19 / 10; line-height: 38px;}
.grid--layout-1 .grid__item:nth-child(9) { grid-area: 18 / 4 / 21 / 9; }
.grid--layout-1 .grid__item:nth-child(10) { grid-area: 20 / 4 / 24 / 10; }
.grid--layout-1 .grid__item:nth-child(11) {  grid-area: 1 / 16 / 5 / 20;     text-align: right;}
.grid--layout-1 .grid__item:nth-child(12) { grid-area: 17 / 26 / 22 / 28; }
.grid--layout-1 .grid__item--name { grid-area: 3 / 12 / 30 / 25; }
.grid--layout-1 .grid__item--title { grid-area: 1 / 27 / 11 / 29;     padding: 25px 15px;}
.grid--layout-1 .grid__item--text { grid-area: 22 / 23 / 30 / 26; }
.grid--layout-1 .grid__item--nav-prev { grid-area: 3 / 6 / 8 / 11; }
.grid--layout-1 .grid__item--nav-next { grid-area: 24 / 15 / 29 / 20; }

/* Layout 2 */
.grid--layout-2 .grid__item:first-child { grid-area: 4 / 1 / 14 / 6; background-color: #eeeeee;}
.grid--layout-2 .grid__item:nth-child(2) { grid-area: 1 / 6 / 14 / 15; background-color: #eeeeee;}
.grid--layout-2 .grid__item:nth-child(3) { grid-area: 3 / 15 / 11 / 21; background-color: #eeeeee;}
.grid--layout-2 .grid__item:nth-child(4) { grid-area: 14 / 10 / 23 / 15; background-color: #eeeeee;}
.grid--layout-2 .grid__item:nth-child(5) { grid-area: 11 / 15 / 20 / 20; background-color: #eeeeee;}
.grid--layout-2 .grid__item:nth-child(6) { grid-area: 4 / 5 / 2 / 6; }
.grid--layout-2 .grid__item:nth-child(7) { grid-area: 20 / 15 / 22 / 16; }
.grid--layout-2 .grid__item:nth-child(8) { grid-area: 15 / 3 / 19 / 10; line-height: 38px;}
.grid--layout-2 .grid__item:nth-child(9) { grid-area: 18 / 4 / 21 / 9; }
.grid--layout-2 .grid__item:nth-child(10) { grid-area: 20 / 4 / 24 / 10; }
.grid--layout-2 .grid__item:nth-child(11) {  grid-area: 1 / 16 / 5 / 20;     text-align: right;}
.grid--layout-2 .grid__item:nth-child(12) { grid-area: 17 / 26 / 22 / 28; }
.grid--layout-2 .grid__item--name { grid-area: 3 / 12 / 30 / 25; }
.grid--layout-2 .grid__item--title { grid-area: 1 / 27 / 11 / 29;     padding: 25px 15px;}
.grid--layout-2 .grid__item--text { grid-area: 22 / 23 / 30 / 26; }
.grid--layout-2 .grid__item--nav-prev { grid-area: 3 / 6 / 8 / 11; }
.grid--layout-2 .grid__item--nav-next { grid-area: 24 / 15 / 29 / 20; }

/* Layout 3 */
.grid--layout-3 .grid__item:first-child { grid-area: 4 / 1 / 14 / 6; background-color: #eeeeee;}
.grid--layout-3 .grid__item:nth-child(2) { grid-area: 1 / 6 / 14 / 15; background-color: #eeeeee;}
.grid--layout-3 .grid__item:nth-child(3) { grid-area: 3 / 15 / 11 / 21; background-color: #eeeeee;}
.grid--layout-3 .grid__item:nth-child(4) { grid-area: 14 / 10 / 23 / 15; background-color: #eeeeee;}
.grid--layout-3 .grid__item:nth-child(5) { grid-area: 11 / 15 / 20 / 20; background-color: #eeeeee;}
.grid--layout-3 .grid__item:nth-child(6) { grid-area: 4 / 5 / 2 / 6; }
.grid--layout-3 .grid__item:nth-child(7) { grid-area: 20 / 15 / 22 / 16; }
.grid--layout-3 .grid__item:nth-child(8) { grid-area: 15 / 3 / 19 / 10; line-height: 38px;}
.grid--layout-3 .grid__item:nth-child(9) { grid-area: 18 / 4 / 21 / 9; }
.grid--layout-3 .grid__item:nth-child(10) { grid-area: 20 / 4 / 24 / 10; }
.grid--layout-3 .grid__item:nth-child(11) {  grid-area: 1 / 16 / 5 / 20;     text-align: right;}
.grid--layout-3 .grid__item:nth-child(12) { grid-area: 17 / 26 / 22 / 28; }
.grid--layout-3 .grid__item--name { grid-area: 3 / 12 / 30 / 25; }
.grid--layout-3 .grid__item--title { grid-area: 1 / 27 / 11 / 29;     padding: 25px 15px;}
.grid--layout-3 .grid__item--text { grid-area: 22 / 23 / 30 / 26; }
.grid--layout-3 .grid__item--nav-prev { grid-area: 3 / 6 / 8 / 11; }
.grid--layout-3 .grid__item--nav-next { grid-area: 24 / 15 / 29 / 20; }

/* Demo themes */
.demo-2 {
	--gap: 30px;
    --body-text: #333;
    --body-bg: #c4f8de;
    --link-text: #000000;
    --link-text-hover: #727272;
    --grid-name-text: #7ed72e;
    --grid-title-text: #39c283;
    --grid-nav-text: #000;
    --grid-nav-bg: #39c283;
    --grid-nav-text-hover: #ffffff;
    --grid-nav-bg-hover: #000000;
    --grid-text: #39c283;
}

.demo-2 .revealer--hideX,
.demo-2 .revealer--hideY,
.demo-2 .revealer--showX,
.demo-2 .revealer--showY,
.demo-2 .grid__item--animateOut,
.demo-2 .grid__item--animateIn {
	animation-duration: 0.6s;
}

.demo-3 {
	--gap: 30px;
    --body-text: #d3d9d9;
    --body-bg: #252626;
    --link-text: #727676;
    --link-text-hover: #f95422;
    --grid-name-text: #f95422;
    --grid-title-text: #1f2ee0;
    --grid-nav-text: #000;
    --grid-nav-bg: #fffa3a;
    --grid-nav-text-hover: #fff;
    --grid-nav-bg-hover: #1f2ee0;
    --grid-text: #fff;
}

.demo-3 div.grid__item:not(.grid__item--nav)::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background: #0013ff;
	mix-blend-mode: exclusion;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s;
}

.demo-3 .grid:not(.grid--animating) div.grid__item:not(.grid__item--nav):hover::after {
	opacity: 1;
}

@media screen and (max-width: 60em) {
	.message {
		display: block;
	}
	.frame {
		display: block;
		height: auto;
		position: relative;
		text-align: center;
	}
	.codrops-header {
		flex-direction: column;
	}
	.codrops-header__title {
		padding: 1em 0;
	}
	.github {
		margin: 0 auto;
	}
	.demos {
		padding: 1em 0 0;
	}
	.demo {
		margin: 0 0.5em;
	}
	main .grid {
		height: auto;
		top: auto !important;
		width: 100%;
		left: auto !important;
		padding: 0 2em;
		grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
		grid-auto-rows: auto !important;
		grid-auto-columns: auto !important;
		grid-gap: 1vw;
		margin: 0 0 5em;
	}

	.grid__item {
		min-height: 295px;
		grid-area: auto !important;
	}

	.grid__item br {
		content: '';
		display: none;
	}

	.grid__item--name,
	.grid__item--title,
	.grid__item--text {
		grid-column: 1 / -1 !important;
		justify-content: flex-start;
		min-height: 0;
		padding: 1vh 0;
		text-align: left !important;
	}	

	.grid__item--name {
		grid-row: 1 / -1 !important;
	}

	.grid .grid__item--title {
		-webkit-writing-mode: horizontal-tb;
		writing-mode: horizontal-tb;
	}
}
.grid--layout-1 .grid__item:nth-child(6), .grid--layout-2 .grid__item:nth-child(6), .grid--layout-3 .grid__item:nth-child(6){
	right: 15px;
	bottom: 15px;
}
@media(max-width: 1600px)
{
	.grid--layout-1 .grid__item:nth-child(6), .grid--layout-2 .grid__item:nth-child(6), .grid--layout-3 .grid__item:nth-child(6){
		right: 30px;
		bottom: 15px;
	}
}
@media(max-width: 1500px)
{
	.grid{
	    grid-auto-rows: calc((calc(100vh - 0em) / 30) - var(--gap));
	    grid-auto-columns: calc((calc(100% - 0em) /22) - var(--gap));
    }
}
@media(max-width: 1200px)
{
	.grid{
	    grid-auto-rows: calc((calc(100vh - 0em) / 30) - var(--gap));
	    grid-auto-columns: calc((calc(100% - 0em) /20) - var(--gap));
		width: calc(100% - 0em);
    	height: calc(100vh - 0em);
    }
}

@media(max-width: 961px)
{
	.grid {
	    display: block;
	    width: 100%;
	    height: auto;
	    padding: 0px !important;
	}
	.grid__item {
	    display: inline-block;
	    float: none;
	    width: 100%;
    	max-width: 315px;
	    height: auto;
	    position: relative;
        margin: 15px;
	}
	a.lien_ref {
	    display: block;
	    position: absolute;
	    width: 100%;
	    height: 100%;
        transition: all 0.2s ease 0s;
	    -webkit-transition: all 0.2s ease 0s;
	    -moz-transition: all 0.2s ease 0s;
	    -o-transition: all 0.2s ease 0s;
	    -ms-transition: all 0.2s ease 0s;
	}
	.grid__item--nav{
		height: 50px;
		width: 50px;
		padding: 15px;
    }
    .grid__item.grid__item--nav.grid__item--nav-next, .grid__item.grid__item--nav.grid__item--nav-prev {
	    height: 50px !important;
	    min-height: 0px;
	    position: absolute;
	}
	.grid__item.grid__item--nav.grid__item--nav-next {
	    top: 50%;
	    right: 35px;
	}
	.grid__item.grid__item--nav.grid__item--nav-prev {
	    top: 50%;
	    left: 35px;		
	}
	.grid__item--name
	{
	    top: -180px;
	}
	.grid__item--title{
		display: inline-block;
	    text-align: center !important;
	    max-width: 240px;
        left: 40%;
	    top: -175px;
	}
	.grid__item.item-nav {
		top: -50px;
	    left: 0%;
	    position: absolute;
	    display: inline-block;
	    width: 100%;
	}
	.container-fluid.slider.js
	{
		height: 1080px;
	}
	.legende_ref {
	    margin-left: -35px;
	    margin-top: -15px;
	    text-align: left;
	}
}

@media(max-width: 961px)
{
	.grid__item.grid__item--nav.grid__item--nav-next {
	    right: 0px;
	}
	.grid__item.grid__item--nav.grid__item--nav-prev {
	    left: 0px;		
	}
	.grid--layout-1 .grid__item:nth-child(9), .grid--layout-2 .grid__item:nth-child(9), .grid--layout-3 .grid__item:nth-child(9){
		margin: auto;
	    width: 100%;
	    left: 155px;
	}
}

@media(max-width: 768px)
{
	.container-fluid.slider.js {
	    height: 1080px;
	}
	.skills .skill {
	    float: none;
	    margin: 15px auto !important;
	}
	body main .red .redwritting {
    	height: 90%;
	}
}

@media(max-width: 720px)
{
	.container-fluid.slider.js {
	    height: 1880px;
        padding: 5px !important;
	}
}

@media(max-width: 664px)
{
	.grid__item--name {
	    top: -30px;
	}
	a.grid__item.grid__item--title.btn_rouge {
	    top: -25px;
	    left: 0px;
	}
}