/* GSBernard Core — styles publics
   Utilise les couleurs du thème (variables WordPress) avec repli. */

:root {
	--gsb-primary: var(--wp--preset--color--primary, #1B3A5B);
	--gsb-secondary: var(--wp--preset--color--secondary, #7B2D26);
	--gsb-accent: var(--wp--preset--color--accent, #C8A35B);
	--gsb-base: var(--wp--preset--color--base, #FBF9F4);
	--gsb-surface: var(--wp--preset--color--surface, #FFFFFF);
	--gsb-muted: var(--wp--preset--color--muted, #EDE7DB);
	--gsb-contrast: var(--wp--preset--color--contrast, #1A2330);
}

/* ---------- SLIDER ---------- */
.gsb-slider {
	position: relative;
	width: 100%;
	min-height: clamp(460px, 62vh, 660px);
	overflow: hidden;
	background: var(--gsb-primary);
}
.gsb-slides { position: absolute; inset: 0; }
.gsb-slide {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background-size: cover; background-position: center;
	opacity: 0; visibility: hidden;
	transition: opacity .8s ease;
	padding: 4rem 1.5rem;
}
.gsb-slide.is-active { opacity: 1; visibility: visible; }
.gsb-slide-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(27,58,91,.55), rgba(27,58,91,.78));
}
.gsb-slide-inner {
	position: relative; z-index: 2;
	max-width: 820px; text-align: center; color: #fff;
}
.gsb-slide-eyebrow {
	text-transform: uppercase; letter-spacing: 3px;
	font-size: .85rem; color: var(--gsb-accent); margin: 0 0 1rem;
}
.gsb-slide-title {
	color: #fff; margin: 0 0 1rem;
	font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.1;
}
.gsb-slide-text {
	color: #f3efe6; font-size: 1.15rem; margin: 0 auto 1.75rem; max-width: 640px;
}
.gsb-slide-buttons { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.gsb-btn {
	display: inline-block; padding: .8rem 1.6rem; border-radius: 4px;
	font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: background .15s ease, color .15s ease;
}
.gsb-btn-primary { background: var(--gsb-accent); color: var(--gsb-contrast); }
.gsb-btn-primary:hover { background: #b8924a; }
.gsb-btn-outline { background: transparent; color: #fff; border-color: #fff; }
.gsb-btn-outline:hover { background: #fff; color: var(--gsb-primary); }

.gsb-slider-prev, .gsb-slider-next {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	background: rgba(255,255,255,.15); color: #fff; border: 0;
	width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
	cursor: pointer; transition: background .15s ease;
}
.gsb-slider-prev:hover, .gsb-slider-next:hover { background: rgba(255,255,255,.3); }
.gsb-slider-prev { left: 1rem; }
.gsb-slider-next { right: 1rem; }
.gsb-slider-dots {
	position: absolute; bottom: 1.25rem; left: 0; right: 0; z-index: 3;
	display: flex; gap: .5rem; justify-content: center;
}
.gsb-dot {
	width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
	background: rgba(255,255,255,.45); padding: 0;
}
.gsb-dot.is-active { background: #fff; }

@media (max-width: 600px) {
	.gsb-slider-prev, .gsb-slider-next { display: none; }
}

/* ---------- CARTES (événements / agenda) ---------- */
.gsb-cards {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.75rem;
}
.gsb-card {
	background: var(--gsb-surface); border-radius: 8px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column;
	transition: transform .2s ease, box-shadow .2s ease;
}
.gsb-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.gsb-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--gsb-muted); }
.gsb-card-media img { width: 100%; height: 100%; object-fit: cover; }
.gsb-card-body { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.gsb-card-date { color: var(--gsb-secondary); font-size: .85rem; margin: 0; font-weight: 600; }
.gsb-card-title { margin: 0; font-size: 1.2rem; }
.gsb-card-title a { color: var(--gsb-primary); text-decoration: none; }
.gsb-card-title a:hover { text-decoration: underline; }
.gsb-card-excerpt { margin: 0; }
.gsb-card-link { color: var(--gsb-secondary); font-weight: 600; text-decoration: none; margin-top: auto; }

/* ---------- PAGE DÉTAIL ---------- */
.gsb-single-meta { margin-top: 2rem; }
.gsb-single-date { font-size: 1.05rem; }
.gsb-gallery-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: .75rem; margin: 1.5rem 0;
}
.gsb-gallery-item { display: block; aspect-ratio: 1/1; overflow: hidden; border-radius: 6px; }
.gsb-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gsb-single-form { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gsb-muted); }
