/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.1
Text Domain:  Avada
*/

/* SJSMSM - menu haut droit */
html body .fusion-tb-header #menu-item-3323 {
	position: relative !important;
}

html body .fusion-tb-header #menu-item-3323::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: 18px;
	z-index: 1;
	background: transparent;
}

html body .fusion-tb-header #menu-item-3323 > .awb-menu__sub-ul {
	z-index: 5 !important;
}

html body:not(.home) .fusion-tb-header #menu-item-3323 > .awb-menu__main-a:hover,
html body:not(.home) .fusion-tb-header #menu-item-3323 > .awb-menu__main-a:focus,
html body:not(.home) .fusion-tb-header #menu-item-3324 > .awb-menu__main-a:hover,
html body:not(.home) .fusion-tb-header #menu-item-3324 > .awb-menu__main-a:focus,
html body:not(.home) .fusion-tb-header #menu-item-3325 > .awb-menu__main-a:hover,
html body:not(.home) .fusion-tb-header #menu-item-3325 > .awb-menu__main-a:focus {
	color: #04345c !important;
	border-color: #04345c !important;
	background: transparent !important;
}

html body:not(.home) .fusion-tb-header #menu-item-3323:hover > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3323:focus-within > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3324:hover > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3324:focus-within > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3325:hover > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3325:focus-within > .awb-menu__main-background-default,
html body:not(.home) .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-active,
html body:not(.home) .fusion-tb-header #menu-item-3324 > .awb-menu__main-background-active,
html body:not(.home) .fusion-tb-header #menu-item-3325 > .awb-menu__main-background-active {
	border-color: #04345c !important;
	background: transparent !important;
	opacity: 1 !important;
}

html body:not(.home) .fusion-tb-header #menu-item-3322 > .awb-menu__main-a:hover i,
html body:not(.home) .fusion-tb-header #menu-item-3322 > .awb-menu__main-a:focus i {
	color: #04345c !important;
}

/* SJSMSM - menu haut droit : lien actif */
html body:not(.home).page-id-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-a,
html body:not(.home).parent-pageid-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-a,
html body:not(.home).page-id-3856 .fusion-tb-header #menu-item-3324 > .awb-menu__main-a,
html body:not(.home).page-id-3857 .fusion-tb-header #menu-item-3325 > .awb-menu__main-a {
	color: #04345c !important;
	border-color: transparent !important;
	background: transparent !important;
	font-weight: 700 !important;
}

html body:not(.home).page-id-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-a .menu-text,
html body:not(.home).parent-pageid-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-a .menu-text,
html body:not(.home).page-id-3856 .fusion-tb-header #menu-item-3324 > .awb-menu__main-a .menu-text,
html body:not(.home).page-id-3857 .fusion-tb-header #menu-item-3325 > .awb-menu__main-a .menu-text {
	background: linear-gradient(to top, rgba(4, 52, 92, .18) 0 .45em, transparent .45em 100%) !important;
	padding: 0 .08em !important;
}

html body:not(.home).page-id-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-default,
html body:not(.home).page-id-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-active,
html body:not(.home).parent-pageid-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-default,
html body:not(.home).parent-pageid-3855 .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-active,
html body:not(.home).page-id-3856 .fusion-tb-header #menu-item-3324 > .awb-menu__main-background-default,
html body:not(.home).page-id-3856 .fusion-tb-header #menu-item-3324 > .awb-menu__main-background-active,
html body:not(.home).page-id-3857 .fusion-tb-header #menu-item-3325 > .awb-menu__main-background-default,
html body:not(.home).page-id-3857 .fusion-tb-header #menu-item-3325 > .awb-menu__main-background-active {
	border-color: transparent !important;
	background: transparent !important;
	opacity: 0 !important;
}

/* SJSM - arrondi uniforme des images de contenu */
:root {
	--sjsm-content-image-radius: 25px;
}

#main img,
#main .fusion-imageframe,
#main .fusion-image-wrapper,
#main .fusion-post-slideshow,
#main .wp-block-image,
#main .fusion-gallery-image {
	border-radius: var(--sjsm-content-image-radius) !important;
}

#main .fusion-imageframe,
#main .fusion-image-wrapper,
#main .fusion-post-slideshow,
#main .wp-block-image,
#main .fusion-gallery-image {
	overflow: hidden;
}

/* SJSM - modèle des actualités */
body.single-post .fusion-page-title-bar > .fusion-fullwidth {
	background:
		linear-gradient(rgba(4, 52, 92, 0.48), rgba(4, 52, 92, 0.48)),
		url("https://sjsm.fr/wp-content/uploads/2026/06/accueil-principal-scaled.jpg") center center / cover no-repeat !important;
}

body.single-post .fusion-page-title-bar .awb-background-mask {
	display: none !important;
}

body.single-post.sjsm-post-title-moved .fusion-page-title-bar .fusion-title {
	display: none !important;
}

body.single-post .fusion-page-title-bar > .fusion-fullwidth,
body.single-post .fusion-page-title-bar > .fusion-fullwidth > .fusion-builder-row {
	min-height: 303px !important;
}

body.single-post .fusion-tb-header .awb-menu__m-toggle {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.82) !important;
	background: rgba(255, 255, 255, 0.3) !important;
}

html body.single-post #boxed-wrapper .fusion-tb-header nav[aria-label="Menu principal"] > .awb-menu__m-toggle {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.82) !important;
	background-color: rgba(255, 255, 255, 0.3) !important;
}

body.single-post .fusion-tb-header .awb-menu__m-toggle span,
html body.single-post #boxed-wrapper .fusion-tb-header nav[aria-label="Menu principal"] > .awb-menu__m-toggle span,
body.single-post .fusion-tb-header #menu-item-3322 > .awb-menu__main-a,
body.single-post .fusion-tb-header #menu-item-3322 > .awb-menu__main-a i,
body.single-post .fusion-tb-header #menu-item-3323 > .awb-menu__main-a,
body.single-post .fusion-tb-header #menu-item-3324 > .awb-menu__main-a,
body.single-post .fusion-tb-header #menu-item-3325 > .awb-menu__main-a {
	color: #fff !important;
}

body.single-post .fusion-tb-header #menu-item-3323 > .awb-menu__main-a,
body.single-post .fusion-tb-header #menu-item-3324 > .awb-menu__main-a,
body.single-post .fusion-tb-header #menu-item-3325 > .awb-menu__main-a {
	border-color: #fff !important;
}

html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-default,
html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3323 > .awb-menu__main-background-active,
html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3324 > .awb-menu__main-background-default,
html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3324 > .awb-menu__main-background-active,
html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3325 > .awb-menu__main-background-default,
html body.single-post #boxed-wrapper .fusion-tb-header #menu-item-3325 > .awb-menu__main-background-active {
	color: #fff !important;
	border-color: #fff !important;
	background: transparent !important;
	opacity: 1 !important;
}

body.single-post .fusion-tb-header #menu-item-3322 > .awb-menu__main-a:hover i,
body.single-post .fusion-tb-header #menu-item-3322 > .awb-menu__main-a:focus i,
body.single-post .fusion-tb-header #menu-item-3323 > .awb-menu__main-a:hover,
body.single-post .fusion-tb-header #menu-item-3323 > .awb-menu__main-a:focus,
body.single-post .fusion-tb-header #menu-item-3324 > .awb-menu__main-a:hover,
body.single-post .fusion-tb-header #menu-item-3324 > .awb-menu__main-a:focus,
body.single-post .fusion-tb-header #menu-item-3325 > .awb-menu__main-a:hover,
body.single-post .fusion-tb-header #menu-item-3325 > .awb-menu__main-a:focus {
	color: #fff !important;
}

body.single-post .sjsm-single-post-title {
	max-width: 1000px;
	margin: 55px auto 35px;
	color: #04345c;
	font-size: 38px;
	line-height: 1.25;
	text-align: center;
}

@media (min-width: 851px) {
	body.single-post #content .fusion-image-element,
	body.single-post #content .fusion-content-tb figure.wp-block-image {
		width: 50% !important;
		max-width: 50% !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}

	body.single-post #content .fusion-content-tb > :not(figure.wp-block-image) {
		width: 50% !important;
		max-width: 50% !important;
		margin-right: auto !important;
		margin-left: auto !important;
	}
}

@media (max-width: 850px) {
	body.single-post .fusion-page-title-bar > .fusion-fullwidth,
	body.single-post .fusion-page-title-bar > .fusion-fullwidth > .fusion-builder-row {
		min-height: 355px !important;
	}

	body.single-post .sjsm-single-post-title {
		margin: 38px 20px 26px;
		font-size: 30px;
	}
}

body.single-post #content .post-content > .fusion-fullwidth > .fusion-builder-row > .fusion_builder_column_1_3 {
	display: none !important;
}

body.single-post #content .post-content > .fusion-fullwidth > .fusion-builder-row > .fusion_builder_column_2_3 {
	--awb-width-large: 100% !important;
	--awb-width-medium: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.single-post #respond,
body.single-post #comments,
body.single-post .comments-container {
	display: none !important;
}

/* SJSM - bandeau de la page Inscriptions */
html body.page-id-3857 #boxed-wrapper .fusion-page-title-bar.fusion-tb-page-title-bar .fusion-column-has-bg-image {
	background-image:
		linear-gradient(rgba(4, 52, 92, 0.54), rgba(4, 52, 92, 0.54)),
		url("https://sjsm.fr/wp-content/uploads/2026/08/bandeau-inscriptions-2026.jpg") !important;
	background-position: center 52% !important;
	background-size: cover !important;
}

@media (max-width: 850px) {
	html body.page-id-3857 #boxed-wrapper .fusion-page-title-bar.fusion-tb-page-title-bar .fusion-column-has-bg-image {
		background-position: center center !important;
	}
}
