/* Styles spécifiques pour single-countries.php */




#primary{
    padding-top: 155px;
    /* background: linear-gradient(180deg,#F8F2FE   0%, #f8f2fe00 100%);*/
    background: linear-gradient(
        180deg,
        #f8f2fe00 0%,    /* transparent en haut */
        #F8F2FE 16%,     /* couleur qui apparaît */
        #F8F2FE 70%,     /* reste coloré au milieu */
        #f8f2fe00 100%   /* transparent en bas */
        );
}

#primary h2,#primary h1{
    opacity: 1 !important;
    transform: none !important;
}
/* Breadcrumbs */
.breadcrumbs {
    font-size: 14px;
    color: #7a7a7a;
    margin-bottom: 20px;
    padding: 10px;
}

.breadcrumbs a {
    color: #a047e6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    margin: 0 5px;
}

.breadcrumbs .current {
    color: #7A7A7A;
    font-weight: 400;
}
/* Container */
.country-detail-container {
    display: flex;
    padding: 20px;
}

/* Sidebar */
.country-sidebar {
    width: 309px;
    padding: 0px 20px 20px 0 ;
    position: sticky;
    top: 120px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}
.country-sidebar .toc{
    border-left: 1px #EAEAEA solid;

}


.country-sidebar .toc a  {
    display: block;
    color: #848484;
    text-decoration: none;
    padding: 7px 10px;
    font-size: 15px;
    transition: color 0.3s;
    font-weight: 400;
    transition: color 0.3s ease, padding-left 0.3s ease;
    border-left: 2px solid transparent; /* place réservée à gauche */
    margin-left: -1px; /* compense l’épaisseur */
}

.country-sidebar .toc a:hover {
    color: #7900F0;
}

.country-sidebar .toc::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 0;
    width: 2px; /* largeur de la barre colorée */
    height: var(--progress-height, 0%);
    background-color: #7900F0;
    transition: height 0.2s ease-out;
}

/* Lien actif = texte violet + border-left violet */
.country-sidebar .toc a.active {
    color: #7900F0;
    font-weight: 600;
    padding-left: 14px;
    border-left: 2px solid #7900F0;
}

/* Main Content */
.country-main-content {
    flex: 1;
    padding-left: 30px;
    display: grid;
    gap: 64px;
}

/* Entry Header */
.entry-header {
    text-align: left;
    /*margin-bottom: 30px;*/
}

.entry-title {

    margin-bottom: 40px;
    font-size: 64px;
    line-height: 64px;
    font-weight: 900;
    padding-right: 6rem;
    color: #151515;
    text-align: left;
}

.pays-region {
    color: #7900F0;
    font-size: 15px;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 405px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Sections */
.country-section {
    /*margin-top: 60px;*/
}

.country-section h2,.info-section h2, .country-details-block h2 {
    font-size: 37px;
    color: #151515;
    margin: 25px 0;
    padding-bottom: 5px;
}
.section-text strong{
    /*font-size: 20px;*/
    color: #151515;
}
.section-text p{
    margin-bottom: 25px;
}
.section-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 405px;
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.section-text , .info-text {
    font-size: 16px;
    line-height: 1.6;
    color: #7a7a7a;
    /*margin-bottom: 20px;*/
}
.section-text iframe{
    max-width: 100%;
}
.entry-content{

    display: grid;
    gap: 24px;
}

.entry-content .section-text h3 strong,.entry-content .section-text h4 strong,.entry-content .section-text h3{
    font-weight: 500 !important;
    font-size: 20px;
    margin-bottom: 25px;
    display: block;
    font-family: var(--pix-body-font), sans-serif !important;
}

.entry-content .section-text p strong{
    font-size: inherit;
    font-weight: 500 !important;
    font-family: var(--pix-body-font), sans-serif !important;
}

/* Entry Footer */
.entry-footer .pays-meta {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.entry-footer .edit-link {
    margin-top: 10px;
    display: block;
    color: #a047e6;
}

.entry-footer .edit-link:hover {
    text-decoration: underline;
}

/* Country Info Block */
.country-info-block {
    display: flex;
    justify-content: space-between;
    /*padding:0 20px;*/
    border-radius: 16px;
    margin-top: 24px;
}

.info-item {
    text-align: left;
}

.info-icon {
    font-size: 24px;
    color: #a047e6;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -1.5px;
    color: #151515;
    display: block;
    line-height: 30px;
}

.info-label {
    font-size: 15px;
    color: #7A7A7A;
    display: block;
}


/* Assurance Block */
.assurance-block {
    /*margin-bottom: 30px;*/
    padding: 20px;
    border: 1.5px solid transparent; /* Bordure transparente pour laisser passer le dégradé */
    border-radius: 24px;
    background:
        linear-gradient(#fff, #fff) padding-box, /* Fond intérieur */
        linear-gradient(90deg, #7E4BD2, #DD472B) border-box; /* Dégradé pour la bordure */
}



.assurance-content{
    background: white;
}

.assurance-title {
    font-size: 37px;
    line-height: 100%;
    color: #151515;
    font-weight: 700;
    margin-bottom: 15px;
    padding: 10px;
    font-family: 'Luxenta', sans-serif;
}

.assurance-sub-title{
    padding: 15px 10px;
}

.assurance-title span {
    background: linear-gradient(to right, #8e44ad, #d35400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.assurance-article a.with-image-link-acf {
    font-size: 15px !important;
}

.assurance-articles {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.assurance-article {
    flex: 1;
    /*padding: 10px;*/
    text-align: left;
    position: relative;
}

.assurance-article a{
    position: absolute;
    bottom: 15px;
    vertical-align: bottom;
    /* text-decoration: underline !important;
     text-decoration-thickness: 1.5px !important;
     text-underline-offset: 6px;*/
    font-weight: 500;
}
a.assurance-main-button.arrow-right-back-white-hover:hover::after,a.assurance-main-button.arrow-right-back-white-hover::after{
    top: 10px;
}

.assurance-article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 302 / 201;
    object-fit: cover;
    object-position: top;
}
.assurance-article h3 {
    font-size: 20px !important;
    margin-bottom: 10px;
}

.assurance-content {
    font-size: 15px;
    color: #7A7A7A;
    line-height: 18px;
    margin-bottom: 45px;
}

.assurance-main-button{
    width: 98%;
    background: #7900F0;
    color: #fff;
    display: block;
    padding: 22px 16px;
    margin: 0 10px;
    border-radius: 16px;
    text-align: center;
}

/* information Block */

.info-text strong{
    color: #151515;
}

.info-text{
    padding: 15px 0 ;
}

.info-text ul{
    list-style: disc;
}
.info-text p{
    margin-bottom: 15px;
}

/* Country Details Block */
.country-details-block {
    color: #151515;
    /* padding-top: 20px;*/
}

.details-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #151515;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 40px;
}

.details-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.details-icon {
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1.2;
    padding-top: 5px;
}

.details-text {
    display: flex;
    flex-direction: column;
    max-width: 360px;
}

.details-value{
    font-size: 15px;
    line-height: 18px;
    color: #7A7A7A;
    margin-bottom: 3px;
}

.details-label{
    font-weight: 500;
    font-size: 20px;
    color: #151515;
}

.details-link a,.info-text a{
    color: #3C5EE6;
    text-decoration: underline !important;
}

.details-link:hover {
    text-decoration: underline;
}

.testimonial-block{
    margin-top: 50px;
}
div#testimonials.testimonial-block{
    padding: 70px 0;
}

.related-countries.container{
    max-width: 1120px !important;
    padding: 0 0 70px 0 !important;
    margin: 0 auto;
}
.step-next.container{
   /* max-width: 1120px !important;
    padding: 0 15px 60px 15px !important;*/
    margin: 0 auto;
}
.step-next.container .action{
    /*max-width:100%;*/
    margin: 70px 0 0;
}
.related-countries {
    margin: 40px 0;
    padding: 20px;
    max-width:1116px !important;
}

.related-countries h2 {
    margin-bottom: 40px;
    text-align: center;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.country-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.country-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.country-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.1em;
}

/* ===== Grille responsive ===== */
.grid-pays {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1130px) {
	.assurance-article a.with-image-link-acf {
		font-size: 15px !important;
	}
}
/* 2 colonnes sur tablette */
@media (max-width: 1024px) {
    .grid-pays {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .countries-grid.owl-theme{
        display: grid;
		padding: 0 16px;
    }
	div#testimonials-wrapper-2{
	padding: 0 16px;
	}
}
@media (max-width: 991px) {
    .btn.arrow-right-back-purple-hover.btn, .btn.arrow-right-back-white-hover.btn{
        width: 90% !important;
    }
	.step-next.container .btn.arrow-right-back-purple-hover.btn, .step-next.container .btn.arrow-right-back-white-hover.btn{
        width: 100% !important;
    }
	.assurance-main-button.btn{
	justify-content: center;
    display: flex

	}

    .assurance-block .btn.arrow-right-back-purple-hover.btn,.assurance-block .btn.arrow-right-back-white-hover.btn{
        width: auto !important;
    }

    .country-sidebar{
        width: 100%;
        height: auto;
        margin-bottom: 32px;
        border: 1px #D9DCEC solid;
        padding: 26px;
        border-radius: 16px;
        position: inherit;
    }
    .country-sidebar .toc::before{
        display: none;
    }

    .country-main-content {
        padding-left: 0;
        display: block;
    }
    .country-detail-container{
        display: grid;
    }

    .country-info-block{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 26px;
    }

    .h1.entry-title {
        font-size: 41px;
        line-height: 41px;
        font-family: 'Luxenta', sans-serif;
        font-weight: 900;
        color: #151515 !important;
    }
    .header-mobile {
        margin-bottom: 32px;
    }

    .summary.active{
        transition: transform 0.5s ease;
        padding: 0 0 26px;
    }
    
    .summary{
        font-size: 18px;
        font-weight: 500;
        color: #4F4F4F;
        padding: 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: transform 0.5s ease;
    }
}
/* 1 colonne sur mobile */
@media (max-width: 768px) {
    .grid-pays {
        grid-template-columns: 1fr;
    }
	.related-countries h2{
	padding: 0 37px;
	} 
	
}

/* ===== Carte pays ===== */
.pays-card {
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}
.pays-card:hover {
    /*transform: translateY(-5px);*/
}

/* ===== Image ===== */
.pays-image {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}
.pays-image img {
    width: 100%;
    aspect-ratio: 353 / 400;
    border-radius: 16px;
    object-fit: cover;
    max-height: 400px;
    height: 400px;
}

div.related-countries .btn {
    margin-top: 48px;
    margin-left: auto;
    margin-right: auto;
    display: flex !important
        ;
    justify-content: center;
    width: max-content;
}

/* ===== Contenu ===== */
.pays-content {
    padding: 15px;
}

.pays-title {
    margin: 10px 0;
}
.pays-title a {
    text-decoration: none;
    color: #000;
}

.pays-title a:hover {
    color: #A047E6;
}
.pays-meta {
    font-size: 13px;
    color: #7A7A7A;
}


/* Optionnel : sur mobile, une seule colonne */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    .pays-region{
        margin-bottom: 10px;
    }
	.assurance-article a.with-image-link-acf {
		font-size: 15px !important;
	}
}





/* Responsive Design */
@media (max-width: 768px) {
    .country-detail-container {
        flex-direction: column;
    }

    



    .icon-container {
        display: flex;
        align-items: center;
        transition: transform 0.5s ease;
        transform: rotate(180deg);
    }

    .summary.active .icon-container {
        transform: rotate(0deg);
    }
    .toc {

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease, padding 0.3s ease;
    }

    .toc.active {
        max-height: 500px;
    }





    .country-section h2 {
        font-size: 1.5em;
    }
    .header-mobile{
        margin-bottom: 32px;
    }
    .countries-grid {
        margin-left: 16px;
		padding-left: 16px;
    }

    div#testimonials-wrapper-2{
        margin-left: 16px;
		
    }
}

@media (max-width: 768px) {
    .post-thumbnail img {
        aspect-ratio: auto 398 / 280;
        height: 280px;
    }
    .assurance-articles{
        display: block;
    }
    .assurance-title{
        font-size: 26px;
    }
    .assurance-article a{
        position: relative;
    }
    .assurance-content{
        margin-bottom: 35px;
    }
    .assurance-article-image {
        aspect-ratio: auto 350 / 170;
        margin-bottom: 20px;
        max-height: 170px;
        object-fit: cover;
    }
    .assurance-article{
        padding: 11px 8px;
    }
    .assurance-main-button.btn{
        width: auto;
        display: block;
    }
	.pays-image img {
		aspect-ratio: 303 / 343;
		max-height: 260px;
		max-width: 303px;
	}
    .pays-card{
        width: 303px;
        margin-right: 3px;
    }
    .pays-title a {
        font-size: 18px;
        line-height: 1.5;
    }
    pays-meta {
        font-size: 15px;
    }
    .pays-content {
        padding: 8px 0;
    }
    div.related-countries  .btn,div#testimonials .btn.btn-primary {
        width: 90%;
        margin-right: auto;
    }
    .step-next.container .action{
        margin: 0 auto;
    }
    .country-section h2, .info-section h2, .country-details-block h2{
        font-size: 26px;
    }
    .details-label{
        font-size: 18px;
    }

    .info-value{
        font-size: 20px;
    }
    #primary {
        padding-top: 100px;
        background: #fff;
    }

    .pays-meta{
        font-size: 15px;
        padding-top:20px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
	.countries-grid{
	padding-left:16px;
	}

}