/* YUMANconnect – Charte : portail (Fluent Community).
   Polices, logo et finitions. Les couleurs de base viennent des réglages
   de couleurs de Fluent, alignés sur la palette YUMAN. */

/* Polices */
body:has(.fhr_logo),
body:has(.fhr_logo) input,
body:has(.fhr_logo) textarea,
body:has(.fhr_logo) button,
body:has(.fhr_logo) .el-button,
body:has(.fhr_logo) .el-input__inner,
.el-popper,
.el-dialog,
.el-message-box {
	font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}

body:has(.fhr_logo) .fcom_page_title,
body:has(.fhr_logo) .fhr_content_layout_header h1,
body:has(.fhr_logo) .fcom_welcome_title,
body:has(.fhr_logo) .feed_title_heading,
body:has(.fhr_logo) .feed_title_heading a,
.el-dialog .feed_title_heading {
	font-family: 'Newsreader', Georgia, serif !important;
	font-weight: 400 !important;
	letter-spacing: 0;
	color: #2b2a28;
}

body:has(.fhr_logo) .fcom_page_title,
body:has(.fhr_logo) .fhr_content_layout_header h1 {
	font-size: 28px !important;
	line-height: 1.15;
}

body:has(.fhr_logo) .fcom_welcome_title {
	font-size: 32px !important;
	line-height: 1.15;
}

body:has(.fhr_logo) .feed_title_heading,
body:has(.fhr_logo) .feed_title_heading a {
	font-size: 26px !important;
	line-height: 1.2;
}

/* Logo YUMANconnect */
body:has(.fhr_logo) .fhr_logo img {
	content: url(images/logo-yumanconnect.png);
	width: auto !important;
	height: 24px !important;
	max-height: 24px !important;
}

/* Colonne de gauche : titres de groupes discrets, élément actif marqué */
body:has(.fhr_logo) .space_section_title,
body:has(.fhr_logo) .space_section_title span {
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.12em;
	color: #5a554e !important;
}

body:has(.fhr_logo) .fcom_sidebar_contents a.router-link-active,
body:has(.fhr_logo) .fcom_sidebar_contents .fcom_active {
	box-shadow: inset 3px 0 0 #aa5534;
	font-weight: 600;
}

/* Boutons */
body:has(.fhr_logo) .el-button,
body:has(.fhr_logo) .fcom_primary_button {
	border-radius: 999px !important;
	font-weight: 600;
}

body:has(.fhr_logo) .fcom_primary_button,
body:has(.fhr_logo) .el-button--primary {
	background: #aa5534 !important;
	border-color: #aa5534 !important;
	color: #ffffff !important;
}

body:has(.fhr_logo) .fcom_primary_button:hover,
body:has(.fhr_logo) .el-button--primary:hover {
	background: #8e4428 !important;
	border-color: #8e4428 !important;
}

/* Cartes : coins plus doux, bordure sable */
body:has(.fhr_logo) .feed_list_item,
body:has(.fhr_logo) .fcom_welcome_box,
body:has(.fhr_logo) .fcom_side_box .app_side_widget,
body:has(.fhr_logo) .fcom_course_card,
body:has(.fhr_logo) .fcom_feed_box > .fcom_welcome_box {
	border-radius: 14px !important;
	border-color: #e6ddd1 !important;
	box-shadow: none !important;
}

body:has(.fhr_logo) .widget_header h3 {
	font-size: 15px;
	font-weight: 600;
}

/* Étiquettes de sujet (#Citation…) */
body:has(.fhr_logo) .fcom_topic_tag,
body:has(.fhr_logo) .feed_topics a {
	border-radius: 999px;
	border-color: #e6ddd1;
	color: #5a554e;
}

/* Mobile : logo YUMANconnect, un peu plus petit */
@media (max-width: 767px) {
	body:has(.fhr_logo) .fhr_logo img {
		content: url(images/logo-yumanconnect.png);
		height: 20px !important;
		max-height: 20px !important;
	}
}

/* Badge « Admin » en terracotta */
body:has(.fhr_logo) .user_badge_inner {
	color: #aa5534 !important;
	border-color: #aa5534 !important;
}

/* Membres sans photo : avatar sable au lieu du rond jaune */
img[src$="fluent-community/assets/images/placeholder.png"] {
	content: url(images/avatar-yuman.png);
}

/* Page « Faire le point » : cartes des activités */
.yc-fp{
	max-width:1080px;
	margin:0 auto;
	padding:40px 24px 48px;
	font-family:'Instrument Sans',system-ui,sans-serif;
	color:#2b2a28
}

.yc-fp-intro{
	max-width:62ch;
	color:#5a554e;
	font-size:17px;
	line-height:1.6;
	margin:0 0 28px
}

.yc-fp-grille{
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
	gap:20px
}

.yc-fp-carte{
	display:flex;
	flex-direction:column;
	background:#fff;
	border:1px solid #e6ddd1;
	border-radius:14px;
	overflow:hidden;
	text-decoration:none!important;
	color:inherit!important;
	transition:border-color .15s,transform .15s
}

.yc-fp-carte:hover{
	border-color:#aa5534;
	transform:translateY(-2px)
}

.yc-fp-carte img{
	display:block;
	width:100%;
	aspect-ratio:1200/630;
	object-fit:cover;
	background:#ece5da;
	margin:0
}

.yc-fp-corps{
	display:flex;
	flex-direction:column;
	gap:8px;
	padding:18px 20px 20px;
	flex:1
}

.yc-fp-corps h3{
	margin:0;
	font-family:'Newsreader',Georgia,serif;
	font-weight:400;
	font-size:24px;
	line-height:1.2;
	color:#2b2a28
}

.yc-fp-corps p{
	margin:0;
	font-size:15px;
	line-height:1.55;
	color:#5a554e;
	flex:1
}

.yc-fp-corps span{
	margin-top:6px;
	font-weight:600;
	font-size:15px;
	color:#aa5534
}

@media (prefers-reduced-motion:reduce){
	.yc-fp-carte{
	transition:none
}

}


/* En-tête de page, comme la page Suivi bénéficiaires.
   Sélecteurs renforcés : le cadre du portail impose ses propres titres. */
body .yc-fp .yc-fp-label{
	display:block !important;
	margin:0 0 8px !important;
	font-family:'Instrument Sans',system-ui,sans-serif !important;
	font-size:13px !important;
	font-weight:600 !important;
	line-height:1.4 !important;
	letter-spacing:.14em !important;
	text-transform:uppercase !important;
	color:#56704a !important;
}

body .yc-fp h2.yc-fp-titre{
	margin:0 0 14px !important;
	padding:0 !important;
	border:0 !important;
	font-family:'Newsreader',Georgia,serif !important;
	font-weight:400 !important;
	font-size:36px !important;
	line-height:1.15 !important;
	letter-spacing:0 !important;
	text-transform:none !important;
	color:#2b2a28 !important;
}

/* Cartes plus détachées du fond crème : bordure plus marquée, ombre douce,
   filet entre la couverture et le texte. */
body .yc-fp .yc-fp-carte{
	border:1px solid #d9cdbd !important;
	box-shadow:0 1px 2px rgba(43,42,40,.06),0 10px 28px -12px rgba(99,61,42,.22) !important;
}

body .yc-fp .yc-fp-carte:hover{
	border-color:#aa5534 !important;
	box-shadow:0 1px 2px rgba(43,42,40,.08),0 18px 36px -14px rgba(99,61,42,.32) !important;
}

body .yc-fp .yc-fp-carte img{
	border-bottom:1px solid #e6ddd1 !important;
}

/* Icônes des liens « Faire le point », « Avancer », « Se situer » et « Parcourir » dans la colonne de gauche.
   Fluent ne permet qu'un emoji sur un lien : on le remplace par l'icône de la charte. */
.fcom_sidebar_contents a[href*="/faire-le-point"] .community_avatar,
.fcom_sidebar_contents a[href*="/avancer"] .community_avatar,
.fcom_sidebar_contents a[href*="/se-situer"] .community_avatar,
.fcom_sidebar_contents a[href*="/parcourir"] .community_avatar{
	background:center / 20px 20px no-repeat;
}

.fcom_sidebar_contents a[href*="/faire-le-point"] .community_avatar{
	background-image:url(/wp-content/uploads/yumanconnect/icones/faire-le-point.svg);
}

.fcom_sidebar_contents a[href*="/avancer"] .community_avatar{
	background-image:url(icones/avancer.svg);
}

.fcom_sidebar_contents a[href*="/se-situer"] .community_avatar{
	background-image:url(icones/se-situer.svg);
}

.fcom_sidebar_contents a[href*="/parcourir"] .community_avatar{
	background-image:url(icones/parcourir.svg);
}

.fcom_sidebar_contents a[href*="/faire-le-point"] .community_avatar > *,
.fcom_sidebar_contents a[href*="/avancer"] .community_avatar > *,
.fcom_sidebar_contents a[href*="/se-situer"] .community_avatar > *,
.fcom_sidebar_contents a[href*="/parcourir"] .community_avatar > *{
	visibility:hidden;
}

/* Icônes des liens du groupe PLUS LOIN, en brun YUMAN : le symbole du logo pour yuman.life,
   un calendrier pour l'appel, un bouclier pour la confidentialité. */
.fcom_sidebar_contents a[href="https://yuman.life/"] .community_avatar,
.fcom_sidebar_contents a[href="https://yuman.life"] .community_avatar,
.fcom_sidebar_contents a[href*="/reserver-mon-appel"] .community_avatar,
.fcom_sidebar_contents a[href*="/politique-de-confidentialite"] .community_avatar{
	background:center / 20px 20px no-repeat;
}

.fcom_sidebar_contents a[href="https://yuman.life/"] .community_avatar,
.fcom_sidebar_contents a[href="https://yuman.life"] .community_avatar{
	background-image:url(icones/decouvrir-yuman.svg);
	background-size:18px 18px;
}

.fcom_sidebar_contents a[href*="/reserver-mon-appel"] .community_avatar{
	background-image:url(icones/reserver-un-appel.svg);
}

.fcom_sidebar_contents a[href*="/politique-de-confidentialite"] .community_avatar{
	background-image:url(icones/proteger-tes-donnees.svg);
}

.fcom_sidebar_contents a[href="https://yuman.life/"] .community_avatar > *,
.fcom_sidebar_contents a[href="https://yuman.life"] .community_avatar > *,
.fcom_sidebar_contents a[href*="/reserver-mon-appel"] .community_avatar > *,
.fcom_sidebar_contents a[href*="/politique-de-confidentialite"] .community_avatar > *{
	visibility:hidden;
}

/* Couvertures des espaces et des profils : même liseré et même ombre que les cartes,
   pour qu'elles se détachent du fond crème. */
body:has(.fhr_logo) .object_cover{
	border:1px solid #d9cdbd !important;
	border-radius:14px !important;
	box-shadow:0 1px 2px rgba(43,42,40,.06),0 10px 28px -12px rgba(99,61,42,.22) !important;
	overflow:hidden;
}

/* Bannière des pages de cours : format 1680x600 sans recadrage
   (FluentCommunity l'affiche dans un cadre forcé en 16:9, ce qui coupe les bords). */
.fcom_course_welcome_box .feed_media .el-image__inner {
	aspect-ratio: 1680 / 600 !important;
	height: auto !important;
}

/* Cartes d'espaces et de parcours (profil › Espaces et Activités, liste des espaces) : même liseré et même ombre
   que les autres cartes, autour de toute la carte (Fluent ne borde que le bas), filet sous la couverture. */
body:has(.fhr_logo) .fcom_box_card_list .fcom_each_box_card {
	overflow: hidden;
	border: 1px solid #d9cdbd !important;
	border-radius: 14px !important;
	background: #fff;
	box-shadow: 0 1px 2px rgba(43,42,40,.06), 0 10px 28px -12px rgba(99,61,42,.22) !important;
	transition: border-color .15s, box-shadow .15s;
}

body:has(.fhr_logo) .fcom_box_card_list .fcom_each_box_card:hover {
	border-color: #aa5534 !important;
	box-shadow: 0 1px 2px rgba(43,42,40,.08), 0 18px 36px -14px rgba(99,61,42,.32) !important;
}

body:has(.fhr_logo) .fcom_box_card_list .fcom_each_box_card .fcom_box_card_avatar {
	border-radius: 0 !important;
	border-bottom: 1px solid #e6ddd1;
}

body:has(.fhr_logo) .fcom_box_card_list .fcom_each_box_card .fcom_box_card_info {
	border: 0 !important;
	border-radius: 0 !important;
}

/* Bannière des pages de cours : même liseré et même ombre que les couvertures d'espace.
   Plus précise que la règle des cartes (box-shadow: none) et placée après elle : c'est elle qui l'emporte. */
body:has(.fhr_logo) .fcom_welcome_box.fcom_course_welcome_box {
	overflow: hidden;
	border: 1px solid #d9cdbd !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(43,42,40,.06), 0 10px 28px -12px rgba(99,61,42,.22) !important;
}

/* Bannière de bienvenue du flux : même liseré et même ombre que les couvertures d'espace et les bannières de cours.
   Classe répétée pour passer devant la règle des cartes (box-shadow: none), aussi copiée dans le CSS personnalisé de Fluent. */
body:has(.fhr_logo) .fcom_welcome_box.fcom_welcome_box.fcom_welcome_box:not(.fcom_course_welcome_box) {
	overflow: hidden;
	border: 1px solid #d9cdbd !important;
	border-radius: 14px !important;
	box-shadow: 0 1px 2px rgba(43,42,40,.06), 0 10px 28px -12px rgba(99,61,42,.22) !important;
}

/* Flux : colonne de droite masquée (« Publications tendances », « Activités récentes ») tant que la communauté démarre.
   Fluent ne propose pas de réglage : on vise la mise en page large du flux, sans toucher aux espaces, profils et cours,
   qui ont leurs propres classes. Pour la remettre, supprimer cette règle. */
.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_resp_side {
	display: none !important;
}

/* La colonne masquée libère la droite : le fil du flux se centre, comme Fluent le fait pour un espace sans colonne
   (.fcom_feed_box.fcom_hide_space_sidebar { margin: 0 auto }), au lieu de rester calé à gauche (margin: 0). */
.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_resp_container .fcom_feed_box {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Flux, écrans larges : la bannière de bienvenue prend la largeur d'une couverture d'espace (1080 px moins les marges,
   soit 1016 px au plus), centrée sur le fil, qui reste à 680 px comme dans un espace. */
@media (min-width: 1200px) {
	.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_feed_box .fcom_welcome_box:not(.fcom_course_welcome_box) {
		width: min(1016px, calc(100vw - 380px)) !important;
		max-width: none !important;
		margin-left: 50% !important;
		transform: translateX(-50%);
	}
}

/* Flux : bloc de texte de la bannière de bienvenue, resserré et aligné à gauche (titre, phrase, bouton). */
.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) > div:has(> .fcom_welcome_title) {
	padding: 18px 28px 22px !important;
	text-align: left !important;
}
.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) .fcom_welcome_title {
	font-size: 27px !important;
	line-height: 1.2 !important;
	margin: 0 0 6px !important;
	text-align: left !important;
}
.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) .fcom_welcome_cta_buttons {
	justify-content: flex-start !important;
	text-align: left !important;
	margin-top: 14px !important;
}

/* Flux, téléphone : le cadre de la bannière a déjà 20 px de marge intérieure (Fluent) ; le texte s'aligne dessus,
   comme celui des publications, au lieu d'ajouter 28 px de plus. Moins de vide sous les boutons. */
@media (max-width: 767px) {
	.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) > div:has(> .fcom_welcome_title) {
		padding: 16px 0 2px !important;
	}
	.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) .fcom_welcome_title {
		font-size: 24px !important;
	}
	.fcom_single_layout.fcom_max_layout:not([class*="fcom_space_"]):not(.fcom_member_profile):not(.fcom_course_view_layout) .fcom_welcome_box:not(.fcom_course_welcome_box) .fcom_welcome_cta_buttons {
		margin: 12px 0 18px !important;
	}
}

/* En-tête des pages : masque le bouton « Compléter le profil », garde le bouton du menu */
.fhr_page_actions {
	justify-content: flex-end !important;
}
.fhr_page_actions > div:first-child {
	display: none !important;
}
.fhr_page_actions > div:last-child {
	display: flex !important;
}

/* Lecteur vidéo FluentPlayer : sans le dégradé sombre sur l'image */
media-player .vds-scrim,
media-player media-controls {
	background: none !important;
	background-image: none !important;
}

/* FluentPlayer : sans l'avis (en anglais) « vidéo privée / brouillon » montré aux éditeurs au-dessus du lecteur */
.fluent-player-notice {
	display: none !important;
}

/* Page « Réserver une séance » : calendrier FluentBooking dans la charte */
.yc-fp .fcal_cal_wrap{
	--fcal_primary_color:#aa5534;
	--fcal_dark:#2b2a28;
	--fcal_cal_bg:#fff;
	--fcal_slot_border:#e6ddd1;
	--fcal_enable_day_bg:#f7f3ed;
	--fcal_thBG:#f7f3ed;
	--fcal_date_radius:8px;
	--fcal_avatar_radius:50%
}

.yc-fp .fcal_wrap .fcal_holder{
	justify-content:flex-start
}

.yc-fp .fcal_calendar_inner{
	border-radius:14px
}

.yc-fp .fcal_cal_wrap,
.yc-fp .fcal_cal_wrap button,
.yc-fp .fcal_cal_wrap input{
	font-family:'Instrument Sans',system-ui,sans-serif
}

.yc-fp .fcal_slot_heading,
.yc-fp .calendar-month-year h2{
	font-family:'Newsreader',Georgia,serif;
	font-weight:400;
	color:#2b2a28
}

.yc-fp .fcal_duration.is_selected{
	background:#aa5534;
	color:#fff
}
