/* Le Bistrot du Pont — styles
   Fonts are self-hosted (no Google Fonts request = nothing to declare for RGPD).
   Put the .woff2 files in /fonts (see SETUP.md). Until then, the fallbacks are used. */

@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}

:root {
  /* Bordeaux palette. The variables keep their old "green" names. */
  --green: #5E1A28;       /* bordeaux: header, headings, dark buttons */
  --green-dark: #3F0F1A;  /* deep bordeaux: hovers, footer */
  --green-line: #7A2A3A;
  --cream: #F4EFE4;
  --cream-2: #EAE2D0;
  --paper: #FFFDF7;
  --gold: #E2B04A;
  --brown: #8A5A1C;
  --ink: #1E1E1A;
  --muted: #4A4A42;
  --on-green: #F4EFE4;
  --on-green-muted: #E8D6D3;
  --border: #B9AE95;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--alt { background: var(--cream-2); }
.section--dark { background: var(--green); color: var(--on-green); }
.section--dark a { color: var(--on-green); }

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(34px, 5vw, 46px); color: var(--green); margin-bottom: 18px; }
.section--dark h2 { color: var(--on-green); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn--gold { background: var(--gold); color: var(--green); }
.btn--gold:hover { background: #ECC062; color: var(--green); }
.btn--outline { border-color: var(--on-green); color: var(--on-green); background: transparent; }
.btn--outline:hover { background: rgba(255,255,255,0.08); color: var(--on-green); }
.btn--dark { background: var(--green); color: var(--on-green); }
.btn--dark:hover { background: var(--green-dark); color: var(--on-green); }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Header */
.header { background: var(--green); color: var(--on-green); position: sticky; top: 0; z-index: 10; }
.header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand { font-family: var(--serif); font-size: 24px; color: var(--on-green); text-decoration: none; }
.brand:hover { color: var(--on-green); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--on-green); text-decoration: none; padding: 10px 0; }
.nav a:hover { text-decoration: underline; }
.nav .btn { padding: 8px 18px; min-height: 40px; }

/* Hero */
.hero {
  background-color: var(--green);
  background-image: linear-gradient(rgba(52,12,22,0.78), rgba(52,12,22,0.88)), url("img/hero.jpg");
  background-size: cover; background-position: center;
  color: var(--on-green);
  border-top: 1px solid var(--green-line);
}
.hero__inner { padding-top: 80px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(40px, 7vw, 74px); max-width: 780px; }
.hero__lead { margin: 0; font-size: 19px; max-width: 580px; color: var(--on-green-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Two-column layout */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > * { flex: 1 1 320px; min-width: 0; }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--on-green-muted); }

/* Flyers */
.flyer {
  margin: 0; background: var(--paper); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(94,26,40,0.16);
}
.flyer img { width: 100%; height: auto; }
.flyer a { display: block; }
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 300px; padding: 32px; text-align: center;
  border: 2px dashed var(--border); border-radius: 8px; background: var(--paper);
  color: var(--muted);
}
.placeholder strong { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--green); }
.skeleton { min-height: 300px; border-radius: 8px; background: linear-gradient(90deg, #EFE8D8, #F7F2E8, #EFE8D8); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } }

/* Events */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.event { display: flex; flex-direction: column; gap: 12px; }
.event__date { font-size: 14px; font-weight: 600; color: var(--brown); text-transform: uppercase; letter-spacing: 0.08em; }
.event__title { font-family: var(--serif); font-size: 24px; color: var(--green); line-height: 1.15; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }

/* Form */
.card { background: var(--paper); border-radius: 12px; padding: 28px; box-shadow: 0 12px 30px rgba(94,26,40,0.12); }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; /* 16px stops iOS zoom */
  padding: 12px; border: 1.5px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink);
  min-width: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: 2px solid rgba(94,26,40,0.25); }
.optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rgpd { margin: 0; font-size: 13px; color: var(--muted); }
.status { margin: 0; font-weight: 600; min-height: 1.5em; }
.status--ok { color: #1E6B3A; }
.status--err { color: #A33A1E; }
.group-hint {
  margin: 0; padding: 10px 14px; font-size: 14px;
  background: #F6E9E6; border-left: 3px solid var(--green); border-radius: 4px;
}
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } .card { padding: 20px; } }

/* Infos */
.info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--on-green-muted); }
.info-list strong { color: var(--on-green); font-weight: 600; }

/* Footer */
.footer { background: var(--green-dark); color: #C9B3B0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; }
.footer a { color: #E8D6D3; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Legal page */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); color: var(--green); margin-bottom: 24px; }
.legal h2 { font-size: 28px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink); }
