/* le Stück — site vitrine. Dominante sombre, bois et laiton, titres Croissant One. */
:root {
  --noir: #0B0D0B; --vert: #0C3703; --vert-2: #123F08; --sauge: #527A52; --sauge-2: #6E9A6B; --or: #A6802E; --or-2: #C9A24E;
  --creme: #F3EEE3; --creme-2: #D8D2C4; --mute: #A8A89A; --ligne: rgba(243,238,227,.14);
  --font-title: 'Croissant One', Georgia, serif; --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --maxw: 1180px; --pad: clamp(18px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noir); color: var(--creme); font-family: var(--font-body); font-size: 18px; line-height: 1.55; font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: var(--or-2); text-decoration: none; }
a:hover { color: var(--creme); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; max-width: 62ch; }
.small { font-size: .9rem; color: var(--mute); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 1.02rem; border: 1.5px solid var(--or); color: var(--creme); background: transparent; cursor: pointer; font-family: var(--font-body); transition: background .15s, color .15s, transform .08s; }
.btn:hover { background: var(--or); color: var(--noir); }
.btn.solid { background: var(--or); color: var(--noir); }
.btn.solid:hover { background: var(--or-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.eyebrow { font-family: var(--font-title); color: var(--or-2); font-size: 1.05rem; margin-bottom: 6px; display: block; }
.rule { width: 64px; height: 2px; background: var(--or); margin: 14px 0 22px; }

/* ---------- Header : logo centré, menu centré dessous ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px var(--pad) 12px; background: linear-gradient(rgba(11,13,11,.85), rgba(11,13,11,0)); transition: background .25s, padding .25s; }
.top.scrolled { background: rgba(11,13,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ligne); padding-top: 12px; gap: 10px; }
.top .logo img { height: 50px; width: auto; transition: height .25s; display: block; }
.top.scrolled .logo img { height: 38px; }
/* Sur l'accueil, le grand logo du bandeau suffit : celui de l'en-tête n'apparaît qu'au défilement */
.top .logo { transition: opacity .3s, max-height .3s; max-height: 60px; overflow: hidden; }
body.page-index .top:not(.scrolled) .logo { opacity: 0; max-height: 0; margin-bottom: -14px; }
.nav { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.nav a { color: var(--creme); font-weight: 600; padding: 8px 16px; border-radius: 999px; font-size: 1rem; letter-spacing: .01em; }
.nav a:hover, .nav a[aria-current] { color: var(--or-2); }
.nav a.cta { border: 1.5px solid var(--or); margin-left: 6px; }
.nav a.cta:hover { background: var(--or); color: var(--noir); }
.burger { display: none; position: absolute; right: 10px; top: 14px; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; align-items: center; }
.burger span { width: 26px; height: 2px; background: var(--creme); transition: transform .2s, opacity .2s; }
@media (max-width: 820px) {
  .top { padding-bottom: 14px; }
  .top .logo img { height: 42px; }
  .burger { display: flex; }
  .nav { position: fixed; inset: 0; background: var(--noir); flex-direction: column; justify-content: center; gap: 10px; transform: translateY(-100%); opacity: 0; transition: transform .25s, opacity .2s; }
  body.nav-open .nav { transform: none; opacity: 1; }
  .nav a { font-size: 1.5rem; font-family: var(--font-title); font-weight: 400; }
  .nav a.cta { margin: 16px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .burger { position: fixed; z-index: 31; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero .media { position: absolute; inset: 0; z-index: -2; }
.hero .media img, .hero .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .media img { opacity: 0; transition: opacity 1.8s ease-in-out; transform: scale(1.04); z-index: 0; }
/* L'image qui arrive se fond par-dessus la précédente, qui reste nette (pas de creux sombre) et garde son mouvement jusqu'au bout */
.hero .media img.on { opacity: 1; z-index: 2; animation: kenburns var(--kb, 9s) linear forwards; }
.hero .media img.out { opacity: 1; z-index: 1; animation: kenburns var(--kb, 9s) linear forwards; transition: none; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero .veil { position: absolute; inset: 0; z-index: -1; }
.hero .veil.none { background: linear-gradient(rgba(11,13,11,.35), rgba(11,13,11,.15) 40%, rgba(11,13,11,.75)); }
.hero .veil.dark { background: rgba(11,13,11,var(--veil, .55)); }
.hero .veil.green { background: rgba(12,55,3,var(--veil, .55)); }
.hero .veil.gold { background: rgba(120,85,20,var(--veil, .45)); }
.hero .veil::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--noir)); }
.hero-in { text-align: center; padding: 120px var(--pad) 90px; max-width: 900px; }
.hero-in .hero-logo { width: min(360px, 68vw); margin: 0 auto 22px; }
.hero-in h1 { margin: 0 auto .4em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.45); min-height: 2.3em; display: grid; place-items: center; }
.hero-in h1 span { grid-area: 1/1; opacity: 0; transition: opacity .9s ease; }
.hero-in h1 span.on { opacity: 1; }
.hero-in .btn { margin-top: 18px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 22px; height: 36px; border: 2px solid var(--creme-2); border-radius: 12px; opacity: .6; }
.scroll-hint::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--creme-2); animation: hint 1.8s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero .media img.on { animation: none; } .scroll-hint::after { animation: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 120px) 0; }
.intro { text-align: center; }
.intro .wrap { max-width: 760px; }
.intro p { margin-inline: auto; font-size: 1.15rem; }
.intro-img { margin-top: 48px; border-radius: 18px; overflow: hidden; aspect-ratio: 16/8; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.split.flip .text { order: -1; }
.split .img { border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.split .text p { font-size: 1.1rem; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .text { order: 0; } .split .img { aspect-ratio: 4/3; } }
.gallery { background: var(--vert); }
.gallery h2 { text-align: center; margin-bottom: 36px; }
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; grid-auto-flow: dense; gap: 10px; }
.mosaic a { position: relative; border-radius: 12px; overflow: hidden; display: block; }
.mosaic a:nth-child(6n+1) { grid-column: span 3; grid-row: span 2; }
.mosaic a:nth-child(6n+2), .mosaic a:nth-child(6n+3) { grid-column: span 3; }
.mosaic a:nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(6n+5), .mosaic a:nth-child(6n+6) { grid-column: span 4; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic a:hover img { transform: scale(1.04); }
@media (max-width: 820px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } .mosaic a { grid-column: span 1 !important; grid-row: span 1 !important; } .mosaic a:nth-child(3n+1) { grid-column: span 2 !important; } }
.band { background: var(--vert-2); text-align: center; }
.band .wrap { max-width: 720px; }
.band h2 { color: var(--creme); }
.band .btn { margin-top: 10px; }

/* ---------- Carte ---------- */
.page-carte .pagehead, .page-reservation .pagehead, .page-contact .pagehead { padding: 150px 0 40px; text-align: center; background: radial-gradient(ellipse at top, rgba(12,55,3,.6), transparent 60%); }
.pagehead p { margin-inline: auto; color: var(--creme-2); }
.menu-nav { position: sticky; top: var(--top-h, 110px); z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--pad); background: rgba(11,13,11,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ligne); scrollbar-width: none; }
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav a:first-child { margin-left: auto; } .menu-nav a:last-child { margin-right: auto; } /* centré, mais reste défilable sur mobile */
.menu-nav a { white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--creme-2); font-weight: 600; font-size: .95rem; border: 1px solid transparent; }
.menu-nav a:hover, .menu-nav a.on { color: var(--or-2); border-color: rgba(201,162,78,.5); }
.cat { padding: clamp(40px, 6vw, 72px) 0; border-bottom: 1px solid var(--ligne); }
.cat:last-of-type { border-bottom: 0; }
.cat .cat-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: end; margin-bottom: 28px; }
.cat .cat-head.noimg { grid-template-columns: 1fr; }
.cat .cat-img { border-radius: 16px; overflow: hidden; aspect-ratio: 3/2; }
.cat .cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat:nth-of-type(even) .cat-head .cat-img { order: -1; }
.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 8px 48px; }
.dish { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 0; border-bottom: 1px dotted rgba(243,238,227,.22); align-items: baseline; }
.dish .n { font-weight: 600; font-size: 1.08rem; }
.dish .p { font-family: var(--font-title); color: var(--or-2); font-size: 1.05rem; white-space: nowrap; }
.dish .d { grid-column: 1 / -1; color: var(--creme-2); font-size: .95rem; margin: 0; }
.dish.off { opacity: .45; } .dish.off .n::after { content: ' · épuisé'; font-weight: 400; font-size: .85rem; color: var(--mute); }
.menu-note { text-align: center; color: var(--mute); font-size: .9rem; padding: 30px var(--pad) 0; }
@media (max-width: 820px) { .cat .cat-head, .cat:nth-of-type(even) .cat-head { grid-template-columns: 1fr; } .cat:nth-of-type(even) .cat-head .cat-img { order: 0; } .menu-nav { top: var(--top-h, 70px); } }

/* ---------- Réservation / contact ---------- */
.card { background: #121512; border: 1px solid var(--ligne); border-radius: 18px; padding: clamp(20px, 4vw, 36px); }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; color: var(--creme-2); }
input, select, textarea { width: 100%; font: inherit; color: var(--creme); background: #0B0D0B; border: 1px solid rgba(243,238,227,.25); border-radius: 10px; padding: 12px 14px; min-height: 50px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--or); outline-offset: 1px; border-color: var(--or); }
input[type=date] { color-scheme: dark; }
textarea { min-height: 90px; resize: vertical; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(243,238,227,.25); background: transparent; color: var(--creme); font: inherit; cursor: pointer; }
.slots button.on { background: var(--or); color: var(--noir); border-color: var(--or); font-weight: 700; }
.slots button:disabled { opacity: .3; cursor: default; }
.slots-title { font-family: var(--font-title); color: var(--or-2); margin: 10px 0 8px; }
.covers { display: flex; gap: 8px; flex-wrap: wrap; }
.covers button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(243,238,227,.25); background: transparent; color: var(--creme); font: inherit; font-weight: 600; cursor: pointer; }
.covers button.on { background: var(--or); color: var(--noir); border-color: var(--or); }
.msg { padding: 14px 16px; border-radius: 12px; background: rgba(166,128,46,.15); border-left: 4px solid var(--or); }
.msg.err { background: rgba(198,57,43,.15); border-color: #C6392B; }
.msg.ok { background: rgba(82,122,82,.2); border-color: var(--sauge-2); }
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--ligne); background: #121512; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.info h3 { color: var(--or-2); font-size: 1.2rem; margin-top: 22px; }
.info h3:first-child { margin-top: 0; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; place-items: center; z-index: 50; padding: 20px; }
.lb.on { display: grid; }
.lb img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lb button { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ligne); background: rgba(0,0,0,.5); color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Footer ---------- */
.foot { background: #070807; border-top: 1px solid var(--ligne); padding: 56px 0 28px; }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { font-family: var(--font-title); font-weight: 400; color: var(--or-2); margin: 0 0 10px; font-size: 1.1rem; }
.foot p { color: var(--creme-2); font-size: .98rem; }
.foot-logo { width: 150px; margin-bottom: 10px; }
.copy { text-align: center; color: var(--mute); font-size: .85rem; margin: 40px 0 0; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-in { grid-template-columns: 1fr; } }

/* Jour fermé / complet : le formulaire s'efface, un message clair prend la place */
.closed { text-align: center; padding: 28px 18px; border: 1px dashed rgba(201,162,78,.5); border-radius: 14px; background: rgba(166,128,46,.08); margin: 6px 0 4px; }
.closed-ic { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: rgba(198,57,43,.15); color: #C6392B; font-size: 1.3rem; font-weight: 700; }
.closed h3 { margin: 0 0 6px; font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; }
.closed p { margin: 0 0 14px; color: rgba(243,238,227,.85); }
.closed .btn { margin-top: 4px; }

/* Page de statut (après demande, clic de confirmation, annulation) */
.status { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 28px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(201,162,78,.35); }
.status-ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; background: rgba(166,128,46,.2); color: var(--or-2); }
.status.ok .status-ic { background: rgba(82,122,82,.3); color: #9fd3a8; }
.status.cancel .status-ic, .status.err .status-ic { background: rgba(198,57,43,.2); color: #e07a6c; }
.status h1 { font-size: 1.9rem; margin: 0 0 18px; }
.status-facts { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 0 0 22px; }
.status-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 90px; } .status-facts span { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(243,238,227,.6); } .status-facts strong { font-size: 1.1rem; color: var(--or-2); }
.status-text { font-size: 1.05rem; line-height: 1.6; color: rgba(243,238,227,.9); } .status-text p { margin: 0 0 12px; }
.status.wait .status-text p:first-child strong { color: var(--or-2); }
.status-actions { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.status-sec { padding-top: calc(var(--top-h, 110px) + 24px); }
