/* ============================================================
   Portail de Section — Golf 7 Fontaines
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.vc-section-hero {
	position: relative;
	min-height: 380px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.vc-section-hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .6s var(--vc-ease);
}
.vc-section-hero:hover .vc-section-hero-bg {
	transform: scale(1.02);
}
.vc-section-hero-bg--color {
	background: linear-gradient(135deg, var(--section-color, #2D5A27) 0%, color-mix(in srgb, var(--section-color, #2D5A27) 60%, #000) 100%);
}
.vc-section-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(13,13,11,.85) 0%, rgba(13,13,11,.3) 60%, transparent 100%);
}
.vc-section-hero-content {
	position: relative;
	z-index: 1;
	padding-bottom: var(--vc-space-12);
	padding-top: var(--vc-space-20);
	width: 100%;
}
.vc-section-breadcrumb {
	display: flex;
	gap: var(--vc-space-2);
	align-items: center;
	font-size: var(--vc-font-size-xs);
	color: rgba(251,249,245,.7);
	margin-bottom: var(--vc-space-4);
}
.vc-section-breadcrumb a { color: inherit; text-decoration: none; }
.vc-section-breadcrumb a:hover { color: var(--vc-color-accent); }
.vc-section-hero-badge {
	display: inline-block;
	padding: 3px 12px;
	border-radius: var(--vc-radius-full);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: var(--vc-space-3);
}
.vc-section-hero-title {
	font-family: var(--vc-font-heading);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 500;
	letter-spacing: var(--vc-tracking-display);
	color: var(--vc-color-white);
	margin: 0 0 var(--vc-space-4);
	line-height: 1.02;
}
.vc-section-hero-email {
	display: inline-block;
	color: rgba(251,249,245,.8);
	font-size: var(--vc-font-size-sm);
	text-decoration: none;
	transition: color var(--vc-duration-fast);
}
.vc-section-hero-email:hover { color: var(--vc-color-accent); }

/* ── Layout portail ──────────────────────────────────────── */
.vc-section-body {
	padding-top: var(--vc-space-10);
	padding-bottom: var(--vc-space-20);
}
.vc-section-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: var(--vc-space-10);
	align-items: start;
}
@media (max-width: 900px) {
	.vc-section-layout { grid-template-columns: 1fr; }
	.vc-section-sidebar { order: -1; }
}

/* ── Tabs navigation ─────────────────────────────────────── */
.vc-section-tabs-nav {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid var(--vc-color-border);
	margin-bottom: var(--vc-space-8);
	flex-wrap: wrap;
}
.vc-section-tab {
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: var(--vc-space-3) var(--vc-space-5);
	cursor: pointer;
	color: var(--vc-color-text-muted);
	font-size: var(--vc-font-size-sm);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: var(--vc-space-2);
	margin-bottom: -2px;
	border-radius: var(--vc-radius-sm) var(--vc-radius-sm) 0 0;
	transition: color var(--vc-duration-fast), background var(--vc-duration-fast);
}
.vc-section-tab:hover {
	color: var(--vc-color-text);
	background: var(--vc-color-cream-2);
}
.vc-section-tab.active {
	color: var(--vc-color-accent);
	border-bottom-color: var(--vc-color-accent);
	font-weight: 600;
}
.vc-tab-icon { font-size: 16px; line-height: 1; }

/* ── Loading spinner ─────────────────────────────────────── */
.vc-section-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--vc-space-16);
	color: var(--vc-color-text-muted);
	gap: var(--vc-space-4);
}
.vc-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--vc-color-border);
	border-top-color: var(--vc-color-accent);
	border-radius: 50%;
	animation: vc-spin .7s linear infinite;
}
@keyframes vc-spin { to { transform: rotate(360deg); } }

/* ── Articles grid ───────────────────────────────────────── */
.vc-articles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--vc-space-6);
}
.vc-article-card {
	background: var(--vc-color-surface);
	border: 1px solid var(--vc-color-border-soft);
	border-radius: var(--vc-radius-lg);
	overflow: hidden;
	cursor: pointer;
	transition: transform var(--vc-duration-base) var(--vc-ease),
	            box-shadow var(--vc-duration-base) var(--vc-ease);
}
.vc-article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--vc-shadow-lg);
	border-color: var(--vc-color-accent);
}
.vc-article-card-cover {
	aspect-ratio: 16/9;
	background: var(--vc-color-sand);
	overflow: hidden;
}
.vc-article-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--vc-duration-slow);
}
.vc-article-card:hover .vc-article-card-cover img {
	transform: scale(1.04);
}
.vc-article-card-cover--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	opacity: .3;
}
.vc-article-card-body {
	padding: var(--vc-space-5);
}
.vc-article-card-meta {
	font-size: var(--vc-font-size-xs);
	color: var(--vc-color-text-muted);
	margin-bottom: var(--vc-space-2);
}
.vc-article-card-title {
	font-family: var(--vc-font-heading);
	font-size: var(--vc-font-size-lg);
	font-weight: 500;
	letter-spacing: var(--vc-tracking-tight);
	color: var(--vc-color-text);
	margin: 0 0 var(--vc-space-3);
	line-height: 1.25;
}
.vc-article-card-excerpt {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	line-height: var(--vc-line-height-normal);
	margin: 0;
}
.vc-article-card-footer {
	padding: var(--vc-space-3) var(--vc-space-5);
	border-top: 1px solid var(--vc-color-border);
	font-size: var(--vc-font-size-xs);
	color: var(--vc-color-accent);
	font-weight: 500;
}

/* ── Article detail ──────────────────────────────────────── */
.vc-article-detail {
	animation: vc-fade-in var(--vc-duration-base) ease;
}
@keyframes vc-fade-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
.vc-article-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--vc-color-text-muted);
	font-size: var(--vc-font-size-sm);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-bottom: var(--vc-space-6);
	transition: color var(--vc-duration-fast);
}
.vc-article-back-btn:hover { color: var(--vc-color-accent); }
.vc-article-detail-cover {
	border-radius: var(--vc-radius-lg);
	overflow: hidden;
	margin-bottom: var(--vc-space-8);
	max-height: 420px;
}
.vc-article-detail-cover img {
	width: 100%;
	height: 420px;
	object-fit: cover;
	display: block;
}
.vc-article-detail-meta {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	margin-bottom: var(--vc-space-4);
	display: flex;
	gap: var(--vc-space-4);
	flex-wrap: wrap;
}
.vc-article-detail-title {
	font-family: var(--vc-font-heading);
	font-size: var(--vc-font-size-3xl);
	font-weight: 500;
	letter-spacing: var(--vc-tracking-display);
	color: var(--vc-color-text);
	margin: 0 0 var(--vc-space-8);
	line-height: var(--vc-line-height-tight);
}
.vc-article-detail-content {
	color: var(--vc-color-text-muted);
	line-height: var(--vc-line-height-loose);
	font-size: var(--vc-font-size-md);
}
.vc-article-detail-content h2,
.vc-article-detail-content h3 {
	font-family: var(--vc-font-heading);
	color: var(--vc-color-text);
	margin-top: var(--vc-space-8);
}
.vc-article-detail-content p { margin-bottom: var(--vc-space-4); }
.vc-article-detail-content img { max-width: 100%; border-radius: var(--vc-radius-md); }
.vc-article-detail-content a { color: var(--vc-color-accent); }
.vc-article-detail-content blockquote {
	border-left: 3px solid var(--vc-color-accent);
	padding-left: var(--vc-space-5);
	margin: var(--vc-space-6) 0;
	color: var(--vc-color-text-muted);
	font-style: italic;
}

/* ── No articles ─────────────────────────────────────────── */
.vc-no-articles {
	text-align: center;
	padding: var(--vc-space-20) 0;
	color: var(--vc-color-text-muted);
}
.vc-no-articles-icon { font-size: 48px; margin-bottom: var(--vc-space-4); opacity: .4; }

/* ── Upcoming / placeholder tabs ─────────────────────────── */
.vc-tab-placeholder {
	text-align: center;
	padding: var(--vc-space-16);
	color: var(--vc-color-text-muted);
}
.vc-tab-placeholder-icon { font-size: 48px; margin-bottom: var(--vc-space-4); opacity: .3; }

/* ── Sidebar ─────────────────────────────────────────────── */
.vc-section-sidebar { display: flex; flex-direction: column; gap: var(--vc-space-5); }

.vc-section-join-card {
	background: linear-gradient(135deg, var(--section-color, #2D5A27), color-mix(in srgb, var(--section-color, #2D5A27) 60%, #000));
	border-radius: var(--vc-radius-lg);
	padding: var(--vc-space-6);
	text-align: center;
}
.vc-join-text {
	color: rgba(251,249,245,.9);
	font-size: var(--vc-font-size-sm);
	margin-bottom: var(--vc-space-5);
}
.vc-join-text--member { color: rgba(251,249,245,.9); }
.vc-btn-join {
	background: #fff !important;
	color: var(--section-color, #2D5A27) !important;
	font-weight: 600;
	width: 100%;
	justify-content: center;
}
.vc-btn-leave {
	color: rgba(251,249,245,.75) !important;
	border-color: rgba(251,249,245,.35) !important;
	font-size: var(--vc-font-size-xs);
}

.vc-section-committee-card,
.vc-section-iban-card {
	background: var(--vc-color-surface);
	border: 1px solid var(--vc-color-border-soft);
	border-radius: var(--vc-radius-lg);
	padding: var(--vc-space-6);
}
.vc-sidebar-heading {
	font-size: var(--vc-font-size-base);
	font-weight: 600;
	color: var(--vc-color-text);
	margin: 0 0 var(--vc-space-5);
	padding-bottom: var(--vc-space-3);
	border-bottom: 1px solid var(--vc-color-border);
}
.vc-committee-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--vc-space-4);
}
.vc-committee-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.vc-committee-role {
	font-size: var(--vc-font-size-xs);
	color: var(--vc-color-accent);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.vc-committee-name {
	font-weight: 500;
	color: var(--vc-color-text);
}
.vc-committee-email,
.vc-committee-phone {
	font-size: var(--vc-font-size-xs);
	color: var(--vc-color-text-muted);
	text-decoration: none;
}
.vc-committee-email:hover,
.vc-committee-phone:hover { color: var(--vc-color-accent); }

.vc-sidebar-label {
	font-size: var(--vc-font-size-xs);
	color: var(--vc-color-text-muted);
	margin-bottom: var(--vc-space-2);
}
.vc-iban {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text);
	background: var(--vc-color-cream-2);
	padding: var(--vc-space-2) var(--vc-space-3);
	border-radius: var(--vc-radius-sm);
	display: inline-block;
}

/* ── Galerie ─────────────────────────────────────────────── */
.vc-gallery-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: var(--vc-space-3);
}

.vc-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: var(--vc-radius-md);
	cursor: pointer;
	aspect-ratio: 4/3;
	background: var(--vc-color-sand);
}

.vc-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

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

.vc-gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient( to top, rgba(13,13,11,.75), transparent );
	color: #fff;
	font-size: var(--vc-font-size-sm);
	padding: var(--vc-space-3) var(--vc-space-3) var(--vc-space-2);
	opacity: 0;
	transition: opacity .25s ease;
}

.vc-gallery-item:hover .vc-gallery-caption {
	opacity: 1;
}

/* Lightbox */
.vc-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.vc-lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vc-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(13,13,11,.94);
}

.vc-lightbox-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--vc-space-4);
	max-width: 90vw;
	max-height: 90vh;
}

.vc-lightbox-content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.vc-lightbox-img {
	max-width: 80vw;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--vc-radius-md);
}

.vc-lightbox-caption {
	color: rgba(251,249,245,.8);
	font-size: var(--vc-font-size-sm);
	margin-top: var(--vc-space-2);
	text-align: center;
}

.vc-lightbox-close,
.vc-lightbox-prev,
.vc-lightbox-next {
	background: none;
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	padding: var(--vc-space-2) var(--vc-space-4);
	line-height: 1;
	opacity: .7;
	transition: opacity .2s;
}

.vc-lightbox-close:hover,
.vc-lightbox-prev:hover,
.vc-lightbox-next:hover {
	opacity: 1;
}

.vc-lightbox-close {
	position: absolute;
	top: -44px;
	right: 0;
	font-size: 1.5rem;
}

/* ── Agenda ──────────────────────────────────────────────── */
.vc-events-list {
	display: flex;
	flex-direction: column;
	gap: var(--vc-space-4);
}

.vc-event-card {
	display: flex;
	gap: var(--vc-space-5);
	background: var(--vc-color-surface);
	border: 1px solid var(--vc-color-border-soft);
	border-radius: var(--vc-radius-lg);
	padding: var(--vc-space-5);
	align-items: flex-start;
}

.vc-event-date-badge {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 64px;
	min-height: 64px;
	background: var(--section-color, var(--vc-color-primary));
	border-radius: var(--vc-radius-md);
	color: #fff;
	padding: var(--vc-space-2);
}

.vc-event-day {
	font-size: 1.8rem;
	font-weight: 700;
	line-height: 1;
}

.vc-event-month {
	font-size: .65rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	opacity: .9;
}

.vc-event-info {
	flex: 1;
	min-width: 0;
}

.vc-event-title {
	font-size: var(--vc-font-size-lg);
	font-weight: 600;
	color: var(--vc-color-text);
	margin: 0 0 var(--vc-space-2);
}

.vc-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--vc-space-3);
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	margin-bottom: var(--vc-space-2);
}

.vc-event-desc {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	margin: 0;
}

/* ── Cotisation ──────────────────────────────────────────── */
.vc-cotisation-wrap {
	display: flex;
	flex-direction: column;
	gap: var(--vc-space-5);
	max-width: 560px;
}

.vc-cotisation-card {
	background: var(--vc-color-surface);
	border: 1px solid var(--vc-color-border-soft);
	border-radius: var(--vc-radius-lg);
	padding: var(--vc-space-6);
}

.vc-cotisation-card h3 {
	font-size: var(--vc-font-size-lg);
	font-weight: 600;
	margin: 0 0 var(--vc-space-4);
}

.vc-cotisation-iban-label {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	margin-bottom: var(--vc-space-2);
}

.vc-cotisation-iban {
	font-family: monospace;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: .05em;
	padding: var(--vc-space-3) var(--vc-space-4);
	background: var(--vc-color-cream-2);
	border: 1px solid var(--vc-color-border);
	border-radius: var(--vc-radius-md);
	margin-bottom: var(--vc-space-3);
}

.vc-btn-copy-iban {
	display: inline-flex;
	align-items: center;
	gap: var(--vc-space-2);
	background: var(--section-color, var(--vc-color-primary));
	color: #fff;
	border: none;
	border-radius: var(--vc-radius-md);
	padding: var(--vc-space-2) var(--vc-space-4);
	font-size: var(--vc-font-size-sm);
	font-weight: 500;
	cursor: pointer;
	transition: opacity .2s;
	margin-bottom: var(--vc-space-4);
}

.vc-btn-copy-iban:hover {
	opacity: .85;
}

.vc-cotisation-note {
	font-size: var(--vc-font-size-sm);
	color: var(--vc-color-text-muted);
	margin: 0;
}

/* ── iGolf placeholder ───────────────────────────────────── */
.vc-igolf-placeholder h3 {
	margin: var(--vc-space-3) 0 var(--vc-space-2);
	font-size: var(--vc-font-size-xl);
}

.vc-igolf-note {
	font-size: var(--vc-font-size-sm);
	opacity: .7;
	margin-top: var(--vc-space-2);
}

/* ── Flash message ───────────────────────────────────────── */
.vc-section-flash {
	position: fixed;
	bottom: var(--vc-space-6);
	left: 50%;
	transform: translateX(-50%);
	background: var(--vc-color-primary);
	color: #fff;
	padding: var(--vc-space-3) var(--vc-space-6);
	border-radius: var(--vc-radius-full);
	font-size: var(--vc-font-size-sm);
	font-weight: 500;
	z-index: 1000;
	animation: vc-flash-in .3s ease, vc-flash-out .3s ease 2.5s forwards;
	pointer-events: none;
}
@keyframes vc-flash-in  { from { opacity:0; transform:translateX(-50%) translateY(20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes vc-flash-out { from { opacity:1; } to { opacity:0; } }
