/*
 pages.css
 ======================================================
 
 Code CSS des pages (Accueil, Article, etc...)
 
 ======================================================
 
 [0] Accueil
 [1] .....
 [2] .....
 [3] .....
 [4] .....
 [5] .....
 
*/

/*******************************************************************************
	[0] Accueil
*******************************************************************************/

/* BT29 #Content{z-index:0} enterre l’arrondi ::after sous le footer */
#Content {
	position: relative;
	z-index: auto;
}

#Content::after {
	content: '';
	position: absolute;
	bottom: -50px;
	left: 0;
	width: 100%;
	background: #ffffff;
	height: 50px;
	border-radius: 0 0 0 100px;
	z-index: 5;
}

/*
 * Prod : rows (sauf 1re) plafonnées à 1680px centrées.
 * WPBakery 8 enveloppe le contenu dans .wpb-content-wrapper → le sélecteur
 * direct >div ne match plus les .vc_row. On cible aussi ce wrapper.
 */
#Content .the_content_wrapper > div:not(:first-child),
#Content .the_content_wrapper > .wpb-content-wrapper > div:not(:first-child) {
	/* padding-left:100px; */
	/* padding-right:100px; */
	max-width: 1680px;
	margin: auto;
	position: relative;
}

/*******************************************************************************
	[1] Article / single (post, events)
*******************************************************************************/

/*
 * BT29 enveloppe les colonnes single dans .mcb-column-inner avec
 * margin: var(--mfn-column-gap-*) = 0 12px 40px → sections trop hautes / inset.
 * BT21 n’avait pas ce wrapper.
 * Mobile BT29 remet margin-bottom:20px sur .mcb-column-inner (ex BT21 sur .column).
 */
.single #Content .mcb-column-inner {
	margin-top: 0;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
}

/*
 * Desktop : comme prod, post-nav / post-header sans mb (general .column{margin:0}).
 * Mobile BT21 : .section_wrapper .column{margin:0 0 20px}.
 * Ne PAS forcer mb:20 en desktop → +40px, meta/date/related trop bas.
 */
@media only screen and (max-width: 767px) {
	.single #Content .section_wrapper > .column {
		margin-bottom: 20px;
	}

	/* pager vide : ne pas créer 20px fantômes (prod section h=0) */
	.single #Content .section-post-footer .column,
	.single #Content .post-pager {
		margin-bottom: 0;
	}
}

/* BT29 .section_wrapper{display:flex} sur header article aussi (related déjà neutre) */
.single #Content .section-post-header .section_wrapper {
	display: block;
}

/* BT21 .one.column = 98% (textarea / commentaires inclus). Mobile = 100%. */
@media only screen and (min-width: 768px) {
	.single #Content .section_wrapper > .column.one {
		width: 98%;
	}
}

/*
 * BT29 : .no-img .single-photo-wrapper {display:none} (wrapper entier).
 * BT21 : seulement .image_frame hidden → colonne vide garde margin-bottom 20px.
 * .no-img / .format-* sont sur <article>, pas sur body.single.
 */
.format-standard.no-img .section-post-header .single-photo-wrapper,
.format-image.no-img .section-post-header .single-photo-wrapper,
.portfolio.no-img .section-post-header .single-photo-wrapper {
	display: block !important;
}

.format-standard.no-img .section-post-header .single-photo-wrapper .image_frame,
.format-image.no-img .section-post-header .single-photo-wrapper .image_frame,
.portfolio.no-img .section-post-header .single-photo-wrapper .image_frame {
	display: none !important;
}

/* Avatar : BT29 force border-imageframe #f8f8f8 ; prod/BT21 = color-text #626262 */
.single .author-box .avatar-wrapper {
	border-color: #626262;
}

/* Auteur : BT29 content-single utilise <p> au lieu de <h5> */
.single .author-box .desc-wrapper > p {
	font-size: 30px;
	line-height: 30px;
	font-weight: 700;
	margin: 0 0 5px;
}

.single .author-box .desc-wrapper > p a {
	color: #161922;
	font-weight: 700;
}

/*
 * Related heading : BT29 <p.related-heading> (120%/36px gris) vs BT21 <h4> 30px #161922.
 */
.section-post-related .related-heading {
	font-size: 30px;
	line-height: 30px;
	font-weight: 500;
	color: #161922;
	margin: 0 0 15px;
}

/*
 * Related date_label (style simple) : BT29 garde badge 12px/#a8a8a8 ;
 * BT21 shortcodes non appliqué / hérite body 30px #626262.
 */
.section-post-related .simple .post-related .date_label {
	font-size: 30px;
	line-height: 30px;
	color: #626262;
	display: block;
	margin-bottom: 5px;
	padding: 0;
	background: none;
}

.section-post-related .simple .post-related .date_label:after {
	display: none;
}

/*
 * Related « Read more » : Buttons 2.0 (inline-flex 14px / pad 16) vs stroke BT21.
 * Scoped related seulement — ne pas toucher header / Action_bar.
 */
.button-stroke .section-post-related a.button {
	display: inline-block;
	font-size: 30px;
	line-height: 30px;
	padding: 0;
	border-width: 2px;
	border-style: solid;
	border-color: #f7f7f7;
	background-color: transparent !important;
	color: #747474;
}

.button-stroke .section-post-related a.button .button_icon {
	display: block;
	float: left;
	padding: 11px 12px;
	background: none;
	font-size: 30px;
	line-height: 30px;
}

.button-stroke .section-post-related a.button .button_label {
	display: block;
	float: left;
	padding: 11px 20px 11px 0;
	font-size: 30px;
	line-height: 30px;
}

/*
 * Séparateurs : comme la prod.
 * Share = rgba pâle (be.css) — ne pas toucher.
 * Related + commentaires = #626262 (BT21 color-text ; BT29 les passe en rgba).
 */
.single .section-post-related .section-related-adjustment,
.single #comments > :first-child,
.single #comments .comment-respond {
	border-color: #626262;
}

/*
 * Comment submit : mesuré prod (inject).
 * font 14px + line-height 30px (body *) + pad 11/20 + border 2 + content-box = h 56.
 * float right, aligné au bord du .one 98%.
 */
.button-stroke.single #respond input[type="submit"] {
	display: inline-block !important;
	float: right !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 11px 20px !important;
	font-family: Arial, Tahoma, sans-serif !important;
	font-size: 14px !important;
	line-height: 30px !important;
	font-weight: 400 !important;
	color: #0095eb !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 2px solid #0095eb !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	box-sizing: content-box !important;
}

.button-stroke.single #respond input[type="submit"]:hover {
	color: #fff !important;
	background-color: #0095eb !important;
	border-color: #0095eb !important;
}

.single #respond .form-submit {
	margin: 0;
	text-align: right;
}

.single #respond .form-submit::after {
	content: "";
	display: table;
	clear: both;
}

/* Textarea : minimal (border thème, sans ombre BT29) */
.single #respond textarea,
.single #comment {
	border-color: #EBEBEB;
	box-shadow: none;
}

/*
 * Fixed-nav (bas droite) : BT29 single.php + content-single = doublon ;
 * photo #eee / titre <p> / date avec border-top vs BT21 photo #000 / <h6> + bordure.
 */
body > .fixed-nav.fixed-nav-next ~ .fixed-nav.fixed-nav-next,
body > .fixed-nav.fixed-nav-prev ~ .fixed-nav.fixed-nav-prev {
	display: none !important;
}

.fixed-nav .photo {
	background-color: #000;
}

.fixed-nav .desc h6,
.fixed-nav .desc > p {
	margin: 0 0 3px;
	padding: 0 0 3px;
	border-bottom: 1px solid #161922;
	color: #161922;
	font-size: 30px;
	line-height: 30px;
	font-weight: 400;
}

.fixed-nav .desc .date {
	display: inline;
	width: auto;
	padding-top: 0;
	border-top: none;
}

.modal_div {
	display: none;
	position: fixed;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -60%);
	width: 80%;
	height: 80%;
	border-radius: 15px;
	z-index: 9999999;
}

.modal_div iframe {
	border-radius: 15px;
}

.modal_div button.close,
.button-stroke .modal_div button.close {
	background-color: #DA0052 !important;
	color: #fff !important;
	border-radius: 100%;
	border: none;
	top: -30px;
	position: absolute;
	font-size: 50px;
	width: 50px;
	height: 50px;
	padding: 0;
	display: block;
	right: -30px;
}

#modal_video.modal_div div {
	width: 100%;
	height: 100%;
}

.overlay_modal {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99;
	background: rgba(0, 0, 0, 0.8);
	display: none;
}

#modal_page .modal-body>div {
	display: none;
	padding: 50px 0;
}

#modal_page .modal-body>div>* {
	font-size: 25px;
	padding: 0 50px;
	word-break: break-word;
}

#modal_page .modal-body>div>p:first-child {
	font-family: 'Holtwood One SC', serif;
	font-size: 40px;
	text-transform: uppercase;
	color: #007BC5;
	text-align: center;
	margin-bottom: 30px;
	line-height: 40px;
}

#modal_page {
	background: #ffffff;
	width: 80%;
	height: 70%;
	opacity: 0.9;
}

#modal_page .modal-body {
	overflow-y: auto;
	height: 100%;
}

#modal_page table td,
#modal_page table th {
	text-align: left;
	padding: 20px;
	border: 1px solid;
}

#modal_page table th {
	font-weight: bold;
	text-align: center;
	min-width: 100px;
}

#modal_page table {
	margin-top: 30px;
	margin-bottom: 30px;
	margin-left: 50px;
	margin-right: 50px;
}

@media(max-width:767px) {
	#modal_page {
		height: 60%;
		width: 80%;
	}

	#modal_page .modal-body>div * {
		padding: 0 10px;
	}

	#modal_page .modal-body>div {
		padding: 10px 0;
	}

	#modal_page table {
		margin-left: 10px;
		margin-right: 10px;
	}
}


/*******************************************************************************
	[1] SLIDER PRINCIPAL - ACCUEIL
*******************************************************************************/
#main__slider {
	animation-name: fadeIn;
	animation-duration: 1s;
	animation-fill-mode: both;
}

#main__slider .splide__slide::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	filter: brightness(0.8);
	mix-blend-mode: multiply;
	z-index: 1;
}

.page-id-5 #main__slider .splide__slide::before {
	background: rgba(218, 0, 82, 0.8);
}

.page-id-429 #main__slider .splide__slide::before {
	background: rgba(44, 177, 148, .8);
}

.slider__title {
	position: absolute;
	z-index: 10;
	bottom: 20%;
	left: 55%;
	transform: translate(-55%, -20%);
}

.slider__title span {
	font-size: 84px;
	line-height: 60px;
	color: #ffffff;
	display: table;
	border-radius: 10px;
	margin-bottom: 10px;
	padding: 5px 10px;
}

.page-id-5 .slider__title span {
	background: #007BC5 !important;
}

.page-id-429 .slider__title span {
	background: #424797 !important;
}

#main__slider .slide__img {
	position: relative;
}

#main__slider .slide__img::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: auto;
	border-radius: 100px 100px 0 0;
	z-index: 4;
	/* background-image: url(../img/icon_scroll.jpg); */
	background-repeat: no-repeat;
	background-position: center;
	background-color: #ffffff;
	padding-top: 50px;
	padding-bottom: 35px;
}

.page-id-429 #main__slider .slide__img::before {
	background-image: url('https://www.ma-rentree-ubs.fr/wp-content/uploads/2023/08/Groupe-6.jpg');
}

#main__slider .slide__img::after {
	content: url(../img/logo_campus.png);
	position: absolute;
	right: 4%;
	bottom: calc(100px + 4%);
	z-index: 2;
}

#main__slider .content,
#main__slider .slide__img,
#main__slider .slide__img img {
	height: 100%;
	width: 100%;
	object-fit: cover;
}

#main__slider .slide__img img {
	filter: contrast(2);
}

.slide__vid--btn {
	position: absolute;
	height: 240px;
	width: 240px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 12;
	animation-duration: 1s;
	animation-fill-mode: both;
	animation-name: flash;
	cursor: pointer;
}

.slide__vid--btn img {
	height: 100%;
	width: 100%;
	object-fit: scale-down;
	object-position: center;
}

.noRelative {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
}

.slide__vid {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.7);
	animation: fadeIn cubic-bezier(0.165, 0.84, 0.44, 1) .2s;
}

.slide__vid.open {
	display: block;
	animation: fadeIn cubic-bezier(0.165, 0.84, 0.44, 1) .2s;
}

.slide__vid--content {
	position: fixed;
	top: 70%;
	left: 50%;
	transform: translate(-50%, -60%);
	width: 80%;
	height: 80%;
	border-radius: 15px;
	max-width: 1220px;
	max-height: 810px;
}

.slide__vid--content iframe {
	border-radius: 15px;
	height: 100%;
	width: 100%;
	min-width: 280px;
	min-height: 320px;
}

.slide__vid .close {
	color: #fff !important;
	border-radius: 100%;
	border: none;
	top: -30px;
	position: absolute;
	font-size: 50px;
	width: 50px;
	height: 50px;
	padding: 0;
	display: block;
	right: -30px;
	font-family: 'Miso', sans-serif;
	line-height: 30px;
	z-index: 99999;
}

.inner--close {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	row-gap: 10px;
}

.close span {
	height: 3px;
	width: 20px;
	background: white;
	border-radius: 5px;
}

.close span:first-child {
	transform-origin: top right;
	transform: translateX(-4px) rotate(-45deg);
}

.close span:last-child {
	transform-origin: bottom right;
	transform: translateX(-4px) rotate(45deg);
}

.page-id-5 .slide__vid .close,
.page-id-5 .slide__vid .close:hover {
	background-color: #DA0052 !important;
}

.page-id-429 .slide__vid .close,
.page-id-429 .slide__vid .close:hover {
	background-color: #0095eb !important;
}

.slide__vid .close:hover {
	opacity: .85 !important;
}

@media screen and (min-width: 1023px) {
	.slide__vid--content iframe {
		height: 70vh;
	}
}

@media screen and (max-width: 991px) {
	.slide__vid--btn {
		height: 130px;
		width: 130px;
	}

	#main__slider .slide__img::after {
		height: 100px;
		width: 100px;
		content: '';
		background: url(../img/logo_campus.png) no-repeat;
		background-size: contain;
	}
}

@media screen and (max-width: 767px) {
	#main__slider .slide__img::after {
		height: 80px;
		width: 80px;
	}
}

div[data-hide-on-vendor-consent='youtube'] {
	display: flex;
	justify-content: center;
}

button.if-button {
	color: #424797 !important;
	font-size: 24px;
	background: white !important;
	border-radius: 10px !important;
	padding: 5px 10px;
	font-family: 'Miso Bold', sans-serif;
	transition: 0.3s ease-out;
	overflow: hidden;
	z-index: 1;
	position: relative;
	margin: auto;
	display: flex;
	border: 0 !important;
}

button.if-button::before {
	content: '';
	background-color: #424797 !important; 
	height: 0;
	width: 100%;
	position: absolute;
	transition: all 0.3s ease-out;
	z-index: -1;
	left: 0;
	top: 0;
}

button.if-button:hover::before {
	height: 100%;
	transition: all 0.3s ease-in;
}
