/**
 * Le Fil Rouge Page Styles
 */

/* Reset any theme container constraints */
body.page-template-fil-rouge-template #qodef-page-wrapper,
body.page-template-fil-rouge-template #qodef-page-outer,
body.page-template-fil-rouge-template #qodef-page-inner,
body.page-template-fil-rouge-template .qodef-content-grid {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Remove top spacing before slider */
body.page-template-fil-rouge-template #qodef-page-inner {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.page-template-fil-rouge-template .qodef-content {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.page-template-fil-rouge-template .qodef-content-grid {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

/* Supprime toute marge au-dessus du slider et occupe tout l'espace */
body.page-template-fil-rouge-template #qodef-page-header,
body.page-template-fil-rouge-template #qodef-page-title {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.ibr-hero-slider {
	margin-top: 0 !important;
	padding-top: 0 !important;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw !important;
	height: 100vh !important;
	z-index: 10;
}

.ibr-fil-rouge-page {
	margin-top: 100vh;
}

/* Remove spacing between header and slider */
body.page-template-fil-rouge-template #qodef-page-header {
	margin-bottom: 0 !important;
}

body.page-template-fil-rouge-template .qodef-page-title {
	margin-bottom: 0 !important;
}

/* Ensure slider is truly full-width */
.ibr-hero-slider {
	margin-left: calc(-50vw + 50%) !important;
	margin-right: calc(-50vw + 50%) !important;
	width: 100vw !important;
	max-width: 100vw !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Hero Slider (same style as homepage) */
.ibr-hero-slider {
	position: relative;
	height: 100vh;
	overflow: hidden;
	margin: 0;
}

.ibr-slider-container {
	width: 100%;
	height: 100%;
}

.ibr-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
}

.ibr-slide.active {
	opacity: 1;
	visibility: visible;
}

.ibr-slide-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: transform 8s ease-out;
}

.ibr-slide.active .ibr-slide-bg {
	transform: scale(1.05);
}

.ibr-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
	z-index: 1;
}

.ibr-slide-content {
	position: relative;
	z-index: 2;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
}

.ibr-slide-title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	line-height: 1.2;
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ibr-slide-description {
	font-size: 1.1rem;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
	opacity: 0.95;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Navigation du slider */
.ibr-slider-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.ibr-slider-nav:hover {
	background: #b91c1c;
	border-color: #b91c1c;
	transform: translateY(-50%) scale(1.1);
}

.ibr-slider-prev {
	left: 1.5rem;
}

.ibr-slider-next {
	right: 1.5rem;
}

/* Indicateurs de slide */
.ibr-slider-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 12px;
}

.ibr-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	border: 2px solid rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.ibr-slider-dot:hover {
	background: rgba(255, 255, 255, 0.6);
	transform: scale(1.2);
}

.ibr-slider-dot.active {
	background: #b91c1c;
	border-color: #fff;
	transform: scale(1.3);
}

/* Animations */
@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.slide-up {
	animation: slideUp 0.8s ease-out forwards;
}

.slide-up-delay {
	animation: slideUp 0.8s ease-out 0.2s forwards;
	opacity: 0;
}

.slide-up-delay-2 {
	animation: slideUp 0.8s ease-out 0.4s forwards;
	opacity: 0;
}

.slide-up-delay-3 {
	animation: slideUp 0.8s ease-out 0.6s forwards;
	opacity: 0;
}

/* Container */
.ibr-fil-rouge-page {
	margin-top: 80px;
}

.ibr-fil-rouge-page .ibr-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Video Slider Section */
.ibr-filrouge-slider {
	margin-bottom: 60px;
	position: relative;
}

.ibr-video-slider {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}

.ibr-slider-item {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease-in-out;
}

.ibr-slider-item.active {
	display: block;
	opacity: 1;
}

.ibr-slide-wrapper {
	position: relative;
}

.ibr-slide-image {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	overflow: hidden;
	background: #000;
}

.ibr-slide-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ibr-video-wrapper {
	position: relative;
}

.ibr-video-embed {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
}

.ibr-video-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.ibr-video-info {
	background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 30px 20px;
	color: #fff;
}

.ibr-video-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 10px;
	color: #fff;
}

.ibr-video-description {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.95;
}

/* Slider Controls */
.ibr-slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}

.ibr-slider-prev,
.ibr-slider-next {
	background: #b91c1c;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ibr-slider-prev:hover,
.ibr-slider-next:hover {
	background: #991b1b;
	transform: scale(1.05);
}

.ibr-slider-dots {
	display: flex;
	gap: 10px;
	align-items: center;
}

.ibr-slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ddd;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.ibr-slider-dot.active {
	background: #b91c1c;
	width: 16px;
	height: 16px;
}

.ibr-slider-dot:hover {
	background: #b91c1c;
	opacity: 0.7;
}

/* Introduction Section */
.ibr-filrouge-intro {
	text-align: center;
	margin-bottom: 100px;
	padding: 48px 0 48px 0;
}

.ibr-intro-title {
	font-size: 3rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 32px;
	line-height: 1.15;
}

.ibr-intro-content {
	font-size: 1.375rem;
	line-height: 1.85;
	color: #374151;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 32px;
}

.ibr-intro-content p {
	margin-bottom: 24px;
	letter-spacing: 0.01em;
}

.ibr-intro-content p:last-child {
	margin-bottom: 0;
}

/* Latest Videos Section */
.ibr-filrouge-latest {
	margin-bottom: 80px;
}

.ibr-section-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 40px;
	text-align: center;
	line-height: 1.2;
}

.ibr-latest-videos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 32px;
}

.ibr-latest-video-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
	border: 1px solid #e5e7eb;
}

.ibr-latest-video-item:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	transform: translateY(-2px);
	border-color: #d1d5db;
}

.ibr-video-thumbnail {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	background: #000;
	overflow: hidden;
}

.ibr-video-thumbnail a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.ibr-video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.ibr-latest-video-item:hover .ibr-video-thumbnail img {
	transform: scale(1.05);
}

.ibr-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: transform 0.3s ease;
}

.ibr-latest-video-item:hover .ibr-play-button {
	transform: translate(-50%, -50%) scale(1.1);
}

.ibr-latest-video-info {
	padding: 24px;
}

.ibr-latest-video-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 12px;
	line-height: 1.4;
}

.ibr-latest-video-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ibr-latest-video-title a:hover {
	color: #b91c1c;
}

.ibr-latest-video-description {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #6b7280;
}

/* Social Feeds Section */
.ibr-filrouge-feeds {
	margin-bottom: 80px;
	text-align: center;
}

.ibr-social-feeds-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 40px;
	margin: 30px 0;
}

.ibr-feed-item {
	text-align: center;
}

.ibr-feed-subtitle {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 20px;
}

.ibr-instagram-feed,
.ibr-facebook-feed {
	margin: 20px 0;
}

.ibr-feed-cta {
	margin-top: 20px;
}

.ibr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.ibr-btn-instagram {
	background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
	color: #fff;
	border: none;
}

.ibr-btn-instagram:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(188, 24, 136, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
	.ibr-fil-rouge-page {
		margin-top: 60px;
	}

	.ibr-intro-title {
		font-size: 2rem;
	}

	.ibr-intro-content {
		font-size: 1rem;
	}

	.ibr-section-title {
		font-size: 1.75rem;
	}

	.ibr-latest-videos-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ibr-video-info {
		padding: 30px 20px 15px;
	}

	.ibr-video-title {
		font-size: 20px;
	}

	.ibr-video-description {
		font-size: 14px;
	}

	.ibr-slider-controls {
		gap: 15px;
	}

	.ibr-slider-prev,
	.ibr-slider-next {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 480px) {
	.ibr-fil-rouge-page {
		margin-top: 40px;
	}

	.ibr-fil-rouge-page .ibr-container {
		padding: 0 15px;
	}

	.ibr-intro-title {
		font-size: 1.75rem;
	}

	.ibr-section-title {
		font-size: 1.5rem;
	}

	.ibr-latest-video-info {
		padding: 20px;
	}

	.ibr-latest-video-title {
		font-size: 1rem;
	}
}

/* Scroll Animations */
.ibr-filrouge-intro,
.ibr-filrouge-latest,
.ibr-filrouge-feeds {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.ibr-filrouge-intro.ibr-animated,
.ibr-filrouge-latest.ibr-animated,
.ibr-filrouge-feeds.ibr-animated {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive: Stack feeds on mobile */
@media (max-width: 768px) {
	.ibr-social-feeds-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Accessibility */
.ibr-slider-prev:focus,
.ibr-slider-next:focus,
.ibr-slider-dot:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.ibr-btn-instagram:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.ibr-slider-controls,
	.ibr-btn-instagram {
		display: none;
	}
	
	.ibr-video-embed {
		border: 1px solid #ddd;
	}
}
