/* =========================================================
   Atelier de Bossimé · feuille de style
   ========================================================= */

:root {
  --green-950: #0f1f17;
  --green-900: #15291f;
  --green-800: #1d3a2b;
  --green-700: #2b5240;
  --green-500: #4f7d5c;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #1f2a22;
  --muted: #4d5a50;
  --terra: #a24a24;
  --terra-dark: #853a1a;
  --wheat: #e3b26b;
  --line: rgba(31, 42, 34, 0.14);
  --line-light: rgba(247, 242, 232, 0.18);
  --radius: 16px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--terra);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--terra-dark);
}

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

.hero :focus-visible,
.quote :focus-visible,
.event-card :focus-visible,
.section-dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--wheat);
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.nowrap {
  white-space: nowrap;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: var(--green-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
  color: #fff;
  outline-color: var(--wheat);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 232, 0.94);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--green-800);
  text-decoration: none;
}

.brand:hover {
  color: var(--green-800);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-tag {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.btn):hover {
  color: var(--terra);
}

.nav-toggle {
  display: none;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--terra);
  color: #fff;
}

.btn-accent:hover {
  background: var(--terra-dark);
  color: #fff;
}

.btn-ghost {
  border-color: rgba(247, 242, 232, 0.6);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(247, 242, 232, 0.1);
  color: #fff;
}

.btn-outline {
  border-color: var(--green-800);
  color: var(--green-800);
}

.btn-outline:hover {
  background: var(--green-800);
  color: var(--cream);
}

.btn-small {
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(6rem, 11vw, 8.5rem);
  color: var(--cream);
  background:
    radial-gradient(900px 520px at 88% 8%, rgba(227, 178, 107, 0.22), transparent 62%),
    radial-gradient(720px 480px at 0% 100%, rgba(162, 74, 36, 0.3), transparent 62%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}

.eyebrow-dark {
  color: var(--terra);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.6rem);
  color: #fff;
}

.hero h1 em {
  display: block;
  font-weight: 500;
  font-style: italic;
  color: var(--wheat);
}

.hero-lead {
  max-width: 42ch;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: rgba(247, 242, 232, 0.9);
}

.hero .actions {
  margin: 1.8rem 0 1.5rem;
}

.hero-note {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(247, 242, 232, 0.78);
}

.hero-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-light);
  border-radius: 22px;
  background: rgba(247, 242, 232, 0.06);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.hero-quote {
  margin-bottom: 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-style: italic;
  line-height: 1.3;
  color: #fff;
}

.stats {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.stats div {
  display: grid;
  grid-template-columns: 4.75rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-light);
}

.stats dt {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--wheat);
  white-space: nowrap;
}

.stats dd {
  margin: 0;
  color: rgba(247, 242, 232, 0.88);
}

/* Sillons de champ dessinés en CSS */
.hero-fields {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 240%;
  height: 280px;
  background: repeating-linear-gradient(90deg, rgba(227, 178, 107, 0.2) 0 2px, transparent 2px 60px);
  transform: translateX(-50%) perspective(320px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
  mask-image: linear-gradient(to top, #000, transparent 85%);
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  color: var(--green-800);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--muted);
}

/* La ferme */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.pillar {
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.pillar::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
}

.pillar h3 {
  font-size: 1.3rem;
  color: var(--green-800);
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.pillar-leaf::before {
  border-radius: 0 70% 0 70%;
  background: linear-gradient(135deg, var(--green-500), var(--green-800));
}

.pillar-sun::before {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f3d39c, var(--wheat) 55%, #c98f43);
}

.pillar-season::before {
  height: 22px;
  margin-top: 22px;
  border-radius: 44px 44px 0 0;
  background: linear-gradient(180deg, #c46a3c, var(--terra));
}

.pillar-ring::before {
  border: 6px solid var(--green-700);
  border-radius: 50%;
  background: radial-gradient(circle, var(--wheat) 0 30%, transparent 32%);
}

/* Restaurant */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.85rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--wheat);
  border-radius: var(--radius);
  background: var(--cream);
}

.card:nth-child(2) {
  border-top-color: var(--terra);
}

.card:nth-child(3) {
  border-top-color: var(--green-700);
}

.card-kicker {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--green-800);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
}

.note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--wheat);
  border-radius: 0 12px 12px 0;
  background: var(--cream);
}

.quote {
  position: relative;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
  border-radius: 22px;
  color: var(--cream);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(227, 178, 107, 0.2), transparent 70%),
    var(--green-800);
}

.quote-label {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wheat);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  max-width: 34ch;
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-style: italic;
  line-height: 1.35;
  color: #fff;
}

.quote figcaption {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(247, 242, 232, 0.85);
}

/* Salle & événements */

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.split .actions {
  margin-top: 1.75rem;
}

.event-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 22px;
  color: var(--cream);
  background:
    repeating-linear-gradient(135deg, rgba(247, 242, 232, 0.035) 0 2px, transparent 2px 18px),
    var(--green-800);
  box-shadow: 0 30px 60px -36px rgba(21, 41, 31, 0.6);
}

.event-card h3 {
  font-size: 1.5rem;
  color: #fff;
}

.checklist {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0.15rem;
  width: 1rem;
  height: 0.55rem;
  border-bottom: 3px solid var(--wheat);
  border-left: 3px solid var(--wheat);
  transform: rotate(-45deg);
}

/* Infos pratiques */

.section-dark {
  color: var(--cream);
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(227, 178, 107, 0.12), transparent 60%),
    var(--green-900);
}

.section-dark h2 {
  color: #fff;
}

.section-dark a:not(.btn) {
  color: var(--wheat);
}

.section-dark a:not(.btn):hover {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.contact-block {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-light);
}

.contact-block h3 {
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}

.contact-block p:last-child {
  margin-bottom: 0;
}

address {
  margin-bottom: 0.75rem;
  font-style: normal;
}

.hours {
  margin: 0;
}

.hours div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.35rem 0;
}

.hours dt {
  font-weight: 600;
  color: #fff;
}

.hours dd {
  margin: 0;
  color: rgba(247, 242, 232, 0.88);
}

.plain-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(247, 242, 232, 0.88);
}

.map {
  display: flex;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 22px;
  background: var(--green-800);
}

.map iframe {
  flex: 1;
  width: 100%;
  min-height: 440px;
  border: 0;
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
  color: rgba(247, 242, 232, 0.8);
  background: var(--green-950);
}

.site-footer a {
  color: var(--wheat);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-light);
}

.footer-grid p:last-child {
  margin-bottom: 0;
}

.footer-brand {
  margin-bottom: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
}

.footer-title {
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wheat);
}

.footer-legal {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(247, 242, 232, 0.72);
}

.footer-legal p {
  margin-bottom: 0.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--green-800);
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -7px;
  }

  .nav-toggle-bar::after {
    top: 7px;
  }

  .nav-open .nav-toggle-bar {
    background: transparent;
  }

  .nav-open .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-open .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    box-shadow: 0 24px 40px -24px rgba(21, 41, 31, 0.45);
  }

  .nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
    padding: 0.5rem 0 1.25rem;
  }

  .site-nav a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child {
    margin-top: 1rem;
  }

  .site-nav .btn {
    width: 100%;
  }

  .hero-inner,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 1rem;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .hero .actions .btn {
    flex: 1 1 100%;
  }

  .stats div {
    grid-template-columns: 4.25rem 1fr;
  }

  .stats dt {
    font-size: 1.65rem;
  }

  .hours div {
    grid-template-columns: 5.75rem 1fr;
  }

  .map,
  .map iframe {
    min-height: 340px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
