/* ============================================================
   JARDINS DIVERS — version 3 « bigarré mais élégant »
   Système partagé par toutes les pages.
   Accents : rouge banquette, vert plante, moutarde thé,
   prune, bleu ardoise — sur papier chaud.
   ============================================================ */

:root {
  --paper: #f7efe0;
  --paper-soft: #fffdf4;
  --ink: #221d15;
  --muted: #5c5547;

  --rouge: #bf3b2b;
  --vert: #3a6b35;
  --moutarde: #d28e1e;
  --prune: #7a4a8f;
  --bleu: #33658a;

  --line: rgba(34, 29, 21, 0.18);
  --max: 68rem;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(34, 29, 21, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(34, 29, 21, 0.025) 1px, transparent 1px);
  background-size: 22px 22px, 34px 34px;
  background-position: 0 0, 11px 17px;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--rouge); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

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

.skip {
  position: absolute;
  left: -999rem;
  top: 0;
  padding: .75rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 2000;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ——— liens texte « tracés au feutre » ——— */
a.cta-quiet {
  font-weight: 700;
  color: var(--ink);
  background-image: linear-gradient(120deg, rgba(191, 59, 43, 0.32), rgba(191, 59, 43, 0.32));
  background-repeat: no-repeat;
  background-size: 100% 0.45em;
  background-position: 0 88%;
  transition: background-size 0.2s ease;
}
a.cta-quiet:hover { background-size: 100% 100%; border-radius: 3px; }

/* ——— surligneur ——— */
.hl {
  padding: 0 0.12em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl-moutarde { background: linear-gradient(104deg, transparent 2%, rgba(210, 142, 30, 0.38) 7% 94%, transparent 98%); }
.hl-rouge    { background: linear-gradient(104deg, transparent 2%, rgba(191, 59, 43, 0.26) 7% 94%, transparent 98%); }
.hl-vert     { background: linear-gradient(104deg, transparent 2%, rgba(58, 107, 53, 0.26) 7% 94%, transparent 98%); }

/* ——— stickers (étiquettes penchées) ——— */
.sticker {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0.22em 0.85em 0.3em;
  border-radius: 999px;
  color: #fff;
  background: var(--rouge);
  transform: rotate(-2.5deg);
  box-shadow: 2px 3px 0 rgba(34, 29, 21, 0.35);
}
.sticker.s-vert { background: var(--vert); transform: rotate(1.8deg); }
.sticker.s-moutarde { background: var(--moutarde); color: var(--ink); transform: rotate(-1.5deg); }
.sticker.s-prune { background: var(--prune); transform: rotate(2.2deg); }
.sticker.s-bleu { background: var(--bleu); transform: rotate(-2deg); }

/* ——— note manuscrite ——— */
.hand-note {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}

/* ——— bande bigarrée ——— */
.stripes {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--rouge) 0 64px,
    var(--moutarde) 64px 128px,
    var(--vert) 128px 192px,
    var(--bleu) 192px 256px,
    var(--prune) 256px 320px
  );
}

/* ——— cartes « zine » ——— */
.card {
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 6px 6px 0 rgba(34, 29, 21, 0.85);
  padding: clamp(1.2rem, 3vw, 1.75rem);
}
.card.c-rouge    { box-shadow: 6px 6px 0 var(--rouge); }
.card.c-vert     { box-shadow: 6px 6px 0 var(--vert); }
.card.c-moutarde { box-shadow: 6px 6px 0 var(--moutarde); }
.card.c-prune    { box-shadow: 6px 6px 0 var(--prune); }
.card.c-bleu     { box-shadow: 6px 6px 0 var(--bleu); }

/* ——— boutons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--rouge);
  color: #fff;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn.btn-ghost { background: transparent; color: var(--ink); }
.btn.btn-vert { background: var(--vert); }

/* ============================================================
   EN-TÊTE
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.site-head-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem clamp(1rem, 4vw, 1.75rem);
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.site-logo img {
  display: block;
  height: clamp(4.25rem, 11vw, 6.25rem);
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.site-logo:hover img { transform: rotate(-3deg) scale(1.04); }

.site-nav { margin-left: clamp(0.25rem, 2vw, 1.5rem); min-width: 0; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem clamp(0.35rem, 1.4vw, 0.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.32em 0.75em;
  border: 2px solid transparent;
  border-radius: 999px;
  transition: transform 0.15s ease;
}
.site-nav a:hover { transform: rotate(-2deg); border-color: var(--ink); background: var(--paper-soft); }
.site-nav li:nth-child(5n+1) a:hover { color: var(--rouge); }
.site-nav li:nth-child(5n+2) a:hover { color: var(--vert); }
.site-nav li:nth-child(5n+3) a:hover { color: var(--moutarde); }
.site-nav li:nth-child(5n+4) a:hover { color: var(--prune); }
.site-nav li:nth-child(5n+5) a:hover { color: var(--bleu); }
.site-nav a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-2deg);
}

.site-util {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-util a { color: var(--ink); }
.site-util a:hover { color: var(--rouge); }
.site-tel { color: var(--rouge) !important; }

.site-nav-mobile-foot { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper-soft);
  cursor: pointer;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.nav-burger span {
  display: block;
  height: 2px;
  width: 1.2rem;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
body.nav-drawer-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-drawer-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-drawer-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 919px) {
  .site-head-inner { flex-wrap: wrap; }
  .site-util { display: none; }
  .nav-burger { display: flex; margin-left: auto; position: relative; z-index: 2; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    margin-left: 0;
    padding: 1rem 0 0.85rem;
    border-top: 1px dashed var(--line);
  }
  /* Menu ouvert : header fixé au viewport (évite le bug sticky + overflow:hidden
     qui renvoyait le menu en haut de page après scroll). */
  body.nav-drawer-open .site-head {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-drawer-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.45rem; }
  .site-nav a { font-size: 1rem; }
  .site-nav-mobile-foot {
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
    font-size: 0.95rem;
    font-weight: 600;
  }
}

/* ============================================================
   MARQUEE — « ça rit, ça papote… »
   ============================================================ */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
  padding: 0.45rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: jd-marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > span {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  padding-right: 0.75rem;
  white-space: nowrap;
}
.marquee-track .dot { font-style: normal; padding-right: 0.75rem; }
.marquee-track .dot:nth-of-type(5n+1) { color: var(--moutarde); }
.marquee-track .dot:nth-of-type(5n+2) { color: #e0705f; }
.marquee-track .dot:nth-of-type(5n+3) { color: #8fc187; }
.marquee-track .dot:nth-of-type(5n+4) { color: #b58cd1; }
.marquee-track .dot:nth-of-type(5n+5) { color: #7fb2d9; }
@keyframes jd-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ============================================================
   BANDEAU CONGÉS
   ============================================================ */
.site-notice {
  background: var(--moutarde);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.65rem clamp(1rem, 4vw, 1.75rem);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.45;
}
.site-notice p { margin: 0; }
.site-notice strong { font-weight: 800; }

/* ============================================================
   TITRES
   ============================================================ */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h2.page-title, h2.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5.5vw, 3.5rem);
}
.title-tilt { display: inline-block; transform: rotate(-1.3deg); }

.squiggle {
  display: block;
  width: clamp(8rem, 22vw, 13rem);
  height: 14px;
  margin-top: 0.35rem;
}

.kicker {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 46rem;
  font-size: 1.13rem;
  line-height: 1.62;
  text-wrap: balance;
}
.lede strong { color: var(--ink); }

section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
section.block + section.block { border-top: 2px dashed var(--line); }
/* Menu de la semaine en tête d’accueil : un peu d’air pour le sticker */
section.block.block-first {
  padding-top: clamp(2.75rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
#menu-semaine + .hero {
  border-top: 2px dashed var(--line);
}

/* ============================================================
   HERO VIVANT — « Aujourd'hui aux Jardins »
   ============================================================ */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.hero-date {
  margin: 0 0 0.85rem;
  font-family: var(--font-hand);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--vert);
}
.hero-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.0;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--rouge);
}
.hero-line {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
}
.hero-sub {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem 1rem; align-items: center; }
.hero-meta {
  margin: 1.9rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px dashed var(--line);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}
.hero-meta strong { color: var(--ink); }

/* — l'affiche du jour — */
.hero-poster-zone { position: relative; }
.hero-poster {
  margin: 0 auto;
  max-width: 24rem;
  aspect-ratio: 4 / 5;
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  transform: rotate(2.4deg);
  box-shadow: 10px 12px 0 var(--moutarde);
  background: var(--paper-soft);
  transition: transform 0.3s ease;
}
.hero-poster:hover { transform: rotate(0.5deg) scale(1.015); }
.hero-poster.p-rouge    { box-shadow: 10px 12px 0 var(--rouge); }
.hero-poster.p-vert     { box-shadow: 10px 12px 0 var(--vert); }
.hero-poster.p-moutarde { box-shadow: 10px 12px 0 var(--moutarde); }
.hero-poster.p-prune    { box-shadow: 10px 12px 0 var(--prune); }
.hero-poster.p-bleu     { box-shadow: 10px 12px 0 var(--bleu); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* une vraie affiche garde son format d'origine, sans recadrage */
.hero-poster.has-img { aspect-ratio: auto; }
.hero-poster.has-img img { height: auto; object-fit: contain; }

/* affiche typographique de secours (en attendant les vraies images) */
.poster-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.3rem;
  color: #fff;
  background: var(--rouge);
}
.poster-fallback.c-rouge    { background: linear-gradient(160deg, #cf4a38, #8e2417); }
.poster-fallback.c-vert     { background: linear-gradient(160deg, #4a7f44, #2a5226); }
.poster-fallback.c-moutarde { background: linear-gradient(160deg, #e0a233, #a86c0d); }
.poster-fallback.c-prune    { background: linear-gradient(160deg, #8a59a0, #5b3370); }
.poster-fallback.c-bleu     { background: linear-gradient(160deg, #3f76a0, #234866); }
.poster-words {
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.02;
  text-transform: lowercase;
}
.poster-words span:nth-child(2) { font-style: italic; margin-left: 0.7em; opacity: 0.92; }
.poster-words span:nth-child(3) { margin-left: 0.25em; }
.poster-foot { display: grid; gap: 0.4rem; }
.poster-evt-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.3;
}
.poster-evt-when {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  opacity: 0.9;
}

/* — prochains rendez-vous — */
.hero-next {
  margin: 1.6rem auto 0;
  padding: 0;
  list-style: none;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hero-next li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  background: var(--paper-soft);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2.5px 2.5px 0 rgba(34, 29, 21, 0.25);
}
.hero-next li:nth-child(odd) { transform: rotate(-0.5deg); }
.hero-next li:nth-child(even) { transform: rotate(0.6deg); }
.hero-next .hn-date {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rouge);
}
.hero-next li:nth-child(2) .hn-date { color: var(--vert); }
.hero-next li:nth-child(3) .hn-date { color: var(--prune); }
.hero-next .hn-label { min-width: 0; font-weight: 600; }

/* ============================================================
   MENU DE LA SEMAINE (accueil) + ARDOISE
   ============================================================ */
.menu-board {
  position: relative;
  max-width: 38rem;
  margin: 0;
}
.menu-semaine-wrap {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  max-width: 52rem;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .menu-semaine-wrap { grid-template-columns: minmax(0, 13.5rem) 1fr; }
}
.menu-affiche { margin: 0; }
.menu-affiche a { display: block; }
.menu-affiche img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  transform: rotate(-1.5deg);
  box-shadow: 5px 5px 0 var(--rouge);
  transition: transform 0.25s ease;
}
.menu-affiche a:hover img { transform: rotate(0deg) scale(1.02); }
.menu-board .sticker { position: absolute; top: -1.1rem; right: 1.2rem; z-index: 2; }
.menu-board-label {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.5rem;
}
.menu-board-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.4;
}
.menu-board-list li + li { margin-top: 0.45rem; }
.menu-board-list .ms-k {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.05rem;
  margin-bottom: 0.15rem;
}
.menu-board-list .ms-k:first-child { margin-top: 0; }
.menu-board-list li:nth-of-type(3n+1) .ms-k-ink, .ms-k.k-rouge { color: var(--rouge); }
.ms-k.k-vert { color: var(--vert); }
.ms-k.k-prune { color: var(--prune); }
.menu-board-foot {
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--muted);
}
.menu-board-foot .price { font-weight: 800; color: var(--rouge); }

/* ardoise page */
.dish-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.75rem;
}
@media (min-width: 780px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }
.dish-col h3 {
  margin: 0 0 1rem;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 600;
  transform: rotate(-1.2deg);
}
.dish-col:nth-child(1) h3 { color: var(--vert); }
.dish-col:nth-child(2) h3 { color: var(--rouge); }
.dish-col:nth-child(3) h3 { color: var(--prune); }
.dish {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.35;
}
.dish:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.dish .dish-num {
  display: inline-grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5em;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--paper-soft);
}
.dish-veg { margin-left: 0.25em; font-size: 0.9em; }
.formules-band {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2.25rem;
}
.formule-chip {
  font-size: 1rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  box-shadow: 3px 3px 0 var(--moutarde);
  transform: rotate(-1deg);
}
.formule-chip:nth-child(2) { box-shadow: 3px 3px 0 var(--vert); transform: rotate(0.8deg); }
.formule-chip .price { color: var(--rouge); font-weight: 800; }
.diet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.diet-badges li {
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
}
.diet-badges li:nth-child(1) { color: var(--vert); }
.diet-badges li:nth-child(2) { color: var(--prune); }
.diet-badges li:nth-child(3) { color: var(--bleu); }
.note {
  margin-top: 1.9rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

/* ============================================================
   PILIERS « lieu de vie » (accueil)
   ============================================================ */
.pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { transform: rotate(-0.8deg); }
.pillar:nth-child(2) { transform: rotate(0.9deg); }
.pillar:nth-child(3) { transform: rotate(-0.5deg); }
.pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 600;
}
.pillar:nth-child(1) h3 { color: var(--rouge); }
.pillar:nth-child(2) h3 { color: var(--vert); }
.pillar:nth-child(3) h3 { color: var(--prune); }
.pillar p { margin: 0; font-size: 0.98rem; color: var(--muted); line-height: 1.55; }

/* ============================================================
   GALERIE « polaroïds épinglés »
   ============================================================ */
.gallery {
  display: grid;
  gap: clamp(14px, 2.6vw, 22px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery-card {
  margin: 0;
  padding: 9px 9px 12px;
  border: 1px solid rgba(34, 29, 21, 0.12);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
  position: relative;
  display: block;
  box-shadow: 0 10px 22px rgba(40, 32, 18, 0.18);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:nth-child(6n+1) { --rot: -1.7deg; }
.gallery-card:nth-child(6n+2) { --rot: 1.3deg; }
.gallery-card:nth-child(6n+3) { --rot: -0.7deg; }
.gallery-card:nth-child(6n+4) { --rot: 1.9deg; }
.gallery-card:nth-child(6n+5) { --rot: -1.2deg; }
.gallery-card:nth-child(6n+6) { --rot: 0.8deg; }
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 16px 34px rgba(40, 32, 18, 0.26);
  z-index: 2;
}
.gallery-card.wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-card picture, .gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.gallery-section-title {
  margin: 2.5rem 0 1.1rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--vert);
  transform: rotate(-1deg);
}
.gallery-section-title:first-of-type { margin-top: 0; }
.home-gallery-more { text-align: center; margin: 2rem 0 0; }

/* ============================================================
   VINS / PRODUCTEURS — cartes bigarrées
   ============================================================ */
.motley-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 680px) { .motley-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .motley-list.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.motley-list li {
  padding: 1.1rem 1.25rem;
  background: var(--paper-soft);
  border: 2px solid var(--ink);
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s ease;
}
.motley-list li:hover { transform: rotate(0deg) translateY(-2px); }
.motley-list li:nth-child(5n+1) { box-shadow: 4px 4px 0 var(--rouge);    --rot: -0.7deg; }
.motley-list li:nth-child(5n+2) { box-shadow: 4px 4px 0 var(--vert);     --rot: 0.6deg; }
.motley-list li:nth-child(5n+3) { box-shadow: 4px 4px 0 var(--moutarde); --rot: -0.4deg; }
.motley-list li:nth-child(5n+4) { box-shadow: 4px 4px 0 var(--prune);    --rot: 0.8deg; }
.motley-list li:nth-child(5n+5) { box-shadow: 4px 4px 0 var(--bleu);     --rot: -0.9deg; }
.motley-list strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 0.25rem;
}

/* ============================================================
   VIE DES JARDINS — tickets & programme
   ============================================================ */
.tickets {
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 720px) { .tickets { grid-template-columns: 1fr 1fr; } }
.ticket {
  position: relative;
  padding: 1rem 1.15rem 1rem 1.5rem;
  background: var(--paper-soft);
  border: 2px dashed var(--ink);
  border-radius: 12px;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  transform: rotate(var(--rot, 0deg));
}
.ticket::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 9px;
  background: var(--accent, var(--rouge));
}
.ticket:nth-child(5n+1) { --accent: var(--moutarde); --rot: -0.6deg; }
.ticket:nth-child(5n+2) { --accent: var(--vert);     --rot: 0.5deg; }
.ticket:nth-child(5n+3) { --accent: var(--rouge);    --rot: -0.4deg; }
.ticket:nth-child(5n+4) { --accent: var(--prune);    --rot: 0.7deg; }
.ticket:nth-child(5n+5) { --accent: var(--bleu);     --rot: -0.8deg; }
.ticket strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.ticket .evt-when {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}

/* — événement à la une (affiche) — */
.affiche-feature {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  margin: 2.5rem 0 2.75rem;
}
@media (min-width: 760px) {
  .affiche-feature { grid-template-columns: minmax(0, 19rem) 1fr; }
}
.affiche-feature .affiche-img img {
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  transform: rotate(-1.8deg);
  box-shadow: 6px 6px 0 var(--moutarde);
  transition: transform 0.25s ease;
}
.affiche-feature .affiche-img img:hover { transform: rotate(0deg) scale(1.02); }
.affiche-feature.no-img .affiche-img { display: none; }
.affiche-feature.no-img { grid-template-columns: 1fr; }
.affiche-copy .sticker { margin-bottom: 0.75rem; }
.affiche-copy h3 {
  margin: 0.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
}
.affiche-dates {
  margin: 0 0 0.9rem;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--prune);
}
.affiche-prog {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  font-size: 0.98rem;
  color: var(--muted);
}
.affiche-prog strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.affiche-foot {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.93rem;
  color: var(--muted);
}

.agenda-cols { display: grid; gap: 2.25rem; margin-top: 1.25rem; }
@media (min-width: 760px) { .agenda-cols { grid-template-columns: 1.15fr 0.85fr; } }
.agenda-cols h3 {
  margin: 0 0 1rem;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--rouge);
  transform: rotate(-1deg);
}
.agenda-cols .col-past h3 { color: var(--muted); }
.event {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.2rem;
  border-bottom: 1px dashed var(--line);
}
.event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--rouge);
}
.event:nth-child(4n+2)::before { background: var(--vert); }
.event:nth-child(4n+3)::before { background: var(--moutarde); }
.event:nth-child(4n+4)::before { background: var(--prune); }
.event:last-child { border-bottom: 0; }
.event time {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rouge);
}
.event h4 {
  margin: 0.3rem 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
}
.event p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.col-past .event { opacity: 0.75; }
.col-past .event time { color: var(--muted); }

/* ============================================================
   PRESSE — bandeau encre
   ============================================================ */
.press {
  background: var(--ink);
  color: rgba(247, 239, 224, 0.92);
}
.press .wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 760px) {
  .press .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 2.5rem; }
}
.press-quote {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  line-height: 1.45;
}
.press-quote .hl-moutarde { color: var(--paper); }
.press p.press-plain { margin: 0.6rem 0 0; max-width: 38rem; font-size: 1.02rem; color: rgba(247, 239, 224, 0.8); }
.press a.press-link {
  align-self: flex-start;
  flex-shrink: 0;
  color: var(--paper);
  font-weight: 700;
  border: 2px solid var(--paper);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.press a.press-link:hover { background: var(--paper); color: var(--ink); transform: rotate(-1.5deg); }
.press .cta-quiet {
  color: var(--paper);
  background-image: linear-gradient(120deg, rgba(210, 142, 30, 0.5), rgba(210, 142, 30, 0.5));
}
.press-brand-logo { filter: invert(1) brightness(1.6); opacity: 0.95; }

/* ============================================================
   RÉSERVATION
   ============================================================ */
.reserve { max-width: 46rem; margin: 0 auto; position: relative; }
.reserve .sticker { position: absolute; top: -1.2rem; right: 1.5rem; z-index: 2; }
.reserve h2 { margin: 0 0 0.6rem; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.reserve > p.reserve-intro { margin: 0 0 1.4rem; color: var(--muted); font-size: 1.02rem; }
.reserve-form { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .reserve-form { grid-template-columns: 1fr 1fr; }
  .reserve-form .field-wide { grid-column: 1 / -1; }
}
.reserve-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  font: inherit;
  font-weight: 500;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
  box-shadow: 2.5px 2.5px 0 rgba(34, 29, 21, 0.2);
}
.reserve-form textarea { min-height: 5.5rem; resize: vertical; }
.reserve-form input:focus-visible,
.reserve-form select:focus-visible,
.reserve-form textarea:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 1px;
}
.reserve-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}
.reserve-fallback { margin: 0; font-size: 0.93rem; color: var(--muted); flex: 1 1 12rem; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
footer.site-foot {
  margin-top: 0;
  background: var(--ink);
  color: rgba(247, 239, 224, 0.85);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 2rem;
  font-size: 0.95rem;
}
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
footer.site-foot h2 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 0.7rem;
  transform: rotate(-1.2deg);
  display: inline-block;
}
.foot-grid > div:nth-child(1) h2 { color: #e9a294; }
.foot-grid > div:nth-child(2) h2 { color: #a4cf9c; }
.foot-grid > div:nth-child(3) h2 { color: #ecc06a; }
footer.site-foot a { color: var(--paper); font-weight: 600; }
footer.site-foot a:hover { color: #ecc06a; }
footer.site-foot .cta-quiet {
  color: var(--paper);
  background-image: linear-gradient(120deg, rgba(210, 142, 30, 0.45), rgba(210, 142, 30, 0.45));
}
.foot-links a { display: inline-block; margin-right: 1rem; margin-top: 0.35rem; }
.foot-small {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 239, 224, 0.14);
  font-size: 0.82rem;
  color: rgba(247, 239, 224, 0.5);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(18, 15, 10, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox picture { position: relative; z-index: 1; margin: auto; max-width: 96vw; }
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.lightbox-btn {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: background 0.2s;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible { background: rgba(255, 255, 255, 0.25); outline: none; }
.lightbox-close { top: 1rem; right: 1rem; width: 3rem; height: 3rem; font-size: 1.6rem; line-height: 1; z-index: 2; }
.lightbox-prev, .lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  padding: 0.8rem 1rem;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 2;
}
.lightbox-prev { left: clamp(0.5rem, 3vw, 1rem); }
.lightbox-next { right: clamp(0.5rem, 3vw, 1rem); }
.lightbox-help {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}
