:root {
  --vert: #2f4a3a;
  --vert-clair: #e7ede6;
  --creme: #faf7f1;
  --terre: #b5623b;
  --texte: #2b2a27;
  --gris: #6b6a64;
  --max: 1100px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--texte); font: 18px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--terre); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--vert); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 0 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.4em 0 .3em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
section.alt { background: var(--vert-clair); }

/* En-tête */
header { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 241, .95); backdrop-filter: blur(6px); border-bottom: 1px solid #e5e0d4; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { font-family: var(--serif); font-size: 1.3rem; color: var(--vert); text-decoration: none; white-space: nowrap; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--texte); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current] { color: var(--terre); }
nav .cta { background: var(--terre); color: #fff; padding: 6px 14px; border-radius: 99px; }
nav .cta:hover { color: #fff; background: #9b5130; }
.menu-btn { display: none; background: none; border: 1px solid var(--vert); color: var(--vert); border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .9rem; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--creme); border-bottom: 1px solid #e5e0d4; padding: 12px 20px 20px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 12px; }
}

/* Bandeau photo */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; background: #333 center/cover no-repeat; }
.hero.court { min-height: 46vh; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .6)); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; width: 100%; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 0; }

/* Mises en page */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.deux img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 800px) { .deux { grid-template-columns: 1fr; gap: 24px; } }

.cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.carte { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, .06); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.carte img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.carte div { padding: 20px 24px 24px; }
.carte h3 { margin-top: 0; }
.carte p { margin: 0; color: var(--gris); }
a.carte:hover h3 { color: var(--terre); }

.chiffres { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; margin: 1em 0; }
.chiffres li { background: #fff; border-radius: 99px; padding: 6px 16px; font-size: .95rem; }

.bouton { display: inline-block; background: var(--terre); color: #fff; text-decoration: none; padding: 12px 26px; border-radius: 99px; margin-top: 1em; }
.bouton:hover { background: #9b5130; }
.bouton.secondaire { background: none; color: var(--terre); box-shadow: inset 0 0 0 2px var(--terre); }
.bouton.secondaire:hover { background: var(--terre); color: #fff; }
.reserver { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 1em; }

/* Galerie */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.galerie a { display: block; overflow: hidden; border-radius: 6px; }
.galerie img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s; }
.galerie a:hover img { transform: scale(1.04); }
dialog.visionneuse { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.visionneuse::backdrop { background: rgba(0, 0, 0, .88); }
dialog.visionneuse img { max-width: 94vw; max-height: 92vh; object-fit: contain; }

/* Tableaux */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; margin: 1em 0 2em; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #eee; }
th { background: var(--vert); color: #fff; font-weight: 600; }
@media (max-width: 600px) { th, td { padding: 10px; font-size: .95rem; } }

.equip { columns: 2 260px; padding-left: 1.2em; }
.equip li { break-inside: avoid; margin-bottom: 4px; }

.note { color: var(--gris); font-size: .95rem; }

/* Pied de page */
footer { background: var(--vert); color: #dfe6df; padding: 48px 0 32px; font-size: .95rem; }
footer a { color: #fff; }
footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
footer h3 { color: #fff; margin: 0 0 .4em; font-size: 1.2rem; }
footer p { margin: 0 0 .4em; }
