/*
 Theme Name:  Monde Diplomatique
 Theme URI:    https://atelier216.com
 Description:  Child Theme
 Author:       Mohamed Habib Mesbah
 Author URI:   https://atelier216.com
 Template:     Divi
 Version:      1.0.0
*/

/*****Add any custom CSS below this line*****/
.preloader {
	position: fixed;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-color: #fff;
   z-index: 100000;
   height: 100%;
   width: 100%;
   overflow: hidden !important;
} 

.preloader .sprite {
width: 204px;
height: 96px;
position: absolute;
left: 50%;
top: 50%;
margin: -48px 0 0 -102px;
background-image : url(../../uploads/2022/07/preloader.gif);
background-size: contain;
}

h3 {
  font-weight: 700;
}

/*** Footer ***/

#footer-widgets {
  display: flex;
}

.footer-widget {
  display: flex;
  flex-direction: column;
}

.footer-widget:last-child {
  align-items: center;
}

#produit_id{
text-align:center !important; 
border-radius: 5px !important; 
}

.produit_id {
text-align:center !important; 
border-radius: 5px !important; 
}

#footer-info {
  width: 100%;
  text-align: center;
  direction: ltr;
}

#footer-bottom {
  margin-bottom: 30px;
}

/*** EDITIONS ***/

#related_edition {
  max-width: 300px;
  margin: 0 auto;
}

#related_edition a img,
.swipern a img {
  border: solid 1px #ddd;
  opacity: 1;
  transition: all 0.3s ease-out;
}

#related_edition a:hover img,
.swiper a:hover img {
  opacity: 0.4;
}

#related_edition a:hover:after,
.swiper a:hover:after {
  font-family: ETmodules;
  font-size: 2em;
  content: "\e02b";
  color: #ce171c;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper a:hover:after {
  height: 80%;
}

#related_edition .featured-title,
.swiper .featured-title {
  text-align: center;
  padding-top: 20px;
}

/*** Related Posts ***/
.posts {
  display: grid;
  grid-gap: 2rem;
}
/* Screen larger than 600px? 2 column */
@media (min-width: 600px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.middle-posts .block-2 {
  display: grid;
  grid-gap: 2rem;
}
.rest_posts {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
}
.posts a .image_container,
.last-post a .image_container,
.middle-posts a .image_container,
.rest_posts a .image_container {
  overflow: hidden;
}

.posts a .featured-info,
.last-post a .featured-info,
.middle-posts a .featured-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.posts a .featured-title,
.last-post a .featured-title {
  direction: rtl;
  font-size: 18px;
  line-height: 1.5em;
}
.middle-posts a .featured-title {
  direction: rtl;
  font-size: 16px;
  line-height: 1.5em;
}
.posts .featured-author,
.last-post a .featured-author,
.middle-posts a .featured-author,
.rest_posts a .featured-author {
  color: #999;
  margin-bottom: 10px !important;
}
.posts a img,
.last-post a img,
.middle-posts a img {
  width: 100%;
  transition: all 0.3s ease-out;
  transform: scale(1);
  opacity: 1;
}

.posts a:hover img,
.last-post a:hover img,
.middle-posts a:hover img {
  transform: scale(1.2);
  opacity: 0.8;
}

.posts .block-1 a .featured-title,
.last-post .block-1 a .featured-title {
  font-size: 18px;
  margin-top: 20px;
}

.posts .block-1 .post p,
.last-post .block-1 .post p {
  font-size: 18px;
  margin-bottom: 30px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.posts .block-2 .post a {
  display: grid;
  grid-template-columns: 160px auto;
  grid-gap: 20px;
}

.middle-posts .block-2 .post a {
  display: grid;
  grid-template-columns: 120px auto;
  grid-gap: 20px;
}

.posts .block-2 a .featured-title,
.middle-posts .block-2 a .featured-title,
.rest_posts a .featured-title {
  font-size: 16px;
}

.posts .block-2 a .image_container {
  width: 160px;
  height: 90px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.middle-posts .block-2 a .image_container {
  width: 120px;
  height: 90px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn_more {
  background: #ce171c;
  color: white;
  font-size: 18px;
  padding: 9px 18px;
  border-radius: 5px;
  transition: all 0.3s ease-out;
}

.btn_more:hover {
  background: black;
}
/* rest_posts page home*/
.rest_posts {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
}
.rest_posts .featured-title,
.rest_posts .featured-author,
.rest_posts .featured-date,
.rest_posts .featured-excerpt {
  line-height: 1.5em;
}
.rest_posts a img {
  width: 100%;
  transition: all 0.3s ease-out;
  transform: scale(1);
  opacity: 1;
}

.rest_posts a:hover img {
  transform: scale(1.2);
  opacity: 0.8;
}
.rest_posts a .image_container {
  overflow: hidden;
  width: 249px;
  height: 140px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.rest_posts .featured-author,
.rest_posts .featured-date {
  color: #999;
  padding-bottom: 0;
}
.rest_posts .featured-excerpt {
  color: #000000;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

/** Slider Abonnements **/
h3.price {
  color: black !important;
}
.swiper {
  width: 95%;
  line-height: 0;
}
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  margin: 0 2.8% 2.992em 0 !important;
}

/** Caroussel Editions**/

.swiper a .featured-title {
  width: 100%;
  position: absolute;
  top: 75%;
  opacity: 0;
  font-size: 1.2em;
  transition: all 0.3s ease-out;
}
.swiper a:hover .featured-title {
  top: calc(50% - 0.6em);
  opacity: 1;
}
.edition-loop .swiper-slide img {
  border: solid 1px #ddd;
}

/** EDITOS LISTING **/

.editos .et_pb_post {
  margin-bottom: -1px !important;
}

.editos .et_pb_post:last-child {
  border-bottom: solid 1px #ddd;
}

/** GOOGLE MAP **/

.google-maps {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.google-maps iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}
/** Archive Editions **/
.edition .items {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	grid-gap: 20px;
}
.filter {
  display: flex;
}

.filter .text-search{
	font-size: 18px;
	color: #999;
	padding-left: .5em;
	line-height: 35px;
}
.lists-years select, .lists-months select {
	padding: 0.25em 0.75em;
    font-size: 18px;
	margin: 0 .5em;
}

.filter select option:first-child {
	font-style: italic;
	color: #999;
}

.filter a.apply {
	font-size: 18px;
	padding: 0.2em 1em;
	color: white !important;
	background: #ce171c;
	margin-right: .5em;
	border-radius: 5px;
	transition: all .3s ease-out;
}
.filter a.apply:hover {
	background: black;
}

.filter a.reset {
	font-size: 18px;
	padding: 0.2em 1em;
	color: #999 !important;
	background: #f6f6f6;
	margin-right: .5em;
	border-radius: 5px;
	border: solid 1px #ddd;
	transition: all .3s ease-out;
}

.filter a.reset:hover {
	color: white !important;
	background: black;
}

.edition .items img {
	border: solid 1px #ddd;
}

.edition .items h3 {
	font-size: 16px;
	text-align: center;
	line-height: 32px;
}

.edition .pagination ul {
  	display: flex;
	list-style: none;
	justify-content: center;
}

.edition .pagination li {
	margin: 1em 0.2em 0;
}

.edition .pagination li a, .edition .pagination li .current, .edition .pagination li .first, .edition .pagination li .last {
	font-size: 18px !important;
    border-radius: 5px;
    padding: 0.2em 0.8em;
}

.edition .pagination li a {
	background: #f6f6f6;
    border: solid 1px #ddd;
	transition: all .3s ease-out;
}

.edition .pagination li .current {
	color: white;
	background: #ce171c;
    border: solid 1px #ce171c;
}

.edition .pagination li .first, .edition .pagination li .last {
	color: #ddd;
	border: solid 1px #ddd;
}

/** TAGS **/

.tags div {
	width: fit-content;
	margin-left: 1em;
	margin-bottom: 2em;
	display: block;
	float: right;
}
.tags a {
	padding: .2em 1em;
	color: black;
	background: #f6f6f6;
	border: solid 1px #ddd;
	border-radius: 5px;
	font-size: 18px;
	transition: all .3s ease-out;
}
.tags a:hover {
	color: white;
	background: #ce171c;
	border: solid #ce171c 1px;
}


/** WOO COMMERCE **/
@media only screen and (min-width: 981px) {
   .et-cart-info { 
        display:none !important; 
   }
}

#price .border-price{
	border: #dddddd solid 0.5px;
	padding: 0 0 10px 0;
}
#price .border-price:hover {
    background-image: linear-gradient(180deg,#f5f5f5 0%,#f5f5f5 100%);
    background-color: transparent;
}
.somdn-download-wrap {
    text-align: center;
}
 .woocommerce-info{
	background: #f6f6f6!important;
    color: #ce171c!important;
}
/*
 * logo
 * */
.et_header_style_left .logo_container {
    width: auto !important;
}
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
    top: -28px;
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

#top-menu li:hover .tooltiptext {
  visibility: visible;
}