/* Golf Vendée 85 — styles des blocs.
   Volontairement neutres en typographie : les blocs héritent de la police
   d'Avada. Seules les couleurs sont pilotées, et elles sont réglables
   depuis Réglages ▸ Golf Vendée 85. */

.g85 {
  --g85-vert: #2e6b4c;
  --g85-vert-clair: #e4efe7;
  --g85-sable: #b5822f;
  --g85-drapeau: #a8402f;
  --g85-encre: #1b2420;
  --g85-encre-2: #4e5a53;
  --g85-encre-3: #808b84;
  --g85-trait: #e0e5dd;
  --g85-fond: #ffffff;
  --g85-fond-2: #f4f7f2;
  --g85-rayon: 8px;

  box-sizing: border-box;
  color: var(--g85-encre);
  line-height: 1.5;
}
.g85 *, .g85 *::before, .g85 *::after { box-sizing: border-box; }

.g85-titre {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--g85-encre);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}
.g85-titre em {
  font-style: normal;
  font-size: .78rem;
  font-weight: 500;
  color: var(--g85-encre-3);
}

/* ---------- les sept parcours ---------- */

.g85-golfs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.g85-golf {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--g85-fond);
  border: 1px solid var(--g85-trait);
  border-radius: var(--g85-rayon);
  padding: 14px 15px 11px;
  transition: border-color .16s ease, transform .16s ease;
}
.g85-golf:hover { border-color: var(--g85-vert); transform: translateY(-1px); }
.g85-golf-lien { display: flex; flex-direction: column; gap: 2px; text-decoration: none !important; color: inherit; }
.g85-mono {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--g85-vert);
  margin-bottom: 3px;
}
.g85-nom { font-weight: 700; font-size: .89rem; line-height: 1.25; }
.g85-ville { font-size: .74rem; color: var(--g85-encre-3); }
.g85-liens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 9px; }
.g85-liens a {
  font-size: .7rem;
  color: var(--g85-encre-3);
  text-decoration: none !important;
  border-bottom: 1px solid var(--g85-trait);
  padding-bottom: 1px;
}
.g85-liens a:hover { color: var(--g85-vert); border-color: var(--g85-vert); }

/* ---------- panneaux ---------- */

.g85-grille {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) { .g85-grille { grid-template-columns: 1fr; } }

.g85-panneau {
  background: var(--g85-fond);
  border: 1px solid var(--g85-trait);
  border-radius: var(--g85-rayon);
  padding: 16px 0 0;
  overflow: hidden;
}
.g85-panneau > .g85-titre { padding: 0 16px 13px; margin: 0; border-bottom: 1px solid var(--g85-trait); }

.g85-lignes { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.g85-lignes > li { margin: 0 !important; border-bottom: 1px solid var(--g85-trait); }
.g85-lignes > li:last-child { border-bottom: 0; }
.g85-lignes > li::before { display: none !important; }
.g85-lignes > li > a {
  display: block;
  padding: 12px 16px;
  text-decoration: none !important;
  color: inherit;
  transition: background .13s ease;
}
.g85-lignes > li > a:hover { background: var(--g85-fond-2); }

.g85-l-top { display: flex; align-items: baseline; gap: 9px; }
.g85-l-titre { font-weight: 600; font-size: .9rem; line-height: 1.3; flex: 1; min-width: 0; }
.g85-l-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 3px;
  font-size: .75rem;
  color: var(--g85-encre-3);
}
.g85-l-sub b { font-weight: 600; color: var(--g85-encre-2); }

.g85-extrait {
  display: block;
  margin-top: 4px;
  font-size: .79rem;
  line-height: 1.45;
  color: var(--g85-encre-2);
}

.g85-quand {
  flex: none;
  white-space: nowrap;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--g85-sable);
  font-variant-numeric: tabular-nums;
}
.g85-quand.g85-auj { color: var(--g85-drapeau); }

.g85-heure {
  flex: none;
  min-width: 48px;
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

/* la pastille reprend la couleur réelle des repères transmise par la ffgolf */
.g85-tee {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 2px;
  align-self: center;
  border: 1px solid rgba(0, 0, 0, .28);
}

.g85-score {
  flex: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--g85-vert);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: right;
}
.g85-score small {
  display: block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--g85-encre-3);
  margin-top: 1px;
}

.g85-vide {
  padding: 22px 16px;
  font-size: .8rem;
  line-height: 1.55;
  color: var(--g85-encre-3);
}
.g85-vide b { display: block; margin-bottom: 3px; color: var(--g85-encre-2); font-weight: 600; }

/* ---------- pied ---------- */

.g85-synchro {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: .72rem;
  color: var(--g85-encre-3);
}
.g85-point { width: 7px; height: 7px; border-radius: 50%; background: var(--g85-vert); flex: none; }
.g85-vieux .g85-point { background: var(--g85-sable); }

.g85-dashboard > .g85-golfs-bloc { margin-bottom: 26px; }

@media (prefers-reduced-motion: reduce) {
  .g85 *, .g85 *::before, .g85 *::after { transition: none !important; }
}
