/* @override 
	https://psynovia.gorelkine.com/wp-content/themes/psynovia/assets/css/psynovia-formations.css?* */		/**
 * PSYNOVIA - Formations
 * Grille catalogue + Page individuelle
 */

/* ===========================
   GRILLE CATALOGUE - INTRO
   =========================== */

.psynovia-formations-wrapper .psynovia-articles-grid {
	margin-top: 70px;
	margin-bottom: 70px;
}

.psynovia-formations-wrapper .psynovia-filters-bar-wrapper {
	margin-top: 0;
}

.psynovia-formations-wrapper select {
	border: none!important;
}

.psynovia-filters-bar-wrapper .thematiques {
	background: #FECE7A!important;
	background-image: url('../../images/icone-fleche-filtre.svg')!important;
	background-repeat: no-repeat!important;
	background-position: right 12px center!important;
	min-width: 230px!important;
}

.psynovia-filters-bar-wrapper .formats {
	background: #8AB5E1!important;
	background-image: url('../../images/icone-fleche-filtre.svg')!important;
	background-repeat: no-repeat!important;
	background-position: right 12px center!important;
	min-width: 170px!important;
}

.psynovia-filters-bar-wrapper .public {
	background: #87CBC2!important;
	background-image: url('../../images/icone-fleche-filtre.svg')!important;
	background-repeat: no-repeat!important;
	background-position: right 12px center!important;
	min-width: 210px!important;
}

/* ===========================
   GRILLE CATALOGUE - CARTES
   =========================== */

/* Header carte formation : pas de date, juste FORMATION */

.psynovia-formation-card .article-card-header {
	background-color: #F07864!important;
}

.psynovia-formations-wrapper .article-title {
	color: #F07864;
}

.psynovia-formations-wrapper .psynovia-article-card:hover .article-title{
	color: #453B5E;
}/* Lien couvrant toute la carte (formations) */.psynovia-card-link {	position: absolute;	top: 0;	left: 0;	right: 0;	bottom: 0;	z-index: 2;}
/* Les éléments cliquables passent au-dessus du lien couvrant */.psynovia-formation-card .article-title a, .psynovia-formation-card .psynovia-btn {	position: relative;	z-index: 3;}

.psynovia-formation-card .article-card-header-content {
	justify-content: flex-start;
}

.psynovia-formation-card .article-category-label {
	border: none;
	padding: 0;
	margin: 0;
}

/* Tags formations sous l'excerpt */

.formation-tags-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;	padding-top: 20px;	border-top: 1px solid #433B5E!important;
}

/* Intro formations */

.formations-intro {
	margin-bottom: 30px;
}

.formations-intro p {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.formations-section-title {
	font-size: 32px;
	font-weight: 700;
	color: #F07864;
	margin-bottom: 20px;
}

.formations-intro-text {
	margin-bottom: 40px;
	padding: 20px;
	background: #f5f5f5;
	border-radius: 8px;
}

.formations-intro-text p {
	font-size: 15px;
	line-height: 1.6;
	color: #666;
	margin: 0;
}

/* Header carte formation : pas de date, juste FORMATION */

.psynovia-formation-card .article-card-header-content {
	justify-content: flex-start;
}

.psynovia-formation-card .article-category-label {
	border: none;
	padding: 0;
	margin: 0;
}

/* Tags formations sous l'excerpt */

.formation-tag {
	display: inline-block;
	padding: 15px 20px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 700;
	color: #433B5E;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.2;
}

/* Ajustement bouton pour laisser place aux tags */

.psynovia-formation-card .article-button-wrapper {
	margin-top: auto;
}

/* Ajustement bouton pour laisser place aux tags */

.psynovia-formation-card .article-button-wrapper {
	margin-top: auto;
	display: none;
}

/* ===========================
   PAGE INDIVIDUELLE
   =========================== */

.formation-single-wrapper {
	max-width: 1640px;
	margin: 0 auto;
	padding: 0px;
	padding-left: 50px;
}

.formation-container {
	display: flex;
	gap: 40px;
}

/* ===========================
   COLONNE GAUCHE
   =========================== */

.formation-content {
	margin-top: 50px;
	margin-bottom: 80px;
	width: 70%;
	padding-left: 100px;
}

/* En-tête */

.formation-header {
	margin-bottom: 40px;
}

.formation-title {
	font-size: 50px;
	font-weight: 500;
	color: #F07864;
	line-height: 1.2;
	margin-bottom: 40px;
}

.formation-handicap {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	padding-left: ;
	margin-left: -100px;
}

.formation-handicap img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

.formation-handicap span {
	font-size: 20px;
	color: #302D4D;
	font-weight: 300;
	line-height: 1.3;
	padding: 15px 0;
	border-top: 1px solid #433B5E;
	border-bottom: 1px solid #433B5E;
}

.formation-description {
	color: #302d4d;
	margin-bottom: 50px;
}

.formation-description p {
	font-size: 30px;
	line-height: 1.6;
	font-weight: 500!important;
}

.formation-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

/* ===========================
   ACCORDÉONS
   =========================== */

.formation-accordions {
	margin-top: 40px;
	border-top: 1px solid #453B5E;
}

.formation-accordion {
	border-bottom: 1px solid #453B5E;
	margin-bottom: 0;
}

.accordion-header {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 30px 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.accordion-header:hover {
	opacity: 0.8;
}

.accordion-icon {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	position: absolute;
	margin-left: -100px;
}

.accordion-header h2 {
	flex: 1;
	font-weight: 500;
	color: #F07864;
	margin: 0;
}

.accordion-chevron {
	width: 50px;
	height: 26px;
	transition: transform 0.3s ease;
}

.formation-accordion.active .accordion-chevron {
	transform: rotate(180deg);
}

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding-right: 5%;
	transition: all 0.3s ease-in-out 0s;
}

.accordion-content h3 {
	font-weight: 300;
	color: #302D4D;
	margin-bottom: 10px;
}

.formation-accordion.active .accordion-content {
	max-height: 5000px;
	padding-bottom: 20px;
	/* Était `padding-top: 3%` : un pourcentage se calcule sur la largeur du
	   conteneur, l'espace grossissait donc avec l'écran (≈30 px à 984 px de
	   large, ≈36 px à 1200). Valeur fixe pour un espacement constant. */
	padding-top: 12px;
	transition: all 0.3s ease-in-out 0s;
}

.accordion-content p, .accordion-content ul, .accordion-content ol {
	color: #302d4d;
	line-height: 1.3;
}.accordion-content strong {	font-weight: 700;}

.accordion-content ul, .accordion-content ol {
	margin-left: 0;
}

.accordion-content li {
	margin-bottom: 8px;
	font-weight: 300;
	padding-left: 1em;
}

.accordion-content li:before {
	content: '•';
	position: relative;
	margin-left: -1em;
	margin-right: 0.5em;
}
/* ===========================
   SESSIONS À VENIR
   =========================== */

.sessions-texte {
    margin-top: 0;
}

/* L'espace sous le titre d'accordéon est porté par le seul `padding-top` du
   contenu : on neutralise la marge haute du premier élément, qu'il s'agisse de
   la liste des sessions, d'un bloc WYSIWYG ou d'un paragraphe. */
.accordion-content > :first-child,
.accordion-content > :first-child > :first-child {
	margin-top: 0;
}

/* ===========================
   BOUTON PLAQUETTE
   =========================== */

.formation-plaquette-btn {
	margin-top: 40px;
	text-align: center;
}

.btn-plaquette {
	display: inline-block;
	padding: 18px 40px;
	background: #F07864;
	color: #ffffff;
	text-decoration: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.btn-plaquette:hover {
	color: #fff;	background: #453B5E;
}

/* ===========================
   COLONNE DROITE (STICKY)
   =========================== */

.formation-sidebar {
	/* align-self: stretch pour que le fond jaune couvre toute la hauteur du container */
	align-self: stretch;
	z-index: 10;
	background: #FECE7A;
	padding: 3%;
	overflow: visible;
	width: 30%;	
}

.formation-sidebar-content {
	/* Le contenu reste sticky à l'intérieur de la sidebar pleine hauteur */
}

.sidebar-title {
	font-size: 25px;
	font-weight: 700;
	color: #453B5E;
	line-height: 1.3;
	margin-bottom: 20px;
	text-align: center;
	font-weight: 500;
}

.sidebar-stats {
	margin-bottom: 20px;
	text-align: center;
}

.stat-label {
	font-size: 15px;
	font-weight: 700;
	color: #453B5E;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 10px;
	line-height: 1.2;
	padding-bottom: 5px;
	border-bottom: 1px solid #453B5E;
}

.stat-stars {
	font-size: 24px;
	margin-bottom: 4px;
}

.stat-stars .star {
	margin: 0 1px;
	display: inline-block;
	/* Le caractère ★ (U+2605) est absent de la pile héritée du thème parent
	   (base.min.css impose HelveticaNeue/Helvetica/Arial sur body), et le repli
	   automatique du navigateur échoue selon la machine : glyphe manquant ou
	   rien du tout. On nomme donc explicitement des polices qui contiennent ce
	   caractère, sur les trois systèmes, en évitant les polices emoji qui le
	   rendraient en couleur. */
	font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2",
	             "DejaVu Sans", "Arial Unicode MS", sans-serif;
	/* Ces polices dessinent une étoile plus étroite qu'Helvetica : à 24px elle
	   ne faisait plus que 16px de large contre 26px avant. On règle la taille
	   sur l'étoile elle-même, et non sur .stat-stars, pour ne pas déplacer le
	   « (n avis) » qui a sa propre taille. */
	font-size: 36px;
	line-height: 1;
	vertical-align: middle;
}

/* Étoile pleine — bleu foncé.
   Le même contour que les étoiles vides et la demi-étoile : `-webkit-text-stroke`
   se dessine vers l'extérieur du glyphe, donc sans lui les pleines paraissaient
   plus petites que les autres. */
.stat-stars .star-filled {
	color: #453B5E;
	-webkit-text-stroke: 1.5px #453B5E;
}

/* Étoile vide — transparente (fond jaune visible) */
.stat-stars .star-empty {
	color: transparent;
	-webkit-text-stroke: 1.5px #453B5E;
}

/* Demi-étoile : dégradé gauche=plein / droite=vide sur un seul caractère */
.stat-stars .star-half {
	display: inline-block;
	margin: 0 1px;
	background: linear-gradient(to right, #453B5E 50%, transparent 50%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px #453B5E;
}

.stat-count {
	vertical-align: middle;
	font-size: 13px;
	color: #443a5e;
	margin-left: 4px;
	font-weight: 400;
}

.stat-percent-small {
	font-size: 15px;
	color: #433B5E;
	margin-top: 2px;	line-height: 1;	display: none;
}

.stat-percent {
	font-size: 48px;
	font-weight: 700;
	color: #453B5E;
	line-height: 1;
}

.stat-subtext {
	font-size: 14px;
	color: #453B5E;
}

.btn-inscription {
	display: block;
	width: 100%;
	background: #F07864;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 20px;
	transition: all 0.3s ease;
	line-height: 1.2;
	border-radius: 100px;
	display: flex!important;
	flex-direction: column;
	justify-content: center;	box-shadow: 0px 3px 6px #00000029;	padding: 30px 0;}

.btn-inscription:hover {
	background: #453B5E;
	color: #ffffff;
}

.link-google-form {
	display: block;
	text-align: center;
	color: #6071B5;
	font-size: 13px;
	font-weight: 600;
	margin-top: 15px;
	text-decoration: underline;
}

.link-google-form:hover {
	color: #453B5E;
}

.sidebar-responsable {
	margin-top: 30px;
	padding-top: 20px;
	text-align: center;
}

.responsable-label {
	font-size: 11px;
	font-weight: 700;
	color: #453B5E;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 15px;
}

.responsable-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 15px;
}

.responsable-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.responsable-nom {
	font-size: 20px;
	font-weight: 500;
	color: #453B5E;
	margin-bottom: 5px;
	line-height: 1;
}

.responsable-titre {
	font-size: 20px;
	color: #453B5E;
	line-height: 1.3;
	font-weight: 300;
}

.btn-contact {
	display: block;
	width: 100%;
	background: #423b5e;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 20px;
	transition: all 0.3s ease;
	line-height: 1.2;
	border-radius: 100px;
	display: flex!important;
	flex-direction: column;
	justify-content: center;
	padding: 30px 0;	box-shadow: 0px 3px 6px #00000029;
}

.btn-contact:hover {
	background: #fff;
	color: #423b5e;	box-shadow: none;
}

/* ===========================
   BANDEAU MOBILE
   =========================== */

.formation-mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #453B5E;
	padding: 15px 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
}

.btn-mobile-inscription {
	display: block;
	width: 100%;
	padding: 15px 20px;
	background: #F07864;
	color: #ffffff;
	text-align: center;
	text-decoration: none;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
}

.btn-mobile-inscription:hover {
	background: #fff;
	color: #F07864;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1200px) {		.accordion-header h2, .formation-title {
		font-size: 40px;
	}		.formation-description p {
		font-size: 25px;
	}	.formation-handicap span {
		font-size: 15px;
	}}	
@media (max-width: 967px) {
	.formation-container {
		display: flex;
		flex-direction: column-reverse;
	}
	
	.formation-content {
		margin-top: 0px;
		margin-bottom: 0;
		width: 100%;
		padding-left: 70px;
	}
	
	.accordion-icon {
		margin-left: -70px;
		width: 50px;
		height: 50px;
	}
	
	.formation-handicap img {
		width: 60px;
		height: 60px;
	}
	
	.formation-handicap {
		margin-left: -70px;
	}
	
	.formation-sidebar {
		position: static;
		order: -1;
		width: 100%;
	}
	
	.formation-sidebar-content {
		display: block;
		min-height: auto;
	}
	
	.formation-single-wrapper {
		max-width: 1640px;
		margin: 0 auto;
		padding: 50px 30px;
	}
	
	.formation-mobile-bar {
		display: block;
	}
}

@media (max-width: 768px) {
	/* Grille catalogue */
	
	.formations-section-title {
		font-size: 24px;
	}
	
	.formation-tags-wrapper {
		gap: 10px;
	}
    

    /* Page individuelle */
	
	.formation-single-wrapper {
		padding: 20px 30px 80px;
	}
	
	.accordion-header h2, .formation-title {
		font-size: 30px;
	}
	
	.formation-title {
		margin-bottom: 25px;
	}
	
	.formation-description p {
		font-size: 20px;
	}
	
	.formation-handicap span {
		font-size: 15px;
	}
	
	.formation-sidebar {
		padding: 30px;
	}
	
	.accordion-chevron {
		width: 40px;
	}
}

@media (max-width: 480px) {	.btn-inscription, .btn-contact {		padding: 20px 0;		}
	.formation-handicap span {
		border-top: 0;
		padding-top: 0;
	}
	
	.accordion-header h2, .formation-title {
		font-size: 26px;
	}
	
	.formation-content {
		padding-left: 0px;
	}
	
	.formation-handicap {
		border-top: 1px solid #433B5E;
		flex-direction: column;
		align-items: center;
		text-align: center;
		margin: 0;
		padding-top: 15px;
		margin-bottom: 30px;
	}
	
	.accordion-header h2 {
		padding-left: 50px;
	}
	
	.accordion-icon {
		width: 40px;
		height: 40px;
		margin: 0;
	}
}

/* =====================================================
   SIDEBAR — sélecteur complet pour priorité (override Enfold)
   ===================================================== */

/* Fond jaune pleine hauteur : la sidebar s'étire sur toute la hauteur du container */
div#main.all_colors div.formation-single-wrapper div.formation-container div.formation-sidebar {
	position: static;
	align-self: stretch;
}

/* Le contenu colle en haut au scroll */
div#main.all_colors div.formation-single-wrapper div.formation-container div.formation-sidebar div.formation-sidebar-content {
	position: sticky;
	top: 20px;
}

/* Annuler sticky sur mobile (sidebar en colonne) */
@media (max-width: 967px) {
	div#main.all_colors div.formation-single-wrapper div.formation-container div.formation-sidebar {
		align-self: auto;
	}
	div#main.all_colors div.formation-single-wrapper div.formation-container div.formation-sidebar div.formation-sidebar-content {
		position: static;
		top: auto;
	}
}

/* Effectif d'une session : sur sa propre ligne, à l'intérieur de la puce de la
   session à laquelle il se rapporte, et non dans une puce séparée qui se lirait
   comme un effectif indépendant dès qu'il y a plusieurs sessions.
   Même corps et même couleur que la ligne au-dessus : l'atténuation posée au
   départ le sortait visuellement de la liste. */
.formation-effectifs {
	display: block;
	margin-top: 2px;
}

/* Logo Qualiopi dans la colonne de droite d'une fiche formation.
   Affiché seulement si la formation est cochée comme certifiée. */
.sidebar-qualiopi {
	margin: 24px 0;
	padding-top: 24px;
	border-top: 1px solid rgba(69, 59, 94, .18);
	text-align: center;
}

.sidebar-qualiopi img {
	width: 100%;
	max-width: 180px;
	height: auto;
}

/* Logo Qualiopi sur la vignette du catalogue, à droite du libellé FORMATION.
   Le bandeau est orange et le logo a un fond blanc : on lui donne une pastille
   pour que ce fond se lise comme un choix et non comme un défaut de détourage. */
.psynovia-formation-card .article-card-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	/* Sans largeur explicite, le conteneur passé en flex se réduit à zéro et
	   le max-width:100% de l'image se calcule alors sur rien : le logo était
	   écrasé à 18 px de large pour 36 de haut. */
	width: 100%;
}

/* Le bandeau mesure 60 px, dont 30 de contenu : à cette hauteur le logo était
   illisible. On le monte à 40 px et on donne la même hauteur minimale à tous
   les bandeaux, certifiés ou non, pour que les titres restent alignés dans la
   grille. */
.psynovia-formation-card .article-card-header {
	min-height: 70px;
}

.article-card-qualiopi {
	flex: 0 0 auto;
	width: auto;
	height: 40px;
	background: #fff;
	border-radius: 100px;
	padding: 2px 12px;
	box-sizing: content-box;
	max-width: none;   /* la règle générale des images du thème le rognerait */
}

@media (max-width: 480px) {
	.psynovia-formation-card .article-card-header {
		min-height: 62px;
	}
	.article-card-qualiopi {
		height: 32px;
		padding: 2px 9px;
	}
}
