/* =========================================================
   LE CLUBHOUSE 1180 — Identité graphique
   Bistrot du golf · Drohme Park
   ========================================================= */

:root {
  /* Palette — Vert Fairway */
  --vert:          #1B3A2B;
  --vert-clair:    #2E5642;
  --ivoire:        #F4F1E8;
  --ivoire-fonce:  #E8E1D0;
  --cuivre:        #B5652E;
  --encre:         #1E1B16;
  --blanc-casse:   #FAF8F3;

  /* Typo */
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Work Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Mesures */
  --max:    1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;

  --shadow: 0 18px 50px -25px rgba(30, 27, 22, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--encre);
  background: var(--blanc-casse);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; }
button { -webkit-tap-highlight-color: transparent; }
a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 2px;
}

/* ---------- Utilitaires ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cuivre);
}
.eyebrow.on-dark { color: var(--ivoire-fonce); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #4a4437; max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95em 1.9em; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--vert); color: #ffffff; }
.btn-primary:hover { background: var(--vert-clair); color: #ffffff; box-shadow: var(--shadow); }
.btn-ghost { border-color: currentColor; color: var(--vert); }
.btn-ghost:hover { background: var(--vert); color: var(--ivoire); border-color: var(--vert); }
.btn-ghost.on-dark { color: var(--ivoire); border-color: rgba(244,241,232,.5); }
.btn-ghost.on-dark:hover { background: var(--ivoire); color: var(--vert); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(30,27,22,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand .mark { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .02em; color: var(--vert); font-weight: 600; }
.brand .sub { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: #8a8371; }
.brand-logo { height: 52px; width: auto; display: block; flex-shrink: 0; }
.brand .brand-tag { padding-left: .6rem; border-left: 1px solid rgba(30,27,22,.18); }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); align-items: center; }
.nav-links a { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: #4a4437; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--vert); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #ffffff; }
.nav-cta { font-size: .78rem !important; padding: .7em 1.4em; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--encre); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--ivoire); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  transform-origin: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,16,.25) 0%, rgba(27,58,43,.4) 45%, rgba(15,18,14,.92) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
.hero-inner { padding-block: clamp(3rem, 9vw, 7rem); width: 100%; max-width: 760px; min-width: 0; }
.hero-logo { width: clamp(180px, 24vw, 260px); height: auto; display: block; margin: .2rem 0 1rem; filter: brightness(0) invert(1) drop-shadow(0 4px 20px rgba(15,18,14,.55)); }
/* Hero centré (accueil) */
.hero-inner.centered { margin-inline: auto; text-align: center; }
.hero-inner.centered .hero-logo { margin-inline: auto; }
.hero-inner.centered .tagline { margin-inline: auto; }
.hero-inner.centered .hero-actions { justify-content: center; }
.hero-inner.centered .eyebrow.on-dark { color: var(--ivoire); }
.hero h1 { font-size: clamp(2.8rem, 8.5vw, 6rem); letter-spacing: -0.01em; color: #fff; text-shadow: 0 2px 22px rgba(15,18,14,.55), 0 1px 4px rgba(15,18,14,.4); }
.hero h1.is-sub { font-size: clamp(1.7rem, 4.6vw, 3rem); }
.hero h1 em { font-style: italic; color: #E3B98A; }
.hero .tagline { font-size: clamp(1.1rem, 2.6vw, 1.5rem); margin-top: 1.2rem; max-width: 46ch; color: #fff; font-weight: 300; text-shadow: 0 1px 14px rgba(15,18,14,.6), 0 1px 3px rgba(15,18,14,.45); }
.hero .eyebrow.on-dark { text-shadow: 0 1px 10px rgba(15,18,14,.6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Decorative gradient background fallback (no photo dependency) */
.bg-clubhouse {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(181,101,46,.45) 0%, transparent 55%),
    radial-gradient(120% 120% at 0% 100%, rgba(27,58,43,.6) 0%, transparent 50%),
    linear-gradient(150deg, #0f2118 0%, #1B3A2B 45%, #14231a 100%);
}

/* ---------- Sections génériques ---------- */
.section-head { max-width: 64ch; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.4rem); margin-top: .6rem; }
.section-head p { margin-top: 1rem; }

/* Bande alternée */
.band-ivoire { background: var(--ivoire); }
.band-vert { background: var(--vert); color: var(--ivoire); }
.band-vert .eyebrow { color: var(--cuivre); }

/* ---------- Histoire (split) ---------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split > * { min-width: 0; }
.split .media {
  aspect-ratio: 4/5; border-radius: var(--radius); box-shadow: var(--shadow);
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.media-frame { display: flex; align-items: flex-end; padding: 1.4rem; }
.media-tag { background: rgba(15,18,14,.6); color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .5em 1em; border-radius: 100px; }

/* ---------- Valeurs / piliers ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pillar {
  background: var(--blanc-casse); border: 1px solid rgba(30,27,22,.08);
  border-radius: var(--radius); padding: 2rem 1.8rem; transition: transform .3s, box-shadow .3s;
}
.band-vert .pillar { background: rgba(250,248,243,.06); border-color: rgba(244,241,232,.16); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillar .ico { margin-bottom: .3rem; line-height: 0; }
.pillar .ico svg { width: 44px; height: 44px; display: block; }
.pillar h3 { font-size: 1.5rem; margin: .8rem 0 .5rem; }
.pillar p { font-size: .96rem; color: inherit; opacity: .9; margin: 0; }

/* ---------- Carte / menu ---------- */
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); }
.menu-group + .menu-group { margin-top: 2.5rem; }
.menu-group h3 { font-size: 1.7rem; color: var(--vert); display: flex; align-items: baseline; gap: .6rem; }
.menu-group h3::after { content: ""; flex: 1; height: 1px; background: rgba(27,58,43,.25); }
.dish { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(30,27,22,.12); }
.dish:last-child { border-bottom: 0; }
.dish .d-name { font-weight: 600; }
.dish .d-desc { font-size: .86rem; color: #6a6455; margin-top: .15rem; }
.dish .d-price { font-family: var(--serif); font-size: 1.25rem; color: var(--vert); white-space: nowrap; }
.menu-note { font-size: .85rem; color: #6a6455; margin-top: 2rem; font-style: italic; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .9rem; }
.gallery .tile { border-radius: var(--radius); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.gallery .tile.wide { grid-column: span 2; }
.gallery .tile.tall { grid-row: span 2; }
.gallery .tile span {
  position: absolute; left: 1.1rem; bottom: 1rem; right: 1rem; z-index: 2; color: #fff;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600; line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 2px 16px rgba(0,0,0,.8);
}
.gallery .tile::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, transparent 30%, rgba(15,18,14,.9)); }

/* ---------- Réservation (infos + formulaire) ---------- */
.reserve-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.reserve-info { display: grid; gap: 1.5rem; }
.reserve-form h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--vert); }
.reserve-form .form-sub { font-size: .9rem; color: #6a6455; margin: .3rem 0 1.4rem; }
.reserve-row { display: grid; gap: .9rem; margin-bottom: .9rem; }
.reserve-row.r3 { grid-template-columns: 1fr 1fr 1fr; }
.reserve-row.r2 { grid-template-columns: 1fr 1fr; }
.reserve-form .btn { margin-top: .4rem; width: 100%; justify-content: center; }
.reserve-form .or-call { margin: 1rem 0 0; font-size: .85rem; color: #6a6455; text-align: center; }
.reserve-form .or-call a { color: var(--vert); font-weight: 600; text-decoration: underline; }
@media (max-width: 900px) { .reserve-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reserve-row.r3, .reserve-row.r2 { grid-template-columns: 1fr; } }

/* ---------- Infos pratiques ---------- */
.info-block h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cuivre); margin-bottom: .6rem; }
.info-block p { margin: 0; }
.hours-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid rgba(244,241,232,.12); font-size: .95rem; }

/* ---------- Formulaire ---------- */
.form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 2.8rem); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #6a6455; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; padding: .8em .9em;
  border: 1px solid rgba(30,27,22,.2); border-radius: var(--radius); background: var(--blanc-casse);
  color: var(--encre); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--vert); box-shadow: 0 0 0 3px rgba(27,58,43,.14);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Bouton retour en haut ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: #fff; color: var(--vert); border: 1px solid rgba(30,27,22,.12);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px -6px rgba(15,18,14,.5); transition: opacity .3s ease, transform .3s ease, background .2s ease, color .2s ease;
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--vert); color: #fff; border-color: var(--vert); transform: translateY(-3px); }
.to-top svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s ease; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--encre); color: rgba(244,241,232,.8); padding-block: clamp(3rem, 7vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--sans); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cuivre); margin-bottom: 1rem; }
.site-footer .mark { font-family: var(--serif); font-size: 1.8rem; color: var(--ivoire); }
.site-footer a:hover { color: var(--ivoire); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(244,241,232,.12); font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(244,241,232,.55); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .menu-cols { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--blanc-casse); border-bottom: 1px solid rgba(30,27,22,.1);
    padding: 1rem var(--gutter) 1.6rem; transform: translateY(-120%); transition: transform .35s ease;
    box-shadow: var(--shadow); align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .7rem 0; width: 100%; border-bottom: 1px solid rgba(30,27,22,.06); }
  .nav-links a.nav-cta { margin-top: .8rem; justify-content: center; padding: .95em 1.4em; border-bottom: 0; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery .tile.wide { grid-column: auto; }
  .gallery .tile.tall { grid-row: auto; }
  .hero { min-height: 88vh; }
}
