/* ================================================
   IJMFes — Custom Stylesheet
   Institut Jamai de la Musique et d'Art Chorégraphique Fès
   Premium Design with Gold & Dark Theme Accents
   ================================================ */

/* ===== CSS Custom Properties ===== */
:root {
	--gold: #c9a84c;
	--gold-light: #e8d48b;
	--gold-dark: #a07d2e;
	--dark: #1a1a2e;
	--dark-soft: #16213e;
	--cream: #fdf6e3;
	--warm-white: #fefcf7;
	--text-dark: #2d2d2d;
	--text-muted: #6b6b6b;
	--accent-red: #c0392b;
	--accent-green: #27ae60;
	--accent-blue: #2980b9;
	--shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
	--shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
	--shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.2);
	--radius: 12px;
	--radius-lg: 20px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Scrollbar Theming ===== */
/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--dark);
}

::-webkit-scrollbar-thumb {
	background: var(--gold);
	border-radius: 5px;
	border: 2px solid var(--dark);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--gold-light);
}

/* Firefox */
html {
	scrollbar-color: var(--gold) var(--dark);
	scrollbar-width: thin;
}

/* Sidebar inner scrollbar */
#sidebar > .inner::-webkit-scrollbar {
	width: 6px;
}

#sidebar > .inner::-webkit-scrollbar-track {
	background: #eaeaea;
}

#sidebar > .inner::-webkit-scrollbar-thumb {
	background: var(--gold);
	border-radius: 3px;
}

#sidebar > .inner {
	scrollbar-color: var(--gold) #eaeaea;
	scrollbar-width: thin;
}

/* ===== Sidebar Sticky (Desktop) ===== */
@media screen and (min-width: 1281px) {
	#sidebar {
		position: sticky;
		top: 0;
		align-self: flex-start;
		height: 100vh;
		overflow: hidden;
	}

	#sidebar > .inner {
		height: 100%;
		overflow-y: auto;
		overflow-x: hidden;
	}
}

/* ===== Preloader ===== */
#preloader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background: linear-gradient(135deg, var(--dark) 0%, #0f0f23 40%, var(--dark-soft) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	transition: opacity 0.8s ease, visibility 0.8s ease;
	overflow: hidden;
}

#preloader.preloader-hidden {
	opacity: 0;
	visibility: hidden;
}

/* --- Floating Music Note Particles --- */
.preloader-particles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.preloader-particles .particle {
	position: absolute;
	color: var(--gold);
	opacity: 0;
	font-size: 1.5rem;
	animation: particleFloat 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 80%; animation-delay: 0s; font-size: 1.2rem; }
.particle:nth-child(2) { left: 25%; top: 85%; animation-delay: 0.8s; font-size: 1.8rem; }
.particle:nth-child(3) { left: 45%; top: 90%; animation-delay: 1.6s; font-size: 1rem; }
.particle:nth-child(4) { left: 60%; top: 82%; animation-delay: 0.4s; font-size: 2rem; }
.particle:nth-child(5) { left: 75%; top: 88%; animation-delay: 1.2s; font-size: 1.4rem; }
.particle:nth-child(6) { left: 88%; top: 84%; animation-delay: 2s; font-size: 1.6rem; }
.particle:nth-child(7) { left: 35%; top: 78%; animation-delay: 2.8s; font-size: 1.1rem; }
.particle:nth-child(8) { left: 55%; top: 92%; animation-delay: 3.4s; font-size: 1.3rem; }

@keyframes particleFloat {
	0% {
		opacity: 0;
		transform: translateY(0) rotate(0deg) scale(0.5);
	}
	20% {
		opacity: 0.4;
	}
	50% {
		opacity: 0.15;
	}
	100% {
		opacity: 0;
		transform: translateY(-100vh) rotate(360deg) scale(1);
	}
}

/* --- Staff Lines --- */
.preloader-staff {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: min(500px, 80vw);
	height: 80px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	opacity: 0.08;
}

.preloader-staff span {
	display: block;
	height: 1px;
	background: var(--gold);
	width: 100%;
	animation: staffReveal 1.5s ease-out forwards;
	transform: scaleX(0);
}

.preloader-staff span:nth-child(1) { animation-delay: 0.1s; }
.preloader-staff span:nth-child(2) { animation-delay: 0.2s; }
.preloader-staff span:nth-child(3) { animation-delay: 0.3s; }
.preloader-staff span:nth-child(4) { animation-delay: 0.4s; }
.preloader-staff span:nth-child(5) { animation-delay: 0.5s; }

@keyframes staffReveal {
	to { transform: scaleX(1); }
}

/* --- Main Content --- */
.preloader-inner {
	text-align: center;
	position: relative;
	z-index: 2;
	animation: preloaderFadeIn 1s ease-out forwards;
	opacity: 0;
}

@keyframes preloaderFadeIn {
	to { opacity: 1; }
}

/* --- Gold Ring Spinner --- */
.preloader-ring {
	width: 120px;
	height: 120px;
	margin: 0 auto 1.5rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.preloader-ring::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid rgba(201, 168, 76, 0.15);
}

.preloader-ring::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: var(--gold);
	border-right-color: var(--gold-light);
	animation: ringSpin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes ringSpin {
	to { transform: rotate(360deg); }
}

.preloader-note {
	font-size: 3rem;
	color: var(--gold);
	animation: noteGlow 2s ease-in-out infinite alternate;
	line-height: 1;
}

@keyframes noteGlow {
	0% {
		text-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
		transform: scale(1);
	}
	100% {
		text-shadow: 0 0 25px rgba(201, 168, 76, 0.7), 0 0 50px rgba(201, 168, 76, 0.3);
		transform: scale(1.08);
	}
}

/* --- Title & Subtitle --- */
.preloader-title {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	color: white;
	letter-spacing: 6px;
	text-transform: uppercase;
	margin: 0;
	animation: titleSlideUp 1s ease-out 0.3s both;
}

.preloader-subtitle {
	font-family: 'Raleway', sans-serif;
	font-size: 0.9rem;
	color: var(--gold);
	letter-spacing: 8px;
	text-transform: uppercase;
	margin: 0.5rem 0 0 0;
	animation: titleSlideUp 1s ease-out 0.5s both;
}

@keyframes titleSlideUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Loading Bar --- */
.preloader-bar {
	width: 160px;
	height: 2px;
	background: rgba(201, 168, 76, 0.15);
	border-radius: 2px;
	margin: 1.5rem auto 0;
	overflow: hidden;
	animation: titleSlideUp 1s ease-out 0.7s both;
}

.preloader-bar-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
	border-radius: 2px;
	animation: barFill 1.8s ease-in-out 0.8s forwards;
}

@keyframes barFill {
	to { width: 100%; }
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

.animate-fade-up {
	animation: fadeUp 0.8s ease-out forwards;
}

.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ===== Typography Enhancements ===== */
.text-gold {
	color: var(--gold);
	font-style: italic;
}

/* ===== Section Headers ===== */
.section-header {
	text-align: center;
	margin-bottom: 3rem !important;
}

.section-tag {
	display: inline-block;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	color: white;
	padding: 6px 20px;
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin-bottom: 1rem;
	font-family: 'Raleway', sans-serif;
}

.section-header h2 {
	font-family: 'Playfair Display', serif !important;
	font-size: 2.2rem !important;
	color: var(--text-dark);
}

.header-line {
	width: 80px;
	height: 3px;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
	margin: 1rem auto;
	border-radius: 2px;
}

.section-description {
	max-width: 650px;
	margin: 0 auto;
	color: var(--text-muted);
	font-size: 1.05rem;
	line-height: 1.7;
	text-align: center;
}

/* ===== Hero Banner ===== */
.hero-banner .content header h1 {
	font-family: 'Playfair Display', serif !important;
	font-size: 2.6rem !important;
	line-height: 1.2 !important;
	color: var(--text-dark);
}

.hero-subtitle {
	font-family: 'Raleway', sans-serif;
	color: var(--gold);
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-size: 0.8rem !important;
	margin-bottom: 0.5rem;
}

.hero-description {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-muted);
	text-align: justify;
}

#banner .image img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-medium);
}

/* ===== Video Presentation Section ===== */
.video-presentation-section {
	margin: 2rem 0 3rem 0;
	text-align: center;
}

.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-medium);
	background: var(--dark);
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-caption {
	margin-top: 1rem;
	font-size: 0.95rem;
	color: var(--text-muted);
	font-style: italic;
}

.video-caption i {
	color: var(--gold);
	margin-right: 6px;
}

/* ===== Button Base Override ===== */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	height: auto !important;
	line-height: 1.5 !important;
	padding: 12px 30px !important;
	border-radius: 30px !important;
	font-family: 'Raleway', sans-serif !important;
	font-weight: 600 !important;
	letter-spacing: 1px !important;
	transition: var(--transition) !important;
	box-shadow: inset 0 0 0 2px var(--gold) !important;
	color: var(--gold) !important;
	cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	background-color: rgba(201, 168, 76, 0.08) !important;
	transform: translateY(-2px);
}

/* ===== Primary Button Override ===== */
.button.primary,
button.primary,
input[type="submit"].primary {
	background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
	color: white !important;
	border: none !important;
	box-shadow: var(--shadow-gold) !important;
}

.button.primary:hover,
button.primary:hover,
input[type="submit"].primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(201, 168, 76, 0.35) !important;
	background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
}

.button.big {
	padding: 14px 35px !important;
	font-size: 0.85em !important;
}

/* Gallery nav & close buttons — reset pill styling */
.galleryUl button,
.closeI {
	border-radius: 50% !important;
	padding: 0 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	font-family: inherit !important;
	font-weight: normal !important;
}

/* ===== Stats Section ===== */
.stats-section {
	padding: 3rem 0;
	margin: 2rem 0;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.stat-item {
	text-align: center;
	padding: 2rem 1rem;
	background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
	border-radius: var(--radius);
	color: white;
	position: relative;
	overflow: hidden;
	transition: var(--transition);
}

.stat-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.stat-item:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-gold);
}

.stat-icon {
	font-size: 1.8rem;
	color: var(--gold);
	display: block;
	margin-bottom: 0.8rem;
}

.stat-number {
	font-family: 'Playfair Display', serif;
	font-size: 2.8rem;
	font-weight: 700;
	color: var(--gold-light);
	display: inline;
}

.stat-number-suffix {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	color: var(--gold-light);
}

.stat-label {
	display: block;
	font-family: 'Raleway', sans-serif;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.5rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

/* ===== Presentation Section ===== */
.presentation-content {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 3rem;
	align-items: start;
}

.presentation-text p {
	text-align: justify;
	line-height: 1.9;
	color: var(--text-muted);
	margin-bottom: 1.2rem;
}

.presentation-highlights {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.highlight-card {
	background: var(--warm-white);
	border: 1px solid rgba(201, 168, 76, 0.15);
	border-radius: var(--radius);
	padding: 1.5rem;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.highlight-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, var(--gold), var(--gold-dark));
}

.highlight-card:hover {
	transform: translateX(5px);
	box-shadow: var(--shadow-soft);
	border-color: var(--gold);
}

.highlight-card span {
	font-size: 1.5rem;
	color: var(--gold);
	margin-bottom: 0.5rem;
	display: block;
}

.highlight-card h4 {
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	margin-bottom: 0.3rem;
	color: var(--text-dark);
}

.highlight-card p {
	font-size: 0.9rem;
	color: var(--text-muted);
	margin: 0;
	line-height: 1.6;
}

/* ===== Director Card ===== */
.director-card {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	margin-top: 3rem;
	background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
	border-radius: var(--radius-lg);
	padding: 2.5rem;
	position: relative;
	overflow: hidden;
}

.director-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.director-photo {
	flex-shrink: 0;
}

.director-photo img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--gold);
	box-shadow: 0 0 30px rgba(201, 168, 76, 0.25);
}

.director-info {
	flex: 1;
}

.director-label {
	display: inline-block;
	font-family: 'Raleway', sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--gold);
	background: rgba(201, 168, 76, 0.12);
	padding: 4px 14px;
	border-radius: 20px;
	margin-bottom: 0.6rem;
}

.director-info h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	color: white;
	margin: 0.3rem 0 0.2rem;
}

.director-title {
	font-family: 'Raleway', sans-serif;
	font-size: 0.95rem;
	color: var(--gold-light);
	font-weight: 500;
	margin: 0 0 1rem 0;
	letter-spacing: 0.5px;
}

.director-bio {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.8;
	margin: 0;
	text-align: justify;
}

/* ===== Actualités Section ===== */
.actualites-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.actu-card {
	background: white;
	border-radius: var(--radius);
	padding: 2rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.actu-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-medium);
}

.actu-featured {
	border: 2px solid var(--gold);
	background: linear-gradient(135deg, var(--warm-white), white);
}

.actu-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--accent-green), #2ecc71);
	color: white;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.actu-badge-info {
	background: linear-gradient(135deg, var(--accent-blue), #3498db);
}

.actu-badge-event {
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
}

.actu-badge-ended {
	background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.actu-badge-active {
	background: linear-gradient(135deg, var(--accent-green), #2ecc71);
}

.actu-icon {
	font-size: 2rem;
	color: var(--gold);
	margin-bottom: 1rem;
}

.actu-card h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.2rem;
	margin-bottom: 0.8rem;
	color: var(--text-dark);
}

.actu-card p {
	font-size: 0.95rem;
	color: var(--text-muted);
	line-height: 1.7;
	text-align: justify;
}

.actu-meta {
	margin-top: 1rem;
	font-size: 0.85rem;
	color: var(--gold-dark);
	font-weight: 600;
}

.actu-meta span {
	margin-right: 8px;
}

/* ===== Matières / Disciplines ===== */
.matieres-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.matiere-card {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background: white;
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.matiere-card::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--gold), var(--gold-light));
	transform: scaleX(0);
	transition: transform 0.4s ease;
}

.matiere-card:hover::before {
	transform: scaleX(1);
}

.matiere-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-medium);
}

.matiere-icon {
	width: 80px;
	height: 80px;
	min-width: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--cream), var(--warm-white));
	border-radius: 50%;
	padding: 15px;
	border: 2px solid rgba(201, 168, 76, 0.2);
	transition: var(--transition);
}

.matiere-card:hover .matiere-icon {
	border-color: var(--gold);
	box-shadow: var(--shadow-gold);
}

.matiere-icon img {
	width: 45px;
	height: 45px;
	object-fit: contain;
}

.matiere-content h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.15rem;
	margin-bottom: 0.4rem;
	color: var(--text-dark);
}

.matiere-content p {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.6;
	text-align: justify;
	margin: 0;
}

/* ===== Events Timeline ===== */
.events-timeline {
	display: grid;
	gap: 2rem;
}

.event-card {
	display: grid;
	grid-template-columns: 100px 280px 1fr;
	gap: 1.5rem;
	align-items: start;
	background: white;
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	box-shadow: var(--shadow-soft);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: var(--transition);
	position: relative;
	overflow: hidden;
}

.event-featured {
	border: 2px solid var(--gold);
	background: linear-gradient(135deg, var(--warm-white) 0%, white 100%);
}

.event-featured::after {
	content: '★';
	position: absolute;
	top: 15px;
	right: 15px;
	color: var(--gold);
	font-size: 1.5rem;
}

.event-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-medium);
}

.event-date {
	text-align: center;
	background: linear-gradient(135deg, var(--dark), var(--dark-soft));
	color: white;
	border-radius: var(--radius);
	padding: 1rem 0.5rem;
	min-height: 90px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.event-day {
	font-family: 'Playfair Display', serif;
	font-size: 2rem;
	font-weight: 700;
	color: var(--gold-light);
	line-height: 1;
}

.event-month {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.3rem;
}

.event-image {
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
}

.event-image img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: var(--radius);
	transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
	transform: scale(1.05);
}

.event-category {
	position: absolute;
	top: 10px;
	left: 10px;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.event-details h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

.event-details p {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.7;
	text-align: justify;
}

.event-info {
	display: flex;
	gap: 1.5rem;
	margin-top: 0.8rem;
	font-size: 0.85rem;
	color: var(--gold-dark);
	font-weight: 600;
}

.event-info i {
	margin-right: 5px;
}

.event-details .actions {
	margin-top: 1rem;
}

/* ===== Instagram CTA ===== */
.instagram-cta {
	margin-top: 3rem;
}

.instagram-cta-content {
	display: flex;
	align-items: center;
	gap: 2rem;
	background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
	border-radius: var(--radius-lg);
	padding: 2rem 2.5rem;
	color: white;
}

.instagram-icon {
	font-size: 3rem !important;
	color: white !important;
}

.instagram-cta-content h3 {
	font-family: 'Playfair Display', serif;
	color: white;
	margin: 0 0 0.3rem 0;
	font-size: 1.3rem;
}

.instagram-cta-content p {
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	font-size: 0.95rem;
}

.instagram-cta-content p strong {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	font-weight: 700;
	letter-spacing: 0.02em;
	background: rgba(255, 255, 255, 0.18);
	padding: 2px 8px;
	border-radius: 4px;
}

.instagram-cta-content .button {
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.2) !important;
	border: 2px solid white !important;
	box-shadow: none !important;
	color: white !important;
	border-radius: 30px !important;
	backdrop-filter: blur(10px);
}

.instagram-cta-content .button:hover {
	background: white !important;
	color: #833ab4 !important;
	border-color: white !important;
}

.instagram-cta-content > div {
	flex: 1;
}
/* ===== Sidebar Enhancements ===== */

/* Sidebar Instagram CTA */
.sidebar-instagram .button.fit {
	margin-top: 0.5rem;
}

/* Horaires Card */
.horaires-card {
	background: linear-gradient(135deg, var(--cream), var(--warm-white));
	border-radius: var(--radius);
	padding: 1.2rem;
	margin-bottom: 1.5rem;
	border-left: 4px solid var(--gold);
}

.horaires-card h4 {
	font-family: 'Playfair Display', serif;
	color: var(--text-dark);
	font-size: 1rem;
	margin-bottom: 0.8rem;
}

.horaires-card h4 i {
	color: var(--gold);
	margin-right: 8px;
}

.horaires-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.horaires-card li {
	padding: 4px 0;
	font-size: 0.9rem;
	color: var(--text-muted);
}

/* Sidebar Contact Links */
#contact .contact a {
	color: inherit;
	border-bottom: 1px dotted var(--gold);
	transition: color 0.2s;
}

#contact .contact a:hover {
	color: var(--gold);
}

/* Map iframe */
#contact iframe {
	border-radius: var(--radius) !important;
	margin-top: 1rem;
}

/* Footer */
#footer .copyright {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* ===== Responsive ===== */

/* ---------- Tablet / Medium (max-width: 980px) ---------- */
@media screen and (max-width: 980px) {
	/* Stats: 2 columns */
	.stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Presentation: stack text + highlights */
	.presentation-content {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* Actualités: 1 column */
	.actualites-grid {
		grid-template-columns: 1fr;
	}

	/* Disciplines: 1 column */
	.matieres-grid {
		grid-template-columns: 1fr;
	}

	/* Events: stack columns */
	.event-card {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.event-date {
		flex-direction: row;
		gap: 0.5rem;
		min-height: auto;
		padding: 0.8rem 1.5rem;
	}

	.event-featured::after {
		background: rgba(26, 26, 46, 0.75);
		border-radius: 50%;
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1rem;
		top: 8px;
		right: 8px;
		line-height: 1;
	}

	.event-image img {
		height: 220px;
	}

	/* Instagram CTA: stack */
	.instagram-cta-content {
		flex-direction: column;
		text-align: center;
	}

	/* Director card: stack */
	.director-card {
		flex-direction: column;
		text-align: center;
		padding: 2rem;
		gap: 1.5rem;
	}

	.director-photo img {
		width: 140px;
		height: 140px;
	}

	.director-info h3 {
		font-size: 1.3rem;
	}

	.director-bio {
		text-align: center;
	}

	/* Hero */
	.hero-banner .content header h1 {
		font-size: 2rem !important;
	}

	.hero-description {
		font-size: 1rem;
	}

	/* Sections */
	.section-header {
		margin-bottom: 2rem !important;
	}

	.section-header h2 {
		font-size: 1.8rem !important;
	}

	/* Buttons on mobile sidebar */
	.button.big {
		padding: 12px 25px !important;
		font-size: 0.8em !important;
	}
}

/* ---------- Small Tablet / Large Phone (max-width: 736px) ---------- */
@media screen and (max-width: 736px) {
	/* Global text justify on mobile */
	p,
	.presentation-text p,
	.actu-card p,
	.matiere-content p,
	.event-details p,
	.highlight-card p,
	.director-info p,
	.instagram-cta-content p,
	.hero-description,
	.section-description {
		text-align: justify !important;
	}

	/* Hero */
	.hero-banner .content header h1 {
		font-size: 1.8rem !important;
	}

	.hero-subtitle {
		font-size: 0.7rem !important;
		letter-spacing: 1px;
	}

	.hero-description {
		font-size: 0.95rem;
		line-height: 1.7;
	}

	/* Video presentation */
	.video-caption {
		font-size: 0.85rem;
	}

	/* Stats */
	.stats-grid {
		gap: 1rem;
	}

	.stat-item {
		padding: 1.5rem 0.8rem;
	}

	.stat-number {
		font-size: 2.2rem;
	}

	.stat-label {
		font-size: 0.75rem;
	}

	/* Presentation */
	.presentation-text p {
		font-size: 0.95rem;
		line-height: 1.7;
	}

	.highlight-card {
		padding: 1.2rem;
	}

	/* Actualités */
	.actu-card {
		padding: 1.5rem;
	}

	.actu-card h3 {
		font-size: 1.1rem;
	}

	.actu-card p {
		font-size: 0.9rem;
	}

	/* Disciplines */
	.matiere-card {
		gap: 1rem;
		padding: 1.2rem;
	}

	.matiere-icon {
		width: 65px;
		height: 65px;
		min-width: 65px;
		padding: 12px;
	}

	.matiere-icon img {
		width: 35px;
		height: 35px;
	}

	.matiere-content h3 {
		font-size: 1.05rem;
	}

	.matiere-content p {
		font-size: 0.85rem;
	}

	/* Events */
	.event-details h3 {
		font-size: 1.05rem;
	}

	.event-details p {
		font-size: 0.85rem;
	}

	.event-image img {
		height: 180px;
	}

	.event-info {
		flex-wrap: wrap;
		gap: 0.8rem;
		font-size: 0.8rem;
	}

	/* Instagram CTA */
	.instagram-cta-content {
		padding: 1.5rem;
		gap: 1.2rem;
	}

	.instagram-icon {
		font-size: 2.2rem !important;
	}

	.instagram-cta-content h3 {
		font-size: 1.1rem;
	}

	.instagram-cta-content p {
		font-size: 0.85rem;
	}

	/* Section headers */
	.section-header h2 {
		font-size: 1.6rem !important;
	}

	.section-description {
		font-size: 0.95rem;
	}

	.section-tag {
		font-size: 0.65rem;
		padding: 5px 15px;
	}

	/* Sidebar */
	.horaires-card {
		padding: 1rem;
	}

	.horaires-card li {
		font-size: 0.85rem;
	}
}

/* ---------- Phone (max-width: 600px) ---------- */
@media screen and (max-width: 600px) {
	/* Stats: 2 compact columns */
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 0.8rem;
	}

	.stat-item {
		padding: 1.2rem 0.6rem;
	}

	.stat-number {
		font-size: 2rem;
	}

	.stat-number-suffix {
		font-size: 1.4rem;
	}

	/* Hero */
	.hero-banner .content header h1 {
		font-size: 1.6rem !important;
	}

	/* Events */
	.event-card {
		padding: 1rem;
		gap: 0.8rem;
	}

	.event-date {
		padding: 0.6rem 1rem;
	}

	.event-day {
		font-size: 1.5rem;
	}

	.event-month {
		font-size: 0.65rem;
	}

	.event-image img {
		height: 150px;
	}

	.event-featured::after {
		font-size: 1.2rem;
		top: 10px;
		right: 10px;
	}

	/* Buttons */
	.button.big {
		padding: 10px 20px !important;
		font-size: 0.75em !important;
		width: 100%;
		text-align: center;
	}

	.hero-banner .actions {
		flex-direction: column;
		gap: 0.5rem;
	}

	.hero-banner .actions li {
		width: 100%;
	}

	.hero-banner .actions .button {
		width: 100%;
		text-align: center;
	}

	/* Matiere card: stack on very small */
	.matiere-card {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem 1rem;
	}

	.matiere-content p {
		text-align: center;
	}

	/* Instagram CTA */
	.instagram-cta-content .button {
		width: 100%;
		text-align: center;
	}
}

/* ---------- Small Phone (max-width: 480px) ---------- */
@media screen and (max-width: 480px) {
	/* Stats: 1 column */
	.stats-grid {
		grid-template-columns: 1fr;
	}

	/* Hero */
	.hero-banner .content header h1 {
		font-size: 1.4rem !important;
	}

	.hero-subtitle {
		font-size: 0.65rem !important;
	}

	.hero-description {
		font-size: 0.9rem;
	}

	/* Section headers */
	.section-header h2 {
		font-size: 1.3rem !important;
	}

	.section-tag {
		font-size: 0.6rem;
		padding: 4px 12px;
		letter-spacing: 1px;
	}

	.section-description {
		font-size: 0.85rem;
	}

	/* Video caption */
	.video-caption {
		font-size: 0.8rem;
	}

	/* Presentation paragraph */
	.presentation-text p {
		font-size: 0.9rem;
		line-height: 1.7;
	}

	/* Events */
	.event-details h3 {
		font-size: 0.95rem;
	}

	.event-details p {
		font-size: 0.8rem;
		line-height: 1.6;
	}

	.event-info {
		flex-direction: column;
		gap: 0.4rem;
	}

	.event-card .actions .button {
		width: 100%;
		text-align: center;
		font-size: 0.75rem !important;
	}

	/* Actualités */
	.actu-card {
		padding: 1.2rem;
	}

	.actu-card h3 {
		font-size: 1rem;
	}

	.actu-card p {
		font-size: 0.85rem;
	}

	.actu-icon {
		font-size: 1.6rem;
	}

	/* Instagram CTA */
	.instagram-cta-content {
		padding: 1.2rem;
		gap: 1rem;
	}

	.instagram-icon {
		font-size: 1.8rem !important;
	}

	.instagram-cta-content h3 {
		font-size: 1rem;
	}

	/* Sidebar contact */
	#contact .contact li {
		font-size: 0.85rem;
	}

	/* Map */
	#contact iframe {
		height: 200px;
	}

	/* Preloader */
	.preloader-ring {
		width: 90px;
		height: 90px;
	}

	.preloader-note {
		font-size: 2.2rem;
	}

	.preloader-title {
		font-size: 1.4rem;
		letter-spacing: 4px;
	}

	.preloader-subtitle {
		font-size: 0.7rem;
		letter-spacing: 5px;
	}
}

/* ---------- Landscape orientation fixes ---------- */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.hero-banner .content header h1 {
		font-size: 1.4rem !important;
	}

	.stats-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.stat-item {
		padding: 1rem 0.5rem;
	}

	.stat-number {
		font-size: 1.8rem;
	}
}

/* ---------- Print --------- */
@media print {
	#preloader,
	#sidebar,
	.toggle,
	.instagram-cta,
	.hiddenDiv {
		display: none !important;
	}

	.animate-on-scroll {
		opacity: 1 !important;
		transform: none !important;
	}

	.event-card,
	.actu-card,
	.matiere-card {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}
}

/* ===== Smooth scrollbar ===== */
html {
	scroll-behavior: smooth;
}

/* ===== Selection Color ===== */
::selection {
	background: var(--gold);
	color: white;
}

::-moz-selection {
	background: var(--gold);
	color: white;
}

/* ===== Sidebar Menu Icons ===== */
#menu ul li a i {
	color: var(--gold);
	margin-right: 8px;
	width: 20px;
	text-align: center;
}

/* ===== Hide toggle when sidebar is visible ===== */
#sidebar:not(.inactive) .toggle {
	opacity: 0;
	pointer-events: none;
}

/* Smooth transition for toggle visibility */
#sidebar .toggle {
	transition: left 0.5s ease, opacity 0.3s ease;
}
