/*
Theme Name: ChaireJarislowsky
Theme URI:
Author: Erick Frappier
Author URI:
Description: Thème FSE pour Chaire Jarislowsky sur la confiance et le leadership politique de l’UQTR en collaboration avec l’ENAP
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chairejarislowsky
Tags: block-patterns, full-site-editing

*/





/*  Smooth Scroll */


html {
	scroll-behavior: smooth;
}

/*  Reduced motion prefs  */
@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}


.home .animation-fond {
	overflow:hidden;
}

.home .sigle-container{
	margin:-120px 20px -120px -120px !important;
}

@keyframes rotation {
  0% {
    transform: rotate3d(1, 0, 0, 33deg) rotate(0);
  }
  50% {
    transform: rotate3d(1, -3, 0, 33deg) rotate(180deg);
  }
	100% {
		transform: rotate3d(1, 0, 0, 33deg) rotate(360deg);
	}
}

@media (max-width: 780px) {
	.home .sigle-container {
		display: none !important;
	}
}

.home .logo-hb{
	opacity:0;
}
.home .sticky-masthead .logo-hb{
		opacity:1;
}

/*  Navigation Block Breakpoint. Credit: https://wpdocs.io/ */
body .wp-block-navigation__responsive-container-open:not(.always-shown) {
	display: block !important;
}

body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
	display: none !important;
}

@media (min-width: 800px) {
	body .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: none !important;
	}

	body .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: block !important;
	}
}

/* Fixes for Core Weirdnress whereby auto padding is applied that can drive you a litle bit nuts - better to add your own when and where you need it! */
.has-global-padding>.alignfull:where(:not(.has-global-padding):not(.is-layout-flex):not(.is-layout-grid))> :where([class*="wp-block-"]:not(.alignfull):not([class*="__"]), p, h1, h2, h3, h4, h5, h6, ul, ol) {
	padding-right: 0 !important;
	padding-left: 0 !important;
}

/*  Stop core margin top on groups and others - déjà fait on dirait */
.wp-block-group,
.wp-block-columns,
.wp-block-cover {
	/* margin-block-start: 0; */
}

.wp-block-group.has-background,
.wp-block-columns.has-background,
.wp-block-column.has-background,
p.has-background,
h1.has-background, h2.has-background, h3.has-background, h4.has-background, h5.has-background, h6.has-background{
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}


/* Remove underlines / show on hover  */

.wp-site-blocks a {
	text-decoration: none !important;
}

/* .entry-content a:hover:not(.wp-element-button,.wp-block-navigation-item) {
	text-decoration: underline !important;
} */


/* Search Button default: color */
.wp-block-search__button.wp-element-button {
	color: var(--wp--preset--color--base);
}


/* Button hover */
.wp-block-button__link {
	transition: .3s;
	display: flex;
	gap: 10px;
	opacity: .9;
}

.wp-block-button__link:hover {
	opacity: 1;
}

/* ------- Hide the Page Title in the Editor - it can get anoying! ------- */
/* .editor-editor-canvas__post-title-wrapper.edit-post-visual-editor__post-title-wrapper.has-global-padding h1 {
	display: none;
} */


/*  Espace avant footer */

/* .entry-content  > *:last-child{
  padding-bottom: 3em;
} */


/*  styles */

.overflow-visible{
	overflow:visible;
}
.z-index-10{
    z-index:10;
    position:relative;
}

/*  navigation  */

.wp-block-navigation .wp-block-navigation-item__content.wp-block-navigation-item__content{
	padding:6px;
	transition:color 250ms;
}
.wp-block-navigation .wp-block-navigation-item:hover,
.wp-block-navigation .wp-block-navigation-item.current-menu-item
{
		color: var(--wp--preset--color--custom-jaune);
}
.wp-block-navigation.items-justified-right .wp-block-navigation__container .has-child .wp-block-navigation__submenu-container{
	padding: 10px 0;
	left:-10px;
	border-radius:5px;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content{
	font-size:0.86em;
	padding:8px 16px;
	transition:color 250ms;
}


/*  navigation secondaire (voir script js)*/
/* body .nav-secondaire{
	display: none;
}

.wp-block-navigation__responsive-container-open {
	position:absolute;
	top:0;
	right:0;
}

@media (min-width: 800px) {
	body .wp-block-navigation__responsive-container-open:not(.always-shown),
	.nav-secondaire-mobile {
		display: none !important;
	}
	body .nav-secondaire{
		display: flex;
	}

} */







/*  pagination */

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination .wp-block-query-pagination-next,
.wp-block-query-pagination .wp-block-query-pagination-previous
{
	height: 30px;
	min-width:30px;
	text-align:center;
	display:inline-block;
	border:1px solid #bbb;
	padding:12px;
	transition: background-color 250ms ;
	background:#fff;
}
.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .wp-block-query-pagination-next:hover,
.wp-block-query-pagination .wp-block-query-pagination-previous:hover
{
	background-color:#eee;
	text-decoration:none !important;
}

.wp-block-query-pagination .page-numbers.current{
	 	background-color:var(--wp--preset--color--custom-jaune);
}



/* IMAGES OFFSETS */


/* .wp-block-image img {
 height: auto !important;
} */

/* .wp-block-post-content .image-container.aligncenter{
 display:flex;
 align-items: center;
 justify-content: center;
} */
.wp-block-post-content .wp-block-image.alignright,
.wp-block-post-content .image-container.alignright,
.wp-block-post-content .wp-block-image.alignleft,
.wp-block-post-content .image-container.alignleft{
	 margin-bottom:1em;
 }
@media screen and (min-width: 1280px) {
	.wp-block-post-content  > .wp-block-image.alignright{
		 margin-right:calc( ( 100% - var(--wp--style--global--wide-size) ) / 2 )  !important;
	}
	.wp-block-post-content  > .wp-block-image.alignleft{
		 margin-left:calc( ( 100% - var(--wp--style--global--wide-size) ) / 2 )  !important;
	}
}

@media screen and (min-width: 960px) {
 .wp-block-post-content .wp-block-image.alignleft,
 .wp-block-post-content .image-container.alignleft
	{
		 margin-right:28px;
		 padding-top:4px;
	}
 .wp-block-post-content .wp-block-image.alignright,
 .wp-block-post-content .image-container.alignright
		{
			margin-left:28px;
			padding-top:4px;
	}
}

@media screen and (max-width: 700px) {
 .wp-block-post-content .wp-block-image.alignleft,
 .wp-block-post-content .wp-block-image.alignright
	 {
			float:none;
			margin-right:auto;
			margin-left:auto;
	 }
}

.wp-block-file:not(.wp-element-button){
    font-size:1rem;
}
.wp-block-file .wp-element-button{
    color:#fff;
    text-transform:uppercase;
    font-size:0.9rem;
    padding:0.4em 0.8em;
}


.wp-block-post-featured-image{
  text-align:center;
}
.wp-block-post-featured-image :where(img){
  width:auto !important;
  max-height:500px;
}