/**
 * Page — Le Périscope sur un plateau
 */


 /* ——— Base page ——— */
.page-template-template-periscope-plateau header {
	margin-bottom: 0px;
}
@media screen and (max-width:2000px){
	.page-template-template-periscope-plateau header {
		margin-bottom: 0px;
	}
}


.page-template-template-periscope-plateau main{
	padding-bottom:0!important;
}
.page-periscope-plateau {
	font-family: var(--font-family);
	color: var(--color-noir);
	background: var(--color-blanc);
	line-height: normal;
 }
.page-periscope-plateau img{
	width:100%;
}
.page-periscope-plateau a {
	text-decoration: none;
}
 
 /* ——— HERO ——— */

.psp-hero-container{
	position:relative;
		overflow: hidden;

}
.psp-hero-container:after{
	content:"";
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:linear-gradient(0deg, var(--color-noir) 0%, transparent 30% );
	z-index: 3;	
	pointer-events:none;
}

.psp-hero__block {
    display: flex;
}
.psp-hero__block .ph-block__content{
    width: 50%;
    min-height: 80vh;
    position: relative;
    justify-content: center;
    flex-direction: column;
    display: flex;
    gap: 20px;
    align-items: start;
	z-index: 4;
	/*padding: 100px 0 75px;*/
	padding:100px 50px 75px 0;
}
.psp-hero__block .ph-block__text {
    max-width: 390px;
}
.media-psp-hero {
	/*position:relative;
	width: 100%;*/   
	position:absolute;
	left: calc((100vw - 1400px) / -2);
	top:0;
	width:50vw;
	height:100%;
}
.media-psp-hero:before{
	content:"";
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:linear-gradient(-90deg, var(--color-noir) 0%, rgba(0,0,0,0.2) 30% );
	z-index: 2;
	pointer-events:none;
}
.media-psp-hero:after{
	content:"";
	position:absolute;
	left:0;
	top:0;
	/*width:calc(100% + (100vw - 1400px)/2 + 60px);*/
	width: 100%;
	height:100%;
	background:url("/wp-content/themes/periscope/assets/medias/nouveautes-img.webp");
	background-size:cover;
	background-position:center bottom;
	background-repeat:no-repeat;
	pointer-events:none;
	z-index: 1;
}

/* TEXTE */
.psp-hero_h1{
	font-size:var(--title-xl);
	font-weight:600;
	margin-bottom:0;
}
.psp-hero_text{
	font-size:var(--title-mb);
	margin-bottom:0;
}
.psp-concept_title{
	font-size:var(--title-lg);
	font-weight:600;
}

/* CONCEPT */
.psp-block__concept {
    background: var(--color-jaune);
    padding: 30px;
    border-radius: 30px;
    color: black;
	display: flex;
    flex-direction: column;
    align-items: center;
	margin: 20px 0;
	max-width: 100%;
	width: 100%;
}
.psp-concept_addition {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
	flex-wrap: wrap;
}
.psp-concept_addition-item {
    display: flex;
    gap: 10px;
    align-items: center;
}
.psp-concept_addition-number {
    font-size: var(--title-xl);
    font-weight: 700;
	line-height: 1;
}
.psp-concept_addition-txt {
    font-weight: 600;
    font-size:var(--title-md);
	line-height: 24px;
}
.psp-concept_total .psp-concept_addition-txt {
    font-weight: 300;
}
.psp-concept_addition-plus {
    font-size: var(--title-xxl);
    line-height: 40px;
}
.psp-concept_total {
    background: white;
    padding: 15px 20px;
    border-radius: 14px;
	margin-top: 20px;
	max-width:400px;
}


/* VIDEO HEADER */
.video-psp-hero {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-psp-hero .psp-list{
	width: 100%;
	padding-left: 0px;
	z-index:4;
}
.video-psp-hero-mobile{
	display:none;
}

@media screen and (max-width:1400px){
	/*.media-psp-hero:after{
		width:calc(100% + 60px);
	}*/
	.media-psp-hero {
		width: 50%; 
		left:0;
	}
}
@media screen and (max-width:990px){
	.media-psp-hero:after{
		/*width:calc(100% + 80px);
		left:-40px;*/
		width:calc(100% + 0px);
		left:0px;
		background-position: center;
	}
	.media-psp-hero:before{
		width:calc(100% + 80px);
		left:-40px;
		background:linear-gradient(0deg, var(--color-noir) 0%,  rgba(0,0,0,0.2) 30% );
	}
	
	.psp-hero__block {
		/*flex-direction: column-reverse;*/
		flex-direction: column;
	}
	.psp-hero__block .ph-block__content{
		min-height: unset;
		gap: 10px;
		/*padding: 0px 0 60px;*/
		padding: 60px 0 0;
		width:100%;
	}
	.video-psp-hero{
		display:none;
	}
	.video-psp-hero-mobile{
		display:flex;
		width:100%;
		margin-top: 20px;
	}
	.video-psp-hero .psp-list{
		padding: 0;
	}
	.media-psp-hero {
		height: 35vh;
		width: 100%;
	}
	.psp-block__concept {
		width: fit-content;
	}
	.psp-concept_addition {
		gap: 12px;
	}
	.psp-block__concept{
		padding: 25px 40px;
	}
	.psp-list .psp-item{
		gap: 20px;
	}

}
@media screen and (max-width:767px){
	.media-psp-hero:after{
		width:calc(100% + 40px);
		left:-20px;
	}
	.psp-hero__block .ph-block__content {
        align-items: start;
        text-align: left;
		/*padding-top:0;*/
    }
	.psp-block__concept{
		padding:20px;
	}
	.psp-concept_addition {
		flex-direction: column;
		gap: 0;
	}
	.psp-concept_addition-item br{
		display:none;
	}
}



 /* ——— EPISODES ——— */
.psp-videos{
	color:white;
	/*background:var(--color-noir);*/
	background-image:url("/wp-content/themes/periscope/assets/medias/fond-videos.jpg");
	background-size:cover;
	background-repeat:no-repeat;
	position:relative;
	    background-position: center;
}
.psp-videos:after{
	content:"";
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	background:linear-gradient(180deg, var(--color-noir) 0%, transparent 100px, transparent 50%, var(--color-noir) 80% );
	z-index: 1;
	pointer-events:none;		
}
.psp-videos_content{
	z-index:2;
	    display: flex;
    flex-direction: column;
    align-items: center;
	position:relative;
	padding: 100px 0;
}
.psp-format{
	font-size:var(--title-md);
	text-align:center;
	font-weight:500;
}

.psp-videos__block .ph-tag-sm {
    margin: 90px 0 30px;
}
.psp-videos-list .psp-list{
	display:flex;
	gap:30px;
	justify-content: center;
	flex-wrap: wrap;
}
.psp-videos-list{
	width:100%;
}
.psp-videos-list .psp-item{
	/*max-width: calc(50% - 15px);*/
	width:600px;
}
.psp-videos-list .psp-item__title {
    font-size: var(--text-base);
    font-weight: 700;
}
.psp-item__pres {
    font-size: var(--text-sm);
}

.psp-videos_media-top, .psp-videos_media-bottom{
	display:none;
    position: relative;
    height: 400px;
}
.psp-videos_media-top img, .psp-videos_media-bottom img{
	object-fit:cover;
	object-position:center;
}
.psp-videos_media-top:after, .psp-videos_media-bottom:after{
	content:"";
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	z-index: 2;
	pointer-events:none;
}
.psp-videos_media-top:after{
	background:linear-gradient(180deg, var(--color-noir) 0%, transparent 60px, transparent 50%, var(--color-noir) 100%);
}
.psp-videos_media-bottom:after{
	background:linear-gradient(180deg, var(--color-noir) 0%, transparent 30% );
}

.psp-pour-animation {
	font-size: 130px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	position: relative;
	display: inline-block;
	height: 1em;
	min-width: 12ch; /* évite le saut de largeur entre les mots */
}

.psp-pour-animation span {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	margin: 0;
	animation-duration: 3s;
	animation-timing-function: step-end; /* changement sec, sans fondu */
	animation-iteration-count: infinite;
}

.psp-pour-animation span:nth-child(1) { animation-name: psp-word-1; }
.psp-pour-animation span:nth-child(2) { animation-name: psp-word-2; }
.psp-pour-animation span:nth-child(3) { animation-name: psp-word-3; }

@keyframes psp-word-1 {
	0%, 33.333%   { opacity: 1; visibility: visible; }
	33.334%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes psp-word-2 {
	0%, 33.332%     { opacity: 0; visibility: hidden; }
	33.333%, 66.666% { opacity: 1; visibility: visible; }
	66.667%, 100%   { opacity: 0; visibility: hidden; }
}

@keyframes psp-word-3 {
	0%, 66.665%  { opacity: 0; visibility: hidden; }
	66.666%, 100% { opacity: 1; visibility: visible; }
}

@media screen and (max-width:1200px){
	.psp-pour-animation {
		font-size: 110px;
	}
	
}
@media screen and (max-width:990px){
	.psp-videos-list .psp-list{
		flex-direction: column;
		align-items:center;
	}
	.psp-list .psp-item{
		align-items: start;
		max-width:100%;
	}
	.psp-list .psp-item__media{
		width:100%;
	}
	.psp-pour-animation {
		font-size: 90px;
	}
	.psp-list .psp-item{
		gap:20px;
	}
	.psp-videos__block .ph-tag-sm {
		margin: 70px 0 30px;
	}
	.psp-videos_content{
		padding: 0px 0;
	}
	
	.psp-videos{
		background:var(--color-noir);
		background-image:none!important;
	}
	.psp-videos:after{
		display:none;
	}
	.psp-videos_media-top, .psp-videos_media-bottom{
		display:flex;
	}
}
@media screen and (max-width:767px){
	.psp-pour-animation {
		font-size: 50px;
	}
	.psp-videos__block .ph-tag-sm {
		margin: 60px 0 30px;
	}
	
	.psp-videos_media-top, .psp-videos_media-bottom{
		height: 300px;
	}

}






/* SHORTCODE PERISCOPE SUR PLATEAU */

.psp-list .psp-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.psp-list .psp-item__media,
.psp-list .psp-item__content {
	width: 100%;
}

.psp-list .psp-item__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	border-radius: 30px;
}

.psp-list .psp-cover,
.psp-list .psp-player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.psp-list .psp-cover {
	object-fit: cover;
}

.psp-list .psp-player--html {
	object-fit: contain;
	background: #000;
}

/* Cover + play au-dessus du lecteur */
.psp-list .psp-item__media--cover .psp-player {
	z-index: 1;
	pointer-events: none;
}

.psp-list .psp-cover,
.psp-list .psp-play {
	z-index: 2;
}

.psp-list .psp-item__media.is-playing .psp-cover,
.psp-list .psp-item__media.is-playing .psp-play {
	display: none !important;
}

.psp-list .psp-item__media.is-playing .psp-player {
	pointer-events: auto;
}

.psp-list .psp-item__media--cover {
	cursor: pointer;
}

.psp-list .psp-play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #ffdd00;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.psp-list .psp-item__media--cover:hover .psp-play {
	opacity: 0.65;
}

.psp-list .psp-play__icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border-color: transparent transparent transparent #fff;
	border-style: solid;
	border-width: 11px 0 11px 19px;
}

.psp-list .psp-item__title {
	margin: 0 0 0.5em;
}

@media screen and (max-width: 1000px) {
	.psp-list .psp-play {
		width: 62px;
		height: 62px;

	}
}

@media screen and (max-width: 768px) {
	.psp-list .psp-play {
		width: 52px;
		height: 52px;

	}
}