/* MENU 
-------------------------------- */
#cm-site-info {
	padding: 10px 0;
}

#cm-primary-nav {
	box-shadow: none!important;
	padding-bottom: 10px;
}

.cm-primary-nav div:not(.social-links) li:not(.menu-icon) {
	padding: 10px 20px!important;
}

.cm-primary-nav a {
	font-weight: 700!important;
	line-height: 1!important;
	text-transform: initial!important;
}

.cm-mobile-nav a {
	color: #FFFFFF!important;
}

.cm-top-search {
	background-color: var(--color--primary);
	margin-left: 10px;
}

.cm-top-search .fa.search-top {
	color: #ffffff;
}

.logged-in .menu-icon.account:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background-color: #2dba02;
    position: absolute;
    right: 0;
    bottom: 0;
}

.menu-icon.annuaire:hover a:after, .menu-icon.events:hover a:after, .menu-icon.account:hover a:after {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: .8em;
    font-weight: 500;
    color: var(--color--primary);
    border: 1px solid rgb(8, 56, 121);
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 10px;}

.menu-icon.annuaire:hover a:after {
    content: 'Annuaire';
}

.menu-icon.events:hover a:after {
    content: 'Agenda';
}

.menu-icon.account:hover a:after {
    content: 'Mon compte';
}

/* LOGIN PAGE
-------------------------------- */

ul.woocommerce-error {
    text-align: center;
    border: 1px solid orange;
}

ul.woocommerce-error li {
    list-style: none;
    padding: 10px;
}

ul.woocommerce-error li a {
    text-decoration: underline;
}

.woocommerce-notices-wrapper .woocommerce-message {
    text-align : center;
    padding: 10px;
    margin-bottom: 30px;
    border: 1px solid green;
}

/* REGISTER PAGE
-------------------------------- */

.rcp_header:has(+ #rcp_registration_form) {
	display: none;
}

/* SHORTCODES CSS
-------------------------------- */

.card-container-home {
	background-color: #ffffff;
	border-radius: 20px;
	display: flex;
	margin-bottom: 20px;
	position: relative;
	min-height: 250px;
}

.card-container-home:last-child {
	margin: 0;
}

.card-container-home .card-image {
	width: 35%;
}

.card-container-home .card-image figure {
	height: 100%;
}

.card-container-home .card-image figure img  {
	border-radius: 20px 0 0 20px;
	object-fit: contain;
	height: 100%;
}

.card-container-home .card-content {
	display: flex;
	flex-direction: column;
	padding: 20px;
	width: 100%;
}

.card-container-home .card-content h3, .card-container-home .card-content p {
	margin-bottom: 0;
}

.card-container-home .card-content .card-infos {
	display: flex;
	flex-wrap: wrap;
	gap: .2em 20px;
	margin: 15px 0;
}

.card-container-home .card-content h4 {
	margin: 0;
}

.card-container-home .card-image + .card-content {
	width: 65%;
}

.card-container-home .card-content .card-link {
    border-radius: 100%;
    background-color: var(--color--primary);
    margin-top: auto;
    margin-left: auto;
    padding: 10px;
    width: fit-content;
}

.card-container-home .card-content .card-link span {
	color: #ffffff;
	margin: 0;
}

/* arrows buttons rotate */

.no-icons.wp-block-button .wp-block-button__link, .card-container-home .card-content .card-link {
	transform: rotate(-45deg);
}

/* RECHERCHE
-------------------------------------- */

.search-results article {
	background-color: #ffffff;
}

.search-results article .cm-featured-image img {
	border-radius: 0;
}

.search-results article .cm-post-content {
	padding-top: 20px!important;
	padding-right: 40px!important;
	padding-bottom: 20px!important;
	padding-left: 40px!important;
}

.search-results article .cm-post-content .cm-entry-title {
	font-weight: 700!important;
	font-size: 1.8em!important;
}

/* ARCHIVE
-------------------------------------- */

.wp-block-query.archive .wp-block-post.annonce:first-child, .wp-block-query.archive .wp-block-post.dossier_presse:first-child, .wp-block-query.archive .wp-block-post.type-post:first-child {
	grid-column: 1 / -1;
}

/*
.wp-block-query.archive .wp-block-post.annonce:first-child .dashicons-before:before, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .dashicons-before:before, .wp-block-query.archive .wp-block-post.type-post:first-child .dashicons-before:before {
	color: #FFFFFF;
}

.wp-block-query.archive .wp-block-post.annonce:first-child .wp-block-group:first-child, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .wp-block-group:first-child, .wp-block-query.archive .wp-block-post.type-post:first-child .wp-block-group:first-child {
    padding-top: 150px!important;
    padding-right: 5%!important;
    padding-bottom: 40px!important;
    padding-left: 5%!important;
}

.wp-block-query.archive .wp-block-post.annonce:first-child > .wp-block-group:first-child:after, .wp-block-query.archive .wp-block-post.dossier_presse:first-child > .wp-block-group:first-child:after, .wp-block-query.archive .wp-block-post.type-post:first-child > .wp-block-group:first-child:after {
	content: '';
	border-radius: 20px;
	background: linear-gradient(0deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0) 76%);
	height: 75%;
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
}

.wp-block-query.archive .wp-block-post.annonce:first-child .wp-block-group *, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .wp-block-group *, .wp-block-query.archive .wp-block-post.type-post:first-child .wp-block-group * {
	color: #FFFFFF;
	position: relative;
	z-index: 1;
}

.wp-block-query.archive .wp-block-post.annonce:first-child .wp-block-group figure, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .wp-block-group figure, .wp-block-query.archive .wp-block-post.type-post:first-child .wp-block-group figure {
	position: absolute;
	top: 0;
	left: 0;
	min-height: 100%;
	min-width: 100%;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.wp-block-query.archive .wp-block-post.annonce:first-child figure, .wp-block-query.archive .wp-block-post.dossier_presse:first-child figure, .wp-block-query.archive .wp-block-post.type-post:first-child figure {
	aspect-ratio: auto!important;
	max-height: 200px;
	overflow: hidden;
}

.wp-block-query.archive .wp-block-post.annonce:first-child figure img, .wp-block-query.archive .wp-block-post.dossier_presse:first-child figure img, .wp-block-query.archive .wp-block-post.type-post:first-child figure img {
	width: auto;
	min-width: 100%;
	min-height: 100%;
}
*/

.wp-block-query.archive .wp-block-post.annonce:first-child .wp-block-group:has(figure):first-child, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .wp-block-group:has(figure):first-child, .wp-block-query.archive .wp-block-post.type-post:first-child .wp-block-group:first-child  {
	display: flex;
	position: relative;
}

.wp-block-query.archive .wp-block-post.annonce:first-child figure, .wp-block-query.archive .wp-block-post.dossier_presse:first-child figure, .wp-block-query.archive .wp-block-post.type-post:first-child figure {
	position: relative;
	margin: auto 0;
	height: 250px;
	min-width: 50%;
}

.wp-block-query.archive .wp-block-post.annonce:first-child figure img, .wp-block-query.archive .wp-block-post.dossier_presse:first-child figure img, .wp-block-query.archive .wp-block-post.type-post:first-child figure img {
	border-radius: 20px;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@media screen and (max-width: 600px) {
	.wp-block-query.archive .wp-block-post.annonce:first-child .wp-block-group:first-child, .wp-block-query.archive .wp-block-post.dossier_presse:first-child .wp-block-group:first-child, .wp-block-query.archive .wp-block-post.type-post:first-child .wp-block-group:first-child {
		flex-direction: column;
	}
}

/* SINGLE POST
-------------------------------------- */

.single-post article.post .cm-featured-image, .single-dossier_presse article.dossier_presse .cm-featured-image, .single-annonce article.annonce .cm-featured-image {
	background-color: #FFFFFF;
	border-radius: 20px
}

.single-post article.post .cm-featured-image img, .single-dossier_presse article.dossier_presse .cm-featured-image img, .single-annonce article.annonce .cm-featured-image img  {
	max-height: 250px;
	width: auto;
}

.single.single-tribe_events .cm-content .cm-container, .post-type-archive-tribe_events .cm-content .cm-container {
	display: flex;
	flex-direction: row;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

.post-type-archive-tribe_events .cm-content .cm-container {
	flex-wrap: nowrap;
}

.single.single-tribe_events .cm-content .cm-container .tribe-compatibility-container, .post-type-archive-tribe_events .cm-content .cm-container .tribe-compatibility-container {
	max-width: 300px;
}

.post-type-archive-tribe_events .cm-content .cm-container .tribe-compatibility-container .tribe-events-widget-events-list__event {
	box-shadow: none;
}

.tribe-events .tribe-events-calendar-month-mobile-events__mobile-event {
	padding: var(--tec-spacer-2);
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container {
	padding-top: 0;
}

@media screen and (max-width: 600px) {
	.post-type-archive-tribe_events .cm-content .cm-container {
		flex-wrap: wrap;
	}
}

/* CONTACT FORM BLOCK
-------------------------------------- */

.telephone a:before {
	content: '\f525';
	font-family: 'dashicons';
	margin-right: 5px;
}

.email a:before {
	content: '\f465';
	font-family: 'dashicons';
	margin-right: 5px;
}

.wpcf7 form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2rem;
}

.wpcf7 form p {
	grid-column: 1 / -1
}

.wpcf7 form p:nth-of-type(1), .wpcf7 form p:nth-of-type(3) {
	grid-column: 1 / 1;
}

.wpcf7 form p:nth-of-type(2), .wpcf7 form p:nth-of-type(4) {
	grid-column: 2 / -1;
}

input[type="number"] {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #e4e4e7;
	line-height: 20px;
	width: 100%;
	margin: 0 0 32px;
	background-color: #FCFCFC;
	border-radius: 4px;
}

input[type="number"]:focus {
	border: 1px solid #e4e4e7;
}

/* REGISTER FORM & STRIPE PAYMENT
-------------------------------------- */

.rcp_header {
	font-size: 2em;
	text-align: center;
}

.rcp_login_link, .event-form-notification {
	background-color: #f0f9ff;
	border: 1px solid var(--color--primary);
	border-radius: 10px;
	margin-bottom: 30px;
	padding: 10px 20px;
	text-align: center;
}

.event-form-notification {
	background-color: #fff5e6;
	border-color: #ff9900;
}

.rcp_form fieldset {
	margin: 0!important;
	margin-bottom: 20px!important;
}

.rcp_form .rcp_user_fieldset, .rcp_form .rcp_subscription_fieldset, .rcp_form .rcp_gateway_fields, .rcp_form .rcp-gateway-new-card-fields {
	background-color : #ffffff;
	padding: 40px;
	border-radius: 20px;
}

.rcp_form .rcp_agree_to_terms_fieldset, .rcp_form .rcp_agree_to_privacy_policy_fieldset, .rcp_form #rcp_auto_renew_wrap {
	margin: 20px 10px !important;
}

.rcp_card_fieldset {
	max-width: 400px;

}

.rcp_registration_total_details td {
	border-top: none;
}

#rcp-card-element {
	background-color: #FCFCFC!important;
	border: 1px solid #e4e4e7;
	border-radius: 4px;
	padding: 5px 10px!important;
}

/* SIDEBAR WIDGET */

.widget .block-title {
	border: none!important;
}


/* FIXING TRIBE EVENT 
-------------------------------------- */

/* WIDGET */

.home .tribe-compatibility-container, .home .tribe-events-widget-events-list {
	height: 100%!important;
}

.home .tribe-events-widget-events-list {
	display: flex!important;
	justify-content: space-between;
}

.tribe-events.tribe-events-view {
	height: 100%;
	margin-bottom: 0;
}

.tribe-events-widget-events-list {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.tribe-events-widget-events-list .tribe-events-widget-events-list__events {
	margin-bottom: 20px;
}

.tribe-events-widget .tribe-events-widget-events-list__view-more {
	margin-top: 0!important;
}

.tribe-events-widget-events-list__event-row{
	background-color: #FFFFFF;
    padding: 10px!important;
    border-radius: 10px;
}

/* WIDGET TITLE */

.tribe-events-widget .tribe-events-widget-events-list__event-row {
	min-height: 80px;
}

.tribe-events-widget-events-list__header-title {
	font-size: 1.8em!important;
	font-weight: bold!important;
}

.tribe-events-widget .tribe-events-widget-events-list__event-title {
	line-height: 1.2em!important;
}

/* WIDGET BUTTON */

.tribe-events-widget-events-list__view-more {
	background-color: var(--color--primary);
	border-radius: 20px;
	line-height: inherit!important;
	margin: 5px 0!important;
	margin-top: auto !important;
	padding: 10px 20px!important;
	position : relative;
	text-align: center;
}

.tribe-events-widget-events-list__view-more a {
	color: white!important;
	font-size: 16px;
	font-weight: 600;
	font-family: open sans;
}

.tribe-events-widget-events-list__view-more a:hover, .tribe-events-widget-events-list__view-more a:active {
	text-decoration : none;
}

/* WIDGET DATE */

.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
	justify-content: center;
}

/* Masquer la colonne "Actions" dans le tableau des abonnements RCP */
.rcp-table.subscription th:last-child,
.rcp-table.subscription td:last-child {
	display: none!important;
}
/* Masquer la première colonne du tableau avec l'ID `rcp-payment-history` */
#rcp-payment-history th:first-child,
#rcp-payment-history td:first-child {
	display: none !important;
}

/* FORMULAIRE */

.tribe-community-events.form .tribe-section {
	border: none!important;
}

.tribe-community-events.form .tribe-section-header {
	padding: 0!important;
	border: none!important;
	margin-bottom: 20px!important;
}

.tribe-community-events.form .tribe-section-header h3 {
	text-align: left;
	border: none;
}

.tribe-community-events.form .tribe-section, .tribe-community-events.form .tribe-section-content {
	margin: 0!important;
	padding: 0!important;
}

.tribe-community-events.form td {
	padding-left: 0!important;
}

.tribe-community-events.form .tribe-section-content-label {
	padding-left: 0!important;
}

.tribe-community-events.form .tribe-datetime-block .tribe-section-content-row:has(#allDayCheckbox) {
	display: none!important;
}

.tribe-community-events.form .choose-file.tribe-button {
	background-color: var(--color--primary)!important;
}

.tribe-community-events.form .tribe-image-upload-area {
    border: 1px solid lightgray;
    padding: 20px;
}

.tribe-community-events.form .tribe-section.tribe-section-image-uploader .tribe-image-upload-area {
	background-position-y: 20px;
}

.tribe-community-events.form .tribe-section-taxonomy--post_tag {
	display: none;
}

.tribe-community-events.form tr:hover {
	background-color: transparent!important;
}

.select2-container:has(.select2-results) {
	margin-top: 30px!important;
}

.select2-dropdown--below {
	max-width: 400px;
}

#event_tribe_organizer tfoot {
	display: none;
}

.tribe-community-events.form #ui-datepicker-div {
	z-index: 9999!important
}

.tribe-community-events.form .tribe-image-upload-area .note p:after {
	content:' Pour un affichage optimal, les dimensions recommandÃ©es sont : 1400 x 600 pixels';
}

.tribe-community-events.form .edit-linked-post-link, .tribe-community-events.form .edit-linked-post-link {
	display: none;
}

.woocommerce-MyAccount-content .tribe-community-events.form form {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;	
}

.tribe-community-events.form form .events-community-post-title {
	order: 1
}

.tribe-community-events.form form .tribe-section-datetime {
	order: 2
}

.tribe-community-events.form form .tribe-section-organizer {
	order: 3
}

.tribe-community-events.form form .tribe-section-website {
	order: 4;
}

.tribe-community-events.form form .tribe-section-event-status {
	order: 5
}

.tribe-community-events.form form .tribe-section-taxonomy--tribe_events_cat {
	order: 6
}

.tribe-community-events.form form .tribe-section-venue {
	order: 7
}

.tribe-community-events.form form .tribe-section-website:has(#EventURL) {
	order: 8
}

.tribe-community-events.form form .tribe-section-image-uploader {
	order: 9
}

.tribe-community-events.form form .events-community-post-content {
	order: 10
}

.tribe-community-events.form form .tribe-events-community-footer {
	order: 11;
}