/*!
 * Celtiis Club Presse — Styles globaux du thème
 * Conçu et développé par KAMGOKO (https://kamgoko.tech)
 * Copyright 2026 KAMGOKO. Tous droits réservés.
 */
/**
 * Override Bootstrap variables and provide global custom styles
 */
:root {
	--bs-body-bg: #f2f2f2;
	--bs-body-bg-2: #DCDDDE80;
	/* Primary: #8DC63F */
	--bs-primary: #8DC63F;
	--bs-primary-rgb: 141, 198, 63;

    --lp-primary-color: var(--bs-primary);
    --lp-secondary-color: var(--bs-secondary);
	
	/* Secondary: #1D3D70 */
	--bs-secondary: #1D3D70;
	--bs-secondary-rgb: 29, 61, 112;

	/* Links */
	--bs-link-color: var(--bs-secondary);
	--bs-link-color-rgb: 29, 61, 112;
	--bs-link-hover-color: #1D3D7099;
	--bs-border-color: #1D3D7033;

	/* --- NOUVELLES COULEURS (Header) --- */
	--cp-header-gradient: linear-gradient(90deg, #93C13D 0%, #1C3B71 100%);
	--cp-search-border: rgba(255, 255, 255, 0.6);
	--cp-search-text: #AAB7C3;
	--cp-espace-bg: rgba(141, 215, 245, 0.52);
	--cp-espace-text: #BCE2FD;
	--cp-header-height: 105px;
	--cp-header-z-index: 1040;
	--bs-offcanvas-zindex: 1045;
    --bs-modal-zindex: 1055;

	/* --- NOUVELLES COULEURS (Cartes) --- */
	--cp-card-shadow: 0px 0px 1px rgba(40, 41, 61, 0.04), 0px 2px 4px rgba(96, 97, 112, 0.16);
	--cp-card-shadow-hover: 0px 8px 16px rgba(96, 97, 112, 0.24);
	--cp-text-muted: rgba(29, 61, 112, 0.6);
	--cp-press-card-bg: #FFFFFF;
}

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Book.otf);
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Medium.otf);
    font-weight: 500;
    font-style: normal;
}
/* 
@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Medium.otf);
    font-weight: 600;
    font-style: normal;
} */

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Bold.otf);
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Bold.otf);
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-Ultra.otf);
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-UltraItalic.otf);
    font-weight: 900;
    font-style: italic;
}
@font-face {
    font-family: "Gotham";
    src: url(../fonts/Gotham/Gotham-UltraItalic.otf);
    font-weight: 900;
    font-style: italic;
}

/* Button overrides using Bootstrap 5.3 CSS variables */
.btn {
	border-radius: 6px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 16px;
    display: inline-flex;
	justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}
.btn-primary {
	--bs-btn-color: var(--bs-secondary);
	--bs-btn-bg: var(--bs-primary);
	--bs-btn-border-color: var(--bs-primary);
	--bs-btn-hover-color: var(--bs-secondary);
	--bs-btn-hover-bg: #7ab32f;
	--bs-btn-hover-border-color: #7ab32f;
	--bs-btn-focus-shadow-rgb: 141, 198, 63;
	--bs-btn-active-color: var(--bs-secondary);
	--bs-btn-active-bg: #699e23;
	--bs-btn-active-border-color: #699e23;
	--bs-btn-disabled-color: var(--bs-secondary);
	--bs-btn-disabled-bg: #b9e383;
	--bs-btn-disabled-border-color: #b9e383;
}

.btn-secondary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--bs-secondary);
	--bs-btn-border-color: var(--bs-secondary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #162e55;
	--bs-btn-hover-border-color: #162e55;
	--bs-btn-focus-shadow-rgb: 29, 61, 112;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #0f203a;
	--bs-btn-active-border-color: #0f203a;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #617ca6;
	--bs-btn-disabled-border-color: #617ca6;
}

/* Outline buttons */
.btn-outline-primary {
	--bs-btn-color: var(--bs-primary);
	--bs-btn-border-color: var(--bs-primary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--bs-primary);
	--bs-btn-hover-border-color: var(--bs-primary);
	--bs-btn-focus-shadow-rgb: 141, 198, 63;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--bs-primary);
	--bs-btn-active-border-color: var(--bs-primary);
}

.btn-outline-secondary {
	--bs-btn-color: var(--bs-secondary);
	--bs-btn-border-color: var(--bs-secondary);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--bs-secondary);
	--bs-btn-hover-border-color: var(--bs-secondary);
	--bs-btn-focus-shadow-rgb: 29, 61, 112;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: var(--bs-secondary);
	--bs-btn-active-border-color: var(--bs-secondary);
}

/* Global Styles */
body {
	font-family: 'Gotham', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #333;
	background-color: var(--bs-body-bg);
}

body:has(#site-loader:not(.hide)) {
	overflow: hidden;
}

#page {
    overflow-x: hidden;
}

/* .ph, .ph-bold {
	font-weight: 700 !important;
} */

.error-404-content {
    padding-top: 80px;
}

.select2-selection.select2-selection--single {
    display: flex;
    align-items: center;
    padding: .375rem 2.25rem .375rem .75rem;
    border: 1px solid var(--bs-border-color) !important;
    height: auto;
}

.form-control, .form-select, .select2-selection.select2-selection--single {
    height: 50px;
    background-color: white;
}
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.form-control:focus, .form-select:focus, .select2-container--open {
    border-color: var(--bs-secondary) !important;
    box-shadow: 0 0 0 0.25rem rgba(139, 195, 74, 0.25);
}

.kam-phone-group .select2-container {
    max-width: 120px;
}
.kam-phone-group .select2-container .select2-selection.select2-selection--single {
    display: flex;
    align-items: center;
}

.kam-phone-group .select2-container--open .select2-selection--single {
    border-color: var(--kam-secondary) !important;
}

/* --- COMPOSANTS --- */

/* Header */
/* .header-container {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	padding-top: 0px;
	max-height: var(--cp-header-height);
	z-index: var(--cp-header-z-index);
    background: var(--bs-secondary);
} */
.header-wrapper {
	border-radius: 8px;
	padding: 12px 0;
}
/* .site-content {
    padding-top: 74px;
} */
.header-container {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	padding-top: 30px;
	max-height: var(--cp-header-height);
	z-index: var(--cp-header-z-index);
}
.header-wrapper {
	background: var(--cp-header-gradient);
	border-radius: 8px;
	padding: 12px 24px;
}

.header-search {
	position: relative;
}

.header-search-input {
	background: transparent;
	border: 1px solid var(--cp-search-border);
	border-radius: 30px;
	color: #fff;
	padding: 10px 40px 10px 16px;
	font-size: 12px;
	width: 170px;
    height: auto;
}

.header-search-input::placeholder {
	color: var(--cp-search-text);
}

.header-search-input:focus {
	background-color: transparent;
	border-color: #ffffff;
	color: #ffffff;
	box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
	outline: none;
}

.header-search-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--cp-search-text);
	font-size: 16px;
}

.header-espace-btn {
	background-color: var(--cp-espace-bg) !important;
	color: var(--cp-espace-text) !important;
	border-radius: 30px;
	font-weight: 500;
	font-size: 14px;
	padding: 8px 10px;
	border: none;
	display: inline-flex;
	align-items: center;
}

.header-espace-btn:hover {
	background-color: rgba(141, 215, 245, 0.7) !important;
	color: #fff !important;
}

.header-nav a,
.header-nav .nav-link {
	color: #fff !important;
	font-weight: 400;
	font-size: 14px;
	padding: 8px 16px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.header-nav .current-menu-item > a,
.header-nav a:hover,
.header-nav .nav-link:hover {
	color: #fff !important;
}
.header-nav .current-menu-item > a {
	font-weight: 700;
}

.offcanvas {
    --bs-offcanvas-height: 70%;
}
/* Header Responsive Offcanvas */
.offcanvas-nav .nav-link, .offcanvas-nav .menu-item {
	color: var(--bs-secondary);
	font-weight: 500;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.offcanvas-nav .menu-item > a {
	color: black !important;
    text-decoration: none;
}

.offcanvas-nav .nav-item:last-child .nav-link {
	border-bottom: none;
}

.offcanvas-nav .nav-link.active {
	color: var(--bs-primary);
	font-weight: 700;
}

.header-search-mobile {
	background: var(--bs-secondary);
	padding: 15px;
}

#headerOffcanvas .offcanvas-header {
    background: var(--cp-header-gradient); 
    color: white;  
}
#headerOffcanvas {
    width: 100%;
    max-width: 600px;
}

/* Page Section Component */
.page-section {
	padding: 60px 0;
	position: relative;
}

.page-section-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	margin-bottom: 32px;
}

.page-section-title {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 900;
	font-size: 32px;
	line-height: 1.1875;
	color: var(--bs-secondary);
	margin: 0;
}

.page-section-description {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: var(--bs-secondary);
	margin: 0;
}

/* Hero Carousel Component */
.hero-carousel-wrapper {
	position: relative;
	width: 100%;
	height: 650px;
}

.hero-carousel-img {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
}

/* Fix for Carousel Dragging - prevents white flash during drag */
.hero-carousel-wrapper {
	background-color: var(--bs-secondary);
}

.hero-carousel-wrapper .carousel-item {
	position: relative;
	height: 650px;
	overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
}

.hero-carousel-wrapper .carousel-item::after {
    position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
    content: "";
	background: linear-gradient(90deg, rgba(29, 61, 112, 0.95) 0%, rgba(29, 61, 112, 0.7) 40%, rgba(29, 61, 112, 0.1) 100%);
	z-index: 1;
}

@media (max-width: 992px) {
    .header-container {
        position: fixed;
        padding-top: 0;
    }
    .header-container>.container {
        max-width: 100%;
        padding: 0;
    }
    .header-wrapper {
        border-radius: 0;
        padding: 12px;
    }
    .site-content {
        padding-top: 74px;
    }
	.hero-carousel-wrapper .carousel-item {
		height: 500px;
	}
}

.hero-carousel-caption {
	bottom: 0;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
}

.hero-text-content {
	max-width: 550px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hero-title {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 900;
	font-size: 48px;
	line-height: 1.17; /* 56px / 48px */
	color: var(--bs-primary);
	margin: 0;
}

.hero-description {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.56; /* 25px / 16px */
	color: #FFFFFF;
	margin: 0;
}

.hero-btn {
	width: fit-content;
}

.hero-carousel-indicators {
	margin-bottom: 40px;
	gap: 16px;
	z-index: 3;
}

.hero-carousel-indicators button {
	width: 30px !important;
	height: 15px !important;
	background-color: rgba(220, 221, 222, 0.5) !important;
	border-radius: 30px !important;
	border: none !important;
	opacity: 1 !important;
	transition: all 0.3s ease !important;
	margin: 0 !important;
}

.hero-carousel-indicators button.active {
	width: 45px !important;
	background-color: var(--bs-primary) !important;
}

/* No scrollbar styles */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Footer */
.footer-wrapper {
	background-color: var(--bs-secondary);
	color: #fff;
	padding: 80px 0 40px;
}
.footer-social-btn {
	width: 38px;
	height: 38px;
	background-color: #fff;
	color: var(--bs-secondary);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	text-decoration: none;
	transition: all 0.2s;
}

.footer-social-btn:hover {
	background-color: var(--bs-primary);
	color: #fff;
}

.footer-title {
	color: var(--bs-primary);
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 24px;
}

.footer-nav .nav-link {
	color: #fff;
	font-weight: 300;
	font-size: 14px;
	padding: 6px 0;
}

.footer-nav .nav-link:hover {
	color: var(--bs-primary);
}

.footer-separator {
	height: 6px;
	background: linear-gradient(270deg, var(--bs-primary) 0%, rgba(147, 192, 31, 0) 98.4%);
	border: none;
	margin: 34px 0 20px;
	width: 100%;
}

.footer-bottom {
	font-weight: 400;
	font-size: 14px;
	color: #fff;
}

.footer-bottom a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

.footer-bottom a:hover {
	text-decoration: underline;
}

.footer-designed-by {
	font-size: 12px;
	font-weight: 400;
}

.footer-designed-by strong {
	font-weight: 600;
	font-size: 13px;
}

.footer-kamgoko-logo {
	height: 16px;
}

/* Homepage Tabs / Pills */
.nav-pills-news {
	gap: 12px;
	margin-bottom: 32px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-pills-news::-webkit-scrollbar {
    display: none;
}

.nav-pills-news .nav-link {
	border-radius: 48px;
	padding: 8px 24px;
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--bs-secondary);
	background: transparent;
	transition: all 0.3s ease;
	border: none;
}

.nav-pills-news .nav-link.active {
	background-color: var(--bs-primary) !important;
	color: var(--bs-secondary) !important;
}

/* Card News */
.card-news {
	border: none;
	border-radius: 12px;
	box-shadow: var(--cp-card-shadow);
	transition: all 0.3s ease !important;
	background: #fff;
	width: 100%;
	overflow: hidden;
}

.card-news:hover {
	transform: translateY(-5px);
	box-shadow: var(--cp-card-shadow-hover);
}

.card-news-image-wrapper {
	width: 100%;
	height: 183px;
	position: relative;
	flex-shrink: 0;
    overflow: hidden;
}

.card-news-img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-news:hover .card-news-img {
    transform: scale(1.1);
}

.card-news-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(16, 116, 188, 0.8);
	color: #fff;
	border-radius: 15px;
	padding: 4px 12px;
	font-weight: 500;
	font-size: 14px;
	z-index: 2;
}

.card-news-body {
	padding: 16px;
	height: 142px;
	display: flex;
	flex-direction: column;
}

.card-news-category {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: var(--cp-text-muted);
	letter-spacing: 0.2px;
	display: block;
	padding: 4px 0;
}

.card-news-title {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 16px;
    color: var(--bs-secondary);
	line-height: 1.4;
	margin-top: 0px;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
    -webkit-text-overflow: ellipsis;
    text-overflow: ellipsis;
	overflow: hidden;
	height: auto;
}

.row-news-grid {
	--bs-gutter-y: var(--bs-gutter-x);
}
.row-news-grid:has(.card-event) {
	--bs-gutter-y: 0 !important;
}

.card-news-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 10px;
}

.card-news-meta {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-size: 12px;
	color: var(--cp-text-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-action-card {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--cp-text-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--cp-text-muted);
	padding: 0;
	background: transparent;
	transition: all 0.2s ease;
}

.btn-action-card:hover {
	background: var(--bs-primary);
	color: var(--bs-secondary);
	border-color: var(--bs-primary);
}

/* Card Locked State */
.card-news-lock-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(8px);
	z-index: 5;
	cursor: help;
}

/* Bootstrap popover sur overlay verrouillé — variant Celtiis (cf. main.js §9). */
.popover.kam-locked-popover {
	max-width: 320px;
	border: 1px solid rgba(29, 61, 112, 0.1);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(29, 61, 112, 0.18);
}
.popover.kam-locked-popover .popover-body {
	background: var(--bs-secondary);
	color: #fff;
	border-radius: 12px;
	font-size: 13.5px;
	line-height: 1.5;
	padding: 14px 16px;
	font-family: 'Gotham', 'Montserrat', sans-serif;
}
.popover.kam-locked-popover .popover-arrow::after {
	border-top-color: var(--bs-secondary);
	border-bottom-color: var(--bs-secondary);
}

.lock-icon-wrapper img {
	width: 50px;
}

.card-news--locked .card-news-title {
	color: #C38900;
}

/* Card Communique Specifics */
.card-communique-header {
	background: var(--bs-secondary);
	position: relative;
	height: 183px;
    pointer-events: none;
    user-select: none;
}

.communique-label {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 800;
	font-size: 24px;
	color: #8DD7F5;
	z-index: 2;
	letter-spacing: 1px;
    transition: 0.3s;
}

.card-communique:hover .communique-label {
    font-size: 26px;
}

.communique-motif {
	position: absolute;
	background: var(--bs-primary);
	pointer-events: none;
	z-index: 1;
}

.communique-motif-1 {
	width: 100px;
	height: 2px;
	top: 30px;
	left: -20px;
	transform: rotate(-30deg);
	opacity: 0.3;
}

.communique-motif-2 {
	width: 60px;
	height: 60px;
	border: 4px solid var(--bs-primary);
	border-radius: 50%;
	bottom: -20px;
	right: -20px;
	opacity: 0.2;
    background: transparent !important;
}

.card-communique--locked .card-news-title a {
	color: #C38900 !important;
}

.card-communique--locked .card-news-footer {
	filter: blur(3px);
	opacity: 0.6;
	pointer-events: none;
}

/* Newsletter & Press Contacts */
.card-newsletter, .card-press-contacts {
	border-radius: 12px;
	border: none;
	position: relative;
	overflow: hidden;
}

.card-newsletter {
	background: linear-gradient(359.84deg, #FFFFFF 55.06%, rgba(166, 255, 0, 0.5) 99.86%);
	filter: drop-shadow(0px 0px 1px rgba(40, 41, 61, 0.04)) drop-shadow(0px 2px 4px rgba(96, 97, 112, 0.16));
	padding-bottom: 16px;
}

/* Background SVGs override if they exist, otherwise keep gradient */
.card-newsletter::before {
	content: "";
	position: absolute;
	top: 0; left: 0; 
	width: 100%; 
	height: 350px;
	background: url('../images/bg/newsletter-bg.svg') no-repeat center top / cover;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-newsletter.is-visible::before {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.card-newsletter:not(.is-visible)::before {
	transform: translateY(-20px) scale(0.9);
}

.card-press-contacts {
	background: linear-gradient(0.72deg, #FFFFFF 74.09%, rgba(166, 255, 0, 0.5) 99.55%);
	box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.04), 0px 2px 4px rgba(96, 97, 112, 0.16);
}

.card-press-contacts::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100px;
	top: 0; left: 0;
	background: url('../images/bg/press-contact-bg.svg') no-repeat center top / cover;
	z-index: 0;
	pointer-events: none;
}

.card-press-contacts .card-body {
	padding-top: 80px;
	position: relative;
	z-index: 1;
}

.card-newsletter .card-body {
	padding-top: 0px;
	position: relative;
	z-index: 1;
}

.newsletter-illustration-container {
	margin-top: 117px;
	height: 110px;
}

.newsletter-illustration {
	width: 100px;
	height: 100px;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	transform: scale(0);
	opacity: 0;
}

.card-newsletter.is-visible .newsletter-illustration {
	animation: envelopeBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, 
			   float 3s ease-in-out infinite 0.8s;
}

/* Keyframes */
@keyframes envelopeBounce {
	0% { transform: scale(0) rotate(-15deg); opacity: 0; }
	70% { transform: scale(1.1) rotate(5deg); opacity: 1; }
	100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes float {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-8px) rotate(2deg); }
}

/* Effet au survol pour plus de punch */
.card-newsletter:hover .newsletter-illustration {
	filter: drop-shadow(0 10px 15px rgba(141, 198, 63, 0.4));
	transition: filter 0.3s ease;
}

.lp-course-hero__title {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 32px;
	color: #fff;
	margin: 0;
	line-height: 1.2;
}

.btn-action-hero {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-action-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.btn-action-hero i {
    font-size: 18px;
}

.share-buttons-row {
    margin-top: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: var(--bs-secondary);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

.newsletter-title, .press-contacts-title {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	color: var(--bs-secondary);
	text-align: center;
}

.newsletter-description, .press-contacts-description {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.5;
	color: var(--bs-secondary);
	text-align: center;
}

.newsletter-form-container {
	width: 100%;
	margin: 0 auto;
}

.newsletter-input {
	width: 100%;
	height: 44px;
	background: #FFFFFF;
	border: 1.18px solid var(--bs-secondary) !important;
	border-radius: 8px !important;
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-size: 12px;
	color: #65758B;
	padding: 10px 18px;
}

.newsletter-btn {
	width: 100%;
	height: 44px;
	background: var(--bs-primary);
	border-radius: 8px;
	border: none;
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--bs-secondary);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.newsletter-btn:hover {
	background: #7ab32f;
	color: var(--bs-secondary);
}

.newsletter-disclaimer {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 300;
	font-size: 13px;
	line-height: 1.25;
	color: var(--bs-secondary);
	margin: 0 auto;
}

/* Press Contacts items */
.contacts-list {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.contact-item {
	width: 229px;
	padding: 16px 0;
	border-bottom: 1px solid var(--bs-border-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.contact-item:last-child {
	border-bottom: none;
}

.contact-name {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	color: var(--bs-secondary);
}

.contact-email {
	font-family: 'Gotham', 'Montserrat', sans-serif;
	font-weight: 400;
	font-size: 12px;
	line-height: 1.2;
	color: var(--bs-secondary);
	text-decoration: underline;
}

.press-contact-card {
	background: var(--cp-press-card-bg);
	box-shadow: var(--cp-card-shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.press-contact-card:hover {
	box-shadow: var(--cp-card-shadow-hover);
	transform: translateY(-2px);
}

.press-contact-card__icon {
	width: 72px;
	height: 72px;
	background: rgba(var(--bs-primary-rgb), 0.15);
	color: var(--bs-secondary);
	font-size: 36px;
}

.press-contact-card__email {
	word-break: break-all;
}

@media (max-width: 991px) {
    .footer-wrapper {
        padding: 40px 0;
    }
    .footer-logo {
        width: 64px;
    }
    .footer-dispo{
        flex-direction: column-reverse;
    }
    .footer-wrapper .newsletter-input {
        border-color: white !important; 
        color: white;
    }
    .footer-wrapper .newsletter-input::placeholder {
        color: white;
    }
	.nav-pills-news {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 10px;
        margin-left: calc(-1 * var(--bs-gutter-x));
        margin-right: calc(-1 * var(--bs-gutter-x));
        padding-left:  var(--bs-gutter-x);
        padding-right:  var(--bs-gutter-x);
	}
	
	.nav-pills-news .nav-link {
		white-space: nowrap;
        padding: 8px 16px;
        font-size: 14px;
	}

    .nav-pills-news {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    
    .nav-pills-news::-webkit-scrollbar {
        display: none;
    }
    
    .nav-pills-news .nav-item {
        white-space: nowrap;
    }
}

/* Card Event Component */
.card-event {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: none;
    border-radius: 12px;
    box-shadow: var(--cp-card-shadow);
    background: #fff;
    margin-bottom: 16px;
    transition: box-shadow 0.3s ease;
}

.card-event:hover {
    box-shadow: var(--cp-card-shadow-hover);
}

.card-event-image-wrapper {
    width: 292px;
    min-width: 292px;
    height: 292px;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
}

.card-event-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #ECF3EA;
}

.card-event-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.card-event-category {
    font-size: 14px;
    color: #959393;
    margin-bottom: 8px;
    display: block;
}

.card-event-date-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    width: fit-content;
}

.date-badge-day {
    background-color: var(--bs-primary);
    color: #fff;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 14px;
}

.date-badge-info {
    background-color: var(--bs-secondary);
    color: #fff;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 14px;
}

.card-event-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--bs-secondary);
    line-height: 1.22;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #65758B;
    font-size: 16px;
    font-weight: 500;
}

.card-event-meta-item i {
    color: var(--bs-primary);
    font-size: 20px;
}

.card-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

/* Link View All */
.link-view-all {
    font-size: 16px;
    font-weight: 700;
    color: var(--bs-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-view-all:hover {
    color: var(--bs-primary);
}

@media (max-width: 768px) {
    .card-event {
        flex-direction: column;
    }
    .card-event-image-wrapper {
        width: 100%;
        height: 250px;
        min-width: unset;
        border-radius: 12px 12px 0 0;
    }
}

/* Card Media Component */
.card-media {
    border: none;
    border-radius: 12px;
    box-shadow: var(--cp-card-shadow);
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease !important;
    height: 100%;
    display: flex;
    flex-direction: column;
	cursor: pointer;
    /* Reset anchor styles when card is an <a> tag */
    text-decoration: none;
    color: inherit;
}

a.card-media,
a.card-media:hover,
a.card-media:visited,
a.card-media:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

.card-media:hover {
    transform: translateY(-5px);
    box-shadow: var(--cp-card-shadow-hover);
}

.card-media-header {
    height: 183px;
    position: relative;
    background-color: #1074BC; /* Default blue */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-media-header--image {
    background-size: 100%;
    background-position: center;
    transition: all 0.3s ease;
    background-color: #ECF3EA;
}

.card-media:hover .card-media-header--image {
    background-size: 110% !important;
}

.card-media-type-icon {
    font-size: 66px;
    color: #8DD7F5;
    z-index: 1;
    transition: all 0.3s ease;
}

.card-media:hover .card-media-type-icon {
    transform: scale(1.1);
}

.card-media-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.card-media-title-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.card-media-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--bs-secondary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-media-meta {
    font-size: 12px;
    color: rgba(29, 61, 112, 0.6);
}

.btn-download-media {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-download-media:hover {
    background-color: var(--bs-secondary);
    color: #fff;
    border-color: var(--bs-secondary);
}

/* Pagination Styles */
.pagination {
    gap: 10px;
}
.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .page-numbers {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(220, 221, 222, 0.5);
    color: #65758B;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.pagination .page-numbers:hover {
    background: rgba(220, 221, 222, 0.8);
    color: var(--bs-secondary);
}

.pagination .page-numbers.current {
    background: #ACCE3B;
    color: var(--bs-secondary);
    font-weight: 700;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background: transparent;
    border: 1px solid var(--bs-secondary);
    color: var(--bs-secondary);
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    width: auto;
}


.pagination .page-numbers:not(.current):hover {
    background: #DCDDDE;
    color: var(--bs-secondary);
}

.pagination .prev, .pagination .next {
    border: 1px solid var(--bs-secondary);
    background: transparent;
    color: var(--bs-secondary);
}


/* Folder States */
/* .card-media--folder .card-media-header {
    background-color: var(--bs-secondary);
} */

.card-media--folder .card-media-svg-icon {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.card-media-lock-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
	background-image: url('../images/icons/locked-gold.svg');
	background-position: center;
	background-repeat: no-repeat;
	
}

.card-media-lock-icon {
    width: 50px;
    height: 50px;
}

/* Update for SVG icons in media cards */
.card-media-svg-icon {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
}

.card-media:hover .card-media-svg-icon {
    transform: scale(1.1);
}

.card-media-svg-icon img {
    max-width: 100%;
    max-height: 100%;
}


/* Specific style for locked image headers in media cards */
.card-media-header--locked::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.card-media-header--locked .card-media-lock-overlay {
    z-index: 3;
}

/* Section Icon Wrapper */
.section-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #BAE5F8;
    border-radius: 50%;
    color: var(--bs-secondary);
    font-size: 32px;
    flex-shrink: 0;
}
.section-icon-img {
    width: 32px;
}

/* FAQ Styles */
.faq-accordion {
    max-width: 100%;
}

.faq-item {
    background: #FFFFFF;
    box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.04), 0px 2px 4px rgba(96, 97, 112, 0.16);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-button {
    width: 100%;
    padding: 24px 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    text-align: left;
    outline: none;
}

.faq-question {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--bs-secondary);
}

.faq-icon-wrapper {
    width: 46px;
    height: 46px;
    border: 3px solid var(--bs-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--bs-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-button:not(.collapsed) .faq-icon-wrapper {
    background: var(--bs-secondary);
    color: #fff;
    transform: rotate(180deg);
}

/* Hero Banner */
.hero-banner-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.hero-banner-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(100% 1205.28% at 0% 50%, var(--bs-secondary) 0%, rgba(29, 61, 112, 0) 100%);
    z-index: 1;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
	padding-bottom: 80px;
}


/* Journalist Banner Enhanced */
.journalist-banner {
    background: url(../images//bg/journalist-banner.svg) right no-repeat, linear-gradient(115.76deg, #1C3B72 16.28%, #5EAE6A 123.42%);
    border-bottom: 13px solid var(--bs-primary);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.journalist-banner-title {
    font-weight: 900;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.journalist-banner-text {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.text-underline {
    position: relative;
    display: inline-block;
}

.text-underline::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--bs-primary);
}

.journalist-banner-subtitle {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #D7E184;
    margin-bottom: 20px;
}

.journalist-banner-cta-text {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 1.4;
    color: #FFFFFF;
    margin-bottom: 0;
}

.journalist-banner-link {
    color: #ACCE3B;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.journalist-banner-link:hover {
    color: #fff;
}

/* Icons for Journalist Banner */
.journalist-banner-icons {
    position: absolute;
    top: 0; right: 0; bottom: 0; width: 40%;
    pointer-events: none;
    opacity: 0.15;
}

.banner-icon {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-journal { top: -10%; right: 20%; width: 140px; height: 140px; transform: rotate(28deg); background-color: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H216V200H40ZM184,88a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,88Zm0,40a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,128Zm0,40a8,8,0,0,1-8,8H80a8,8,0,0,1,0-16h96A8,8,0,0,1,184,168Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center; }
.icon-radio { top: 10%; right: 40%; width: 120px; height: 120px; transform: rotate(-35deg); background-color: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M232,88V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V88A16,16,0,0,1,40,72h55.35L145,21.61a8,8,0,1,1,11.36,11.27L109.83,72H216A16,16,0,0,1,232,88ZM40,88V200H216V88ZM160,144a32,32,0,1,1-32-32A32,32,0,0,1,160,144Zm-16,0a16,16,0,1,0-16,16A16,16,0,0,0,144,144Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center; }
.icon-television { top: -5%; right: 5%; width: 140px; height: 140px; transform: rotate(-36deg); background-color: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M216,48H151.49l25.32-25.31a8,8,0,1,0-11.32-11.32L128,48.69,90.51,11.37A8,8,0,0,0,79.19,22.69L104.51,48H40A16,16,0,0,0,24,64V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48Zm0,144H40V64H216V192ZM184,104v48a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center; }
.icon-camera { top: 50%; right: 5%; width: 150px; height: 150px; transform: rotate(-37deg); background-color: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M208,56H181.33L161.33,36A16,16,0,0,0,150,32H106a16,16,0,0,0-11.33,4.67L74.67,56H48A16,16,0,0,0,32,72V192a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V72A16,16,0,0,0,208,56Zm0,136H48V72h32a8,8,0,0,0,5.66-2.34L105.33,48h45.34l19.66,21.66A8,8,0,0,0,176,72h32V192Zm-80-88a32,32,0,1,0,32,32A32,32,0,0,0,128,104Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center; }
.icon-micro { top: 60%; right: 25%; width: 180px; height: 180px; background-color: #fff; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,176a48,48,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48,48,0,0,0,128,176Zm-32-112a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0ZM200,128a8,8,0,0,1-16,0,56,56,0,0,0-112,0,8,8,0,0,1-16,0,72.08,72.08,0,0,1,64-71.6V32a8,8,0,0,1,16,0V56.4A72.08,72.08,0,0,1,200,128Z'%3E%3C/path%3E%3C/svg%3E") no-repeat center; }

/* Sidebar Filters */
.filters-sidebar {
    --bs-gutter-x: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0 24px 24px 24px;
    border-radius: 12px;
}

.filter-card {
    background: #FFFFFF;
    box-shadow: 0px 0px 1px rgba(40, 41, 61, 0.04), 0px 2px 4px rgba(96, 97, 112, 0.16);
    border-radius: 12px;
    padding: 24px;
}
.filters-sidebar .filter-card {
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid var(--bs-border-color);
    padding: 24px 0;
    
}

.filter-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--bs-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.filter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--bs-secondary);
    font-weight: 500;
}

.filter-item-dot {
    width: 6px;
    height: 6px;
    background: var(--bs-secondary);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.filter-item-count {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #D7E184;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--bs-secondary);
}

/* Tag Cloud Filters */
.tag-filter-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 8px;
}

.tag-filter-item {
    padding: 4px 14px;
    border: 1px solid var(--bs-secondary);
    border-radius: 33px;
    font-size: 12px;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tag-filter-item:hover, .tag-filter-item.active {
    background-color: var(--bs-secondary);
    color: #fff;
}

/* Mini-calendrier inline (filtre événements) */
.kam-event-calendar-inline {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* garde-fou si le calendrier essaie de dépasser */
}

.kam-event-calendar-inline .flatpickr-calendar.inline {
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: transparent;
    margin-top: 4px;
    padding: 0;
}

.kam-event-calendar-inline .flatpickr-rContainer,
.kam-event-calendar-inline .flatpickr-days,
.kam-event-calendar-inline .dayContainer {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.kam-event-calendar-inline .flatpickr-weekdays,
.kam-event-calendar-inline .flatpickr-weekdaycontainer {
    width: 100% !important;
    min-width: 0 !important;
}

.kam-event-calendar-inline .flatpickr-innerContainer {
    width: 100%;
    overflow: hidden;
}

.kam-event-calendar-inline .flatpickr-day {
    flex-basis: calc(100% / 7);
    max-width: calc(100% / 7);
    min-width: 0;
    height: 36px;
    line-height: 36px;
    border-radius: 6px;
    color: var(--bs-secondary);
}

.kam-event-calendar-inline .flatpickr-day.today {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 700;
}

.kam-event-calendar-inline .flatpickr-day.selected,
.kam-event-calendar-inline .flatpickr-day.startRange,
.kam-event-calendar-inline .flatpickr-day.endRange {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.kam-event-calendar-inline .flatpickr-day.inRange {
    background: rgba(141, 198, 63, 0.18);
    border-color: transparent;
    box-shadow: none;
    color: var(--bs-secondary);
}

.kam-event-calendar-inline .flatpickr-month,
.kam-event-calendar-inline .flatpickr-weekday {
    color: var(--bs-secondary);
    fill: var(--bs-secondary);
}

.kam-event-calendar-inline .flatpickr-current-month .cur-month {
    font-weight: 700;
    text-transform: capitalize;
}

.kam-event-calendar-inline .flatpickr-prev-month,
.kam-event-calendar-inline .flatpickr-next-month {
    fill: var(--bs-secondary);
}

.kam-calendar-clear {
    color: var(--bs-secondary);
    font-size: 12px;
}

.kam-calendar-clear:hover {
    color: var(--bs-primary);
}

/* Pagination Refinement */
.pagination .page-numbers {
    background: rgba(220, 221, 222, 0.5);
    border: 1px solid transparent;
}

.pagination .page-numbers:hover {
    border-color: var(--bs-secondary);
}

.pagination .page-numbers.current {
    background: #ACCE3B !important;
    border-color: #ACCE3B;
}

/* Sorting Control */
.archive-sorting {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.archive-sorting label {
    font-weight: 600;
    color: var(--bs-secondary);
    font-size: 14px;
}

.archive-sorting select {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px 30px 8px 15px;
    font-size: 14px;
    color: var(--bs-secondary);
    background-color: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%231D3D70' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80a8,8,0,0,1,11.32-11.32L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Featured Article (Actualités) */
.featured-article-card {
    
}
.card-news--featured {
    display: flex;
    height: auto;
    overflow: hidden;
    margin-bottom: var(--bs-gutter-x);
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: #fff;
}

.card-news--featured .card-news-image-wrapper {
    width: 100%;
    height: 320px;
}

.card-news--featured .card-news-body {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.card-news--featured .card-news-title {
    font-size: 24px;
}


@media (max-width: 992px) {
    .card-news--featured {
        flex-direction: column;
        height: auto;
    }
    .card-news--featured .card-news-image-wrapper {
        width: 100%;
        height: 250px;
    }
    .card-news--featured .card-news-body {
        width: 100%;
        padding: 24px;
    }
    .card-news--featured .card-news-title {
        font-size: 1.5rem;
    }
    .journalist-banner-title {
        font-size: 28px;
    }
    .journalist-banner-cta-text {
        font-size: 20px;
    }
    .faq-button {
        padding: 16px 20px;
    }
    .faq-question {
        font-size: 16px;
    }
    .faq-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .faq-body {
        padding: 16px 20px;
    }
    .hero-banner-content {
        padding-bottom: 0;
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .journalist-banner-title {
        font-size: 24px;
    }
    .journalist-banner-cta-text {
        font-size: 18px;
    }
    .journalist-banner-subtitle {
        font-size: 18px;
    }
}
.faq-body {
	border-top: 1px solid var(--bs-border-color);
    padding: 24px 34px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--bs-secondary);
}

.faq-item:has(.show) .faq-button {
    background: rgba(37, 63, 109, 0.05);
}

/* Restricted Modal Styles */
.modal-bg-orb {
    position: absolute;
    width: 277px;
    height: 277px;
    filter: blur(92px);
    z-index: 1;
}

.orb-primary {
    background: var(--bs-primary);
    right: -73px;
    top: -12px;
}

.orb-secondary {
    background: #BDD665;
    left: -73px;
    top: -12px;
}

.btn-close-custom {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    font-size: 22px;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.lock-icon-container {
    width: 125px;
    height: 125px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-lock-icon {
    width: 100px;
    height: 100px;
}

#modalRestricted .modal-content {
    border-radius: 24px !important;
}

@media screen and (max-width: 768px) {
    #modalRestricted .modal-dialog {
        align-items: flex-end;
        margin: 0 !important;
        min-height: 100% !important;
    }
    #modalRestricted .modal-content {
        border-radius: 24px 24px 0 0 !important;
    }
    #modalRestricted.modal.fade .modal-dialog {
        transform: translateY(100%) !important;
    }
    #modalRestricted.modal.fade.show .modal-dialog {
        transform: none !important;
    }
    
    #knNewsletterModal .modal-dialog {
        align-items: flex-end;
        margin: 0 !important;
        min-height: 100% !important;
    }
    #knNewsletterModal .modal-content {
        border-radius: 24px 24px 0 0 !important;
    }
    #knNewsletterModal.modal.fade .modal-dialog {
        transform: translateY(100%) !important;
    }
    #knNewsletterModal.modal.fade.show .modal-dialog {
        transform: none !important;
    }
}

.opacity-60 { opacity: 0.6; }
.fs-7 { font-size: 0.85rem; }

/* Card Media Meta Enhancements */
.card-media-meta {
    font-size: 13px;
    color: var(--cp-text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.card-media-svg-icon img {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

/* Archive Header & Tools */
.archive-header-tools {
    margin-bottom: 30px;
}

.results-count {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.archive-sorting-wrapper label {
    font-size: 14px;
    color: var(--bs-secondary);
}

#archive-sorting-select {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#archive-sorting-select:hover {
    background-color: #f1f2f3 !important;
}

/* Date Range Picker */
.date-range-picker {
    cursor: pointer;
    background-color: #fff !important;
    border-radius: 8px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 13px;
    padding-right: 35px;
}

.flatpickr-calendar {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border: none !important;
    border-radius: 12px !important;
}
.flatpickr-calendar.inline {
    box-shadow: none !important;
    border: none !important;
    border-radius: 12px !important;
    width: 100% !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Sidebar Position Adjustments */
@media (min-width: 992px) {
    .order-lg-1 { order: 1 !important; }
    .order-lg-2 { order: 2 !important; }
}

/* Custom Styled Checkboxes & Radios */
.filters-sidebar input[type="checkbox"],
.filters-sidebar input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #E2E8F0;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-right: 8px;
    flex-shrink: 0;
}

.filters-sidebar input[type="radio"] {
    border-radius: 50%;
}

.filters-sidebar input[type="checkbox"]:checked,
.filters-sidebar input[type="radio"]:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.filters-sidebar input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filters-sidebar input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}

.filters-sidebar input[type="checkbox"]:hover,
.filters-sidebar input[type="radio"]:hover {
    border-color: var(--bs-primary);
}

/* Remove dot styles */
.filter-item-dot {
    display: none !important;
}

/* Archive Loading Overlay */
.archive-results-wrapper {
    position: relative;
}

#archive-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

#archive-loader-overlay.d-none {
    display: none !important;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 24px 36px;
}

.loader-content .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 3px;
    color: var(--bs-primary) !important;
}

/* Form Loading Overlay */
.form-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
}

.loader-content p {
    margin: 0;
    font-size: 14px;
    color: var(--bs-secondary);
    font-family: 'Gotham', 'Montserrat', sans-serif;
}.filter-items--wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-item--year {
    width: auto !important;
}

.tag-filter-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-search-wrapper {
    position: relative;
}

.filter-search-input {
    padding-right: 40px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    height: 48px;
    font-size: 14px;
}

.filter-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary);
    opacity: 0.5;
    font-size: 18px;
}

@media (max-width: 768px) {
	.hero-carousel-wrapper {
		height: 500px;
	}
    .hero-text-content {
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    .hero-banner-content .hero-text-content {
        align-items: flex-start;
        text-align: left;
    }
	.hero-title {
		font-size: 32px;
	}
    .hero-btn {
        width: auto;
        max-width: 300px;
    }
    .page-section {
        padding: 32px 0;
    }
    .page-section-header {
        align-items: center;
    }
	.page-section-title {
		font-size: 28px;
        text-align: center;
	}
    .page-section-description {
        text-align: center;
    }

    .page-section-header:has(.section-icon-wrapper) {
        align-items: center;
    }

    .page-section:has(.faq-accordion) .page-section-header {
        align-items: flex-start;
    }
    .page-section:has(.faq-accordion) .page-section-title {
        font-size: 18px;
        text-align: left;
        
    }
    .page-section:has(.faq-accordion) .page-section-description {
        text-align: left;
        
    }
    .section-icon-wrapper {
		width: 32px;
		height: 32px;
		font-size: 20px;
    }
    .section-icon-img {
        width: 20px;
    }
    .hero-carousel-indicators button {
	    width: 20px !important;
        height: 10px !important;
    }

    .hero-banner-wrapper {
        height: 350px;
    }
}

@media (max-width: 576px) {
	.hero-title {
		font-size: 24px;
	}
	.page-section-title {
		font-size: 24px;
	}
	.hero-description {
		font-size: 14px;
	}
    .page-section-description {
        font-size: 14px;
    }
}

/* =============================================
   Single Post & Event Layout
   ============================================= */

.single-post-hero {
    height: 500px;
    margin-bottom: 160px;
}

.single-post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.single-post-hero.is-communique {
    margin-bottom: -250px;
    height: 400px;
}

.communique-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0px 4px 24px 0px #00000024;
    padding: 40px;
    margin-bottom: 60px;
}

.container-thumbnail {
	width: 100%;
	height: 500px;
	border-radius: 16px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
    position: relative;
    bottom: -150px;
    background-color: white;
}

@media screen and (max-width: 992px) {
    .container-thumbnail {
        height: 280px;
    }
}

.primary-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
    color: var(--bs-secondary);
    text-transform: uppercase;
}

.italic-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
    color: var(--bs-secondary);
    text-transform: uppercase;
}

.single-post-category-badge {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: rgba(29, 61, 112, 0.6);
    text-transform: none;
}

.single-post-meta-bar {
    color: var(--bs-secondary);
}

@media screen and (max-width: 768px) {
    .single-post-meta-bar .meta-actions {
        margin-left: auto;
        margin-right: auto;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.btn-meta-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bs-border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-secondary);
    transition: all 0.3s ease;
}

.btn-meta-action:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    border-color: var(--bs-primary);
}

.single-post-content-wrap {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: var(--bs-secondary);
    font-weight: 500;
    text-align: justify;
}

.single-post-content-wrap p {
    margin-bottom: 24px;
}

/* Share Buttons */
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    color: #fff !important;
}

.share-facebook { background-color: #1877F2; }
.share-linkedin { background-color: #0077B5; }
.share-pinterest { background-color: #BD081C; }
.share-x { background-color: #000; }
.share-copy-link { background-color: var(--bs-primary); color: var(--bs-secondary) !important; }

/* Section Titles */
.section-title-premium {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--bs-secondary);
}

.view-all-link-premium {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--bs-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.view-all-link-premium:hover {
    color: var(--bs-primary);
}

/* Event Specifics */
.speaker-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.speaker-img, .speaker-img-placeholder {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.speaker-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--bs-secondary);
}

.info-item-premium {
    transition: transform 0.3s ease;
}

.info-item-premium:hover {
    transform: translateY(-3px);
}

.info-item-premium i {
    font-size: 24px;
}

/* Timeline / Programme */
.timeline-premium {
    position: relative;
    padding-left: 0;
}

.timeline-content {
    border-color: #E2E8F0 !important;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--bs-primary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(141, 198, 63, 0.2);
}

/* Location Card */
.location-card {
    border: 1px solid #E2E8F0;
}

/* Accreditation Form Overrides */
.kam-accreditation-form {
    background: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    padding-bottom: 20px;
}

.kam-accreditation-form .form-section {
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 20px;
}

.kam-accreditation-form legend {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    background: none;
    color: var(--bs-secondary);
    font-size: 18px;
    padding: 0;
    margin-bottom: 10px;
}

/* Zone de téléchargement */
.kam-accreditation-form .upload-area {
    border: 2px dashed rgba(28, 59, 114, 0.4) !important;
    border-radius: 6px !important;
    padding: 24px !important;
    background: #fff !important;
    transition: all 0.3s ease;
}

.kam-accreditation-form .upload-area:hover {
    border-color: var(--bs-primary) !important;
    background: rgba(141, 198, 63, 0.05) !important;
}

.kam-accreditation-form .kam-upload-icon {
    font-size: 40px !important;
    color: var(--bs-secondary) !important;
}

.companion-item {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
}

.event-summary-sidebar-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bg-success-soft { background-color: rgba(141, 198, 63, 0.1); }
.bg-danger-soft { background-color: rgba(239, 68, 68, 0.1); }

/* Status Badges */
.status-badge {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.status-badge--open {
    background-color: rgba(141, 198, 63, 0.1);
    color: var(--bs-primary);
}

/* Premium Share Dropdown */
.dropdown-premium {
    min-width: 240px;
    border-radius: 20px !important;
    background: #ffffff;
    z-index: 1050;
}

.dropdown-premium .dropdown-item {
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--bs-secondary);
}

.dropdown-premium .dropdown-item:hover {
    background-color: rgba(141, 198, 63, 0.1) !important;
    color: #7F9837 !important;
    transform: translateX(5px);
}

.dropdown-premium .dropdown-divider {
    border-top: 1px solid rgba(29, 61, 112, 0.05);
}

/* Archive Mobile Filters */
.mobile-filter-trigger {
    display: none;
    position: sticky;
    top: calc(var(--cp-header-height) + 20px);
    left: 0;
    z-index: 1000;
}

@media (max-width: 991.98px) {
    .mobile-filter-trigger {
        display: flex;
    }
    
    .filters-sidebar {
        border-radius: 20px;
    }
}

.offcanvas.offcanvas-start {
    border-right: none !important;
}
.offcanvas-header {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}
.offcanvas-footer {
    background: white;
}

.modal-header {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}
.modal-footer {
    background: white;
}

.status-badge--closed {
    background-color: #f34646;
    color: white;
}


@media (max-width: 992px) {
    .primary-title { font-size: 20px; }
    .italic-title { font-size: 20px; }
    .single-post-category-badge { font-size: 16px; }
    .single-post-hero { max-height: 200px; }
    .single-post-hero.is-communique { max-height: 300px; }
    .communique-card {
        box-shadow: none;
        margin-bottom: 20px !important;
    }
    .container-thumbnail {
        bottom: -50px;
    }
}


/* Search Results */
.search-result-item {
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(29, 61, 112, 0.02);
}

.hover-primary:hover {
    color: var(--bs-secondary) !important;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.related-articles-section {
    background-color: var(--bs-body-bg-2);
}

/* ==========================================================================
   MEMBERSHIP PAGE (/REJOINDRE)
   ========================================================================== */

.membership-page {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    min-height: 800px;
}

.membership-hero {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.membership-hero h1 {
    font-weight: 900;
    letter-spacing: -1px;
}

.membership-steps-bar {
    background: var(--bs-secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.step-item-premium {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 11px;
    transition: all 0.3s ease;
    padding: 15px 5px;
}

.step-item-premium.active {
    border-bottom: 5px solid #BDD665;
}
    

.step-number {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
    color: #364D78;
    flex-shrink: 0;
}

.step-item-premium.active .step-number {
    background: #BDD665;
    color: var(--bs-secondary);
}

.step-label {
    font-weight: 700;
    font-size: 14px;
    line-height: 40px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    letter-spacing: -0.06em;
}

.step-item-premium.active .step-label {
    color: #BDD665;
}

.step-divider-premium {
    display: none;
    width: 179px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 0;
}

.step-divider-premium.active {
    background: #BDD665;
}

@media screen and (max-width: 768px) {
    .step-divider-premium {
        display: block;
    }
    .step-item-premium.active {
        border-bottom: none;
    }
}

/* Adjust container gap to 32px as per Figma */
.membership-steps-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

/* Membership Form Fields */
.membership-step-pane {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.membership-fields-grid label {
    font-weight: 500;
    font-size: 14px;
    color: var(--bs-secondary);
    margin-bottom: 10px;
}

.membership-fields-grid .form-control,
.membership-fields-grid .form-select {
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    color: var(--bs-secondary);
    background-color: #FFFFFF;
}

.membership-fields-grid .form-control::placeholder {
    color: var(--bs-secondary);
    opacity: 0.6;
    font-weight: 300;
}

.membership-fields-grid .form-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--bs-secondary);
    opacity: 0.6;
    margin-top: 8px;
}

/* File Upload Premium */
.membership-fields-grid .upload-area {
    border: 2px dashed rgba(28, 59, 114, 0.4) !important;
    border-radius: 6px !important;
    padding: 24px !important;
    background: #fff !important;
    transition: all 0.3s ease;
}

.membership-fields-grid .upload-area:hover {
    border-color: var(--bs-primary) !important;
    background: rgba(141, 198, 63, 0.05) !important;
}

.membership-fields-grid .kam-upload-icon {
    font-size: 40px !important;
    color: var(--bs-secondary) !important;
}

.membership-fields-grid .kam-upload-text {
    font-size: 12px !important;
    font-weight: 300 !important;
    color: rgba(28, 59, 114, 0.6) !important;
}

/* Buttons */
.btn-membership-next {
    background: var(--bs-primary);
    border-radius: 16px;
    padding: 18px 48px;
    font-weight: 600;
    font-size: 20px;
    color: var(--bs-secondary);
    border: none;
    transition: all 0.3s ease;
}

.btn-membership-next:hover {
    background: #BDD665;
    transform: translateY(-2px);
    color: var(--bs-secondary);
}

/* OTP 6-box inputs row */
.otp-inputs-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.otp-digit-input {
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    background: rgba(29, 61, 112, 0.1);
    border: 1px solid rgba(29, 61, 112, 0.2);
    border-radius: 48px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 16px;
    color: var(--bs-secondary);
    text-align: center;
    outline: none;
    transition: background 0.2s, border-color 0.2s;
    caret-color: var(--bs-secondary);
    /* Show a dot when empty via placeholder trick */
}

.otp-digit-input::placeholder {
    color: rgba(29, 61, 112, 0.5);
    font-size: 10px;
}

/* Filled state: active green border */
.otp-digit-input.filled {
    background: rgba(141, 198, 63, 0.16);
    border-color: var(--bs-primary);
    color: var(--bs-secondary);
}

/* Currently focused */
.otp-digit-input.active,
.otp-digit-input:focus {
    background: rgba(141, 198, 63, 0.16);
    border-color: var(--bs-primary);
    outline: none;
    color: var(--bs-secondary);
}

/* Empty unfocused */
.otp-digit-input:not(.filled):not(:focus) {
    color: rgba(29, 61, 112, 0.5);
}

@media (max-width: 576px) {
    .otp-inputs-row {
        gap: 6px;
        justify-content: center;
    }
    .otp-digit-input {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .otp-inputs-row {
        gap: 4px;
    }
    .otp-digit-input {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
}

/* Verify / Continue button (Figma: green pill, right-aligned) */
.btn-otp-verify {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 18px 28px;
    gap: 8px;
    height: 56px;
    background: var(--bs-primary);
    border-radius: 16px;
    border: none;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-otp-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-otp-verify:hover:not(:disabled) {
    background: #7fb438;
}

/* Success State */
.success-icon-premium i {
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@media (max-width: 768px) {
    .step-label { display: none; }
    .step-divider-premium { width: 40px; }
    .membership-hero { height: 250px; }
}

/* Membership Success UI */
.success-circles-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-bg-1 {
    position: absolute;
    width: 200px;
    height: 200px;
    background: #ECF3EA;
    border-radius: 50%;
}

.circle-bg-2 {
    position: absolute;
    width: 125px;
    height: 125px;
    background: #CAEDC7;
    border-radius: 50%;
}

.circle-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #31AD30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(49, 173, 48, 0.3);
}

.circle-icon i {
    color: white;
    font-size: 40px;
}

/* Charter Modal */
.modal-charter .modal-content {
    overflow: hidden;
}

.modal-charter .modal-header {
    background: #BDD665 !important;
    padding: 24px;
    border-bottom: none;
    justify-content: center;
    position: relative;
}

.modal-charter .modal-header .btn-close {
    position: absolute;
    right: 20px;
    top: 20px;
    margin: 0;
}

.modal-charter .modal-title {
    color: var(--bs-secondary);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    width: 100%;
}

.modal-charter .modal-body {
    padding: 30px 40px;
    max-height: 500px;
    overflow-y: auto;
}

.charter-section-title {
    color: var(--bs-secondary);
    font-weight: 600;
    font-size: 16px;
    margin: 20px 0 10px;
}

.charter-text {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

.modal-charter .modal-footer {
    padding: 20px 40px 30px;
    border-top: none;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
}

.charter-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.charter-checkbox-wrapper input {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.charter-checkbox-wrapper label {
    font-size: 14px;
    color: var(--bs-secondary);
    cursor: pointer;
}

.charter-checkbox-wrapper a {
    color: var(--bs-secondary);
    text-decoration: underline;
    font-weight: 500;
}

.btn-charter-submit {
    background: var(--bs-primary);
    color: var(--bs-secondary);
    font-weight: 600;
    font-size: 18px;
    padding: 15px;
    border-radius: 16px;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-charter-submit:hover:not(:disabled) {
    background: #7F9837;
    transform: translateY(-2px);
}

.btn-charter-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Premium Login Page --- */
.login-page-premium {
    min-height: 100vh;
    background: #fff;
    display: flex;
    overflow: hidden;
}

.login-left-pane {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: left;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #282C31;
    opacity: 0.5;
}

.login-right-pane {
    width: 50%;
    background: #fff;
    padding: 54px 84px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 100px;
}

.login-back-link {
    color: var(--bs-secondary);
    font-weight: 500;
    font-size: 18px;
    text-decoration: underline;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-logo img {
    height: 60px;
}

.login-content {
    max-width: 513px;
    margin: 0 auto;
    width: 100%;
}

.login-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
    color: var(--bs-secondary);
    margin-bottom: 12px;
}

.login-subtitle {
    font-weight: 300;
    font-size: 14px;
    color: var(--bs-secondary);
    opacity: 0.6;
}

.login-method-tabs {
    display: flex;
    background: #fff;
    border: 1px solid rgba(29, 61, 112, 0.4);
    border-radius: 6px;
    margin-bottom: 24px;
    padding: 3px;
    overflow: hidden;
}

.method-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.login-method-tabs>.method-tab:first-child {
    border-radius: 6px 0 0 6px;
}
.login-method-tabs>.method-tab:last-child {
    border-radius: 0 6px 6px 0;
}

.method-tab.active {
    background: #D7E184;
    color: var(--bs-secondary);
}

.method-tab:not(.active) {
    background: rgba(220, 221, 222, 0.5);
    color: var(--bs-secondary);
}

.login-field-label {
    display: block;
    font-size: 14px;
    color: var(--bs-secondary);
    margin-bottom: 10px;
}

.phone-input-group {
    display: flex;
    gap: 10px;
}

.prefix-selector {
    width: 120px;
    border: 1px solid rgba(28, 59, 114, 0.4);
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 14px;
    color: rgba(29, 61, 112, 0.6);
}

.login-input {
    flex: 1;
    height: 52px;
    border: 1px solid rgba(28, 59, 114, 0.4);
    border-radius: 6px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--bs-secondary);
}

.login-input::placeholder {
    color: rgba(29, 61, 112, 0.6);
}

.login-submit-btn {
    width: 100%;
    height: 64px;
    background: var(--bs-primary);
    border: none;
    border-radius: 6px;
    color: var(--bs-secondary);
    font-weight: 600;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    transition: all 0.3s ease;
}

.login-submit-btn:hover:not(:disabled) {
    background: #7F9837;
    transform: translateY(-2px);
}

.login-footer-text {
    text-align: center;
    font-size: 14px;
    color: rgba(29, 61, 112, 0.5);
    margin-top: 42px;
}

.login-footer-text a {
    color: var(--bs-secondary);
    font-weight: 500;
    text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .login-right-pane {
        width: 100%;
        padding: 40px 20px;
    }
    .login-left-pane {
        display: none;
    }
}
/* Journalist Header Profile Chip */
.dash-user-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
    transition: background 0.3s;
}

.dash-user-avatar {
    width: 34px;
    height: 34px;
    border: 3px solid #F8FFE4 !important;
    border-radius: 50%;
    object-fit: cover;
}

.dash-user-info {
    display: flex;
    flex-direction: column;
}

.dash-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #BBD86D;
}

.dash-user-email {
    font-size: 8px;
    font-weight: 300;
    color: #F8FFE4;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- Continuous Drag Support for Bootstrap Carousel --- */
.carousel.is-dragging {
    user-select: none;
    -webkit-user-select: none;
}

.carousel.is-dragging .carousel-inner {
	display: flex !important;
	transition: none !important;
	will-change: transform;
    height: 100% !important;
}

.carousel.is-dragging .carousel-item {
	display: block !important;
	flex: 0 0 100%;
	margin-right: 0;
	position: relative !important;
	left: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
    height: 100% !important;
}

.carousel.is-dragging .carousel-item-next,
.carousel.is-dragging .carousel-item-prev,
.carousel.is-dragging .carousel-item.active {
	transform: none !important;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.kam-saved-item .scroll-reveal {
    opacity: 1;
    transform: none;
}

.row:has(.kam-saved-item) {
    justify-content: center;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for children if needed */
.scroll-reveal.is-visible .card-news,
.scroll-reveal.is-visible .card-event,
.scroll-reveal.is-visible .card-communique {
    transition-delay: 0.1s;
}

/* WordPress Gallery Premium Mosaic */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
    margin: 40px 0;
    clear: both;
}

.gallery-item {
    margin: 0 !important;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    grid-column: span 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: #f8f9fa;
}

/* Featured Layout */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(n+2) {
    grid-column: span 1;
    grid-row: span 1;
}

.glightbox {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: center center;
    will-change: transform;
}

/* Hover Effects - Icon */
.gallery-item::after {
    content: "\e220";
    font-family: 'Phosphor';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 255, 255, 0.95);
    color: var(--cp-primary);
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(29, 61, 112, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* "See More" Overlay Badge */
.gallery-item.has-more-badge::after {
    content: attr(data-more);
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 32px;
    width: 100%; height: 100%;
    border-radius: 0;
    background: rgba(29, 61, 112, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    opacity: 1;
    transform: none;
    top: 0; left: 0;
    box-shadow: none;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 991px) {
    .gallery {
        grid-auto-rows: 200px;
    }
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 12px;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* Specific Gallery Counts */
.gallery-count-1 {
    grid-template-columns: 1fr;
    grid-auto-rows: 450px;
}
.gallery-count-1 .gallery-item { grid-column: span 1; grid-row: span 1; }

.gallery-count-2 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 350px;
}
.gallery-count-2 .gallery-item { grid-column: span 1; grid-row: span 1; }

.gallery-count-3 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
}
.gallery-count-3 .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-count-3 .gallery-item:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }

.gallery-count-4 {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
}
.gallery-count-4 .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 3; }
.gallery-count-4 .gallery-item:nth-child(n+2) { grid-column: span 1; grid-row: span 1; }

/* ============================================================
   FORMATIONS (LearnPress)
   ============================================================ */

/* --- Card Course --- */
.card-course {
    border: none;
    border-radius: 12px;
    box-shadow: var(--cp-card-shadow);
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-course:hover {
    transform: translateY(-4px);
    box-shadow: var(--cp-card-shadow-hover);
}

.card-course-image-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #e8eef6;
}

.card-course-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.card-course:hover .card-course-img {
    transform: scale(1.05);
}

.card-course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 1;
}

.card-course-badge--free {
    background: #8DC63F88;
    color: var(--bs-secondary);
}

.card-course-badge--price {
    background: var(--bs-secondary);
    color: #fff;
}

.card-course-badge--enrolled {
    background: rgba(29, 61, 112, 0.9);
    color: #fff;
    top: auto;
    bottom: 12px;
    left: 12px;
}

.card-course-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: 10px;
}

.card-course-category {
    display: inline-block;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-course-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.4;
    color: var(--bs-secondary);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-course-title a {
    color: inherit;
    text-decoration: none;
}

.card-course-instructor {
    font-size: 12px;
    color: var(--cp-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.card-course-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--cp-text-muted);
    font-family: 'Gotham', 'Montserrat', sans-serif;
}

.card-course-footer {
    display: flex;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--bs-border-color);
    margin-top: auto;
}

.card-course-students {
    display: flex;
    align-items: center;
}

/* =========================================================
   LearnPress Single Course — Hero + Style Override
   ========================================================= */

/* Hero */
.lp-course-hero {
    position: relative;
    padding-top: var(--cp-header-height, 105px);
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #1D3D70;
    padding-bottom: 90px;
}
.lp-course-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .18;
}
.lp-course-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1D3D70 45%, rgba(29,61,112,.55));
}
.lp-course-hero__overlay--solid {
    background: linear-gradient(135deg, #1D3D70 0%, #0d2346 100%);
}
.lp-course-hero__content {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 0;
}
.lp-course-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(141,198,63,.18);
    color: #8DC63F;
    padding: 5px 16px;
    border-radius: 48px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.lp-course-hero__title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 38px;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0;
    max-width: 640px;
}
.lp-course-hero__excerpt {
    color: rgba(255,255,255,.72);
    font-size: 15px;
    max-width: 580px;
    line-height: 1.65;
}
.lp-course-hero__excerpt p { margin: 0; }
.lp-course-hero__drops {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    padding-right: 5%;
}
.lp-drop {
    height: auto;
    opacity: 0.28;
    filter: drop-shadow(0 0 24px rgba(141,198,63,.5));
}
.lp-drop--1 { width: 220px; transform: rotate(-18deg); }
.lp-drop--2 { width: 170px; transform: rotate(12deg); }
@media (max-width: 767px) { .lp-course-hero__drops { display: none; } }

/* LP Body wrapper */
.lp-course-body {
    background: #f5f6fa;
}

/* ---- Course detail info (meta-primary + title + meta-secondary) ---- */
.lp-course-body .course-detail-info {
    background: #fff;
    border-bottom: 1px solid #eee;
    margin-top: -70px;
    position: relative;
    z-index: 5;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,.14);
}
.lp-course-body .course-title { display: none; }
.lp-course-body .lp-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}
.lp-course-body .course-info-left {
    padding: 24px 0 20px;
}
.lp-course-body .course-title {
    display: none !important;
}
.lp-course-body .course-meta.course-meta-primary,
.lp-course-body .course-meta.course-meta-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
}
.lp-course-body .course-meta.course-meta-secondary {
    margin-bottom: 0 !important;
}
.lp-course-body .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}
.lp-course-body .meta-item label {
    font-weight: 700;
    color: #1D3D70;
    margin: 0;
}
.lp-course-body .meta-item a {
    color: #8DC63F;
    text-decoration: none;
    font-weight: 600;
}
.lp-course-body .instructor-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---- LP Entry content layout (tabs + sidebar) ---- */
.lp-course-body .lp-entry-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 32px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 32px;
    align-items: start;
    position: relative;
    z-index: 6;
}
.lp-course-body .entry-content-left {
    min-width: 0;
}
.lp-course-body .course-summary-sidebar {
    position: sticky;
    top: calc(var(--cp-header-height, 105px) + 16px);
    z-index: 10;
}

/* ---- Tabs: pill style matching nav-pills-news ---- */
.lp-course-body #learn-press-course-tabs { background: transparent; }
.lp-course-body .wrapper-course-nav-tabs {
    background: transparent;
    border: none;
    padding: 8px 10px;
    margin-bottom: 24px;
    position: sticky;
    top: calc(var(--cp-header-height, 105px) + 4px);
    z-index: 90;
}
.lp-course-body .learn-press-nav-tabs.course-nav-tabs {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: default !important;
}
.lp-course-body .learn-press-nav-tabs.course-nav-tabs::-webkit-scrollbar { display: none; }
.lp-course-body .course-nav label {
    display: block;
    padding: 10px 20px;
    border-radius: 48px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bs-secondary);
    cursor: pointer;
    background: transparent;
    transition: all .2s;
    white-space: nowrap;
}
.lp-course-body .course-nav label:hover { background: rgba(141,198,63,.12); }
.lp-course-body .course-nav.active label,
#tab-overview-input:checked ~ .wrapper-course-nav-tabs .course-nav-tab-overview label,
#tab-curriculum-input:checked ~ .wrapper-course-nav-tabs .course-nav-tab-curriculum label,
#tab-instructor-input:checked ~ .wrapper-course-nav-tabs .course-nav-tab-instructor label,
#tab-faqs-input:checked ~ .wrapper-course-nav-tabs .course-nav-tab-faqs label {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.course-nav-tab-instructor {
    display: none !important;
}

.learn-press-nav-tabs li.active::after, .learn-press-nav-tabs li:hover::after {
    display: none;
}

/* Hide LP radio inputs */
.lp-course-body #learn-press-course-tabs > input[type="radio"] { display: none; }

/* Tab panels */
.lp-course-body .course-tab-panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--cp-card-shadow);
    margin-bottom: 20px;
}

/* ---- Curriculum ---- */
.lp-course-body .lp-course-curriculum__title {
    font-size: 16px;
    font-weight: 700;
    color: #1D3D70;
    margin-bottom: 16px;
}
.lp-course-body .course-curriculum-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: #f8f9ff;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #555;
}
.lp-course-body .course-curriculum-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.lp-course-body .course-toggle-all-sections {
    color: #8DC63F;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.lp-course-body .course-section {
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.lp-course-body .course-section-header {
    background: #f8f9ff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.lp-course-body .course-section__title {
    font-weight: 700;
    color: #1D3D70;
    font-size: 14px;
    flex: 1;
}
.lp-course-body .section-count-items {
    font-size: 12px;
    background: #1D3D70;
    color: #fff;
    border-radius: 20px;
    padding: 2px 9px;
    font-weight: 600;
}
.lp-course-body .section-toggle i { color: #8DC63F; }
.lp-course-body .course-item {
    border-color: var(--bs-border-color);
    padding: 0 !important;
}
.lp-course-body .course-item:last-child { border-bottom: none; }
.lp-course-body .course-item__link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background .15s;
}
.lp-course-body .course-item__link:hover { background: #f8f9ff; }
.lp-course-body .course-item-ico { font-size: 15px; margin-right: 8px; }
.lp-course-body .course-item-ico.lp_lesson::before { content: '▶'; font-size: 14px; color: #8DC63F; }
.lp-course-body .course-item-ico.lp_quiz::before { content: '?'; font-weight: 900; color: #1D3D70; }
.lp-course-body .course-item-ico.locked::before { content: '🔒'; font-size: 11px; }
.lp-course-body .course-item-ico.preview::before { content: '👁'; font-size: 11px; }
.lp-course-body .course-item-title { font-weight: 500; flex: 1; color: #1D3D70; }
.lp-course-body .course-item__right { font-size: 11px; color: #999; }
.lp-course-body .course-item__status { margin-left: 8px; }

/* ---- Sidebar card ---- */
.lp-course-body .course-summary-sidebar__inner {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--cp-card-shadow);
    overflow: hidden;
}
.lp-course-body .course-sidebar-top {
    padding: 20px;
}
.lp-course-body .course-price,
.lp-course-body .lp-course-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1D3D70;
    margin-bottom: 14px;
}
.lp-course-body .course-price .origin-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}
.lp-course-body .lp-button.course-btn-enroll,
.lp-course-body .lp-button.course-btn-purchase,
.lp-course-body .lp-button.course-btn-continue {
    display: block;
    width: 100%;
    padding: 12px;
    background: #8DC63F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
}
.lp-course-body .lp-button.course-btn-enroll:hover,
.lp-course-body .lp-button.course-btn-purchase:hover,
.lp-course-body .lp-button.course-btn-continue:hover {
    background: #7ab535;
}
.lp-course-body .course-extra-info {
    padding: 0 20px 20px;
    font-size: 13px;
    color: #555;
}
.lp-course-body .course-extra-info li {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}
.lp-course-body .course-extra-info li:last-child { border-bottom: none; }
.lp-course-body .course-extra-info li strong { color: #1D3D70; }

/* Disable LP course comments / reviews section */
.lp-course-body .course-comment,
.lp-course-body .course-nav-tab-comment,
.lp-course-body #tab-comment,
.lp-course-body #comments,
.lp-course-body .comments-area { display: none !important; }

/* Enroll button - login link style for non-logged-in */
.lp-course-body a.course-btn-enroll {
    display: block;
    width: 100%;
    padding: 12px;
    background: #8DC63F;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: background .2s;
}
.lp-course-body a.course-btn-enroll:hover { background: #7ab535; color: #fff; }

.course-extra-box+.comment-respond, .course-extra-box+.comments-area, #respond {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .lp-course-body .lp-entry-content {
        grid-template-columns: 1fr;
    }
    .lp-course-body .course-summary-sidebar {
        position: static;
        margin-top: 0;
    }
    .lp-course-hero { padding-bottom: 60px; }
}

/* --- Formations archive hero --- */
.formations-archive-hero {
    min-height: 280px;
    display: flex;
    align-items: stretch;
}

.course-progress-bar-wrapper {
    padding: 12px 16px;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid rgba(29, 61, 112, 0.1);
}

.curriculum-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    overflow: hidden;
}

.curriculum-section-header {
    background: #f8f9ff !important;
}

.curriculum-item {
    padding-left: 8px;
}

.curriculum-item:last-child {
    border-bottom: none !important;
}

.curriculum-item-icon {
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

.course-requirements,
.course-audience {
    border-left: 3px solid var(--bs-primary);
}

/* --- Lesson / Quiz View --- */
.lesson-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bs-secondary);
    color: #fff;
    z-index: var(--bs-offcanvas-zindex);
    border-bottom: 3px solid var(--bs-primary);
}

.lesson-topbar .container-fluid {
    height: 100%;
}

.lesson-topbar-back {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s;
}

.lesson-topbar-back:hover {
    color: var(--bs-primary);
}

.lesson-topbar-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
}

.lesson-view-page {
    padding-top: 60px;
    min-height: 100vh;
    background: var(--bs-body-bg);
}

.lesson-view-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* Sidebar curriculum (desktop) */
.lesson-sidebar {
    width: 320px;
    min-width: 320px;
    background: #fff;
    border-right: 1px solid var(--bs-border-color);
    position: sticky;
    top: 60px;
    max-height: calc(100vh - 60px);
    overflow: hidden;
}

.lesson-sidebar-header {
    flex-shrink: 0;
    padding: 16px;
}

.lesson-sidebar-curriculum {
    overflow-y: auto;
}

.curriculum-section-nav-title {
    position: sticky;
    top: 0;
    z-index: 1;
}

.curriculum-nav-item {
    border-bottom: 1px solid rgba(29,61,112,0.06);
    transition: background 0.15s;
}

.curriculum-nav-item:hover {
    background: #f8f9ff;
}

.curriculum-nav-item.is-current {
    background: rgba(141, 198, 63, 0.12);
    border-left: 3px solid var(--bs-primary);
}

.curriculum-nav-item.is-current a {
    color: var(--bs-secondary) !important;
    font-weight: 700;
}

.curriculum-nav-item.is-completed a {
    color: var(--cp-text-muted);
}

.curriculum-nav-item a,
.curriculum-nav-item span {
    font-size: 13px;
    color: var(--bs-secondary);
    line-height: 1.4;
}

/* Main lesson content */
.lesson-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lesson-content-wrapper {
    flex: 1;
    padding: 32px 40px;
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
}

/* Vidéos de la leçon (ACF lesson_videos) */
.lesson-videos {
    margin: 0 0 28px;
}

.lesson-video-item + .lesson-video-item {
    margin-top: 24px;
}

.lesson-video-title {
    color: var(--bs-secondary);
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Wrapper 16/9 responsive : on s'appuie sur les utilities Bootstrap (.ratio).
   On force iframe/video à remplir le ratio. */
.lesson-video-frame {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 18px rgba(29, 61, 112, 0.12);
}

.lesson-video-frame iframe,
.lesson-video-frame video,
.lesson-video-frame .lesson-video-player {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Audios / Podcasts de la leçon (ACF lesson_audios) */
.lesson-audios {
    margin: 0 0 28px;
}

.lesson-audio-item + .lesson-audio-item {
    margin-top: 18px;
}

.lesson-audio-title {
    color: var(--bs-secondary);
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Player HTML5 natif */
.lesson-audio-player {
    width: 100%;
    border-radius: 8px;
}

/* Iframes podcast (Spotify, Apple, Anchor, etc.) — hauteur native gardée,
   largeur 100%, coins arrondis. */
.lesson-audio-embed {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(29, 61, 112, 0.10);
    background: #f6f7f7;
}

.lesson-audio-embed iframe {
    width: 100% !important;
    border: 0;
    display: block;
}

/* LP native content styles dans notre theme */
.lesson-content-wrapper .content-item-description {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}

.lesson-content-wrapper .content-item-description h1,
.lesson-content-wrapper .content-item-description h2,
.lesson-content-wrapper .content-item-description h3 {
    color: var(--bs-secondary);
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: bold;
    margin-top: 1.5em;
}

/* Navigation prev/next */
.lesson-navigation {
    background: #fff;
    border-top: 1px solid var(--bs-border-color) !important;
    flex-shrink: 0;
}

/* Quiz wrapper */
.lesson-content-wrapper .learn-press-quiz,
.lesson-content-wrapper #learn-press-quiz {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--cp-card-shadow);
}

/* Bouton compléter la leçon LP */
.lesson-content-wrapper .course-item-footer,
.lesson-navigation .course-item-footer {
    margin: 0;
}

.lesson-content-wrapper .lp-button,
.lesson-content-wrapper button.complete-item {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 800 !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    padding: 10px 20px !important;
    transition: background 0.2s !important;
    cursor: pointer;
}

.lesson-content-wrapper .lp-button:hover,
.lesson-content-wrapper button.complete-item:hover {
    background: #7ab32f !important;
}

/* Responsive lesson view */
@media (max-width: 991.98px) {
    .lesson-sidebar {
        display: none !important;
    }
    .lesson-content-wrapper {
        padding: 20px 16px;
    }
}

@media (max-width: 575.98px) {
    .lesson-topbar-title {
        font-size: 12px;
        max-width: 40vw;
    }
}

/* ============================================================
   FAQ Page Improvements
   ============================================================ */

/* FAQ Page Improvements */
.faq-category-title {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-category-title .title-dot {
    width: 10px;
    height: 10px;
    background: var(--cp-primary);
    border-radius: 50%;
    display: inline-block;
}

.faq-category-group {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}


/* Responsive Adjustments for small counts */
@media (max-width: 768px) {
    .gallery-count-1 { grid-auto-rows: 300px; }
    .gallery-count-2 { grid-auto-rows: 250px; }
    .card-preview-container {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
        gap: 8px;
    }
    .gallery-item {
        border-radius: 12px;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .gallery-count-1 .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item.has-more-badge::after {
        font-size: 24px;
    }
}

/* =============================================
   Newsletter forms
   ============================================= */
.kn-newsletter-feedback {
    display: none;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    line-height: 1.4;
}

.kn-newsletter-feedback.kn-nl-success {
    display: block;
    background: rgba(141, 198, 63, 0.15);
    color: #4a7c10;
    border: 1px solid rgba(141, 198, 63, 0.4);
}

.kn-newsletter-feedback.kn-nl-error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.kn-thematic-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kn-thematic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kn-thematic-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    background: rgba(29, 61, 112, 0.06);
    border: 1px solid rgba(29, 61, 112, 0.15);
    border-radius: 20px;
    padding: 4px 12px;
    transition: background 0.15s, border-color 0.15s;
}

.kn-thematic-item:hover {
    background: rgba(29, 61, 112, 0.12);
}

.kn-thematic-item input[type="checkbox"] {
    accent-color: var(--bs-primary);
    width: 14px;
    height: 14px;
}

.kn-newsletter-form [type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Footer newsletter feedback (texte blanc) */
footer .kn-newsletter-feedback.kn-nl-success {
    background: rgba(141, 198, 63, 0.2);
    color: #c8f78a;
    border-color: rgba(141, 198, 63, 0.35);
}

footer .kn-newsletter-feedback.kn-nl-error {
    background: rgba(255, 100, 100, 0.15);
    color: #ffaaaa;
    border-color: rgba(255, 100, 100, 0.3);
}



/* ==========================================================
   LearnPress — Single Lesson / Quiz — Override styles only
   ========================================================== */

/* Brand CSS variables — cascade to all child elements incl. fixed #popup-header */
#popup-course {
    --lp-primary-color:    #8DC63F;
    --lp-secondary-color:  #1D3D70;
    --lp-bg-color-lesson:  #f5f6fa;
    --lp-border-color:     #e8eaf0;
}

/* Top header bar */
#popup-header {
    background: #1D3D70;
    border-bottom-color: rgba(255,255,255,.1);
    height: 64px;
}
#popup-header .course-title a {
    font-family: 'Gotham', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
}
#popup-header .course-title a:hover { color: #8DC63F; }

/* Progress */
#popup-header .number { color: rgba(255,255,255,.8); font-size: 12px; }
#popup-header .learn-press-progress {
    background: rgba(255,255,255,.2);
    border-radius: 20px;
    overflow: hidden;
}
#popup-header .learn-press-progress__active { background: #8DC63F; border-radius: 20px; }

/* Back/close button */
#popup-course .back-course { color: rgba(255,255,255,.75); }
#popup-course .back-course:hover { color: #8DC63F; background: rgba(255,255,255,.08); }

/* Sidebar */
#popup-sidebar {
    background: #fff;
    border-right: 1px solid #e8eaf0;
}
#popup-sidebar .search-course { border-bottom: 1px solid #e8eaf0; }
#popup-sidebar .search-course input {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 13px;
    border: none;
    outline: none;
}

/* Curriculum sections */
#popup-sidebar .course-section-header { background: #f8f9ff !important; }
#popup-sidebar .course-section__title  {
    color: #1D3D70;
    font-family: 'Gotham', sans-serif;
    font-size: 13px;
    font-weight: 700;
}
#popup-sidebar .section-count-items {
    background: rgba(29,61,112,.1);
    color: #1D3D70;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Curriculum items */
#popup-sidebar .course-item__link,
#popup-sidebar .course-item a {
    font-size: 13px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    color: #444;
    transition: background .15s;
}

/* Main content */
#popup-content { background: #f5f6fa; }
.content-item-wrap {
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}

/* Buttons (complete, next, quiz submit…) */
#popup-course .lp-button,
#popup-course .button {
    background: #8DC63F;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Gotham', 'Montserrat', sans-serif;
    font-weight: 700;
    transition: background .2s;
    cursor: pointer;
}
#popup-course .lp-button:hover,
#popup-course .button:hover { background: #7ab535; color: #fff; }

.lp-modal-dialog .lp-modal-header, .lp-modal-dialog .btn-yes {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary) !important;
}

.lp-modal-dialog .lp-modal-header h3 {
    color: var(--bs-secondary) !important;
    font-size: 20px !important;
    font-weight: bold !important;
}

.lp-button {
    color: var(--bs-secondary) !important;
    border-radius: 6px !important;
    font-family: 'Gotham', 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
}

.lp-course-curriculum .course-section .course-item-ico.in-progress::before {
    display: none !important;
}

.meta-item.meta-item-student {
    display: none !important;
}

.course-summary-sidebar .lp-course-buttons button {
    background-color: var(--bs-primary) !important;
}

/* Badge "Clôturé" sur les cards événement */
.card-event-image-wrapper { position: relative; }
.card-event-closed-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FFFFFF;
    color: #EF4444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
}
.card-event--closed .card-event-img { filter: grayscale(0.5); opacity: 0.85; }

/* ───────────────────────────────────────────────────────────
   MÉDIAS ATTACHÉS DANS LE CONTENU — style global
   Articles (.entry-content), Événements (.single-event-description),
   Formations (.course-description). Aligne images, figures et légendes
   de façon identique quel que soit le type de contenu.
   ─────────────────────────────────────────────────────────── */
:is(.entry-content, .single-event-description, .course-description) img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
:is(.entry-content, .single-event-description, .course-description) figure,
:is(.entry-content, .single-event-description, .course-description) .wp-block-image,
:is(.entry-content, .single-event-description, .course-description) .wp-caption {
    margin: 1.5rem 0;
    max-width: 100%;
}
:is(.entry-content, .single-event-description, .course-description) figure img {
    display: block;
}
:is(.entry-content, .single-event-description, .course-description) figcaption,
:is(.entry-content, .single-event-description, .course-description) .wp-caption-text {
    margin-top: .5rem;
    font-size: .875rem;
    font-style: italic;
    text-align: center;
    color: var(--cp-text-muted);
}
:is(.entry-content, .single-event-description, .course-description) .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
:is(.entry-content, .single-event-description, .course-description) .alignleft {
    float: left;
    margin: .25rem 1.5rem 1rem 0;
    max-width: 50%;
}
:is(.entry-content, .single-event-description, .course-description) .alignright {
    float: right;
    margin: .25rem 0 1rem 1.5rem;
    max-width: 50%;
}
:is(.entry-content, .single-event-description, .course-description)::after {
    content: "";
    display: table;
    clear: both;
}
@media (max-width: 575.98px) {
    :is(.entry-content, .single-event-description, .course-description) .alignleft,
    :is(.entry-content, .single-event-description, .course-description) .alignright {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
    }
}

/* ───────────────────────────────────────────────────────────
   PAGES LÉGALES — modèle CGU / Confidentialité / Cookies / Mentions
   Template : page-conditions-utilisation.php
   Dépend de Bootstrap 5 (grid + utilities) + variables Celtiis.
   ─────────────────────────────────────────────────────────── */

/* Overflow visible pour que le sticky de la TOC fonctionne (la règle
   couvre l'attribution par slug ET via Template Name côté admin). */
#page .site-content:has(.legal-page),
.page-template-page-conditions-utilisation #page .site-content {
    overflow-x: visible;
    overflow-y: visible;
}

/* ===== Hero ===== */
.legal-hero {
    position: relative;
    overflow: hidden;
    /* Dégradé vert Celtiis "à peine remarquable" : 2 nuances très proches
       du vert primaire (~5% d'écart de luminosité). L'effet est subtil,
       le hero paraît presque uni mais garde un léger relief diagonal. */
    background: linear-gradient(135deg, var(--bs-primary, #8DC63F) 0%, #7AAE2F 100%);
    display: block;
    width: 100%;
    padding-top: calc(var(--cp-header-height) + 1.5rem);
}
.legal-hero::before {
    content: "";
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221043%22%20height%3D%22422%22%20viewBox%3D%220%200%201043%20422%22%20fill%3D%22none%22%3E%0A%3Cpath%20opacity%3D%220.5%22%20d%3D%22M965.438%2091.2013C967.022%2092.1292%20968.851%2092.533%20970.668%2092.3559C972.484%2092.1789%20974.198%2091.43%20975.568%2090.2141C976.938%2088.9983%20977.896%2087.3763%20978.309%2085.5757C978.721%2083.775%20978.566%2081.8859%20977.867%2080.1729C932.238%20-34.6338%20757.714%20-142.61%20559.074%20-105.29C347.383%20-65.5183%20321.688%2050.317%20337.16%20132.672C352.633%20215.027%20435.329%20242.957%20499.632%20230.876C563.936%20218.795%20658.298%2079.0246%20770.351%2057.9723C837.058%2043.7079%20906.752%2055.5789%20965.438%2091.2013Z%22%20fill%3D%22white%22%2F%3E%0A%3Cpath%20opacity%3D%220.5%22%20d%3D%22M725.939%20192.163C727.112%20190.842%20728.651%20189.913%20730.356%20189.494C732.062%20189.075%20733.855%20189.188%20735.502%20189.816C737.15%20190.445%20738.575%20191.56%20739.592%20193.018C740.609%20194.475%20741.171%20196.207%20741.205%20197.988C741.92%20331.598%20607.739%20510.28%20391.909%20550.829C163.028%20593.831%2091.5245%20486.895%2074.8382%20398.081C58.152%20309.266%20130.453%20248.538%20200.168%20235.44C269.883%20222.342%20419.895%20327.902%20542.772%20304.816C615.783%20292.1%20681.21%20251.861%20725.939%20192.163Z%22%20fill%3D%22%231D3D70%22%2F%3E%0A%3C%2Fsvg%3E);
    background-size: auto 100%;
    background-position: right 0px center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}
.legal-hero > .container { position: relative; z-index: 3; }
.legal-breadcrumb a:hover {
    opacity: 1 !important;
    text-decoration: underline !important;
}

/* ===== Layout article ===== */
.legal-article { background: #fff; }
.legal-article .row > aside.col-lg-3 { align-self: flex-start; }

/* ===== Sommaire (TOC) sticky ===== */
.legal-toc {
    position: sticky;
    top: calc(var(--cp-header-height, 105px) + 24px);
    padding: 20px;
    background: #F6F7FB;
    border-radius: 10px;
    z-index: 5;
    font-family: 'Montserrat', 'Gotham', -apple-system, BlinkMacSystemFont, sans-serif;
}
.legal-toc__title {
    color: var(--bs-secondary, #1D3D70);
    letter-spacing: 0.08em;
}
.legal-toc__list {
    counter-reset: legal-toc;
    max-height: 60vh;
    overflow-y: auto;
}
.legal-toc__list li {
    counter-increment: legal-toc;
    margin-bottom: 8px;
    padding-left: 28px;
    position: relative;
    line-height: 1.4;
}
.legal-toc__list li::before {
    content: counter(legal-toc, decimal-leading-zero);
    position: absolute;
    left: 0; top: 0;
    font-weight: 700;
    color: var(--bs-primary, #8DC63F);
    font-size: 13px;
    letter-spacing: 0.05em;
}
.legal-toc__list a {
    color: var(--bs-secondary, #1D3D70);
    text-decoration: none;
    transition: color 0.15s;
    font-size: 15px;
}
.legal-toc__list a:hover,
.legal-toc__list a:focus {
    color: var(--bs-primary, #8DC63F);
    text-decoration: underline;
}

/* ===== Corps de texte ===== */
.legal-content {
    color: #39412B;
    font-size: 16px;
    line-height: 1.75;
    counter-reset: legal-section;
    font-family: 'Montserrat', 'Gotham', -apple-system, BlinkMacSystemFont, sans-serif;
}
.legal-content > h2 {
    counter-increment: legal-section;
    margin-top: 56px;
    margin-bottom: 16px;
    padding-top: 8px;
    font-size: 26px;
    font-weight: 500;
    color: var(--bs-secondary, #1D3D70);
    scroll-margin-top: calc(var(--cp-header-height, 105px) + 16px);
    position: relative;
    text-align: left;
    word-spacing: normal;
    text-wrap: balance;
}
.legal-content > h2::before {
    content: counter(legal-section, decimal-leading-zero);
    display: inline-block;
    margin-right: 14px;
    font-size: 18px;
    color: var(--bs-primary, #8DC63F);
    font-weight: 900;
    letter-spacing: 0.05em;
    vertical-align: 4px;
}
.legal-content > h2:first-child { margin-top: 0; }

.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--bs-secondary, #1D3D70);
    scroll-margin-top: calc(var(--cp-header-height, 105px) + 16px);
}
.legal-content h3 { font-size: 18px; }
.legal-content h4 { font-size: 16px; }
.legal-content h5 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-content h6 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; }

.legal-content p,
.legal-content ul,
.legal-content ol { margin-bottom: 16px; }
.legal-content ul,
.legal-content ol { padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }

.legal-content a {
    color: var(--bs-secondary, #1D3D70);
    text-decoration: underline;
    text-decoration-color: rgba(29, 61, 112, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.legal-content a:hover { text-decoration-color: var(--bs-secondary, #1D3D70); }

.legal-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #F6F7FB;
    border-left: 3px solid var(--bs-primary, #8DC63F);
    border-radius: 4px;
    color: rgba(29, 61, 112, 0.85);
    font-style: italic;
}

/* ===== Tableaux (registres RGPD, etc.) ===== */
/* Wrapper de scroll horizontal — appliqué à tout tableau, qu'il soit dans
   un bloc Gutenberg `.wp-block-table` ou inséré "à plat" (cas du contenu
   scrappé depuis dev.celtiis.bj). Le JS du template auto-wrappe les loose
   tables dans un .legal-table-wrap (cf. page-conditions-utilisation.php). */
.legal-content .wp-block-table,
.legal-content figure.wp-block-table,
.legal-content .legal-table-wrap {
    margin: 28px 0;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Indicateur visuel discret quand le tableau déborde (Chrome/Edge/Safari) */
    background:
        linear-gradient(to right, #fff 30%, rgba(255,255,255,0)),
        linear-gradient(to right, rgba(29,61,112,0.08), #fff 70%) right,
        radial-gradient(farthest-side at 0 50%, rgba(29,61,112,0.12), rgba(0,0,0,0)),
        radial-gradient(farthest-side at 100% 50%, rgba(29,61,112,0.12), rgba(0,0,0,0)) right;
    background-repeat: no-repeat;
    background-size: 40px 100%, 40px 100%, 14px 100%, 14px 100%;
    background-attachment: local, local, scroll, scroll;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    background: #fff;
    border: 1px solid rgba(29, 61, 112, 0.15);
    border-radius: 8px;
    overflow: hidden;
}
.legal-content table thead,
.legal-content table tr:first-child th {
    background: var(--bs-secondary, #1D3D70);
    color: #fff;
}
.legal-content table thead th {
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    vertical-align: middle;
    font-size: 13px;
    letter-spacing: 0.02em;
}
.legal-content table tbody td,
.legal-content table tbody th,
.legal-content table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(29, 61, 112, 0.1);
    border-right: 1px solid rgba(29, 61, 112, 0.08);
    vertical-align: top;
    color: #39412B;
}
.legal-content table tbody tr:last-child td,
.legal-content table tbody tr:last-child th { border-bottom: 0; }
.legal-content table td:last-child,
.legal-content table th:last-child { border-right: 0; }
.legal-content table tbody tr:nth-child(even) { background: #FAFBFC; }
.legal-content table tbody tr:hover { background: rgba(141, 198, 63, 0.05); }
.legal-content table caption {
    caption-side: bottom;
    text-align: left;
    padding: 10px 4px 0;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}
.legal-content table a { word-break: break-word; }

.legal-content hr {
    margin: 40px 0;
    border: 0;
    border-top: 1px solid rgba(29, 61, 112, 0.12);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .legal-toc { position: static; max-height: none; }
    .legal-toc__list { max-height: none; }
}
@media (max-width: 767.98px) {
    .legal-content table { font-size: 13px; }
    .legal-content table thead th,
    .legal-content table td { padding: 10px 10px; }
}

/* =========================================================================
   Sous-menus (dropdowns)
   ========================================================================= */

/* --- Desktop : header-nav sur fond gradient --- */
.header-nav .menu-item-has-children {
	position: relative;
}

/* Chevron indicateur sur les items à enfants */
.header-nav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.2s ease;
	opacity: 0.85;
}
.header-nav .menu-item-has-children:hover > a::after,
.header-nav .menu-item-has-children:focus-within > a::after {
	transform: translateY(1px) rotate(225deg);
}

/* Panneau du sous-menu */
.header-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: calc(var(--cp-header-z-index) + 1);
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--bs-border-color);
	border-radius: 14px;
	box-shadow: var(--cp-card-shadow-hover);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.header-nav .menu-item-has-children:hover > .sub-menu,
.header-nav .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header-nav .sub-menu li {
	width: 100%;
}
.header-nav .sub-menu a,
.header-nav .sub-menu .nav-link {
	display: block;
	width: 100%;
	padding: 9px 14px !important;
	border-radius: 9px;
	color: var(--bs-secondary) !important;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}
.header-nav .sub-menu a:hover,
.header-nav .sub-menu .current-menu-item > a,
.header-nav .sub-menu .current-menu-ancestor > a {
	background: rgba(var(--bs-primary-rgb), 0.12);
	color: var(--bs-secondary) !important;
	font-weight: 700;
}
/* Le chevron des sous-items pointe vers la droite (fly-out) */
.header-nav .sub-menu .menu-item-has-children > a::after {
	float: right;
	margin-left: 8px;
	transform: translateY(4px) rotate(-45deg);
}

/* Niveau imbriqué : s'ouvre sur le côté */
.header-nav .sub-menu .sub-menu {
	top: -9px;
	left: calc(100% + 6px);
}

/* --- Mobile : offcanvas-nav en colonne --- */
.offcanvas-nav .sub-menu {
	list-style: none;
	margin: 6px 0 4px;
	padding-left: 14px;
	border-left: 2px solid rgba(var(--bs-primary-rgb), 0.45);
}
.offcanvas-nav .sub-menu .menu-item {
	border-bottom: none;
	padding: 4px 0;
}
.offcanvas-nav .sub-menu a {
	color: var(--cp-text-muted) !important;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}
.offcanvas-nav .sub-menu a:hover,
.offcanvas-nav .sub-menu .current-menu-item > a {
	color: var(--bs-primary) !important;
}
