/* Page d'une actualité et page d'un événement : styles de maquettes/actualites-adherents.html (écrans « actualite »
   et « evenement »), repris tels quels. Retirés : les polices (fournies par le socle), les repères et les étiquettes
   « exemple » de la maquette. Les ajouts propres au site sont à la fin, sous « Ajouts hors maquette ». */

:root {
	--ink: #111;
	--text: #333;
	--muted: #777;
	--line: #e4e4e4;
	--bg: #f4f4f4;
	--card: #fff;
	--gold: #b18d17;
	--gold-deep: #8c6f10;
	--wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* En-tête du site, simplifié */
.site-tete { background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-tete-in { max-width: var(--wrap); margin: 0 auto; height: 72px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.site-tete nav { display: flex; gap: 34px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { display: block; width: auto; height: 50px; }

/* ---------- 1. Page du golf : le bloc News & Events ---------- */
.bloc { padding: 72px 16px 88px; }
.bloc-in { max-width: var(--wrap); margin: 0 auto; }
.bloc h2 { margin: 0; color: var(--ink); font-size: 34px; font-weight: 700; letter-spacing: -.01em; text-align: center; text-transform: uppercase; }
.bloc-intro { max-width: 720px; margin: 12px auto 40px; text-align: center; color: var(--text); }
.cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.carte { position: relative; display: flex; flex-direction: column; background: var(--card); text-decoration: none; color: var(--text); transition: transform .25s ease, box-shadow .25s ease; }
.carte:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.carte-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #ddd; }
.carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte:hover .carte-photo img { transform: scale(1.04); }
.pastille { position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 62px; padding: 8px 0 7px; background: var(--gold); color: #fff; text-align: center; line-height: 1; }
.pastille b { font-size: 24px; font-weight: 700; }
.pastille span { margin-top: 4px; font-size: 11px; letter-spacing: .12em; }
.carte-corps { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.sur-titre { color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.carte h3 { margin: 0; color: var(--ink); font-size: 19px; line-height: 1.25; font-weight: 700; text-transform: uppercase; }
.carte p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lire { margin-top: auto; padding-top: 8px; color: var(--ink); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.lire::after { content: " →"; transition: margin .2s ease; }
.carte:hover .lire::after { margin-left: 4px; }

/* ---------- 2 et 3. La page d'une actualité ou d'un événement ---------- */
.heros { position: relative; height: min(64vh, 620px); min-height: 420px; overflow: hidden; background: #222; }
.heros img { width: 100%; height: 100%; object-fit: cover; }
.heros::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.62) 100%); }
.heros-texte { position: absolute; z-index: 1; left: 0; right: 0; bottom: 52px; }
.heros-texte .in { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.fil { display: inline-flex; gap: 10px; align-items: center; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.fil i { width: 26px; height: 1px; background: var(--gold); }
.heros h1 { max-width: 820px; margin: 14px 0 0; color: #fff; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -.015em; text-transform: uppercase; }

.corps { max-width: var(--wrap); margin: 0 auto; padding: 64px 16px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.chapeau { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.55; }
.retour { display: inline-block; margin-top: 36px; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.retour:hover { color: var(--ink); }

.encart { position: sticky; top: 24px; background: var(--card); box-shadow: 0 1px 0 var(--line), 0 20px 40px rgba(0,0,0,.05); }
.encart-date { display: flex; gap: 18px; align-items: center; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.encart-date .gros { display: grid; place-items: center; width: 74px; padding: 10px 0 9px; background: var(--gold); color: #fff; line-height: 1; }
.encart-date .gros b { font-size: 28px; }
.encart-date .gros span { margin-top: 5px; font-size: 11px; letter-spacing: .14em; }
.encart-date p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.encart-date small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.encart-ligne { display: flex; gap: 10px; align-items: center; padding: 16px 26px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.encart-ligne svg { flex: none; width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.golf { display: flex; gap: 14px; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--line); text-decoration: none; }
.golf img { width: 64px; height: 48px; object-fit: cover; }
.golf b { display: block; color: var(--ink); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; }
.golf span { color: var(--muted); font-size: 13px; }
.golf:hover b { color: var(--gold-deep); }
.actions { display: grid; gap: 10px; padding: 22px 26px 26px; }

/* Les boutons : l'action de l'adhérent en plein, le golf en cadre fin. */
.btn-plein, .btn-cadre { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-plein { background: var(--gold); color: #fff; }
.btn-plein:hover { background: var(--gold-deep); }
.btn-plein svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-cadre { border: 1px solid var(--ink); color: var(--ink); }
.btn-cadre:hover { background: var(--ink); color: #fff; }
.note-lien { margin: 2px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.suite { max-width: var(--wrap); margin: 0 auto; padding: 48px 16px 88px; }
.suite h2 { margin: 0 0 22px; color: var(--ink); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.suite .cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
	.site-tete nav { display: none; }
	.cartes, .suite .cartes { grid-template-columns: 1fr; }
	.corps { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; }
	.encart { position: static; }
	.site-tete-in { justify-content: center; }
	.heros { min-height: 420px; }
	.heros-texte { bottom: 36px; }
	/* Comme sur la page d'un établissement : tout le haut de page centré. */
	.heros-texte .in { text-align: center; }
	.fil i { display: none; }
	.heros h1 { margin-left: auto; margin-right: auto; font-size: clamp(32px, 9.5vw, 44px); }
	.chapeau { font-size: 19px; text-align: center; }
	.retour { display: block; text-align: center; }
	.bloc h2, .suite h2 { text-align: center; }
}

/* ---------- Ajouts hors maquette ----------
   La maquette montre un contenu d'adhérent complet (photo, texte court, fiche, lien). Le site a aussi les anciennes
   actualités et les anciens événements de l'équipe : sans fiche, parfois avec un long texte mis en forme et des
   lignes « Photos et textes ». Ces règles tiennent la page dans ces cas, avec la typographie de la maquette. */

/* L'en-tête du site reste collé en haut (72 px), ce qu'il ne fait pas dans la maquette : l'encart se cale dessous. */
@media (min-width: 901px) {
	.encart { top: 96px; }
	.admin-bar .encart { top: 128px; }
}
.encart-date .gros, .golf img { flex: none; }
.golf div { min-width: 0; }

/* Sans photo : un bandeau sombre plus bas, le titre seul. */
.heros.sans-photo { height: auto; min-height: 0; padding: 150px 0 52px; }
.heros.sans-photo::after { content: none; }
.heros.sans-photo .heros-texte { position: static; }

/* Sans encart (ancienne actualité : ni dates à montrer, ni fiche, ni lien) : une seule colonne de lecture. */
.corps.sans-encart { grid-template-columns: minmax(0, 820px); }

/* Texte en plusieurs paragraphes */
.chapeau + .chapeau { margin-top: .9em; }
.retour.seul { margin-top: 0; }

/* Ancien texte mis en forme (intertitres, listes, liens, images) et lignes « Photos et textes » */
.texte { color: var(--text); font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.chapeau + .texte, .texte + .texte { margin-top: 28px; }
.texte > :first-child { margin-top: 0; }
.texte > :last-child { margin-bottom: 0; }
.texte p, .texte ul, .texte ol { margin: 0 0 1em; }
.texte ul, .texte ol { padding-left: 1.2em; }
.texte li { margin-bottom: .35em; }
.texte h2, .texte h3, .texte h4 { margin: 1.7em 0 .6em; color: var(--ink); font-size: 18px; line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.texte a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.texte a:hover { color: var(--ink); }
.texte figure { margin: 1.6em 0; }
.texte img { height: auto; }
.texte figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.volet { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.volet h2 { margin: 0 0 22px; color: var(--ink); font-size: 22px; line-height: 1.25; font-weight: 700; text-transform: uppercase; }
.volet > img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: 24px; }

/* Formulaire de mot de passe de WordPress (contenu protégé) */
.post-password-form { max-width: 520px; }
.post-password-form input[type="password"] { height: 44px; margin: 0 8px; padding: 0 12px; border: 1px solid var(--line); font: inherit; }
.post-password-form input[type="submit"] { height: 44px; padding: 0 20px; border: 0; background: var(--gold); color: #fff; font: inherit; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

@media (max-width: 900px) {
	.heros.sans-photo { padding: 120px 0 36px; }
	.texte { font-size: 16px; }
	.volet { margin-top: 40px; padding-top: 32px; }
	.volet h2 { text-align: center; }
}
