/*
Theme Name: Golf Montmagny
Theme URI: https://golfmontmagny.org
Author: Club de golf Montmagny
Description: Thème sur mesure pour le Club de golf Montmagny — héros plein écran, typographie Lora / Jost, palette marine et bleu fleuve.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: golf-montmagny
*/

:root {
	--gm-navy: #0c2340;
	--gm-navy-deep: #071629;
	--gm-blue: #6dacdb;
	--gm-blue-soft: #e8f2fa;
	--gm-green: #1a3a2f;
	--gm-ink: #1a1a1a;
	--gm-text: #444;
	--gm-muted: #777;
	--gm-line: #e6e6e6;
	--gm-bg-soft: #f8f8f6;
	--gm-white: #fff;
	--gm-serif: "Lora", Georgia, serif;
	--gm-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--gm-max: 1240px;
	--gm-gutter: clamp(20px, 4vw, 48px);
	--gm-radius: 14px;
	--gm-header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--gm-sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
	color: var(--gm-text);
	background: var(--gm-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gm-navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gm-blue); }
h1, h2, h3, h4 {
	font-family: var(--gm-serif);
	font-weight: 500;
	color: var(--gm-navy);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; color: var(--gm-ink); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; }

.gm-container { width: 100%; max-width: var(--gm-max); margin: 0 auto; padding: 0 var(--gm-gutter); }
.gm-eyebrow {
	display: inline-block;
	font-family: var(--gm-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--gm-muted);
	margin-bottom: 14px;
}
.gm-eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; opacity: .6; }

/* ---------- Boutons (pilules) ---------- */
.gm-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 34px;
	border-radius: 999px; border: 1.5px solid var(--gm-navy);
	background: var(--gm-navy); color: #fff;
	font-family: var(--gm-sans); font-size: 13px; font-weight: 600;
	letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.gm-btn:hover, .wp-block-button__link:hover { background: transparent; color: var(--gm-navy); }
.gm-btn--light { background: #fff; border-color: #fff; color: var(--gm-navy); }
.gm-btn--light:hover { background: transparent; color: #fff; }
.gm-btn--ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.gm-btn--ghost:hover { background: #fff; color: var(--gm-navy); }
.gm-btn--outline { background: transparent; color: var(--gm-navy); }
.gm-btn--outline:hover { background: var(--gm-navy); color: #fff; }
.gm-btn--sm { min-height: 42px; padding: 0 22px; font-size: 12px; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- En-tête ---------- */
.gm-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	height: var(--gm-header-h);
	transition: background .35s, box-shadow .35s, height .35s;
	color: #fff;
}
.gm-header::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0));
	pointer-events: none; transition: opacity .35s;
}
.gm-header.is-solid, body:not(.gm-has-hero) .gm-header {
	background: rgba(255,255,255,.97); color: var(--gm-navy);
	box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.05);
	--gm-header-h: 76px;
}
.gm-header.is-solid::before, body:not(.gm-has-hero) .gm-header::before { opacity: 0; }
.admin-bar .gm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .gm-header { top: 46px; } }.gm-header__inner {
	position: relative; height: 100%;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	max-width: 1440px; margin: 0 auto; padding: 0 var(--gm-gutter);
}
.gm-brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.gm-brand img { width: 54px; height: 54px; object-fit: contain; transition: width .35s, height .35s; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.gm-header.is-solid .gm-brand img, body:not(.gm-has-hero) .gm-brand img { width: 46px; height: 46px; filter: none; }
.gm-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.gm-brand__name { font-family: var(--gm-serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.gm-brand__tag { font-size: 12px; letter-spacing: .08em; opacity: .8; font-style: italic; }

.gm-nav { display: flex; align-items: center; gap: 28px; }
.gm-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; justify-content: flex-end; }
.gm-menu > li { position: relative; }
.gm-menu a {
	display: block; padding: 8px 0;
	color: inherit; text-decoration: none;
	font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
	position: relative;
}
.gm-menu > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.gm-menu > li > a:hover::after,
.gm-menu > li.current-menu-item > a::after,
.gm-menu > li.current-menu-ancestor > a::after,
.gm-menu > li.current_page_parent > a::after { transform: scaleX(1); }
.gm-menu .sub-menu {
	list-style: none; margin: 0; padding: 12px 0;
	position: absolute; top: 100%; left: -20px; min-width: 250px;
	background: #fff; border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.12);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.gm-menu li:hover > .sub-menu, .gm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.gm-menu .sub-menu a { color: var(--gm-navy); padding: 8px 22px; font-size: 13px; letter-spacing: .04em; }
.gm-menu .sub-menu a:hover { background: var(--gm-blue-soft); color: var(--gm-navy); }
.gm-header .gm-btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
.gm-header:not(.is-solid) .gm-header__cta { background: #fff; border-color: #fff; color: var(--gm-navy); }
.gm-header:not(.is-solid) .gm-header__cta:hover { background: transparent; color: #fff; }
body:not(.gm-has-hero) .gm-header .gm-header__cta { background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }

.gm-burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.gm-burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: .3s; }
.gm-nav-open .gm-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.gm-nav-open .gm-burger span:nth-child(2) { opacity: 0; }
.gm-nav-open .gm-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1100px) {
	.gm-burger { display: inline-flex; position: relative; z-index: 2; }
	.gm-nav {
		position: fixed; inset: 0; z-index: 1;
		flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 30px;
		padding: 130px var(--gm-gutter) 40px;
		background: var(--gm-navy-deep); color: #fff;
		opacity: 0; visibility: hidden; transition: .3s; overflow-y: auto;
	}
	.gm-nav-open .gm-nav { opacity: 1; visibility: visible; }
	.gm-nav-open .gm-header { color: #fff; background: transparent; box-shadow: none; }
	.gm-nav-open .gm-brand { position: relative; z-index: 2; }
	.gm-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
	.gm-menu a { font-family: var(--gm-serif); text-transform: none; letter-spacing: 0; font-size: 26px; font-weight: 400; }
	.gm-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
	.gm-menu .sub-menu a { color: rgba(255,255,255,.75); font-family: var(--gm-sans); font-size: 15px; padding: 4px 0; }
	.gm-menu .sub-menu a:hover { background: none; color: #fff; }
	.gm-header .gm-header__cta { background: #fff !important; border-color: #fff !important; color: var(--gm-navy) !important; }
}
@media (max-width: 520px) {
	.gm-brand__tag { display: none; }
	.gm-brand__name { font-size: 18px; }
}

/* ---------- Héros plein écran ---------- */
.gm-hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: flex; align-items: flex-end; justify-content: center;
	color: #fff; text-align: center; overflow: hidden;
	background: var(--gm-navy-deep);
}
.gm-hero__media { position: absolute; inset: 0; }
.gm-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: gm-zoom 18s ease-out forwards; }
@keyframes gm-zoom { to { transform: scale(1); } }
.gm-hero__media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(4,14,28,.35) 0%, rgba(4,14,28,.15) 40%, rgba(4,14,28,.65) 100%);
}
.gm-hero__content { position: relative; z-index: 1; padding: 140px var(--gm-gutter) clamp(110px, 15vh, 150px); max-width: 900px; }
.gm-hero__kicker { font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; opacity: .9; margin-bottom: 18px; }
.gm-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.gm-hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 400; color: rgba(255,255,255,.92); max-width: 640px; margin: 0 auto; }
.gm-hero .gm-actions { justify-content: center; margin-top: 36px; }
.gm-hero__scroll {
	position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1;
	color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; opacity: .85;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.gm-hero__scroll::after { content: ""; width: 1px; height: 34px; background: rgba(255,255,255,.7); animation: gm-line 2s infinite; transform-origin: top; }
@keyframes gm-line { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Héros de page intérieure */
.gm-page-hero { position: relative; min-height: 58vh; display: flex; align-items: flex-end; color: #fff; background: var(--gm-navy-deep); overflow: hidden; }
.gm-page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gm-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,14,28,.5), rgba(4,14,28,.2) 45%, rgba(4,14,28,.7)); }
.gm-page-hero .gm-container { position: relative; z-index: 1; padding-bottom: 56px; }
.gm-page-hero h1 { color: #fff; margin: 0; }
.gm-page-hero .gm-eyebrow { color: rgba(255,255,255,.85); }
.gm-breadcrumb { font-size: 13px; letter-spacing: .06em; margin-top: 14px; opacity: .85; }
.gm-breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.gm-section { padding: clamp(70px, 10vw, 130px) 0; }
.gm-section--soft { background: var(--gm-bg-soft); }
.gm-section--tight { padding: clamp(50px, 7vw, 80px) 0; }
.gm-section__head { max-width: 720px; margin-bottom: 48px; }
.gm-section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.gm-section__head--center .gm-eyebrow::before { display: none; }
.gm-lead { font-size: 1.15rem; color: var(--gm-text); }

.gm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.gm-split--reverse .gm-split__media { order: 2; }
.gm-split__media { position: relative; }
.gm-split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--gm-radius); }
.gm-split__media--wide img { aspect-ratio: 4/3; }
.gm-split__badge {
	position: absolute; right: -18px; bottom: 28px;
	background: #fff; color: var(--gm-navy); border-radius: 12px; padding: 18px 22px;
	box-shadow: 0 20px 40px rgba(0,0,0,.12); text-align: center;
}
.gm-split__badge strong { display: block; font-family: var(--gm-serif); font-size: 2.2rem; font-weight: 500; line-height: 1; color: var(--gm-navy); }
.gm-split__badge span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gm-muted); }
@media (max-width: 860px) {
	.gm-split { grid-template-columns: 1fr; }
	.gm-split--reverse .gm-split__media { order: 0; }
	.gm-split__badge { right: 16px; }
}

/* Bandeau statistiques (style « anniversaire ») */
.gm-band { position: relative; color: #fff; overflow: hidden; background: var(--gm-green); }
.gm-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.gm-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,24,.92), rgba(10,30,24,.55)); }
.gm-band .gm-container { position: relative; z-index: 1; }
.gm-band h2 { color: #fff; }
.gm-band .gm-eyebrow { color: rgba(255,255,255,.7); }
.gm-band p { color: rgba(255,255,255,.85); }
.gm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 56px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 40px; }
.gm-stat strong { display: block; font-family: var(--gm-serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; color: #fff; }
.gm-stat span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .gm-stats { grid-template-columns: repeat(2, 1fr); } }

/* Galerie défilante */
.gm-gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 30vw); gap: 16px; overflow-x: auto; padding: 0 var(--gm-gutter) 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gm-gallery-strip a { scroll-snap-align: start; border-radius: var(--gm-radius); overflow: hidden; display: block; }
.gm-gallery-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform .6s; }
.gm-gallery-strip a:hover img { transform: scale(1.05); }

/* Grille de galerie (shortcode) */
.gm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 30px 0; }
.gm-gallery a { display: block; overflow: hidden; border-radius: 10px; position: relative; background: #eee; }
.gm-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.gm-gallery--parcours img { aspect-ratio: 600/543; object-fit: cover; }
.gm-gallery a:hover img { transform: scale(1.05); }
.gm-gallery__label { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.95); color: var(--gm-navy); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px; }

/* Cartes services */
.gm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gm-card { background: #fff; border-radius: var(--gm-radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--gm-line), 0 14px 40px rgba(12,35,64,.06); transition: transform .35s, box-shadow .35s; text-decoration: none; color: inherit; }
.gm-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(12,35,64,.12); color: inherit; }
.gm-card__img { aspect-ratio: 4/3; overflow: hidden; }
.gm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gm-card:hover .gm-card__img img { transform: scale(1.06); }
.gm-card__body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.gm-card__body p { font-size: 15.5px; flex: 1; }
.gm-card__more { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-navy); }
.gm-card__more::after { content: " →"; }
@media (max-width: 900px) { .gm-cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* Bandeau promo */
.gm-promo { background: var(--gm-navy); color: #fff; border-radius: 20px; padding: clamp(36px, 6vw, 70px); display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.gm-promo::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(109,172,219,.25); right: -120px; top: -160px; }
.gm-promo__pct { font-family: var(--gm-serif); font-size: clamp(4rem, 9vw, 6.5rem); line-height: 1; color: var(--gm-blue); }
.gm-promo h2 { color: #fff; margin-bottom: .3em; }
.gm-promo p { color: rgba(255,255,255,.8); margin: 0; }
@media (max-width: 860px) { .gm-promo { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Contenu des pages ---------- */
.gm-content { padding: clamp(60px, 8vw, 100px) 0; }
.gm-prose { max-width: 860px; margin: 0 auto; }
.gm-prose > * + h2 { margin-top: 1.8em; }
.gm-prose h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); }
.gm-prose h3 { margin-top: 1.6em; }
.gm-prose ul { padding-left: 1.2em; }
.gm-prose li { margin-bottom: .45em; }
.gm-prose li::marker { color: var(--gm-blue); }
.gm-prose .alignwide { max-width: 1120px; margin-left: 50%; transform: translateX(-50%); width: 100vw; padding: 0 var(--gm-gutter); }

/* Accordéons : bloc Détails */
.wp-block-details {
	border-top: 1px solid var(--gm-line);
	padding: 0;
	margin: 0 !important;
}
.wp-block-details:last-of-type { border-bottom: 1px solid var(--gm-line); }
.wp-block-details + :not(.wp-block-details) { margin-top: 2em; }
.wp-block-details summary {
	list-style: none; cursor: pointer;
	display: flex; justify-content: space-between; align-items: center; gap: 20px;
	padding: 22px 0;
	font-family: var(--gm-serif); font-size: 1.25rem; font-weight: 500; color: var(--gm-navy);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--gm-line); display: grid; place-items: center;
	font-family: var(--gm-sans); font-weight: 300; font-size: 22px; line-height: 1; transition: .3s;
}
.wp-block-details[open] summary::after { content: "−"; background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }
.wp-block-details > :not(summary) { margin-left: 0; margin-right: 0; }
.wp-block-details[open] { padding-bottom: 24px; }

/* Tableaux */
.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.wp-block-table th, .wp-block-table td { padding: 13px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--gm-line); }
.wp-block-table thead th { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-muted); border-bottom: 2px solid var(--gm-navy); }
.wp-block-table tbody tr:hover { background: var(--gm-bg-soft); }
.wp-block-table td:first-child { font-weight: 500; color: var(--gm-ink); }
.wp-block-table figcaption { font-size: 13px; color: var(--gm-muted); margin-top: 10px; }
.gm-note { font-size: 14px; color: var(--gm-muted); font-style: italic; }

.wp-block-image img { border-radius: var(--gm-radius); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--gm-line); margin: 3em 0; }
.wp-block-quote { border-left: 3px solid var(--gm-blue); margin: 2em 0; padding: 4px 0 4px 26px; font-family: var(--gm-serif); font-size: 1.2rem; color: var(--gm-navy); }

/* Encadrés info (groupe .gm-box) */
.gm-box { background: var(--gm-bg-soft); border-radius: var(--gm-radius); padding: 30px 34px; margin: 2em 0; }
.gm-box > :last-child { margin-bottom: 0; }
.gm-box--navy { background: var(--gm-navy); color: rgba(255,255,255,.85); }
.gm-box--navy h2, .gm-box--navy h3, .gm-box--navy strong { color: #fff; }
.gm-box--navy a { color: var(--gm-blue); }

.gm-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin: 2em 0; }
.gm-columns > * { margin: 0; }
.gm-columns > .wp-block-group__inner-container { display: contents; }
.gm-box > .wp-block-group__inner-container > :last-child { margin-bottom: 0; }

/* Vidéos (shortcode) */
.gm-video-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5em 0 2.5em; }
.gm-play::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* Fenêtre modale (vidéo + visionneuse) */
.gm-modal { position: fixed; inset: 0; z-index: 200; background: rgba(4,12,24,.92); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.gm-modal.is-open { display: flex; }
.gm-modal__frame { width: min(1100px, 100%); aspect-ratio: 16/9; background: #000; border-radius: 10px; overflow: hidden; }
.gm-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.gm-modal__img { max-width: min(1200px, 100%); max-height: 84vh; width: auto; border-radius: 8px; }
.gm-modal__close, .gm-modal__nav { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.gm-modal__close:hover, .gm-modal__nav:hover { background: rgba(255,255,255,.25); }
.gm-modal__close { top: 20px; right: 20px; }
.gm-modal__nav[hidden] { display: none; }
.gm-modal__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.gm-modal__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.gm-modal__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* Sous-navigation (section membres) */
.gm-subnav { background: var(--gm-bg-soft); border-bottom: 1px solid var(--gm-line); position: sticky; top: 76px; z-index: 10; }
.gm-subnav ul { list-style: none; margin: 0 auto; padding: 0 var(--gm-gutter); max-width: var(--gm-max); display: flex; gap: 6px 26px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.gm-subnav ul::-webkit-scrollbar { display: none; }
.gm-subnav a { display: block; padding: 16px 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gm-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.gm-subnav a:hover, .gm-subnav .is-current a { color: var(--gm-navy); border-bottom-color: var(--gm-navy); }

/* Grille des sous-pages */
.gm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 30px; }
.gm-tile { display: block; padding: 28px; border-radius: var(--gm-radius); border: 1px solid var(--gm-line); text-decoration: none; transition: .3s; }
.gm-tile:hover { border-color: var(--gm-navy); background: var(--gm-navy); }
.gm-tile strong { display: block; font-family: var(--gm-serif); font-weight: 500; font-size: 1.2rem; color: var(--gm-navy); margin-bottom: 6px; }
.gm-tile span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-muted); }
.gm-tile:hover strong, .gm-tile:hover span { color: #fff; }

/* Carte Google */
.gm-map { border-radius: var(--gm-radius); overflow: hidden; aspect-ratio: 16/10; background: #e9eef2; }
.gm-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pied de page ---------- */
.gm-prefooter { background: var(--gm-navy); color: #fff; text-align: center; padding: clamp(60px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.gm-prefooter img.gm-prefooter__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.gm-prefooter .gm-container { position: relative; }
.gm-prefooter h2 { color: #fff; }
.gm-prefooter p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto; }
.gm-prefooter .gm-actions { justify-content: center; }

.gm-footer { background: #f9f9f9; padding: 80px 0 30px; font-size: 15px; }
.gm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.gm-footer h4 { font-family: var(--gm-sans); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gm-navy); margin-bottom: 18px; }
.gm-footer ul { list-style: none; margin: 0; padding: 0; }
.gm-footer li { margin-bottom: 8px; }
.gm-footer a { color: var(--gm-text); text-decoration: none; }
.gm-footer a:hover { color: var(--gm-navy); text-decoration: underline; }
.gm-footer__brand img { width: 74px; margin-bottom: 18px; }
.gm-footer__brand p { color: var(--gm-muted); max-width: 300px; }
.gm-footer__bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--gm-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #999; }
@media (max-width: 900px) { .gm-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gm-footer__grid { grid-template-columns: 1fr; } }

/* Apparition au défilement */
.gm-reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.gm-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.gm-reveal { opacity: 1; transform: none; }
	.gm-hero__media img { animation: none; transform: none; }
}

/* Widget Chronogolf */
.chrono-bookingbutton { display: inline-block; }

/* Articles / index */
.gm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.gm-pagination { margin-top: 40px; text-align: center; }

/* Champions des années antérieures */
.gm-champions { margin: 1.5em 0 2.5em; }
.gm-champions__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 22px; background: var(--gm-bg-soft); border-radius: var(--gm-radius); }
.gm-champions__bar label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-muted); }
.gm-champions__select {
	appearance: none; -webkit-appearance: none;
	font: 500 1.1rem var(--gm-serif); color: var(--gm-navy);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c2340' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 1px solid var(--gm-line); border-radius: 999px; padding: 10px 44px 10px 20px; cursor: pointer; min-width: 140px;
}
.gm-champions__select:focus { outline: 2px solid var(--gm-blue); outline-offset: 2px; }
.gm-champions__year h3 { margin-top: 1.4em; }
/* Sous-menus de 3e niveau (ex. Membres › Coin du capitaine › …) */
.gm-menu .sub-menu li { position: relative; }
.gm-menu .sub-menu .menu-item-has-children > a { padding-left: 38px; }
.gm-menu .sub-menu .menu-item-has-children > a::after { content: "‹"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); font-size: 16px; line-height: 1; }
.gm-menu .sub-menu .sub-menu { top: -12px; left: auto; right: 100%; }
@media (max-width: 1100px) {
	.gm-menu .sub-menu .menu-item-has-children > a { padding-left: 0; }
	.gm-menu .sub-menu .menu-item-has-children > a::after { content: none; }
	.gm-menu .sub-menu .sub-menu { padding: 0 0 4px 16px; }
	.gm-menu .sub-menu .sub-menu a { font-size: 14px; color: rgba(255,255,255,.6); }
}

/* Blogue des membres */
.gm-blog { margin: 2em 0; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.gm-chip { display: inline-block; padding: 8px 18px; border: 1px solid var(--gm-line); border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--gm-navy); text-decoration: none; background: #fff; transition: .2s; }
.gm-chip:hover { border-color: var(--gm-navy); color: var(--gm-navy); }
.gm-chip.is-active { background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }
.gm-blog .gm-card h3 { margin: .3em 0 .5em; }
.gm-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; margin: 0 3px; border-radius: 50%; border: 1px solid var(--gm-line); color: var(--gm-navy); text-decoration: none; }
.gm-pagination .page-numbers.current { background: var(--gm-navy); border-color: var(--gm-navy); color: #fff; }
/* Blogue : auteur, date, catégorie */
.gm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--gm-muted); margin: 0 0 12px; }
.gm-meta__sep { opacity: .6; }
.gm-meta a { color: inherit; }
.gm-page-hero .gm-meta { color: rgba(255,255,255,.85); font-size: 14px; margin: 16px 0 0; }
.gm-page-hero .gm-meta a { color: #fff; }
.gm-chip__count { display: inline-block; margin-left: 4px; font-size: 11px; opacity: .6; }

/* Article vedette */
.gm-feature { display: grid; grid-template-columns: 1.25fr 1fr; background: #fff; border-radius: var(--gm-radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 0 var(--gm-line), 0 14px 40px rgba(12,35,64,.06); transition: transform .35s, box-shadow .35s; margin-bottom: 28px; }
.gm-feature:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(12,35,64,.12); color: inherit; }
.gm-feature__img { min-height: 320px; overflow: hidden; }
.gm-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gm-feature:hover .gm-feature__img img { transform: scale(1.04); }
.gm-feature__body { padding: 36px 38px; display: flex; flex-direction: column; justify-content: center; }
.gm-feature__body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: .2em 0 .4em; }
.gm-feature__body p { font-size: 16px; }
@media (max-width: 860px) {
	.gm-feature { grid-template-columns: 1fr; }
	.gm-feature__img { min-height: 0; aspect-ratio: 16/10; }
	.gm-feature__body { padding: 26px 26px 30px; }
}

/* Deux articles suivants */
.gm-posts--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .gm-posts--two { grid-template-columns: 1fr; } }

/* Titres seulement */
.gm-post-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--gm-line); }
.gm-post-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--gm-line); }
.gm-post-list a { display: block; flex: 1; padding: 16px 0; font-family: var(--gm-serif); font-size: 1.12rem; color: var(--gm-navy); text-decoration: none; }
.gm-post-list a::after { content: " →"; opacity: 0; transition: opacity .2s; }
.gm-post-list a:hover::after { opacity: 1; }
.gm-post-list time { flex: none; font-size: 13px; color: var(--gm-muted); }
.gm-blog__older { margin-top: 48px; }
.gm-blog__older h3 { margin-bottom: .4em; }
.gm-blog__intro { margin-bottom: 24px; }