:root {
  --paper: #faf8f4;
  --linen: #f1ede6;
  --sea: #9db5b1;
  --ink: #2e2d2a;
  --stone: #8e8a83;
  --muted: #66625b; /* texto secundario con contraste AA */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}
.muted { color: var(--muted); }
.sea { color: var(--sea); }
.center { text-align: center; }
.rule { display: block; width: 2.5rem; height: 1px; margin: 1.5rem auto; background: var(--stone); }
.ulink { border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.ulink:hover { border-color: var(--sea); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Layout ---------- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { background: var(--paper); padding: 5rem 0; }
.section.linen { background: var(--linen); }.section.first { padding: 8rem 0 5rem; }
@media (min-width: 768px) {
  .container { padding: 0 2.5rem; }
  .section { padding: 7rem 0; }
  .section.first { padding: 11rem 0 7rem; }
}

.heading { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.heading h2, .about h2 { font-size: 2.25rem; }
.heading .intro { margin-top: 1.5rem; color: var(--muted); }
@media (min-width: 768px) {
  .heading { margin-bottom: 5rem; }
  .heading h2, .about h2 { font-size: 3rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 2rem;
  border: 1px solid; background: transparent; cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.btn-solid { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn-light:hover { background: transparent; color: var(--paper); }
.btn-light-outline { border-color: var(--paper); color: var(--paper); }
.btn-light-outline:hover { background: var(--paper); color: var(--ink); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.5rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent; color: var(--paper);
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}
.header.solid { background: var(--paper); color: var(--ink); border-color: rgba(142, 138, 131, 0.4); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.28em; }
.nav-links { display: none; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links > a.ulink { padding: 0.25rem 0; }
.nav-langs { display: none; margin-left: 2.5rem; padding-left: 2.5rem; border-left: 1px solid rgba(250, 248, 244, 0.4); }
.header.solid .nav-langs { border-color: rgba(142, 138, 131, 0.4); }
.burger { display: flex; padding: 0.5rem 0; background: none; border: 0; cursor: pointer; }
.burger span { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 1.75rem; height: 1.5rem; }
.burger i { display: block; height: 1px; background: currentColor; transition: transform var(--ease); }
.burger[aria-expanded='true'] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded='true'] i:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid rgba(142, 138, 131, 0.4); background: var(--paper); color: var(--ink); padding: 1rem 1.5rem 2rem; }
.mobile-menu[hidden] { display: none; }
.mobile-menu li { border-bottom: 1px solid rgba(142, 138, 131, 0.3); text-align: center; }
.mobile-menu li a { display: block; padding: 1rem 0; font-family: var(--serif); font-size: 1.5rem; }
.mobile-menu .langs { justify-content: center; margin-top: 1.5rem; }
@media (min-width: 768px) {
  .nav { height: 5rem; }
  .logo { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .nav-links, .nav-langs { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}

.langs { display: flex; align-items: center; gap: 0.625rem; }
.langs .sep { width: 1px; height: 0.75rem; background: rgba(250, 248, 244, 0.6); }
.header.solid .langs .sep, .mobile-menu .langs .sep { background: var(--stone); }
.langs button {
  padding: 0.25rem 0; background: none; border: 0; border-bottom: 1px solid transparent;
  cursor: pointer; opacity: 0.8; transition: opacity var(--ease), border-color var(--ease);
}
.langs button:hover { opacity: 1; }
.langs button[aria-pressed='true'] { border-color: var(--sea); opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  background: var(--ink); color: var(--paper); text-align: center;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Encart sombre et flouté : la photo reste lumineuse, le texte reste lisible */
.hero-inner {
  position: relative; z-index: 1;
  width: calc(100% - 3rem); max-width: 52rem; margin: 0 auto; padding: 3rem 1.5rem;
  background: rgb(0 0 0 / 20%);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 30px;
}
.hero-inner h1 { line-height: 1; }
@media (min-width: 768px) { .hero-inner { padding: 4rem 3.5rem; } }
.hero .rule { width: 3rem; margin: 1rem auto 1rem; background: rgba(250, 248, 244, 0.7); }
.hero h1 { max-width: 48rem; margin: 0 auto; font-size: 3rem; }
.hero .btn-row { margin-top: 3rem; }
.hero .btn { width: 100%; }
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } .hero .btn { width: auto; } }
@media (min-width: 768px) { .hero h1 { font-size: 4.5rem; } }

/* ---------- About ---------- */
.about { display: grid; align-items: center; gap: 3rem; }
.about img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about .media { width: 100%; max-width: 28rem; margin: 0 auto; }
.about .text { text-align: center; }
.about .text p + p { margin-top: 1.25rem; }
.about .body { margin-top: 2rem; color: var(--muted); }
@media (min-width: 768px) {
  .about { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .about .media { max-width: none; }
  .about .text { text-align: left; }
  .about .rule { margin-left: 0; }
}

/* ---------- Menu ---------- */
.menu-grid { display: grid; gap: 4rem 5rem; }
@media (min-width: 768px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.cat-title { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--stone); font-size: 1.875rem; font-style: italic; }
.dishes li + li { margin-top: 1.75rem; }
.dish-row { display: flex; align-items: baseline; gap: 1rem; }
.dish-row h4 { font-size: 1.25rem; line-height: 1.375; }
.dish-row .dots { flex: 1; min-width: 1rem; margin-bottom: 0.25rem; border-bottom: 1px dotted var(--stone); }
.dish-row .price { white-space: nowrap; font-size: 0.875rem; }
.dish-desc { max-width: 28rem; margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted); }
.menu-note { margin-top: 4rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

.teaser { max-width: 48rem; margin: 0 auto; }
.teaser ul { display: grid; border-block: 1px solid rgba(142, 138, 131, 0.6); text-align: center; }
.teaser li { padding: 1.25rem 0; font-family: var(--serif); font-size: 1.25rem; font-style: italic; }
.teaser li + li { border-top: 1px solid rgba(142, 138, 131, 0.4); }
.teaser .btn-row { margin-top: 2.5rem; }
@media (min-width: 640px) {
  .teaser ul { grid-template-columns: repeat(5, 1fr); }
  .teaser li + li { border-top: 0; border-left: 1px solid rgba(142, 138, 131, 0.4); }
}

/* ---------- Reviews ---------- */
.rating { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 3.5rem; text-align: center; }
.rating .score { font-family: var(--serif); font-size: 3.75rem; line-height: 1; }
.stars { display: flex; gap: 0.25rem; }
.stars svg { width: 1rem; height: 1rem; fill: var(--sea); }
.rating .count { font-size: 0.875rem; color: var(--muted); }
.reviews { display: grid; gap: 2.5rem; }
.reviews figure { padding: 0 1rem; text-align: center; }
.reviews blockquote { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.625; }
.reviews figcaption { margin-top: 1.5rem; color: var(--muted); }
@media (min-width: 768px) {
  .reviews { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .reviews figure { padding: 0 2.5rem; }
  .reviews figure + figure { border-left: 1px solid rgba(142, 138, 131, 0.6); }
  .reviews blockquote { font-size: 1.5rem; }
}

/* ---------- Contact ---------- */
.dt { margin-bottom: 0.75rem; color: var(--muted); }
.strip { display: grid; gap: 2.5rem; text-align: center; }
.strip span, .strip .email { display: block; }
.strip .email { width: fit-content; margin: 0.25rem auto 0; }
.strip + .btn-row { margin-top: 3rem; }
@media (min-width: 768px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.phone-big { font-family: var(--serif); font-size: 1.5rem; }

.contact-grid { display: grid; gap: 3rem; }
.contact-info { display: grid; gap: 2.5rem; text-align: center; }
.contact-info address { font-style: normal; }
.contact-info address span { display: block; }
.contact-info .maplink { display: inline-block; margin-top: 0.75rem; }
.contact-info .hours li + li { margin-top: 0.75rem; }
.contact-info .hours span { display: block; }
.contact-info .mail { word-break: break-all; }
.map {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--stone); background: var(--paper); text-align: center;
}
.map svg { width: 2rem; height: 2rem; margin-bottom: 1rem; color: var(--sea); }
.map .street { margin-top: 0.5rem; font-family: var(--serif); font-size: 1.25rem; }
.map .btn { margin-top: 1.5rem; }
@media (min-width: 640px) { .contact-info { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .contact-info { text-align: left; }
}

/* ---------- Forms ---------- */
.form-wrap { max-width: 42rem; margin: 0 auto; }
.form-wrap.wide { max-width: 48rem; }
.form { display: grid; gap: 1.75rem 2rem; }
.form .full { grid-column: 1 / -1; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 0.25rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.625rem 0; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  background: transparent; font-size: 1rem; color: var(--ink); transition: border-color var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--stone); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.form .submit { margin-top: 0.5rem; }
.hint { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--muted); }

.confirm { padding: 3.5rem 2rem; border: 1px solid var(--stone); text-align: center; }
.confirm svg { width: 2rem; height: 2rem; margin: 0 auto 1.5rem; color: var(--sea); }
.confirm h3 { font-size: 1.875rem; }
.confirm p { max-width: 28rem; margin: 1rem auto 0; color: var(--muted); }
.confirm .btn { margin-top: 2rem; }

/* ---------- Takeaway ---------- */
.tk-title { padding-bottom: 1rem; border-bottom: 1px solid var(--stone); font-size: 1.875rem; font-style: italic; }
.tk-hint { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.form fieldset { margin-top: 2rem; border: 0; }
.form legend { margin-bottom: 0.5rem; color: var(--muted); }
.tk-row { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(142, 138, 131, 0.4); }
.tk-row .name { flex: 1; min-width: 0; }
.tk-row .name p:first-child { font-family: var(--serif); font-size: 1.125rem; line-height: 1.375; }
.tk-row .name p:last-child { font-size: 0.875rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 0.75rem; }
.stepper output { width: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.step {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--stone); background: transparent;
  font-size: 1.125rem; line-height: 1; cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.step:hover:not(:disabled) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.step:disabled { cursor: default; opacity: 0.4; }
.summary { padding: 1.5rem; border: 1px solid var(--stone); background: var(--paper); }
.summary ul { margin-top: 1rem; font-size: 0.875rem; }
.summary ul li { display: flex; justify-content: space-between; gap: 1rem; }
.summary ul li + li { margin-top: 0.5rem; }
.summary ul li span:last-child { white-space: nowrap; }
.summary .none { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.summary .total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--stone); }
.summary .total span:last-child { font-family: var(--serif); font-size: 1.5rem; }
.summary .error { margin-top: 1rem; font-size: 0.875rem; text-decoration: underline; text-decoration-color: var(--sea); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.footer { padding: 4rem 0 7rem; border-top: 1px solid rgba(142, 138, 131, 0.5); background: var(--paper); text-align: center; }
.footer .logo { font-size: 1.5rem; }
.footer .tagline { margin-top: 0.75rem; }
.footer .info { margin-top: 2rem; font-size: 0.875rem; }
.footer .info p + p { margin-top: 0.25rem; }
.footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; margin-top: 2.5rem; font-size: 0.875rem; }
.footer .legal {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(142, 138, 131, 0.4);
  font-size: 0.875rem; color: var(--muted);
}
.footer .rights { margin-top: 1.5rem; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 640px) { .footer .legal { flex-direction: row; justify-content: center; gap: 2rem; } }
@media (min-width: 768px) { .footer { padding-bottom: 3rem; } }

.mobile-bar {
  position: fixed; inset: auto 0 0; z-index: 40; display: flex; gap: 0.5rem;
  padding: 0.75rem; border-top: 1px solid rgba(142, 138, 131, 0.4); background: var(--paper);
}
.mobile-bar a {
  display: flex; flex: 1; align-items: center; justify-content: center; min-height: 3rem;
  border: 1px solid var(--ink); transition: background-color var(--ease), color var(--ease);
}
.mobile-bar a:first-child:hover { background: var(--ink); color: var(--paper); }
.mobile-bar a:last-child { background: var(--ink); color: var(--paper); }
.mobile-bar a:last-child:hover { background: transparent; color: var(--ink); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Animations des titres ---------- */
/* Hero : apparition échelonnée au chargement */
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes track { from { opacity: 0; letter-spacing: 0.6em; } to { opacity: 1; letter-spacing: 0.24em; } }
.hero-inner { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-inner > .label { animation: track 1.4s 0.3s ease both; }
.hero-inner > .rule { animation: draw 1s 0.6s cubic-bezier(0.7, 0, 0.2, 1) both; }
.hero-inner h1 { animation: rise 1.2s 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-inner h1 em { display: inline-block; animation: rise 1.2s 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-inner .btn-row { animation: rise 1s 1.35s ease both; }

/* Titres de section : déclenchés par .reveal.is-visible */
.reveal > .label, .reveal h2, .reveal h2 em, .reveal .cat-title, .reveal .tk-title {
  opacity: 0; transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), filter 1s ease, letter-spacing 1.2s ease;
}
.reveal > .label { letter-spacing: 0.5em; }
.reveal h2 { transform: translateY(18px); filter: blur(6px); transition-delay: 0.35s; }
.reveal h2 em { display: inline-block; transform: translateY(12px); transition-delay: 0.6s; }
.reveal .cat-title, .reveal .tk-title { transform: translateX(-14px); transition-delay: 0.15s; }
.reveal > .rule { transform: scaleX(0); transition: transform 0.9s 0.2s cubic-bezier(0.7, 0, 0.2, 1); }
.reveal.is-visible > .label, .reveal.is-visible h2, .reveal.is-visible h2 em, .reveal.is-visible .cat-title, .reveal.is-visible .tk-title {
  opacity: 1; transform: none; filter: none;
}
.reveal.is-visible > .label { letter-spacing: 0.24em; }
.reveal.is-visible > .rule { transform: scaleX(1); }
.about .reveal > .rule { transform-origin: left; }
@media (max-width: 767px) { .about .reveal > .rule { transform-origin: center; } }

@media (prefers-reduced-motion: reduce) {
  .hero-inner, .hero-inner * { animation: none !important; }
  .reveal > .label, .reveal h2, .reveal h2 em, .reveal .cat-title, .reveal .tk-title, .reveal > .rule { opacity: 1; transform: none; filter: none; letter-spacing: 0.24em; }
  .reveal h2, .reveal h2 em, .reveal .cat-title, .reveal .tk-title { letter-spacing: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
