/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/*Page équipe*/

@media (min-width: 881px) and (max-width:1199px) {
.post-type-archive-employe .site-main {
	max-width: 855px !important;
}}

@media (min-width: 576px) and (max-width:880px) {
.post-type-archive-employe .site-main {
	max-width: 570px !important;
}}

.rectangle-orange-gauche {
	position: absolute;
	top:10%;
	left: 0;
	height: 600px;
	width: 40%;
	background: var(--e-global-color-accent);
}

.rectangle-orange-droite {
	position: absolute;
	top:30%;
	right: 0;
	height: 400px;
	width: 40%;
	background: var(--e-global-color-accent);
}

.post-type-archive-employe h1 {
	color:var(--e-global-color-d920c60);
	font-weight: 700;
}
.post-type-archive-employe h1::after {
	content:"";
	position: relative;
	display: block;
	width: 50px;
	height: 4px;
	background: black;
	margin: 0.25em 0 2em;
}
.post-type-archive-employe .milieu {
	position: relative;
	background: linear-gradient(var(--e-global-color-10cab8a), #FFF);
	padding-top:4em;
	padding-bottom: 4em;
} 

.post-type-archive-employe .grid {
  margin-top: -8em;
  display: grid;
  grid-template-columns: repeat(auto-fill, 270px);
  column-gap: 1em;
  row-gap: 2em;
}

/* clearfix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

/* ---- grid-item ---- */

.post-type-archive-employe .grid-item {
  position: relative;
  display: flex;
  flex-direction: column;
}

/*.post-type-archive-employe .grid-item:first-child {
 margin-top: -2em;
}*/



.post-type-archive-employe .texte-employe {
	padding: 1em 1em 0.5em;
	color:#000;
	z-index: 1000;
	background: var(--e-global-color-10cab8a);
	height: 100%;
}

.post-type-archive-employe h2 {
	font-size: 1.25em;
	font-weight: 700;
	margin: 0;
	color: var(--e-global-color-accent);
}
.post-type-archive-employe h3 {
	font-size: 1rem;
	font-weight: 700;
	color:#FFF;
	transition: all 0.5s;
	margin: 0;
}

.post-type-archive-employe .texte-employe p:before {
	content: "";
	position: relative;
	display: block;
	width: 50px;
	height: 4px;
	background: #000;
	margin: 1em 0;
}


@media (min-width:1200px) {

/*.post-type-archive-employe .grid-item:nth-child(3) {
 margin-top: 2em;
}

.post-type-archive-employe .grid-item:nth-child(4) {
 margin-top: -2em;}*/

.post-type-archive-employe .grid-item::before {
	content: "";
	position: absolute;
	height: 50%;
	width: 100%;
	bottom: 0;
	background: linear-gradient(to top, black, transparent);
  left:0;
  z-index: 1;
  opacity: 0.8;
}

.post-type-archive-employe .texte-employe {
	position: absolute;
  bottom: 0;
  background: transparent;
  height: fit-content;
}

.post-type-archive-employe article:hover .texte-employe {
	background: rgba(255, 255, 255, 0.9);
}

.post-type-archive-employe article:hover h3 {
	color: var(--e-global-color-d920c60);
	transition: all 0.5;
}

.post-type-archive-employe .texte-employe p {
	max-height: 0;
	overflow: hidden;
	display: block;
}

.post-type-archive-employe article:hover .texte-employe p {
	max-height: 300px;
	transition: all 1s;
}
}

@media (max-width:575px) {
.post-type-archive-employe .site-main {
	padding-inline-start: 20px !important;
	padding-inline-end: 20px !important;
}

.post-type-archive-employe .grid-item {
  width: calc(100vw - 40px);
}

} 

