:root {
    --titulos: 'Momo Trust Display', sans-serif;
    --textos: 'Urbane', urbane, sans-serif;
    --principal: #2F2E2E;
    
    --actec-cream: #FAEFE4;
    --actec-burgundy: #6B1F37;
    --actec-sky: #B9D7F2;
    --actec-teal: #144645;
    --actec-mustard: #CFC25E;
    --actec-pink: #FBBFBF;
    --actec-brown: #453B3B;
    --actec-ink: #2F2E2E;
}

div#close-button {
    position: absolute;
    right: -4rem;
    top: -4rem;
    cursor: pointer;
}
#close-button span {
    font-size: 2.5rem;
}
body {
	-webkit-font-smoothing: antialiased;
  	-moz-osx-font-smoothing: grayscale;
    font-family: var(--textos) !important;
    color: var(--principal) !important;
	background: #fff !important;
}
.img-main * {
    width: 100%;
}
.img-main img {
    border-radius: 20px;
    margin-bottom: 25px;
	max-height: 460px;
    object-fit: cover;
}
.news-title {
    /*padding-bottom: 5px;
    border-bottom: 1px solid var(--principal);*/
}
h1 {
    font-size: 1.5rem !important;
	font-family: var(--titulos) !important;
}
.wpb_text_column h2 {
    font-size: 1.25rem;
    font-weight: 500;
}
.axe h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0px;
}

.axe .aio-icon-description {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0 !important;
}

.news-title .wpb_wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    flex-direction: column;
}

.pays {
    font: normal 200 1.25rem / 1em var(--titulos);
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    width: fit-content;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
}
.pays svg {
    width: 1rem;
    height: auto;
}
.pays svg path {
	fill: #fff !important;
}

article.category-formation-technique .pays {
    background: #0F7676;
}
article.category-formation-entrepreneuriale .pays {
    background: var(--actec-mustard);
}
article.category-mba-actec .pays {
    background: #0E5E9F;
}
article.category-microcredit .pays {
    background: #E7693E;
}
article.category-parrainage .pays {
    background: #F6B6B8;
}


article:before {
    content:'';
    width: 100vw;
    height: 50%;
    position: absolute !important;
    top: 0;
    left: 0;
}
article.category-formation-technique:before {
    background: #BFF0EE;
}
article.category-formation-entrepreneuriale:before {
    background: var(--actec-mustard);
}
article.category-mba-actec:before {
    background: #1C3C69;
}
article.category-microcredit:before {
    background: #FADCD5;
}
article.category-parrainage:before {
    background: #FFE2E3;
}
/*.pays:before {
    content: '';
    display: block;
    background-image: url('/wp-content/uploads/2024/07/ACTEC-RA23-Icon-Location.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 1rem;
    height: 1.15rem;
}*/

.img-news * {
    width: 100%;
}
.img-news img {
    border-radius: 10px;
    margin-bottom: 5px;
}

.related-title h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    font-weight: 500;
}

.related-title {
    /* border-bottom: 1px solid var(--principal); */
    /* padding-bottom: 5px; */
}

.related-news p:first-child {
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.related-news a {
    color: var(--principal);
    text-decoration: none;
    display: flex;
}

.related-news a:hover:after {
    content: '\e5e1' !important;
    display: block !important;
    font-family: 'Material Symbols Outlined';
    width: auto !important;
    height: auto !important;
    position: relative !important;
    left: 10px;
    top: 5px;
    font-size: 0.8rem;
    line-height: 1;
}

.related-news a:hover {
    color: var(--wp--preset--color--accent);
}

div#return {
    position: absolute;
    bottom: 0;
}
a.return-button {
    display: flex;
    align-items: center;
    text-decoration: none;
}
a.return-button span {
    font-size: 0.9rem;
    position: relative;
    top: 1px;
}
.related-news {
    border-left: 1px solid var(--principal);
    margin-bottom: 0 !important;
    padding-bottom: 25px;
    padding-left: 10px;
}
.related-news:nth-last-child(2) {
    padding-bottom: 0 !important;
}
@media (max-width:767px) {
	div#return {
		position: relative;
		margin-top: 3rem;
	}
	.wpb_column:has(.axe) {
		order: 1;
	}
	article {
		padding-right: 1rem;
		padding-left: 1rem;
	}
}
@media (max-width:940px) {
    body.ra23-template-default {
        padding: 1rem;
    }
}
@media (max-width:1120px) {
    div#close-button {
        right: 0rem;
        top: -3rem;
    }
}