/* =========================================================
   Golf du Château de Bournet — feuille de style unique
   Mobile d'abord. Couleurs et typos centralisées dans :root.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --vert: #2f4a36;          /* chêne vert : titres, pied de page */
  --vert-fonce: #22372a;
  --vert-clair: #dfe7dc;
  --terre: #a8542b;         /* terre cuite : boutons d'action (blanc dessus ≈ 5,2:1) */
  --terre-fonce: #8a4220;
  --or: #b8862f;            /* repère mini-golf (décoratif uniquement) */
  --creme: #f7f3ea;         /* fond */
  --pierre: #ede5d6;        /* sections alternées */
  --blanc: #fffdf8;
  --encre: #1f2420;         /* texte */
  --gris: #4f5a53;          /* texte secondaire (≈ 6,5:1 sur crème) */
  --filet: #d6cbb6;
  --a-completer: #fff1a8;

  --titre: "Fraunces", Georgia, "Times New Roman", serif;
  --texte: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --rayon: 6px;
  --ombre: 0 1px 2px rgba(31, 36, 32, .06), 0 8px 24px rgba(31, 36, 32, .08);
  --gouttiere: 1rem;
  --barre-mobile: 4.25rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: calc(var(--barre-mobile) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 72em) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--titre);
  color: var(--vert);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

a { color: var(--terre-fonce); text-underline-offset: .18em; }
a:hover { color: var(--vert); }

:focus-visible {
  outline: 3px solid var(--terre);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Un élément masqué par le script reste masqué, même si son style lui donne un affichage (flex, grid…) */
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.lien-evitement {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--vert); color: #fff; padding: .6rem 1rem; border-radius: var(--rayon);
}
.lien-evitement:focus { top: .5rem; color: #fff; }

/* Information manquante : bien visible pour la relecture */
.a-completer {
  background: var(--a-completer);
  color: var(--encre);
  padding: 0 .3em;
  border-radius: 3px;
  font-weight: 600;
  font-style: normal;
}

.conteneur { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gouttiere); }
@media (min-width: 48em) { :root { --gouttiere: 1.5rem; } }

.section { padding: 3.5rem 0; }
.section--pierre { background: var(--pierre); }
.section--vert { background: var(--vert); color: #f2efe6; }
.section--vert h2, .section--vert h3 { color: #fff; }
.section--vert a { color: #fff; }
@media (min-width: 48em) { .section { padding: 5rem 0; } }

.surtitre {
  display: block;
  font-family: var(--texte);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terre-fonce);
  margin-bottom: .5rem;
}
.section--vert .surtitre { color: #f0c9a4; }

.chapo { font-size: 1.2rem; color: var(--gris); max-width: 40rem; }
.section--vert .chapo { color: #e6e1d5; }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.3rem;
  border-radius: var(--rayon); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--texte);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.bouton svg { width: 1.15em; height: 1.15em; flex: none; }
.bouton--plein { background: var(--terre); color: #fff; }
.bouton--plein:hover { background: var(--terre-fonce); color: #fff; }
.bouton--contour { border-color: var(--vert); color: var(--vert); background: transparent; }
.bouton--contour:hover { background: var(--vert); color: #fff; }
.bouton--clair { border-color: #fff; color: #fff; background: transparent; }
.bouton--clair:hover { background: #fff; color: var(--vert); }
.bouton[disabled], .bouton[aria-disabled="true"] {
  background: #c9c2b4; color: #3c3f3b; border-color: #c9c2b4; cursor: not-allowed;
}
.groupe-boutons { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- En-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 234, .97);
  border-bottom: 1px solid var(--filet);
}
.entete__barre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }

.marque { white-space: nowrap; display: flex; align-items: center; gap: .6rem; padding: .3rem 0; text-decoration: none; color: var(--vert); line-height: 1.05; }
.marque__logo { height: 3.25rem; width: auto; flex: none; }
.logo-accueil { width: 9rem; height: auto; margin: 0 auto 1.5rem; }
/* Logo de l’association (ASGCB) */
.logo-as { display: block; height: auto; border-radius: 50%; }
.logo-as--heros { width: 5.5rem; margin-bottom: 1rem; box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(0,0,0,.35); }
@media (min-width: 48em) { .logo-as--heros { width: 7.5rem; } }
.logo-as--encadre { width: min(100%, 15rem); margin: 1.25rem auto 0; }
.logo-as--petit { width: 5rem; margin-bottom: .75rem; }
@media (min-width: 48em) { .logo-accueil { width: 11rem; } }
.marque__texte { display: flex; flex-direction: column; }
.marque__nom { font-family: var(--titre); font-size: 1.25rem; font-weight: 650; }
.marque__lieu { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }

.menu-bouton {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 2.75rem; padding: .4rem .8rem;
  background: transparent; border: 2px solid var(--vert); border-radius: var(--rayon);
  color: var(--vert); font: 700 1rem var(--texte); cursor: pointer;
}
.menu-bouton svg { width: 1.3rem; height: 1.3rem; }

.nav { display: none; }
.nav.est-ouvert { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--creme); border-bottom: 1px solid var(--filet); box-shadow: var(--ombre); }
.nav__liste { list-style: none; margin: 0; padding: .5rem var(--gouttiere) 1rem; }
.nav__liste a {
  display: block; padding: .8rem .25rem; border-bottom: 1px solid var(--filet);
  color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1.1rem;
}
.nav__liste a[aria-current="page"] { color: var(--terre-fonce); }
.entete__actions { display: none; }

@media (min-width: 72em) {
  .menu-bouton { display: none; }
  .nav, .nav.est-ouvert { display: block; position: static; background: none; border: 0; box-shadow: none; }
  .nav__liste { display: flex; gap: .1rem; padding: 0; }
  .nav__liste a { white-space: nowrap; border: 0; padding: .5rem .42rem; font-size: .95rem; border-radius: var(--rayon); }
  .nav__liste a:hover { background: var(--pierre); color: var(--vert); }
  .nav__liste a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--terre); border-radius: 0; }
  .entete__actions { display: flex; align-items: center; gap: .75rem; }
  .entete__tel { font-weight: 700; color: var(--vert); text-decoration: none; white-space: nowrap; }
  .entete__actions .bouton { min-height: 2.6rem; padding: .5rem 1rem; white-space: nowrap; }
}
/* 8 entrées de menu : plus la place pour le numéro dans l'en-tête (il reste dans le pied de page, l'accueil, Contact) */
@media (min-width: 72em) { .entete__tel { display: none; } .marque { flex: none; } }

/* ---------- Barre d'action mobile (toujours visible) ---------- */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--vert-fonce);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
}
.barre-mobile a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: var(--barre-mobile);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .88rem;
}
.barre-mobile a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
.barre-mobile svg { width: 1.4rem; height: 1.4rem; }
.barre-mobile .barre-mobile__principal { background: var(--terre); }
@media (min-width: 72em) { .barre-mobile { display: none; } }

/* ---------- Héros ---------- */
.heros { position: relative; color: #fff; background: var(--vert-fonce); overflow: hidden; }
.heros__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heros::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 30, 22, .35) 0%, rgba(20, 30, 22, .78) 100%);
}
.heros__contenu { position: relative; z-index: 1; padding-top: 5.5rem; padding-bottom: 3rem; }
.heros h1 { color: #fff; max-width: 22ch; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.heros .chapo { color: #f1ede3; }
.heros .surtitre { color: #f6d2b0; }
@media (min-width: 48em) { .heros__contenu { padding-top: 9rem; padding-bottom: 5rem; } }

.heros--page .heros__contenu { padding-top: 4rem; padding-bottom: 2.5rem; }
@media (min-width: 48em) { .heros--page .heros__contenu { padding-top: 6.5rem; padding-bottom: 3.5rem; } }

/* Fil d'Ariane */
.ariane { font-size: .9rem; margin-bottom: 1rem; }
.ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ariane li + li::before { content: "›"; margin-right: .4rem; opacity: .8; }
.ariane a { color: #fff; }

/* ---------- Trois univers ---------- */
.univers { display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .univers { grid-template-columns: repeat(3, 1fr); } }
.carte {
  display: flex; flex-direction: column;
  background: var(--blanc); border-radius: var(--rayon); overflow: hidden;
  box-shadow: var(--ombre); border-top: 5px solid var(--vert);
}
.carte--minigolf { border-top-color: var(--or); }
.carte--resto { border-top-color: var(--terre); }
.carte__image { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.carte__corps { padding: 1.25rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.carte__corps h3 { margin-bottom: .35rem; }
.carte__corps p { color: var(--gris); }
.carte__prix { font-weight: 700; color: var(--encre); margin-bottom: 1rem; }
.carte__corps .bouton { margin-top: auto; align-self: flex-start; }

/* École de golf (page Association) */
.ecole__infos { max-width: 46rem; }
.ecole__tous h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.ecole__tous .liste-coches { margin-bottom: 0; }
.ecole__niveaux { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .ecole__niveaux { grid-template-columns: repeat(3, 1fr); } }
.ecole__niveaux .carte__corps h3 { font-size: 1.4rem; }
.ecole__niveaux .carte__prix { font-size: 1.3rem; color: var(--vert-fonce); }
.ecole__niveaux .liste-coches { margin-bottom: 0; }
.ecole__niveaux .liste-coches li { color: var(--encre); }
.carte--baby { border-top-color: var(--vert); }
.carte--debutants { border-top-color: var(--terre); }
.carte--confirmes { border-top-color: var(--or); }
.ecole__contact { margin-bottom: 0; }

/* ---------- Grilles génériques ---------- */
.deux-colonnes { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52em) { .deux-colonnes { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.deux-colonnes--haut { align-items: start; }

.chiffres { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .chiffres { grid-template-columns: repeat(4, 1fr); } }
.chiffres li { background: var(--blanc); border-radius: var(--rayon); padding: 1.1rem; border-left: 4px solid var(--terre); }
.chiffres strong { display: block; font-family: var(--titre); font-size: 1.7rem; color: var(--vert); line-height: 1.1; }
.chiffres span { color: var(--gris); font-size: .95rem; }

.liste-coches { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.liste-coches li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.liste-coches li::before {
  content: ""; position: absolute; left: .2rem; top: .45em; width: .9rem; height: .5rem;
  border-left: 3px solid var(--terre); border-bottom: 3px solid var(--terre); transform: rotate(-45deg);
}

.encadre {
  background: var(--blanc); border-left: 5px solid var(--terre);
  border-radius: var(--rayon); padding: 1.1rem 1.25rem; margin: 1.5rem 0;
}
.encadre p:last-child { margin-bottom: 0; }

.photo { border-radius: var(--rayon); box-shadow: var(--ombre); width: 100%; max-height: 32rem; object-fit: cover; }

/* Galerie : grille simple, sans carrousel */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48em) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.galerie figure { margin: 0; }
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--rayon); }
.galerie figcaption { font-size: .9rem; color: var(--gris); margin-top: .35rem; }

/* Plans des trous */
.trous { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40em) { .trous { grid-template-columns: repeat(3, 1fr); } }
.trous figure { margin: 0; background: var(--blanc); border-radius: var(--rayon); padding: .5rem; box-shadow: var(--ombre); }
.trous img { aspect-ratio: 3 / 4; object-fit: contain; width: 100%; background: #6f7a3b; border-radius: 4px; }
.trous figcaption { font-weight: 700; color: var(--vert); text-align: center; padding-top: .4rem; }

/* ---------- Infos pratiques ---------- */
.infos { display: grid; gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 40em) { .infos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .infos { grid-template-columns: repeat(4, 1fr); } }
.infos li { background: var(--blanc); border-radius: var(--rayon); padding: 1.2rem; }
.section--vert .infos li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18); }
.infos h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.infos p { margin: 0; }

/* ---------- Tarifs ---------- */
.bloc-tarifs { display: grid; gap: 1.5rem; }
@media (min-width: 52em) { .bloc-tarifs { grid-template-columns: 1fr 1fr; } }
.tarif {
  background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre);
  padding: 1.25rem; overflow-x: auto;
}
.tarif table { width: 100%; border-collapse: collapse; }
.tarif caption { text-align: left; font-family: var(--titre); font-size: 1.35rem; font-weight: 600; color: var(--vert); padding-bottom: .6rem; }
.tarif th, .tarif td { padding: .65rem .3rem; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
.tarif thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gris); }
.tarif td.prix, .tarif th.prix { text-align: right; white-space: nowrap; font-weight: 700; }
.tarif tbody th { font-weight: 600; }
.tarif tr.est-en-cours { background: var(--vert-clair); }
.tarif .note { font-size: .92rem; color: var(--gris); margin: .75rem 0 0; }
.badge {
  display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px;
  background: var(--vert); color: #fff; font-size: .75rem; font-weight: 700; vertical-align: .1em;
}
.carte-resto__titre { font-size: 1.35rem; margin-bottom: .4rem; }
.carte-resto { list-style: none; margin: .5rem 0 0; padding: 0; }
.carte-resto li { padding: .7rem 0; border-bottom: 1px solid var(--filet); }
.carte-resto li:last-child { border-bottom: 0; }
.carte-resto__tete { display: flex; align-items: baseline; gap: .5rem; }
.carte-resto__tete::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--filet); }
.carte-resto__nom { font-weight: 700; }
.carte-resto__prix, .carte-resto__tete .a-completer { order: 2; font-weight: 700; white-space: nowrap; }
.carte-resto__desc { margin: .15rem 0 0; color: var(--gris); font-size: .95rem; }
.erreur-donnees { background: #fbe3d9; border-left: 5px solid var(--terre-fonce); padding: 1rem; border-radius: var(--rayon); }

/* ---------- Carte (plan) ---------- */
.plan {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--rayon); overflow: hidden;
  background: var(--vert-clair) url("/assets/img/golf-fairway-arbres-640.webp") center / cover;
  box-shadow: var(--ombre);
}
@media (min-width: 52em) { .plan { aspect-ratio: 16 / 10; } }
.plan iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.plan__voile {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 1rem; text-align: center; background: rgba(34, 55, 42, .82); color: #fff;
}
.plan__voile p { margin: 0; max-width: 28rem; font-size: .95rem; }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 1rem; }
.champ label, .champ legend { display: block; font-weight: 700; margin-bottom: .3rem; }
.champ .aide { font-weight: 400; color: var(--gris); font-size: .92rem; }
.champ input, .champ select, .champ textarea {
  width: 100%; min-height: 3rem; padding: .65rem .8rem;
  font: inherit; color: var(--encre); background: var(--blanc);
  border: 2px solid #8d8574; border-radius: var(--rayon);
}
.champ textarea { min-height: 9rem; resize: vertical; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--vert); outline: 3px solid rgba(168, 84, 43, .35); outline-offset: 0; }
.champ--case { display: flex; gap: .7rem; align-items: flex-start; }
.champ--case input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: .15rem; flex: none; accent-color: var(--vert); }
.champ--case label { font-weight: 400; }
.champ--piege { position: absolute; left: -9999px; }
.message-formulaire { padding: 1rem; border-radius: var(--rayon); font-weight: 600; }
.message-formulaire--ok { background: var(--vert-clair); color: var(--vert-fonce); }
.message-formulaire--erreur { background: #fbe3d9; color: #6e2f12; }
.message-formulaire--info { background: var(--a-completer); color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: var(--vert-fonce); color: #e9e5da; padding: 3rem 0 2rem; font-size: .98rem; }
.pied a { color: #fff; }
.pied h2 { color: #fff; font-size: 1.15rem; margin-bottom: .6rem; }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 48em) { .pied__grille { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; }
.pied .a-completer { color: var(--encre); }

.reseaux { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.reseaux a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .4rem .85rem;
  border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.reseaux svg { width: 1.1rem; height: 1.1rem; }
.reseaux--sombre a { color: var(--vert); }
.reseaux--sombre a:hover { background: var(--vert); color: #fff; }

.titre-centre { text-align: center; margin-left: auto; margin-right: auto; }
.chapo.titre-centre { margin-bottom: 2.25rem; }
.mt { margin-top: 2rem; }
.texte-legal { max-width: 46rem; }
.texte-legal h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.petit { font-size: .88rem; color: var(--gris); }

/* ---------- Calendrier des compétitions (association) ---------- */
.legende { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .95rem; }
.legende li { display: flex; align-items: center; gap: .45rem; }
.pastille { width: .8rem; height: .8rem; border-radius: 50%; flex: none; }
.pastille--club { background: var(--vert); }
.pastille--classement { background: #b03a2e; }
.pastille--jeunes { background: var(--or); }
.pastille--equipe { background: var(--encre); }
.pastille--vie { background: var(--blanc); border: 2px solid var(--terre); }
.calendrier { display: grid; gap: 1rem; }
@media (min-width: 44em) { .calendrier { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .calendrier { grid-template-columns: repeat(3, 1fr); } }
.calendrier__mois { background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.15rem; }
.calendrier__mois h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.calendrier__mois ul { list-style: none; margin: 0; padding: 0; }
.evt { display: grid; grid-template-columns: 6.2rem 1fr; gap: .1rem .6rem; padding: .55rem 0 .55rem .7rem; border-bottom: 1px solid var(--filet); border-left: 4px solid var(--filet); }
.evt:last-child { border-bottom: 0; }
.evt time { font-weight: 700; font-size: .92rem; }
.evt__type { grid-column: 2; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); }
.evt--club { border-left-color: var(--vert); }
.evt--club .evt__nom { font-weight: 600; }
.evt--classement { border-left-color: #b03a2e; }
.evt--jeunes { border-left-color: var(--or); }
.evt--equipe { border-left-color: var(--encre); }
.evt--vie { border-left-color: var(--terre); }
.evt--vie .evt__nom { font-style: italic; }
.calendrier__plus { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.calendrier__plus li { margin-bottom: .3rem; }
.galerie--deux { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) { .galerie--deux { grid-template-columns: repeat(2, 1fr); } }
/* Galerie des plats (6 photos) :
   mobile  = 1re photo en pleine largeur, puis 2 × 2, planche en bandeau
   écran   = 4 de front, puis dernière photo + planche sur 3 colonnes */
.galerie--menu > li:first-child, .galerie--menu > .galerie__large { grid-column: 1 / -1; }
.galerie--menu > .galerie__large img { aspect-ratio: auto; }
@media (min-width: 48em) {
  .galerie--menu { grid-template-columns: repeat(4, 1fr); }
  .galerie--menu > li:first-child { grid-column: auto; }
  .galerie--menu > .galerie__large { grid-column: span 3; }
  .galerie--menu > .galerie__large figure { height: 100%; }
  .galerie--menu > .galerie__large img { height: 100%; }
}

/* Visionneuse : photo agrandie au clic (créée par site.js) */
.agrandissable { cursor: zoom-in; }
.agrandissable:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
html:has(.visionneuse[open]) { overflow: hidden; }
.visionneuse { position: fixed; inset: 0; padding: 0; margin: 0; border: 0; background: transparent; width: 100%; height: 100%; max-width: none; max-height: none; overflow: hidden; }
.visionneuse::backdrop { background: rgba(15, 20, 16, .92); }
.visionneuse__cadre { margin: 0; height: 100%; box-sizing: border-box; padding: 4rem 1rem 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.visionneuse__cadre img { max-width: 100%; max-height: calc(100% - 3.5rem); width: auto; height: auto; object-fit: contain; border-radius: var(--rayon); }
.visionneuse figcaption { color: #fff; text-align: center; margin-top: .75rem; max-width: 40rem; font-size: 1rem; line-height: 1.4; }
.visionneuse__btn { position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 26, 22, .6); box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); color: #fff; font: 400 2rem/1 var(--texte); cursor: pointer; }
.visionneuse__btn:hover { background: rgba(20, 26, 22, .85); }
.visionneuse__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.visionneuse__fermer { top: .75rem; right: .75rem; }
.visionneuse__prec, .visionneuse__suiv { top: 50%; transform: translateY(-50%); }
.visionneuse__prec { left: .75rem; }
.visionneuse__suiv { right: .75rem; }
.visionneuse--seule .visionneuse__prec, .visionneuse--seule .visionneuse__suiv { display: none; }

/* Bandeau d'actualité (data/news.json, inséré par site.js au-dessus de l'en-tête) */
.news { background: var(--terre); color: #fff; }
.news__interieur { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
.news__photo { flex: none; width: 3.25rem; height: 3.25rem; object-fit: cover; border-radius: var(--rayon); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.news__texte { flex: 1; margin: 0; font-size: 1rem; line-height: 1.4; }
.news__titre { font-weight: 700; }
.news__fermer { flex: none; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; font: 400 1.75rem/1 var(--texte); cursor: pointer; }
.news__fermer:hover { background: rgba(255, 255, 255, .18); }
.news__fermer:focus-visible, .news__photo:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 48em) { .news__photo { width: 4rem; height: 4rem; } .news__texte { font-size: 1.05rem; } }

/* Menu du moment en plein écran à l'ouverture (data/menu-du-moment.json, créé par site.js) */
html:has(.menu-ouverture[open]) { overflow: hidden; }
.menu-ouverture { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--creme); color: var(--encre); overflow-y: auto; }
.menu-ouverture::backdrop { background: var(--creme); }
.menu-ouverture__interieur { box-sizing: border-box; min-height: 100%; max-width: 68rem; margin: 0 auto; padding: 4.5rem var(--gouttiere) 2rem; display: grid; gap: 1.5rem; align-content: center; }
.menu-ouverture__photo { width: 100%; max-height: 28vh; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--rayon); box-shadow: var(--ombre); }
.menu-ouverture__corps h2 { font-size: clamp(1.9rem, 6vw, 3rem); margin: .2rem 0 .5rem; }
.menu-ouverture__periode { color: var(--gris); font-weight: 600; margin: 0 0 1rem; }
.menu-ouverture__plats { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--filet); }
.menu-ouverture__plats li { padding: .6rem 0; border-bottom: 1px solid var(--filet); font-size: 1.15rem; }
.menu-ouverture__type { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terre-fonce); }
.menu-ouverture__prix { font-family: var(--titre); font-size: 1.6rem; font-weight: 600; color: var(--vert); margin: 0 0 1.25rem; }
.menu-ouverture__fermer { position: fixed; top: .75rem; right: .75rem; width: 3rem; height: 3rem; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--vert); color: #fff; font: 400 2rem/1 var(--texte); cursor: pointer; }
.menu-ouverture__fermer:hover { background: var(--vert-fonce); }
.menu-ouverture__fermer:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
@media (min-width: 48em) {
  .menu-ouverture--photo .menu-ouverture__interieur { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .menu-ouverture__photo { max-height: 75vh; }
}

/* Vie du club : prochaine compétition + filtres du calendrier (site.js) */
.prochaine { background: var(--vert); color: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1rem 1.25rem; margin: 0 0 1rem; max-width: 44rem; }
.prochaine .surtitre { color: #f0c9a4; }
.prochaine__evt { font-size: 1.15rem; margin: .2rem 0 0; }
.prochaine__type { margin: .2rem 0 0; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #dfe7dc; }
.legende--filtres { gap: .5rem; }
.filtre { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.5rem; padding: .35rem .85rem; border: 1px solid var(--filet); border-radius: 999px; background: var(--blanc); color: var(--encre); font: inherit; font-size: .95rem; cursor: pointer; }
.filtre:hover { border-color: var(--vert); }
.filtre[aria-pressed="true"] { background: var(--vert); border-color: var(--vert); color: #fff; }
.filtre:focus-visible { outline: 3px solid var(--terre); outline-offset: 2px; }
.evt--prochaine { background: var(--vert-clair); }
.evt[hidden], .calendrier__mois[hidden] { display: none; }

/* Actualités (Vie du club) : cartes + filtres, remplies par site.js depuis data/actualites.json */
.filtres-actus { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.actus { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; align-items: start; } /* carte sans photo = pas de grand vide */
@media (min-width: 44em) { .actus { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .actus { grid-template-columns: repeat(3, 1fr); } }
.actu[hidden] { display: none; }
.actu article { height: 100%; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; }
.actu__photo { display: block; width: 100%; height: auto; } /* photo entière, dans sa forme d'origine */
.actu__corps { padding: 1rem 1.15rem 1.25rem; }
.actu__corps h3 { font-size: 1.3rem; margin: .35rem 0 .5rem; }
.actu__corps p:last-child { margin-bottom: 0; }
.actu__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; font-size: .9rem; color: var(--gris); }
.actu__univers { padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.actu__univers--golf { background: var(--vert-clair); color: var(--vert-fonce); }
.actu__univers--restaurant { background: #f6e1d4; color: var(--terre-fonce); }
.actu__univers--mini-golf { background: #f3e6c4; color: #5e4310; }
.news__univers { font-weight: 600; opacity: .9; }
@media (max-width: 47.99em) { .news__extrait { display: none; } }
.news__lien { color: #fff; font-weight: 700; white-space: nowrap; }
.news__lien:hover { color: #fff; text-decoration-thickness: 2px; }

/* Menu du moment, bloc permanent en haut de la page Restaurant (mêmes éléments que le plein écran) */
.menu-restau .menu-ouverture__interieur { min-height: 0; max-width: none; padding: 0; }
.menu-restau .menu-ouverture__corps h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.menu-restau .menu-ouverture__photo { max-height: 22rem; }
@media (min-width: 48em) { .menu-restau .menu-ouverture__photo { max-height: 26rem; } }

/* Inscriptions en ligne (Vie du club) : liste, fenêtre du formulaire, recherche — site.js + _worker.js */
.inscr-alerte { background: var(--blanc); border-left: 4px solid var(--terre); border-radius: var(--rayon); padding: .75rem 1rem; font-weight: 600; max-width: 44rem; }
.inscr-liste { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; max-width: 52rem; }
.inscr-comp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .9rem 1.15rem; border-left: 4px solid var(--vert); }
.inscr-comp__info { display: grid; gap: .1rem; min-width: 0; flex: 1 1 16rem; }
.inscr-comp__date { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--terre-fonce); }
.inscr-comp__nom { font-weight: 700; font-size: 1.1rem; }
.inscr-comp__detail { font-size: .92rem; color: var(--gris); }
.inscr-comp__detail--complet { color: #9b2f24; font-weight: 700; }
.inscr-comp .bouton[disabled] { opacity: .55; cursor: not-allowed; }
.inscr-recherche { max-width: 52rem; }
.inscr-recherche h3 { margin-top: 0; }
.inscr-recherche__form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; }
.inscr-recherche__form label, .inscr-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.inscr-recherche__form label { flex: 1 1 14rem; }
.inscr-recherche__form select, .inscr-recherche__form input, .inscr-form input, .inscr-form textarea { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; color: var(--encre); width: 100%; box-sizing: border-box; min-height: 2.75rem; }
.inscr-form [aria-invalid="true"] { border-color: #b03a2e; box-shadow: 0 0 0 2px rgba(176, 58, 46, .25); }
.inscr-recherche__resultat { margin: .75rem 0 0; font-weight: 600; }
.inscr-dialogue { width: min(40rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 1.5rem 1.25rem; background: var(--creme); color: var(--encre); }
.inscr-dialogue::backdrop { background: rgba(15, 20, 16, .7); }
.inscr-dialogue h2 { margin: .1rem 2.5rem .25rem 0; font-size: 1.5rem; }
.inscr-dialogue__date { margin: 0 0 1rem; color: var(--gris); font-weight: 600; }
.inscr-dialogue__fermer { position: absolute; top: .6rem; right: .6rem; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: transparent; font: 400 1.9rem/1 var(--texte); color: var(--vert); cursor: pointer; }
.inscr-dialogue__fermer:hover { background: var(--pierre); }
.inscr-form__grille { display: grid; gap: .85rem; }
@media (min-width: 36em) { .inscr-form__grille { grid-template-columns: 1fr 1fr; } .inscr-form__large { grid-column: 1 / -1; } }
.inscr-form__piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inscr-form__erreur { background: #fbe9e7; color: #8a2a20; border-radius: var(--rayon); padding: .6rem .8rem; font-weight: 600; }
.inscr-ok__titre { font-family: var(--titre); font-size: 1.4rem; color: var(--vert); margin: 0 0 .5rem; }
.evt__inscr { grid-column: 2; justify-self: start; font-size: .85rem; font-weight: 700; color: var(--terre-fonce); }
/* Départs / résultats (PDF) sous une compétition du calendrier */
.evt__docs { grid-column: 2; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.evt__doc { display: inline-flex; align-items: center; min-height: 2rem; padding: .15rem .7rem; border-radius: 999px; background: var(--vert); color: #fff; font-size: .82rem; font-weight: 700; text-decoration: none; }
.evt__doc::before { content: ""; width: .7rem; height: .85rem; margin-right: .35rem; border: 2px solid currentColor; border-radius: 2px; }
.evt__doc:hover, .evt__doc:focus-visible { background: var(--vert-fonce); color: #fff; }

/* Page Accueil / AS (inscrits aux compétitions) */
.admin__titre { margin-bottom: 1rem; }
.admin__etats { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-weight: 600; font-size: .95rem; }
.admin__etats li { display: flex; align-items: center; gap: .45rem; background: var(--blanc); border: 1px solid var(--filet); border-radius: 999px; padding: .3rem .8rem; }
.admin__pastille { width: .7rem; height: .7rem; border-radius: 50%; background: var(--filet); }
.admin__etats .est-ok .admin__pastille { background: #2e7d32; }
.admin__etats .est-ko .admin__pastille { background: #b03a2e; }
.admin__connexion { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; max-width: 36rem; }
.admin__connexion label, .admin__barre label { display: grid; gap: .3rem; font-weight: 600; flex: 1 1 14rem; }
.admin__connexion input, .admin__barre select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--filet); border-radius: var(--rayon); background: #fff; min-height: 2.75rem; }
.admin__message { flex-basis: 100%; margin: 0; color: #8a2a20; font-weight: 600; }
.admin__barre { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.admin__feuille-titre { font-size: 1.5rem; margin: 0 0 .25rem; }
.admin__compte { font-weight: 700; color: var(--vert); }
.admin__tableau-boite { position: relative; overflow-x: auto; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.admin__tableau { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin__tableau th, .admin__tableau td { padding: .55rem .6rem; border-bottom: 1px solid var(--filet); text-align: left; vertical-align: top; }
.admin__tableau thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); white-space: nowrap; }
.admin__supprimer { font: inherit; font-size: .85rem; padding: .3rem .6rem; border: 1px solid #b03a2e; color: #8a2a20; background: #fff; border-radius: var(--rayon); cursor: pointer; }
.admin__supprimer:hover { background: #fbe9e7; }
@media print {
  .entete, .pied, .barre-mobile, .news, .lien-evitement, .admin__etats, .admin__barre, .admin__non-imprime, .surtitre, .admin__titre { display: none !important; }
  .section { padding: 0; }
  .admin__tableau-boite { box-shadow: none; overflow: visible; }
  .admin__tableau { font-size: 10pt; }
  .admin__tableau th, .admin__tableau td { border: 1px solid #999; }
}
/* Listes déroulantes aux noms longs : ne jamais dépasser la largeur de l'écran */
.admin__barre label, .admin__connexion label, .inscr-recherche__form label { min-width: 0; }
.admin__barre select, .inscr-recherche__form select { width: 100%; max-width: 100%; min-width: 0; text-overflow: ellipsis; }
/* Question du repas (formulaire d'inscription) */
.inscr-form__repas { border: 1px solid var(--filet); border-radius: var(--rayon); padding: .6rem .9rem .75rem; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; background: #fff; }
.inscr-form__repas[hidden] { display: none; }
.inscr-form__repas legend { font-weight: 600; font-size: .95rem; padding: 0 .3rem; }
.inscr-form__repas label { display: flex; align-items: center; gap: .45rem; font-weight: 600; min-height: 2.75rem; cursor: pointer; }
.inscr-form__repas input { width: 1.25rem; height: 1.25rem; min-height: 0; padding: 0; accent-color: var(--vert); }
.inscr-form__repas .inscr-form__nb { gap: .6rem; }
.inscr-form__repas .inscr-form__nb input { width: 4.5rem; height: auto; min-height: 2.75rem; padding: .4rem .6rem; text-align: center; }
.inscr-form__repas .inscr-form__nb input[aria-invalid="true"] { border-color: #b03a2e; }
.inscr-form__repas[aria-invalid="true"] { border-color: #b03a2e; box-shadow: 0 0 0 2px rgba(176, 58, 46, .25); }
