/*
Theme Name:  golfradar
Description: Thème de golfradar.fr — carte des compétitions de golf en France.
Version:     0.10.3
Requires at least: 6.4
Requires PHP: 8.1
Author:      golfradar.fr
Text Domain: golfradar
Copyright:   © 2026 golfradar.fr — tous droits réservés.
*/

:root {
	/* Palette « club-house » : crème, vert sapin, laiton */
	--gr-green: #2f4a34;
	--gr-green-dark: #1f3324;
	--gr-green-soft: #e4ebdd;
	--gr-brass: #8c5410;
	--gr-orange: #8c5410; /* ancien nom, conservé pour compatibilité */
	--gr-ink: #2a2620;
	--gr-ink-2: #463f35;
	--gr-muted: #675d4f;
	--gr-line: #e4dac8;
	--gr-line-2: #d0c2a9;
	--gr-bg: #f6f1e6;
	--gr-surface: #fffcf6;
	--gr-card: #fbf6ec;
	--gr-radius: 6px;
	--gr-font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--gr-font-title: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--gr-font);
	color: var(--gr-ink);
	background: var(--gr-bg);
	line-height: 1.5;
}

a { color: var(--gr-green); }
a:hover { color: var(--gr-ink); }

h1, h2, h3 { font-family: var(--gr-font-title); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- En-tête ---------- */
.gr-header {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
	padding: 12px 24px; background: var(--gr-surface); border-bottom: 1px solid var(--gr-line);
}
.gr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gr-logo span { font-family: var(--gr-font-title); font-size: 28px; font-weight: 700; letter-spacing: .02em; line-height: 1; text-transform: uppercase; color: var(--gr-green); }
.gr-tagline { font-size: 13px; color: var(--gr-muted); }
.gr-header nav { margin-left: auto; display: flex; gap: 18px; }
.gr-header nav a { text-decoration: none; font-family: var(--gr-font-title); font-size: 17px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gr-ink); }
.gr-header nav a:hover { color: var(--gr-green); }
.gr-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }

/* ---------- Pages de contenu ---------- */
.gr-page { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
.gr-page h1 { font-size: 40px; margin: 0 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--gr-ink); }
.gr-breadcrumb { font-size: 13px; color: var(--gr-muted); margin-bottom: 12px; }
.gr-meta { color: var(--gr-muted); margin-top: -4px; }
.gr-cards { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.gr-card {
	display: flex; flex-direction: column; gap: 8px; padding: 16px;
	border: 1px solid var(--gr-line); border-top: 4px solid var(--gr-green); border-radius: var(--gr-radius); background: var(--gr-card);
}
.gr-card h3 { margin: 0; font-size: 24px; color: var(--gr-ink); }
.gr-card ul { margin: 0; padding: 0; list-style: none; color: var(--gr-ink-2); font-size: 14px; }
.gr-badge {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 4px;
	color: #fff; font-family: var(--gr-font-title); font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.gr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gr-small { font-size: 13px; color: var(--gr-muted); }
.gr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
	padding: 0 18px; border-radius: var(--gr-radius); border: 0; background: var(--gr-green); color: #fff;
	font: 700 15px var(--gr-font); text-decoration: none; cursor: pointer;
}
.gr-btn:hover { background: var(--gr-green-dark); color: #fff; }
.gr-btn--ghost { background: var(--gr-surface); color: var(--gr-ink); border: 1px solid var(--gr-line-2); font-weight: 600; font-size: 14px; }
.gr-btn--ghost:hover { background: var(--gr-green-soft); color: var(--gr-ink); }
.gr-list-plain { padding-left: 18px; }

/* ---------- Pied de page ---------- */
.gr-footer { padding: 18px 20px; font-size: 13px; color: var(--gr-muted); text-align: center; border-top: 1px solid var(--gr-line); background: var(--gr-surface); }
.gr-footer a { color: var(--gr-muted); text-decoration: none; }
.gr-footer a:hover { color: var(--gr-ink); text-decoration: underline; }
.gr-footer__note { margin: 0 0 8px; }
.gr-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.gr-footer--app { padding: 10px 16px; font-size: 12px; }

/* Pages de contenu (mentions, confidentialité, votre golf…) */
.gr-page .page h2 { font-size: 24px; margin: 30px 0 10px; }
.gr-page .page p, .gr-page .page li { line-height: 1.6; }
.gr-page .page ul, .gr-page .page ol { padding-left: 22px; }
.gr-page .page li { margin: 4px 0; }
.gr-lead { font-size: 19px; line-height: 1.5; color: var(--gr-ink); }
.gr-a-completer { background: #FBE3B8; color: #6B3A06; padding: 0 4px; border-radius: 3px; }

/* Formulaire de contact */
.gr-form { margin-top: 18px; padding: 20px; background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: 10px; }
.gr-form p { margin: 0 0 14px; }
.gr-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.gr-form input[type=text], .gr-form input[type=email], .gr-form select, .gr-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--gr-ink); background: #fff; border: 1px solid var(--gr-line-2); border-radius: 8px; }
.gr-form textarea { resize: vertical; }
.gr-form :focus-visible { outline: 2px solid var(--gr-green); outline-offset: 1px; }
.gr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.gr-form__note { font-size: 13px; color: var(--gr-muted); }
.gr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gr-notice { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.gr-notice--ok { background: #E3EEDD; color: #234021; }
.gr-notice--err { background: #F7DCD3; color: #7A2A12; }
@media (max-width: 640px) { .gr-form__row { grid-template-columns: 1fr; } }

/* ---------- Page golf : calendrier sur 12 mois ---------- */
.gr-page--wide { max-width: 1120px; }
.gr-page h2 { font-size: 28px; margin: 32px 0 12px; }
.gr-golf-actions { margin: 14px 0 8px; }
.gr-season__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-bottom: 8px; border-bottom: 2px solid var(--gr-ink); margin: 28px 0 14px; }
.gr-season__head h2 { margin: 0; }
.gr-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.gr-cal__month { padding: 10px 12px 12px; background: var(--gr-surface); border: 1px solid var(--gr-line); border-top: 3px solid var(--gr-green); border-radius: var(--gr-radius); }
.gr-cal__month--empty { border-top-color: var(--gr-line-2); background: transparent; }
.gr-cal__month h3 { margin: 0 0 8px; font-size: 20px; color: var(--gr-ink); }
.gr-cal__month h3 span { color: var(--gr-muted); font-weight: 500; }
.gr-cal__month > p { margin: 0; color: var(--gr-muted); }
.gr-cal__month ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gr-cal__month a { display: grid; grid-template-columns: 54px auto 1fr; align-items: center; gap: 8px; min-height: 30px; text-decoration: none; color: var(--gr-ink); border-radius: 4px; }
.gr-cal__month a:hover { background: var(--gr-green-soft); }
.gr-cal__day { font-size: 13px; font-weight: 600; text-transform: capitalize; }
.gr-cal__month b { padding: 1px 6px; border-radius: 3px; color: #fff; font-family: var(--gr-font-title); font-size: 13px; letter-spacing: .03em; text-align: center; }
.gr-cal__name { font-size: 13px; color: var(--gr-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-cal .is-past { opacity: .5; }

/* ---------- Lots à gagner ---------- */
.gr-lots { margin: 4px 0 2px; padding: 10px 12px; border: 1px solid #e2c48f; border-radius: var(--gr-radius); background: #fbf1df; }
.gr-lots__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; font-family: var(--gr-font-title); font-size: 17px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gr-brass); }
.gr-lots__title span { font-family: var(--gr-font); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--gr-ink-2); }
.gr-lots ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gr-lots li { display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 8px; font-size: 14px; color: var(--gr-ink); }
.gr-lots li b { font-family: var(--gr-font-title); font-size: 16px; color: var(--gr-brass); }
.gr-lots li em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--gr-muted); white-space: nowrap; }
.gr-lots li.is-tirage { grid-template-columns: 1fr auto; margin-top: 4px; padding-top: 6px; border-top: 1px dashed #e2c48f; }
.gr-lots li.is-tirage b { grid-column: 1 / -1; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.gr-lots li.is-tirage span { font-weight: 700; }
.gr-lots .gr-small { margin: 6px 0 0; }
.gr-logo__mark { display: block; width: 38px; height: 38px; flex-shrink: 0; }
.gr-logo__mark svg { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .gr-logo__mark { width: 32px; height: 32px; } }

/* ---------- Résultats ---------- */
.gr-results { margin-top: 28px; }
.gr-results__table { width: 100%; border-collapse: collapse; background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: var(--gr-radius); overflow: hidden; font-size: 14px; }
.gr-results__table th { padding: 8px 10px; text-align: left; font-family: var(--gr-font-title); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--gr-muted); background: var(--gr-card); border-bottom: 2px solid var(--gr-ink); }
.gr-results__table td { padding: 7px 10px; border-bottom: 1px solid var(--gr-line); }
.gr-results__table td:first-child { width: 56px; font-family: var(--gr-font-title); font-size: 17px; font-weight: 700; }
.gr-results__table tr.is-podium td:first-child { color: var(--gr-brass); }
.gr-results__table tr.is-podium td:nth-child(2) { font-weight: 700; }
.gr-retrait { margin-top: 12px; font-size: 14px; }
.gr-retrait summary { cursor: pointer; color: var(--gr-muted); }
.gr-retrait input, .gr-retrait textarea { width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid var(--gr-line-2); border-radius: var(--gr-radius); font: inherit; background: var(--gr-card); }

/* Fiche golf : derniers résultats */
.gr-last-results { margin-top: 36px; }
.gr-last-results__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gr-last-results__item { background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: 10px; padding: 14px 16px; }
.gr-last-results__item header { display: flex; gap: 10px; align-items: flex-start; }
.gr-last-results__item h3 { margin: 0; font-size: 19px; line-height: 1.15; }
.gr-last-results__item h3 a { color: var(--gr-ink); text-decoration: none; }
.gr-last-results__item h3 a:hover { text-decoration: underline; }
.gr-last-results__item header .gr-small { margin: 2px 0 0; }
.gr-last-results__item .gr-badge { flex: none; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; padding: 2px 6px; border-radius: 4px; margin-top: 2px; }
.gr-podium { list-style: none; margin: 12px 0 8px; padding: 0; }
.gr-podium li { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--gr-line); font-size: 14px; }
.gr-podium li:first-child { border-top: 0; }
.gr-podium__rang { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--gr-green-soft); color: var(--gr-green); }
.gr-podium li:first-child .gr-podium__rang { background: #E9C46A; color: #4A3205; }
.gr-podium__score { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--gr-muted); }

/* Page « Votre golf » : tarifs */
.gr-tarifs { width: 100%; border-collapse: collapse; margin: 8px 0 16px; background: var(--gr-surface); border: 1px solid var(--gr-line); border-radius: 10px; overflow: hidden; font-size: 15px; }
.gr-tarifs th, .gr-tarifs td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--gr-line); vertical-align: top; }
.gr-tarifs thead th { border-top: 0; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--gr-muted); background: var(--gr-bg, transparent); }
.gr-tarifs td:last-child { white-space: nowrap; text-align: right; }
.gr-offre { padding: 12px 14px; border-left: 4px solid var(--gr-brass, #8C5410); background: #FBEFD9; border-radius: 0 8px 8px 0; }
@media (max-width: 640px) {
  .gr-tarifs thead { display: none; }
  .gr-tarifs tr { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--gr-line); }
  .gr-tarifs tr:first-child { border-top: 0; }
  .gr-tarifs td { border-top: 0; }
  .gr-tarifs td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; color: var(--gr-muted); font-size: 14px; }
}

/* Séries */
.gr-series-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.gr-series-nav a { padding: 4px 10px; border: 1px solid var(--gr-line-2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gr-ink); text-decoration: none; background: var(--gr-surface); }
.gr-series-nav a:hover { border-color: var(--gr-green); color: var(--gr-green); }
.gr-results__serie { margin: 22px 0 8px; font-size: 20px; scroll-margin-top: 80px; }
.gr-results__serie span { font-family: var(--gr-font-body, inherit); font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gr-muted); margin-left: 6px; }
.gr-podium__serie { margin: 12px 0 -6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--gr-brass); }
