/* =========================================================
   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;
}

.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; }
@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: .15rem; padding: 0; }
  .nav__liste a { white-space: nowrap; border: 0; padding: .5rem .55rem; font-size: .98rem; 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; }
}
@media (min-width: 72em) and (max-width: 81.99em) { .entete__tel { display: 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; }

/* ---------- 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; }
