/* TEMPORAIRE : permet de corriger le conflit css entre temporary_root et le css de la page de blog */
.ck-content p {
  margin:0 ;
  margin-bottom:1rem;
  padding:0;
  line-height: 1.5;
  letter-spacing:4%;
}

.ck-content li {
	list-style-type: disc;
}

.ck-content h2 strong {
	color : var(--colEthiBleu);
	font-size: 1.4rem;
}

.ck-content a {
	text-decoration:underline;
}

h4 {display:block;font-family:'Raleway';line-height:1.1;font-style:normal;font-weight:800;font-size:var(--fs-20-18);}


/* BUTTONS */

article .button {
	display: inline-block;
	padding: .4em 1.2em;
	line-height:1;
	background-color: #333;
	color: white;
	text-transform: uppercase;
	margin-bottom: 1rem;
	font-family: 'Raleway';
	font-weight: 500;
	letter-spacing: .05em;
	text-shadow: none;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 2px;
	border-radius: 1em;
}

article .button--primary { background-color: var(--colEthiBleu); }
article .button--diminished { background-color: rgba(0, 0, 0, .5); font-weight: normal; }

article .button:hover { color: white; }

article .button--white { background-color: white; color: #222; }
article .button--white:hover { color: #222; }

article p .button { margin-bottom: 0; }

article .button .svg-inline--fa { margin-right: .5em; }

p.many-buttons .button { margin-bottom: .5rem; }

button article article .button { border: none; }
button:hover { cursor: pointer; }

article .button--block { display: block; width: 100%; }

article .button--small { font-size: .8rem; }
article .button--large { font-size: 1.3rem; }

article .button i { margin-right: .5em; }

article .button-holder { text-align: center; margin: 1rem 0; }

article .button { text-decoration: none; transition: transform 30ms ease-out; }

article .button:hover {
	cursor: pointer;
	text-decoration: underline;
}
article .button:focus {
	text-decoration: underline;
	text-decoration-style: dotted;
}
article .button:active { transform: translateY(2px); }

article .buttons article .button { margin-bottom: .25rem; }


article .help-text {
	font-size: .8rem; opacity: .8; font-style: italic; line-height: 1;
}

/* THEME SPECIFICS */
article hr { border: 1px solid #ccc; border-bottom: none; margin: 2rem 1rem; }

/* ARTICLE PAGES */


/* PAGE TYPOGRAPHY */

article {
	max-width: 52rem;
	margin: 0 auto;
	padding: 2rem 2rem .5rem;
	background-color: rgba(255,255,255,.9);
	position: relative;
	overflow: auto;
}

article .alt-title-style { text-transform: uppercase; font-weight: bold; color: var(--colEthiVert); white-space: wrap;}
article h3, article h4, article h5 { color: var(--colEthiBleu); }

article .intro { margin: 3rem 0 2rem; }
article .article__intro { margin: 0; }
article .intro h1.page__title { color: var(--colEthiVert); margin: 0; padding: 0 2rem; text-transform: uppercase; }
article .intro h1.page__title { padding: 2rem; }
article h1:first-child { margin: 0 0 2.5rem; }

@media (min-width: 720px) {
	article h1:first-child { margin: -1.5rem 0 1.5rem; }
	#page.article_page {
		padding: 3rem 2rem;
	}
	article {
		padding: 5rem 4rem 3rem;
	}
}

.article_page { border-top: 1px solid #eee; }

article p {
	line-height: 1.5;
}

article img {
	max-width: 100%;
	margin: 1rem auto;
	border: 1px solid #eee;
	border-radius: .5rem;
	width: auto;
	height: auto; 
}

article h1 + img,
article .article__last_updated + img { margin-top: -.5rem; margin-bottom: 2rem; }

.article__last_updated { font-size: .8em; margin-top: -1rem; margin-bottom: 2rem; opacity: .8; }


/* SHOWCASE BLOCK */

.showcase { padding: 4rem 1rem 2rem; text-align: center; }
.showcase.inner-shadow { margin: 0; padding: 4rem 1rem; }
.showcase__title { font-weight: bold; text-transform: uppercase; }
.showcase__title span:not(.alt-title-style) { font-weight: normal; text-transform: none;}
.showcase__card { margin: 2rem 1rem 1rem; display: block; }
.showcase__card__illustration { display: inline-block; margin: 1rem 0; }
.showcase__card__illustration svg { color: var(--colEthiBleu-light); }
.showcase__card__illustration img { width: 6.5rem; height: auto; }
@media (min-width: 520px) {
	.showcase__cards { display: grid; grid-template-columns: repeat(2, 1fr); }
	.showcase__cards--3 { display: block; }
}
@media (min-width: 900px) {
	.showcase__cards { grid-template-columns: repeat(4, 1fr); }
	.showcase__cards--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
	.showcase__card__illustration img { width: 9rem; }
}
h3.showcase__card__title { margin: 0 0 1rem; }
.showcase__card__text { margin: 0 auto 1rem; font-size: .9em; max-width: 16rem; }


.showcase--bordertop {
	border-top: 1px solid #eee;
}

/* SHOWCASE DARK */
.showcase--dark {
	background-color: #61C995;
	background-image: url('{% static "media/fond-bleu.svg" %}');
	background-position: center center;
	background-size: cover;
	text-shadow: var(--meme-shadow-white);
}

.showcase--dark .showcase__card {
	background-color: white;
	border-radius: .5rem;
	padding: 1rem;
	color: #444; text-shadow: none;
}

/* GREEN ICONS */
.showcase--green-icons img {}


/* SHOWCASE TEXT */

.showcase--text {
	padding: 4rem max(calc(50vw - 20rem), 1rem);
}


/* SHOWCASE LOGOS */

.logowall {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	margin: 1rem -1rem 2rem;
	--logo-size: 3.5rem;
	--max-rows: 8;
	max-height: calc((var(--logo-size) + .5rem) * var(--max-rows));
	overflow: hidden;
}
@media (min-width: 568px) {
	.logowall {
		--logo-size: 5rem;
		--max-rows: 4;
	}
}

.logowall__logo {
	display: block;
	margin: .25rem .5rem;
	width: var(--logo-size);
	height: var(--logo-size);
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
	transition: all 200ms ease-out;
}
.logowall__logo[href]:hover {
	transform: scale(1.3);
	background-color: white;
	box-shadow: 0 0 1rem .25rem white;
}

/* SHOWCASE SLIDER */

.showcase--slider {  }
.showcase--slider .showcase__cards {
	display: flex; /* apply flex even below 720px */
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	overflow-y: auto;
	overflow-x: scroll;
	margin: 2rem -1rem;
	padding-left: 1rem;
}
@media (min-width: 720px) {
	.showcase--slider .showcase__cards {
		padding-left: 2rem;
		overflow-x: hidden;
	}
}


.showcase--slider .showcase__card { margin-bottom: .5rem; margin-right: 1rem; margin-left: 0; }
@media (min-width: 720px) { .showcase--slider .showcase__card { margin-bottom: 1rem; margin-right: 2rem; } }

.showcase--logos.showcase--slider img {
	width: auto; height: auto;
	max-width: 8rem; max-height: 6rem;
}

.showcase--logos.showcase--slider .bigger img {
	max-width: 12rem; max-height: 7.5rem;
}

.showcase--slider .showcase__cards__wrapper { position: relative; }

.slider-button-left, .slider-button-right {
	position: absolute;
	z-index: 5;
	background-color: rgba(0,0,0,.5);
	border-radius: 2rem;
	padding: .4rem .2rem 0 .25rem;
	box-shadow: 0 0 0 .1rem white;
	font-size: 1rem;
	font-weight: bold;
	color: white;
	top: 3rem;
	cursor: pointer;
}
.slider-button-left { left: 1rem; }
.slider-button-right { right: 1rem; }

/* SHOWCASE PHOTOS */

.photobox {
	background-image: url('{% static "media/geometric-background.svg" %}');
	background-size: cover;
	padding: 0;
}

.photobox h3 { font-size: 1.6rem; }

@media (min-width: 720px) {
	.photobox__element { display: grid; grid-template-columns: 1fr 1fr; }
	.photobox__element:nth-child(even) .photobox__illustration { position: relative; right: 100%; }
	.photobox__element:nth-child(even) .photobox__text { position: relative; left: 100%; }
}


.photobox__text {
	padding: 2rem;
	text-align: center;
}

.photobox__illustration {
	background-size: cover;
	background-position: center center;
	min-height: 4rem;
}

/* SHOWCASE FUNKY */

.showcase--funky {
	margin: 4rem 0rem;
	padding: 2rem 1rem;
	background-color: #eee;
	background-image: url('{% static "media/fond-feuille.png" %}');
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	text-shadow: 1px 1px 1px white;
}
.showcase + .showcase--funky { margin-top: -1rem; }


/* SHOWCASE ICONS */

.showcase--icons { border-top: 1px solid #eee; border-bottom: 1px solid #eee; }

.showcase--icons h3.showcase__card__title { font-size: 1.2rem; }

.showcase--icons .showcase__card { margin: 1rem auto 2rem; }
.showcase--icons .showcase__cards { max-width: 60rem; margin: 0 auto;}

.showcase--icons .showcase__card__illustration {
	position: relative;
	border-radius: 50%;
	background-image: url('{% static "media/geometric-background-circle-blue.svg" %}');
	background-size: cover;
	padding: 1.5rem;
	height: 6.5rem;
	width: 6.5rem;
	margin-bottom: .5rem;
	transition: transform 250ms ease-out;
}

.showcase--icons a.showcase__card:hover .showcase__card__illustration {
	transform: translateY(-.5rem) rotate(5deg);
}

.showcase--icons .showcase__card__illustration img,
.showcase--icons .showcase__card__illustration svg {
	height: 100%;
	width: 100%;
	color: white;
}

@media (min-width: 720px) {
	.showcase--icons .showcase__card { margin: 1rem 2rem; }
	.showcase--icons img { height: 9rem; }
}

/* Video Showcase */

.video-showcase {
	display: flex;
	flex-direction: column;
	padding: 1rem 0;
	position: relative;
}
.video-showcase__text {
	background-color: #eee;
	background-image : url('{% static "media/geometric-background.svg" %}');
	background-size: cover;
	border-radius: .25rem;
	padding: 1rem;
	margin-top: 1rem;
}
.video-showcase__video {
	width: calc(100vw - 2rem);
	height: calc((100vw - 2rem) / 1.77777777);
	border-radius: .25rem;
	background-color: white;
	margin: 0 1rem;
	border: 1px solid #ccc;
}

@media (min-width: 720px) {
	.video-showcase {
		align-items: center;
		flex-direction: row-reverse;
	}
	.video-showcase__text {
		max-width: calc(50vw - 1rem);
		margin-top: 0;
/*		margin-left: .75rem;	*/
		padding: 1rem 1.5rem;
		transform: translateX(.25rem);
	}
	.video-showcase__video {
		width: calc(50vw - .5rem);
		height: calc((50vw - .5rem) / 1.77);
		transform: translateX(-.25rem);
		margin: 0;
		z-index: 2;
	}
}

@media (min-width: 1200px) {
	.video-showcase {
		width: calc(1200px - 2rem);
		margin: auto;
	}
	.video-showcase__text {
		width: calc(500px - 1rem);
		padding: 1rem 2rem;
	}
	.video-showcase__video {
		width: calc(700px - 1rem);
		height: calc((700px - 1rem) / 1.77);
	}
}

/* BLOG */

.blog { padding: 0 1rem 3rem; }
.blog__title { font-size: 2rem; line-height: .9; text-align: center; margin-bottom: 2rem; }

.articles { display: grid; grid-template-columns: 1fr; grid-gap: 1rem; }
.blog--limited .article:nth-child(4):last-child { display: none; } /* 4th article doesn't show on screens with 1 or 3 articles per line */
@media (min-width: 576px) {
	.articles { grid-template-columns: repeat(2, 1fr); }
	.blog--limited .article:nth-child(4):last-child { display: block; }
}
@media (min-width: 768px) {
	.articles { grid-template-columns: repeat(3, 1fr); }
	.blog--limited .article:nth-child(4):last-child { display: none; }
}
@media (min-width: 1400px) {
	.articles { grid-template-columns: repeat(4, 1fr); }
	.blog--limited .article:nth-child(4):last-child { display: block; }
}

.article {
	display: grid;
	grid-template-rows: auto auto auto 1fr auto;
	max-height: 22rem;
	padding: 1.25rem;
	box-shadow: var(--light-shadow);
	border: 1px solid #ddd;
	background-color: rgba(255,255,255,.7);
}
.article__illustration {
	display: block;
	margin: -1.25rem -1.25rem 1rem -1.25rem;
	height: 9rem;
	background-color: #ccc;
	background-size: cover;
	background-position: center center;
}
.article__title {
	display: inline-block;
	font-size: 1rem;
	margin-bottom: .5rem;
}
.article__date {
	margin-bottom: .5rem;
	font-size: .6rem;
	opacity: .8;
	text-transform: uppercase;
}
.article__description {
	position: relative;
	opacity: .8;
	font-size: .75rem;
	line-height: 1.35;
	overflow: hidden;
}
.article__description::after {
	position: absolute;
	content:""; display: block;
	width: 100%; height: 2rem;
	bottom: 0;
	background: linear-gradient(to bottom, transparent, white);
}
.article__readmore {
	font-size: .7rem;
	display: block;
	color: var(--colEthiBleu);
	text-transform: uppercase;
	position: relative;
	margin-top: .5rem;
	z-index: 2;
}
.article__title:not(:hover),
.article__readmore:not(:hover) {
	text-decoration: none;
}

/* MISC */

*[hidden] { display: none; }