/* CSS Document */
.ct-posts-shortcode .entry-button{
	font-weight: 600;
}
.region-switcher{
	margin: 0 40px 0 0;
}
.region-switcher a{
	display: flex;
	gap: 12px;
	color: var(--theme-palette-color-3);
	font-weight: 600;
	font-size: 18px;
	transition: 0.2s all ease;
}
.region-switcher a span{
	display: flex;
	flex-direction: column;
	
}
.region-switcher .icon-mobile {
	display: none;
}
.region-switcher a strong{
    font-size: 15px;
    display: block;
    line-height: 0.6rem;
    padding-top: 2px;
	text-align:right;
}
.region-switcher a i{
	font-size: 32px;
}
.region-switcher a:hover{
	color: var(--theme-palette-color-1);
}


.swiper-slide {
    width: 340px !important; 
}

.actualites-section .swiper,
.agenda-section .swiper {
  max-width: 90vw;
}

.actualites-section .swiper-slide,
.agenda-section .swiper-slide {
  width: 80%;
}

@media screen and (min-width: 768px) {
  .actualites-section .swiper-slide,
  .agenda-section .swiper-slide {
    width: 60%;
  }
	
	
}

@media screen and (min-width: 1000px) {
  .actualites-section .swiper-slide,
  .agenda-section .swiper-slide {
    width: 20%;
  }
}

.swiper{
	overflow: visible !important;
}

.swiper-button-prev,
.swiper-button-next{
	top: -80px !important;
}
.swiper-button-next:after, .swiper-button-prev:after{
	font-size: 18px !important;
	color: var(--theme-palette-color-8);
}
.swiper-button-prev, .swiper-button-next {
    background-size: contain; /* Ajuster la taille de l'image au conteneur */
    background-repeat: no-repeat;
    background-position: center;
    width: 50px !important; /* Ajuster la largeur du bouton */
    height: 50px !important; /* Ajuster la hauteur du bouton */
	border-radius: 50%;
	background-color: var(--theme-palette-color-3);
}
.swiper-card{
	background: var(--theme-palette-color-8);
	border-radius:12px;
	padding: 1rem;
}
.swiper-card h3{
	line-height: 1.2rem;
}
.swiper-card h3 a{
	font-size: 20px;
	font-weight: 600;
	color: var(--theme-palette-color-4) !important;
}
.swiper-card .date{
	padding: 8px 0;
	color: var(--theme-palette-color-5) !important;
	margin: 0;	
	font-size: 0.9rem;
	font-weight: 600;
}

.swiper-card a.entry-button{
	font-weight: 600 !important;
	color: var(--theme-palette-color-4) !important;	
}

.swiper-card a:hover{
	color: var(--theme-palette-color-1) !important;
	
}

.swiper-card .image-container{
	height: 200px;
	position: relative;	
	overflow: hidden;
    border-radius: 12px;
}
.swiper-card .image-container img{
	min-height: 200px;
	position: absolute;	
	min-width: 100%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
}
/* grids */

.grid-results{
	display: flex;
	justify-content: start;
	font-weight: 600;
}

.grid-actus .entry-card.entry-meta{
	margin-bottom: 0 !important;
}
.grid-ressources{
    max-width: 800px;
	margin: 0 auto;
}

.grid-publications .entry-card {
	border: 4px solid var(--theme-palette-color-11) !important;
}

.grid-publications .ressource-phare {
	border: 4px solid var(--theme-palette-color-1) !important;
}


.grid-projets,
.grid-appels{
    max-width: 1024px;
	margin: 0 auto;
}
.grid-projets .entry-card,
.grid-appels .entry-card{
	gap: 60px !important;
	
}
.grid-projets .entry-card .card-content,
.grid-appels .entry-card .card-content{
	position: relative;
	padding-right: 200px;
}
.grid-projets .entry-card .card-content::after,
.grid-appels .entry-card .card-content::after{
	position: absolute;
	content: "";
	height: 80%;
	right: 180px;
	top: 50%;
	width: 1px;
    transform: translateY(-50%);
	border-left: 2px solid var(--theme-palette-color-11);
}

.grid-projets .entry-card .entry-button,
.grid-appels .entry-card .entry-button{
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
}
.grid-projets .entry-card .ct-entry-content-block{
	display: none;
}
.grid-projets .entry-card.projet-phare{
	border-color: var(--theme-palette-color-1) !important;
}
.grid-projets .entry-card.projet-phare .ct-entry-content-block{
	display: block;
}
.grid-projets .entry-card.projet-phare{
	/*background: var(--theme-palette-color-1);*/
}
.grid-projets .entry-card .ct-media-container,
.grid-appels .entry-card .ct-media-container{
	border-radius: 50%;
	margin-right: 60px;
}
.grid-projets .entry-card [data-type="pill"] a,
.grid-appels .entry-card [data-type="pill"] a{
	padding: 4px 12px !important;
	border-radius: 24px !important;
}
.grid-reseaux .ct-media-container,
.grid-partenaires .ct-media-container{
	margin: 0 !important;
}

.grid-partenaires .ct-media-container,
.grid-reseaux .ct-media-container{
	height: -webkit-fill-available;
}

.grid-partenaires .ct-media-container img,
.grid-reseaux .ct-media-container img{
	object-fit: contain;
    max-width: 50%;
    margin: -10px auto 0 !important;
}
#list-projets .grid-results{
    max-width: 1024px;
    margin: 0 auto 1rem;
}
#list-projets p,
#list-appels p,
#list-membres p,
#list-partenaires p,
#list-reseaux p,
#list-publications p{
	text-align: center;
	margin-bottom: 60px;
}
.entry-meta [data-type=pill] a{
	border-radius: 24px !important;
	padding: 4px 14px !important;
}
.grid-appels .entry-card {
    gap: 30px !important;
}
#list-appels .ct-dynamic-data-layer{
	
}
#list-appels .ct-dynamic-data-layer p,
#list-appels .ct-dynamic-data-layer p span{
	text-align: left;
	margin-bottom: 0;
	font-family: 'Open Sans', Sans-Serif !important;
	font-size: 0.9rem !important;
	font-weight: 400 !important;
}
#list-appels .ct-dynamic-data-layer ul{
	margin-bottom: 0 !important;
}
#list-appels .ct-media-container{
	margin-top: 0px;
	margin-right: 0px !important;
    align-self: start !important;
	
}


@media screen and (max-width: 768px) {
	
	.appel .ct-media-container {
    width: 160px;
    height: 160px;
  }
	
	.grid-appels .entry-card {
	gap: 32px !important;
	}
	
	.grid-appels .entry-card .card-content {
    padding-right: 0px;
  }
	
	.grid-appels .entry-card .entry-title {
	padding-bottom: 8px;
	}
	
	.grid-appels .entry-card .entry-button {
	margin-top: 16px !important;
	position: relative;
    right: 0px;
    top: 0%;
    transform: none;
	}
	
	.grid-appels .entry-card .card-content::after {
		display: none !important;
	}
	.region-switcher{
		margin: 0;
	}
	
	.region-switcher i{
		display: none
	}
	
	.region-switcher a{
		font-size: 14px;
	}
	.region-switcher a span{
		flex-direction: row;
	}
	
	.region-switcher a strong{
		display: none !important;
	}
	
	.region-switcher .icon-mobile {
		display: flex;
		font-size: 0.8rem;
	}
	.region-switcher .icon {
		display: none;
	}
	
	.region-switcher a{
		display: flex;
		align-items: center
	}
}

.projet-membres h4,
.reseau-membres h4{
	display: flex;
	align-items: center;
	gap: 8px;
}
.grid-publications{
	max-width: 800px;
	margin: 0 auto;
}
.grid-publications.align-left{
	margin: 0;
}
.grid-publications.bg-grey article{
	background: var(--theme-palette-color-9);
}

.entry-card.type-evenement .ct-entry-content-block{
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--theme-palette-color-1)
}

/* === Filtres AGENDA — style inspiré de WPForms === */

.event-filters {
	margin-top: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	margin-bottom: 3rem;
}

.event-filter {
	position: relative;
	min-width: 280px;
}

.event-filter__select {
	max-width: 280px;
	width: 100%;
	padding: 0px 48px;
	border-radius: 8px;
	border: 1px solid #eae8e8;
	background-color: #fff;
	background-size: 18px 18px;
	background-position: 15px 50%;
	background-repeat: no-repeat;
	font-size: 15px;
	line-height: 1.4;
	min-height: 52px;
	color: #c1c1c1;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.event-filter__select.has-value {
	color: #2b2b2b; /* texte foncé */
}

/* Placeholder grisé (première option vide) */
.event-filter__select option[value=""] {
	color: #aaa;
}

/* Icônes spécifiques (mêmes que WPForms) */
.event-filter--region .event-filter__select {
	background-image: url(../icons/icon-region.png);
}
.event-filter--pays .event-filter__select {
	background-image: url(../icons/icon-flag.png);
}
.event-filter--type .event-filter__select {
	background-image: url(../icons/icon-type.png);
}

/* Effet focus */
.event-filter__select:focus {
	outline: none;
	border-color: var(--theme-palette-color-1);
	box-shadow: 0 0 0 2px var(--theme-palette-color-1-transparent, rgba(0,0,0,0.1));
	background-color: #fff;
	border-radius: 8px 8px 0px 0px;
}

/* === Toggle === */
/* Toggle container */
.fr-toggle{
  display:flex;
  align-items:center;
  gap:12px;               /* space between switch and text */
  min-width:280px;        /* matches your selects width */
}

/* Hide native checkbox */
.fr-toggle__input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Visual switch track */
.fr-switch{
  position:relative;
  width:48px;
  height:24px;
  border-radius:12px;
  background:#e4e4e4;
  flex:0 0 48px;
  transition:background-color .2s ease;
}

/* Knob */
.fr-switch::after{
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  transition:transform .2s ease;
}

/* Checked state */
.fr-toggle__input:checked + .fr-switch{
  background:var(--theme-palette-color-1);
}
.fr-toggle__input:checked + .fr-switch::after{
  transform:translateX(24px);
}

/* Text */
.fr-toggle__text{
  line-height:1.2;
  color:var(--theme-palette-color-5);
  font-size:15px;
  /* choose one of the two depending on your layout: */
  white-space:wrap;     /* keep on one line */
  /* white-space:normal;  allow wrap if space is tight */
}

/* === Apparence du menu déroulant (liste des options) === */
.event-filter__select option {
	background-color: #fff;
	color: #2b2b2b;
	padding: 10px 16px;
}

/* Survol dans le menu déroulant (certains navigateurs le prennent) */
.event-filter__select option:hover,
.event-filter__select option:focus {
	background-color: var(--theme-palette-color-5);
}

/* Option sélectionnée (pour Chrome, Firefox, Edge) */
.event-filter__select option:checked {
	background-color: var(--theme-palette-color-1);
	color: #fff;
}

/* --- Pour améliorer le rendu visuel des <select> natifs --- */
.event-filter__select::-ms-expand {
	display: none; /* masque la flèche IE/Edge */
}

/* --- Scrollbar douce dans les menus longs --- */
select::-webkit-scrollbar {
	width: 6px;
}
select::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 10px;
}
select::-webkit-scrollbar-thumb:hover {
	background-color: var(--theme-palette-color-1);
}



.relations-actualite {
    margin: 30px auto;
    padding: 20px;
	max-width: 1024px;
}

.relations-actualite h3 {
    margin-bottom: 15px;
}

.relations-actualite h4 {
    margin-top: 10px;
}

.btn-relation {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: var(--theme-palette-color-10);
    color: var(--theme-palette-color-5);
    text-decoration: none;
    border-radius: 24px;
	font-size: 0.9rem;
}

.btn-relation:hover {
    background: var(--theme-palette-color-9);
    color: var(--theme-palette-color-5);
}

.posts-related-title{
	padding: 3rem 0 2rem;
}
.single-post .grid-ressources{
	padding-bottom: 2rem;
}
.single-post .grid-ressources .entry-meta{
	margin-left: 0;
}
/*
.page-id-5317 .ct-posts-shortcode .entries{
	display: flex;
	gap: 30px;
}*/
.ct-posts-shortcode .entry-card.type-ressource.category-communiques-de-presse .ct-media-container{
	max-width: 20% !important;
}
