/* ===== Le Cosy — DA : noir profond, brun chocolat, or Art déco, lumières ambrées ===== */

:root {
  --ink: #0e0b09;
  --ink-2: #16110d;
  --cocoa: #2a1b12;
  --cocoa-2: #3a271b;
  --gold: #d8b35e;
  --gold-2: #f0d48c;
  --cream: #f4ead8;
  --muted: #b3a48d;
  --line: rgba(216, 179, 94, .22);
  --danger: #e0715b;
  --ok: #7cc49a;
  --radius: 18px;
  --display: "Antonio", "Arial Narrow", sans-serif;
  --serif: "Cormorant Garamond", "Garamond", Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Polices reprises du site historique lecosy.fr */
  --hand: "Reenie Beanie", "Bradley Hand", "Segoe Print", cursive;
  --muli: "Mulish", "Muli", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6em 1em; border-radius: 8px; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.two { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.muted { color: var(--muted); }
.kicker { font: 600 .78rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; gap: .8em; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.15rem; color: #e0d3bd; max-width: 60ch; }
.h-small { font: 600 .78rem/1 var(--sans); letter-spacing: .25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Wordmark Art déco */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--gold); line-height: 1; }
.brand-word { font-family: var(--display); letter-spacing: .14em; color: var(--gold); font-size: 2rem; text-shadow: 0 0 24px rgba(240, 212, 140, .25); }
.brand-word.small { font-size: 2.4rem; margin-bottom: .3rem; }
.brand-word.huge { display: block; font-size: clamp(5rem, 17vw, 12rem); letter-spacing: .12em; line-height: .9; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #9c7a34); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Titre « COSY » : police manuscrite du site lecosy.fr (partout sur le site) */
.brand-word { font-family: var(--hand); font-weight: 400; letter-spacing: .04em; font-size: 2.6rem; line-height: 1; }
.brand-word.small { font-size: 3rem; }
.brand-word.huge { font-size: clamp(6.5rem, 22vw, 15rem); letter-spacing: .03em; line-height: .85; }
.brand-sub { font: 500 .58rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: .35rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.5em; border-radius: 999px; font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 8px 30px -10px rgba(216, 179, 94, .6); }
.btn-gold:hover { color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(216, 179, 94, .8); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(224, 113, 91, .4); }
.btn-sm { padding: .55em 1em; font-size: .7rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Bandeau + en-tête */
.banner { display: flex; justify-content: center; align-items: center; gap: .8em; padding: .55em 1em; background: var(--cocoa); color: var(--gold-2); font-size: .82rem; letter-spacing: .04em; text-align: center; }
.banner svg { font-size: .7rem; }
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(1.2rem, 4vw, 3rem); background: rgba(14, 11, 9, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.top.scrolled { border-bottom-color: var(--line); background: rgba(14, 11, 9, .92); }
.nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 2rem); }
.nav a:not(.btn) { color: var(--cream); text-decoration: none; font-size: .9rem; letter-spacing: .06em; position: relative; padding: .3em 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--gold); transition: right .25s; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { color: var(--gold-2); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span:not(.sr) { display: block; height: 1.5px; background: var(--gold); margin: 6px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 900px) {
  .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(14, 11, 9, .96); }
  .burger { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; height: 100dvh; z-index: 55; width: min(340px, 85vw); flex-direction: column; align-items: flex-start; justify-content: center; padding: 2rem 2.5rem; background: var(--ink-2); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .35s ease; visibility: hidden; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 1.7rem; }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-open .burger span:nth-child(2) { opacity: 0; }
  .nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .burger { position: relative; z-index: 60; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 5rem 1.25rem 6rem; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .hero-img, .hero-bg .ph { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.45); transform: scale(1.05); animation: slowzoom 22s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(216, 179, 94, .14), transparent 60%), linear-gradient(180deg, rgba(14, 11, 9, .35), rgba(14, 11, 9, .2) 40%, var(--ink)); }
.hero-bg .ph span { display: none; }
@keyframes slowzoom { to { transform: scale(1); } }
.hero h1 { margin: 0; }
.hero-sub { display: block; margin-top: 1rem; font: 600 .78rem/1.8 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--cream); }
.hero-lead { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem); color: #eadbc2; margin: 1.4rem 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.infos .hero-cta { justify-content: flex-start; }
.stars { display: flex; justify-content: center; color: var(--gold); font-size: 1.1rem; margin-bottom: 1.2rem; opacity: .8; }
/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; }
.link-arrow { text-decoration: none; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.page-head { padding: clamp(4rem, 10vw, 7rem) 0 1rem; background: radial-gradient(ellipse at 20% 0, rgba(216, 179, 94, .12), transparent 55%); }
.page-head h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.charter { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.charter li { display: flex; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; }
.charter span { font: 600 .8rem/1 var(--sans); color: var(--gold); letter-spacing: .1em; }


/* Événements */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.event { background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; }
.event:hover { transform: translateY(-4px); border-color: rgba(216, 179, 94, .5); }
.event-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.event-img { width: 100%; height: 100%; object-fit: cover; }
.event-date { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; background: rgba(14, 11, 9, .85); border: 1px solid var(--gold); border-radius: 12px; padding: .5rem .8rem; line-height: 1; }
.event-date b { font-family: var(--serif); font-size: 1.9rem; color: var(--gold-2); }
.event-date span { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }
.event-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.event-body .btn { margin-top: auto; align-self: flex-start; }
.event-desc p { color: #dccdb5; font-size: .95rem; }
.tag { display: inline-block; align-self: flex-start; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); border-radius: 99px; padding: .3em .8em; margin-bottom: .6rem; }
.events-list .event-big { flex-direction: row; }
.events-list { grid-template-columns: 1fr; }
.event-big .event-media { width: min(360px, 40%); aspect-ratio: auto; min-height: 320px; }
.event-big .event-body { padding: 2rem; }
@media (max-width: 700px) { .events-list .event-big { flex-direction: column; } .event-big .event-media { width: 100%; aspect-ratio: 4/5; } }
.empty { text-align: center; padding: 3rem 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty p:first-child { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); }

/* Cartes */
.menu-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.menu-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--cream); border: 1px solid var(--line); }
.menu-tile .tile-img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; filter: brightness(.55); }
.menu-tile:hover .tile-img { transform: scale(1.05); }
.tile-text { position: absolute; inset: auto 0 0 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(14, 11, 9, .95)); display: flex; flex-direction: column; }
.tile-text b { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--gold-2); }
.tile-text small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.chips a { padding: .5em 1.1em; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--cream); font-size: .85rem; }
.chips a:hover { border-color: var(--gold); color: var(--gold-2); }
.menu-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.menu-page { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); }
.menu-page img, .menu-page .ph { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; transition: transform .4s; }
.menu-page:hover img { transform: scale(1.03); }
.pdf-card { display: flex; flex-direction: column; gap: .5rem; justify-content: center; align-items: center; text-align: center; aspect-ratio: 3/4; border: 1px solid var(--line); border-radius: 12px; background: var(--cocoa); text-decoration: none; padding: 1rem; }
.pdf-card b { font-family: var(--display); font-size: 2.5rem; color: var(--gold); }
.menu-items { list-style: none; padding: 0; margin: 0 0 2.5rem; columns: 2 340px; column-gap: 3rem; }
.menu-items li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 0 1rem; padding: .7rem 0; border-bottom: 1px dotted var(--line); }
.menu-items .cat { display: block; border: 0; font-family: var(--serif); font-size: 1.6rem; color: var(--gold-2); padding-top: 1.2rem; }
.it-name { font-weight: 600; }
.it-desc { grid-column: 1; color: var(--muted); font-size: .9rem; }
.it-price { grid-column: 2; grid-row: 1; color: var(--gold-2); font-family: var(--serif); font-size: 1.2rem; }

/* Galerie */
.gallery { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: .8rem; }
.g-item { position: relative; overflow: hidden; border-radius: 14px; display: block; }
.g-item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.g-item img, .g-item .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: saturate(.9); }
.g-item:hover img { transform: scale(1.06); filter: saturate(1.1); }
.g-item span { position: absolute; left: 12px; bottom: 12px; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; background: rgba(14, 11, 9, .7); color: var(--gold-2); padding: .35em .8em; border-radius: 99px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }
.private { margin-top: 2rem; text-align: center; color: var(--muted); }

/* Placeholder élégant si une image manque */
.ph { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(216, 179, 94, .18), transparent 50%), linear-gradient(135deg, var(--cocoa-2), var(--ink)); }
.ph span { font-family: var(--display); color: rgba(216, 179, 94, .55); font-size: 1.6rem; letter-spacing: .15em; }

/* Avis */
.reviews { background: radial-gradient(ellipse at 80% 50%, rgba(216, 179, 94, .1), transparent 60%), var(--ink-2); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.quotes figure { margin: 0; }
.quotes blockquote { margin: 0 0 .8rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; }
.quotes figcaption { color: var(--gold); letter-spacing: .1em; }

/* Infos */
.addr { display: flex; gap: .8rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.addr svg { color: var(--gold); margin-top: .3rem; }
.card { background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.hours { margin: 0 0 1rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--cream); }
.hours dd { margin: 0; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* Pied de page */
.foot { border-top: 1px solid var(--line); padding: 4rem 0 2rem; background: var(--ink-2); }
.foot-grid { width: min(1180px, 100% - 2.5rem); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.foot a { text-decoration: none; }
.socials { display: flex; gap: .8rem; margin-top: 1rem; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; }
.socials a:hover { border-color: var(--gold); }
.legal { text-align: center; color: var(--muted); font-size: .8rem; margin: 3rem 0 0; }
.prose { max-width: 70ch; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 6, 5, .94); display: grid; place-items: center; padding: 3rem 1rem; }
.lb img { max-height: 86vh; width: auto; border-radius: 8px; }
.lb p { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; color: var(--muted); }
.lb button { position: absolute; background: rgba(14, 11, 9, .7); color: var(--gold-2); border: 1px solid var(--line); border-radius: 50%; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }
.lb .lb-close { top: 1rem; right: 1rem; }
.lb .lb-prev { left: 1rem; top: 50%; }
.lb .lb-next { right: 1rem; top: 50%; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Réservation */
.h3 { font-size: 1.8rem; }
.resa-grid { align-items: start; }
.resa-side { display: grid; gap: 1.4rem; }
.resa-form { display: flex; flex-direction: column; gap: 1rem; }
.resa-form label { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; color: var(--muted); }
.resa-form input, .resa-form select, .resa-form textarea { background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; font: 400 1rem/1.4 var(--sans); width: 100%; }
.resa-form input:focus, .resa-form select:focus, .resa-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 179, 94, .18); }
.resa-form .btn { align-self: flex-start; }
.resa-form .grid2, .resa-form .grid3 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.resa-form .grid3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 560px) { .resa-form .grid2, .resa-form .grid3 { grid-template-columns: 1fr; } }
.resa-error { color: var(--danger); margin: 0; }
.resa-form [aria-invalid="true"] { border-color: var(--danger); }

/* ===== Épuration & mise en page ===== */
.day { font: 500 .8rem/1.6 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: 1.5rem; }
.intro h2 { max-width: 16ch; }
.section-head { align-items: flex-end; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head h2 { max-width: 20ch; }
.page-head { padding: clamp(3.5rem, 8vw, 6rem) 0 0; }
.page-head + .section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page-head .lead { margin-bottom: 0; }
.banner { font-size: .8rem; padding: .5em 1.25rem; }
.charter li { font-size: 1.25rem; padding: 1rem 0; }
.charter li:last-child { border-bottom: 0; }
/* Galerie : grille régulière, 1 grande + 6 petites */
.gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 18vw, 230px); }
.g-item:nth-child(6n+1) { grid-column: auto; grid-row: auto; }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item span { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.g-item:hover span, .g-item:focus-visible span { opacity: 1; transform: none; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } .g-item:first-child { grid-column: span 2; grid-row: span 1; } .g-item:nth-child(n+6) { display: none; } .g-item span { opacity: 1; transform: none; } }
/* Cartes : tuiles plus basses */
.menu-tile { aspect-ratio: 4 / 5; }
/* Événements : 3 colonnes max sur l'accueil */
.events:not(.events-list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-big .event-media { min-height: 280px; }
/* Avis : sobres, centrés */
.reviews .wrap { max-width: 980px; }
.quotes blockquote { font-size: clamp(1.2rem, 2vw, 1.45rem); }
/* Infos */
.infos .card { padding: clamp(1.4rem, 3vw, 2rem); }
/* Mobile : marges et tailles */
@media (max-width: 600px) {
  .wrap { width: calc(100% - 2.5rem); }
  .top { padding: .7rem 1.25rem; }
  .brand-word { font-size: 2.2rem; }
  .hero { min-height: 78vh; padding: 3.5rem 1.25rem 4rem; }
  .hero-sub { letter-spacing: .26em; font-size: .7rem; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .charter li { font-size: 1.1rem; }
  .menu-tiles { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .tile-text { padding: 1rem; }
  .tile-text b { font-size: 1.25rem; }
  .tile-text small { display: none; }
  .foot { padding-top: 3rem; }
}
.nav .btn[aria-current="page"] { color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold); }
/* Événement sans affiche : bandeau compact au lieu d'un grand cadre vide */
.event-media.no-img { aspect-ratio: auto; height: 132px; }
.event-media.no-img .ph span { font-size: 1.1rem; letter-spacing: .25em; text-transform: uppercase; }
.event-big .event-media.no-img { min-height: 0; height: auto; width: 200px; }
@media (max-width: 700px) { .event-big .event-media.no-img { width: 100%; height: 120px; aspect-ratio: auto; } }
/* Cartes : les tuiles occupent toute la largeur quel que soit leur nombre */
.menu-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.menu-tiles:has(> :only-child) { grid-template-columns: minmax(0, 420px); }
/* Galerie : 1 grande + 4 petites, sans trou */
@media (max-width: 760px) { .g-item:nth-child(n+6) { display: block; } }
@media (max-width: 600px) { .menu-tiles { grid-template-columns: 1fr 1fr; } .menu-tiles:has(> :only-child) { grid-template-columns: 1fr; } }
.event-media.no-img .ph span { display: none; }
.event-big .event-media.no-img { width: 150px; }

/* ===== Page d'accueil : polices du site historique lecosy.fr =====
   Titres en Reenie Beanie (manuscrite), texte courant en Muli/Mulish. */
.page-home { font-family: var(--muli); }
.page-home main h1, .page-home main h2, .page-home main h3 { font-family: var(--hand); font-weight: 400; letter-spacing: .02em; line-height: 1; }
.page-home main h2 { font-size: clamp(2.8rem, 5.5vw, 4.2rem); }
.page-home main h3 { font-size: 2.1rem; }
.page-home .hero-lead { font-family: var(--hand); font-style: normal; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; }
.page-home .kicker, .page-home .h-small, .page-home .hero-sub, .page-home .btn, .page-home .lead,
.page-home .nav a:not(.btn), .page-home .banner, .page-home .tag, .page-home .link-arrow { font-family: var(--muli); }
.page-home .tile-text b, .page-home .event-date b, .page-home .quotes blockquote, .page-home .addr,
.page-home .charter li, .page-home .empty p:first-child { font-family: var(--hand); font-style: normal; font-weight: 400; }
.page-home .tile-text b, .page-home .event-date b { font-size: 2.3rem; }
.page-home .quotes blockquote { font-size: 2rem; line-height: 1.15; }
.page-home .addr, .page-home .charter li { font-size: 1.9rem; }
/* ===== Tuiles « Nos cartes » : image en haut, texte centré dessous, hauteurs alignées ===== */
.menu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.4rem; align-items: stretch; }
.menu-tiles:has(> :only-child) { grid-template-columns: minmax(0, 380px); justify-content: center; }
.menu-tile { aspect-ratio: auto; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.menu-tile:hover { transform: translateY(-4px); border-color: rgba(216, 179, 94, .55); }
.tile-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.menu-tile .tile-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: none; transition: transform .6s; }
.menu-tile:hover .tile-img { transform: scale(1.04); }
.menu-tile .tile-text { position: static; inset: auto; background: none; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding: 1.4rem 1.2rem 1.5rem; }
.menu-tile .tile-text b, .page-home .menu-tile .tile-text b { font-size: clamp(1.9rem, 2.6vw, 2.4rem); line-height: 1; color: var(--gold-2); text-wrap: balance; }
.menu-tile .tile-text small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.45; max-width: 30ch; text-wrap: balance; }
.tile-cta { margin-top: auto; padding-top: .9rem; font: 600 .7rem/1 var(--muli); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 600px) {
  .menu-tiles, .menu-tiles:has(> :only-child) { grid-template-columns: 1fr; gap: 1rem; }
  .tile-media { aspect-ratio: 16 / 9; }
  .menu-tile .tile-text { padding: 1.1rem 1rem 1.2rem; gap: .3rem; }
  .menu-tile .tile-text b, .page-home .menu-tile .tile-text b { font-size: 2.1rem; }
  .menu-tile .tile-text small { display: block; font-size: .85rem; }
  .tile-cta { padding-top: .6rem; }
}

/* ===== v2.1 : loi Évin, plat du jour, avis, privatisation, pages événement ===== */
.evin { text-align: center; color: var(--muted); font-size: .78rem; margin: 2.2rem auto 0; max-width: 60ch; }
.evin + .legal { margin-top: .6rem; }
.pdj { background: linear-gradient(90deg, var(--cocoa), #3a2414 50%, var(--cocoa)); border-block: 1px solid var(--line); }
.pdj-inner { display: flex; align-items: center; justify-content: center; gap: 1rem 1.6rem; flex-wrap: wrap; padding: 1rem 0; text-align: center; }
.pdj-k { margin: 0; font: 600 .72rem/1 var(--muli, var(--sans)); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.pdj-t { margin: 0; font-size: 1.05rem; }
.pdj-t b { color: var(--gold-2); font-weight: 600; }
.pdj-p { display: inline-block; margin-left: .4rem; padding: .15em .7em; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold-2); font-weight: 700; }
.review-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-top: 2.2rem; }
.review-cta .muted { margin: 0; width: 100%; font-size: .9rem; }
.hero-cta.left { justify-content: flex-start; margin-top: 1.6rem; }
.spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.4rem; }
.space { background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.space-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.space-body { padding: 1.2rem 1.3rem 1.4rem; }
.space-body h3 { margin-bottom: .4rem; }
.space-body .muted { margin: .4rem 0 0; font-size: .95rem; }
.formules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 3rem; }
.formules li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px dotted var(--line); }
.formules b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--gold-2); }
.formules span { color: var(--muted); font-size: .92rem; }
.formules em { font-style: normal; color: var(--gold); white-space: nowrap; font-weight: 600; font-size: .9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { margin: 0; padding: .9rem 1rem; border: 1px solid rgba(124, 196, 154, .5); border-radius: 10px; color: var(--ok); background: rgba(124, 196, 154, .08); }
.resa-form .check-line { flex-direction: row; align-items: flex-start; gap: .6rem; font-size: .85rem; }
.resa-form .check-line input { width: 18px; height: 18px; margin-top: .15rem; flex: none; accent-color: var(--gold); }
.resa-form select { appearance: auto; }
.flash-pub { padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.event-link { color: inherit; text-decoration: none; }
.event-link:hover { color: var(--gold-2); }
.event-link::after { content: ""; }

/* ===== v2.2 : cartes saisies en texte ===== */
.chips-big a { padding: .65em 1.3em; font-size: .95rem; }
.menu-block + .menu-block { border-top: 1px solid var(--line); }
.mc-head-block { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.mc-head-block h2 { margin: 0; }
.mc-head-block .muted { margin: .4rem 0 0; }
.mc-intro { color: var(--gold-2); font-size: .95rem; margin: 0 0 1rem; }
.mc-nav { position: sticky; top: 86px; z-index: 5; display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0; margin: 0 0 2rem; background: linear-gradient(var(--ink) 75%, transparent); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.mc-nav::-webkit-scrollbar { display: none; }
.mc-nav a { flex: none; padding: .45em 1em; border: 1px solid var(--line); border-radius: 99px; color: var(--cream); text-decoration: none; font-size: .82rem; white-space: nowrap; }
.mc-nav a:hover { border-color: var(--gold); color: var(--gold-2); }
.mc-grid { columns: 2 440px; column-gap: clamp(2rem, 5vw, 4.5rem); }
.mc-sec { break-inside: avoid; margin: 0 0 2.6rem; scroll-margin-top: 160px; }
.mc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; padding-bottom: .55rem; border-bottom: 1px solid var(--gold); font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.mc-badge { flex: none; font: 700 1rem/1 var(--muli, var(--sans)); color: var(--ink); background: linear-gradient(180deg, var(--gold-2), var(--gold)); padding: .45em .8em; border-radius: 99px; }
.mc-note { margin: -.3rem 0 .9rem; color: var(--muted); font-style: italic; font-size: .92rem; }
.mc-sub { margin: 1.4rem 0 .5rem; font: 600 .74rem/1.2 var(--muli, var(--sans)); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-item { padding: .62rem 0; }
.mc-item + .mc-item { border-top: 1px dotted rgba(216, 179, 94, .14); }
.mc-head { display: flex; align-items: baseline; gap: .6rem; }
.mc-name { font-weight: 600; color: var(--cream); line-height: 1.35; }
.mc-dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted rgba(216, 179, 94, .45); transform: translateY(-.3em); }
.mc-price { flex: none; color: var(--gold-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-desc { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 62ch; }
.mc-foot { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; }
.mc-foot + .mc-foot { margin-top: .25rem; }
.mc-table-wrap { overflow-x: auto; margin: .2rem 0 .4rem; }
.mc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mc-table thead th { font: 600 .66rem/1.25 var(--muli, var(--sans)); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-align: right; padding: 0 0 .5rem .6rem; vertical-align: bottom; }
.mc-table tbody th { text-align: left; font-weight: 600; padding: .5rem .6rem .5rem 0; line-height: 1.3; font-size: .93rem; }
.mc-table tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .15rem; }
.mc-table td { text-align: right; padding: .5rem 0 .5rem .6rem; color: var(--gold-2); font-weight: 700; white-space: nowrap; width: 4.2rem; }
.mc-table tbody tr + tr { border-top: 1px dotted rgba(216, 179, 94, .14); }
.mc-formula { background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.4rem; text-align: center; }
.mc-formula .mc-title { justify-content: center; flex-wrap: wrap; border: 0; padding: 0; }
.mc-formula .mc-note { margin: 0 0 1rem; }
.mc-course { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-weight: 600; }
.mc-choice { line-height: 1.35; }
.mc-or { font: italic 400 .85rem/1.6 var(--serif); color: var(--gold); }
.mc-plus { color: var(--gold); font-size: 1.4rem; line-height: 1; margin: .6rem 0; }
.mc-formula .mc-list { text-align: left; }
@media (max-width: 600px) {
  .mc-nav { position: static; margin-bottom: 1.4rem; background: none; }
  .mc-sec { scroll-margin-top: 110px; }
  .mc-table thead th { font-size: .6rem; letter-spacing: 0; padding-left: .35rem; }
  .mc-table td { width: 2.5rem; padding-left: .3rem; font-size: .86rem; }
  .mc-table thead th { padding-left: .3rem; }
  .mc-tables { gap: 0; }
  .mc-table tbody th { font-size: .88rem; }
  .mc-formula { padding: 1.2rem 1rem; }
}

.mc-formulas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; align-items: start; margin: .4rem 0 2.8rem; }
.mc-formulas .mc-sec { margin: 0; }
.mc-tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 0 clamp(2rem, 5vw, 4.5rem); align-items: start; }
.mc-tsub th { padding: 1.1rem 0 .35rem; font: 600 .7rem/1.2 var(--muli, var(--sans)) !important; letter-spacing: .22em; text-transform: uppercase; color: var(--gold) !important; text-align: left; }
.mc-table tbody tr.mc-tsub + tr { border-top: 0; }

/* ===== v2.3 : onglets Cartes / Allergènes ===== */
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; margin: .4rem 0 1.4rem; border: 1px solid var(--line); border-radius: 99px; background: rgba(42, 27, 18, .6); }
.tab { padding: .6em 1.3em; border-radius: 99px; color: var(--cream); text-decoration: none; font: 600 .85rem/1 var(--muli, var(--sans)); letter-spacing: .04em; }
.tab:hover { color: var(--gold-2); }
.tab[aria-current="page"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); }
.mc-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.al-filter { background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; margin-bottom: 2.4rem; position: sticky; top: 92px; z-index: 5; }
.al-filter-t { margin: 0 0 .8rem; font-weight: 600; }
.al-filter-t small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.al-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-chip { background: transparent; color: var(--cream); border: 1px solid var(--line); border-radius: 99px; padding: .45em .95em; font: 500 .82rem/1 var(--muli, var(--sans)); cursor: pointer; }
.al-chip:hover { border-color: var(--gold); }
.al-chip[aria-pressed="true"] { background: #b5432f; border-color: #e0715b; color: #fff; }
.al-chip[aria-pressed="true"]::before { content: "✕ "; }
.al-status { margin: .7rem 0 0; color: var(--gold-2); font-size: .9rem; min-height: 1.2em; }
.al-grid { columns: 2 440px; column-gap: clamp(2rem, 5vw, 4.5rem); }
.al-sec { break-inside: avoid; margin-bottom: 2.2rem; }
.al-sec h3 { margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--gold); font-size: 1.6rem; }
.al-list { list-style: none; margin: 0; padding: 0; }
.al-row { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px dotted rgba(216, 179, 94, .14); }
.al-row[hidden] { display: none; }
.al-name { font-weight: 600; }
.al-tags { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.al-tag { font-size: .74rem; padding: .25em .65em; border-radius: 99px; border: 1px solid rgba(224, 113, 91, .5); color: #f0b0a2; background: rgba(224, 113, 91, .08); white-space: nowrap; }
.al-none { border-color: rgba(124, 196, 154, .5); color: var(--ok); background: rgba(124, 196, 154, .08); }
.al-var { border-color: var(--line); color: var(--muted); background: none; }
.al-date { margin-top: 1rem; font-size: .85rem; }
@media (max-width: 600px) { .al-filter { position: static; } .tabs { display: flex; } .tab { flex: 1; text-align: center; } }

/* ===== v2.4 : vins & accords ===== */
.wdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; margin-right: 7px; box-sizing: border-box; vertical-align: middle; }
.wdot-s { width: 8px; height: 8px; margin-right: 5px; }
.wdot-r { background: #9b2d3c; border: 1.5px solid #c4566a; }
.wdot-b { background: #ead9a0; }
.wdot-ro { background: #e6a4a0; }
.wdot-bu { background: transparent; border: 1.5px solid var(--gold-2); }
.w-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0 0 1.6rem; color: var(--muted); font-size: .9rem; }
.w-legend span { display: inline-flex; align-items: center; }
.pa-grid { columns: 3 300px; column-gap: 1.4rem; }
.pa-card { break-inside: avoid; margin-bottom: 1.4rem; background: linear-gradient(180deg, var(--cocoa), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem .6rem; }
.pa-card h3 { margin: 0 0 .4rem; color: var(--gold-2); font-size: 1.5rem; }
.pa { list-style: none; margin: 0; padding: 0; }
.pa li { display: flex; flex-direction: column; gap: .15rem; padding: .55rem 0; border-top: 1px dotted rgba(216, 179, 94, .18); }
.pa-dish { color: var(--muted); font-size: .88rem; }
.pa-wine { display: flex; flex-wrap: wrap; align-items: center; row-gap: .2rem; }
.pa-wine b { color: var(--cream); font-weight: 700; }
.pa-or { color: var(--muted); font-size: .85rem; margin: 0 .5rem; }
.pa-alt { color: var(--muted); font-size: .88rem; }
.wl-grid { columns: 2 420px; column-gap: clamp(2rem, 5vw, 4rem); }
.wl-sec { break-inside: avoid; margin-bottom: 2rem; }
.wl-sec h3 { display: flex; align-items: center; margin: 0 0 .4rem; padding-bottom: .45rem; border-bottom: 1px solid var(--gold); font-size: 1.6rem; }
.wl { list-style: none; margin: 0; padding: 0; }
.wl li { padding: .6rem 0; border-bottom: 1px dotted rgba(216, 179, 94, .14); }
.wl-top { display: flex; justify-content: space-between; gap: .3rem 1rem; flex-wrap: wrap; align-items: baseline; }
.wl-name { font-weight: 600; }
.wl-price { display: flex; gap: .9rem; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.wl-price b { color: var(--gold-2); }
.wl-desc { display: block; color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.w-note { font-size: .88rem; }
@media print {
  body { background: #fff !important; color: #000 !important; }
  .site-header, .topbar, .site-footer, .tabs, .hero-cta, .nav-drawer { display: none !important; }
  .pa-card { background: none !important; border-color: #bbb; }
  .pa-card h3, .wl-price b, .pa-wine b, .wl-name, h1, h2, h3 { color: #000 !important; }
  .pa-dish, .pa-alt, .pa-or, .wl-desc, .muted, .wl-price, .lead { color: #333 !important; }
  .section, .page-head { padding: 1rem 0 !important; }
}
.pa-alt { display: inline-flex; align-items: center; }
#accords, #fiche { scroll-margin-top: 110px; }
