﻿/* ---------------------------------------------
   La Lumière : minimal system
   One typeface. Near-monochrome. No ornament.
---------------------------------------------- */

:root {
  --paper: #f6f5f2;
  --paper-2: #ffffff;
  --ink: #17171a;
  --ink-soft: #3a3a3c;
  --muted: #8d8b85;
  --wood: #5c4534;
  --wood-lit: #71573f;
  --glow: rgba(176, 137, 85, 0.34);
  --line: rgba(23, 23, 26, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* height:auto neutralise l'attribut height="" du HTML, qui sinon écrase
   les aspect-ratio ci-dessous et étire les photos. Les blocs qui veulent
   une hauteur fixe (.frame, .hero__strip) la redéclarent. */
img { display: block; max-width: 100%; height: auto; }
video { display: block; max-width: 100%; }

.wrap { width: min(1180px, 90%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }

p { margin: 0 0 1rem; max-width: 58ch; color: var(--ink-soft); }

.label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 245, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.wordmark {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav__list a:hover { color: var(--ink); border-color: var(--ink); }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

/* ---------- Langues : le sélecteur ne vit que sur l'écran sombre (torch.css) ---------- */

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--wood);
  background: var(--wood);
  padding: 1.05rem 2.6rem;
  cursor: pointer;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

/* au survol la lampe grandit : le bois s'éclaircit et diffuse un halo chaud */
.btn:hover {
  background: var(--wood-lit);
  border-color: var(--wood-lit);
  box-shadow: 0 0 0 6px var(--glow);
}

.btn--light {
  color: var(--ink);
  background: #f4f3f0;
  border-color: #f4f3f0;
  justify-self: start;
}

.btn--light:hover {
  background: var(--paper-2);
  border-color: var(--paper-2);
  box-shadow: 0 0 0 6px rgba(244, 243, 240, 0.18);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(5rem, 14vh, 9rem) 0 0;
}

.hero__inner {
  padding-bottom: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

/* p a une max-width : sans marges auto, le bloc reste calé à gauche */
.hero__inner p { margin-inline: auto; }

/* le fort interlettrage laisse un blanc après la dernière lettre :
   on décale d'une demi-chasse pour que le centrage soit optiquement juste */
.hero__inner .label { text-indent: 0.28em; }
.hero .btn { text-indent: 0.13em; }

.hero h1 { margin-bottom: 1.6rem; }

.hero__text {
  font-size: 1.05rem;
  max-width: 44ch;
  margin: 0 auto 2.4rem;
}

/* le CTA principal : plein, pour qu'il se détache du fond clair */
.hero .btn { margin-top: 0.4rem; }

.hero__strip {
  height: clamp(240px, 42vh, 460px);
  overflow: hidden;
  filter: grayscale(0.25) contrast(1.03);
}

.hero__strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 11vw, 8rem) 0; }

.section--ink {
  background: #131315;
  color: #eceae5;
}

.section--ink p { color: rgba(236, 234, 229, 0.72); }
.section--ink .label { color: rgba(236, 234, 229, 0.45); }

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.two--flip > :first-child { order: -1; }

.frame { margin: 0; overflow: hidden; }

.frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  filter: grayscale(0.2);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}

.frame:hover img,
.frame:hover video { filter: grayscale(0); transform: scale(1.02); }

/* portraits: keep the head in frame when cropped */
.frame--portrait img {
  object-position: center 18%;
  filter: grayscale(0.32) contrast(1.02);
}

/* ---------- Crew photo (inside the brigade column) ---------- */

.crew {
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
  overflow: hidden;
}

.crew img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(0.32) contrast(1.02);
  transition: filter 0.9s var(--ease), transform 0.9s var(--ease);
}

.crew:hover img { filter: grayscale(0); transform: scale(1.02); }

.crew figcaption {
  padding: 0.8rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section--ink .crew figcaption { color: rgba(236, 234, 229, 0.45); }

/* ---------- Cuisine grid ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 2.4rem;
}

.tile {
  margin: 0;
  background: var(--paper);
  overflow: hidden;
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

/* Un plat prend deux colonnes et devient panoramique : c'est lui qui casse
   la monotonie. 8 vignettes + 1 large = 9 cellules = 3 rangées pleines.
   À déclarer APRÈS .tile img : même spécificité, c'est l'ordre qui tranche. */
.tile--lead { grid-column: span 2; }
.tile--lead img {
  aspect-ratio: 3 / 2;
  /* La photo est verticale : la bande panoramique en retient une tranche.
     L'assiette est à 59 % de la hauteur, pas au milieu — sans ce décalage
     le recadrage lui couperait le bas. */
  object-position: 50% 67%;
}

.tile:hover img { transform: scale(1.04); filter: grayscale(0); }

.tile figcaption {
  padding: 0.9rem 0.2rem 1.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Carte ---------- */

.menu { margin-top: clamp(2.6rem, 6vw, 4rem); }

.menu__head {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 1rem;
  margin: 0 0 1.9rem;
  border-bottom: 1px solid var(--line);
}

.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.7rem clamp(2rem, 5vw, 4.5rem);
}

.menu__list li {
  display: grid;
  gap: 0.35rem;
}

.menu__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 0;
}

.menu__name {
  font-size: 1rem;
  color: var(--ink);
}

.menu__price {
  flex: none;
  font-size: 0.86rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.menu__desc {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--muted);
}

.menu__note {
  margin-top: clamp(2.6rem, 6vw, 3.8rem);
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
}

/* sur fond sombre, l'encre et les filets doivent s'inverser */
.section--ink .menu__name { color: #eceae5; }

.section--ink .menu__head,
.section--ink .menu__desc,
.section--ink .menu__note { color: rgba(236, 234, 229, 0.5); }

.section--ink .menu__price { color: rgba(236, 234, 229, 0.62); }

.section--ink .menu__head { border-bottom-color: rgba(236, 234, 229, 0.16); }
.section--ink .menu__note { border-top-color: rgba(236, 234, 229, 0.16); }

/* ---------- Hours & map ---------- */

.hours {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  max-width: 420px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.address {
  font-style: normal;
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.8rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.address a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  justify-self: start;
  transition: border-color 0.4s var(--ease);
}

.address a:hover { border-color: var(--ink); }

.map { border: 1px solid var(--line); }

.map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ---------- Form ---------- */

.form { display: grid; gap: 0.45rem; }

.form label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 234, 229, 0.5);
  margin-top: 0.7rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font-family: inherit;
  /* 16px minimum : en dessous, iOS zoome sur le champ au moment de la saisie */
  font-size: 1rem;
  font-weight: 300;
  color: #eceae5;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(236, 234, 229, 0.28);
  padding: 0.72rem 0;
  transition: border-color 0.4s var(--ease);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: #eceae5;
}

.form select option { color: #17171a; }

.form .btn--light { margin-top: 1.8rem; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

/* Seconde voie, sous le bouton : l'e-mail direct. */
.form__alt {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(236, 234, 229, 0.62);
}

.form__alt a {
  color: rgba(236, 234, 229, 0.92);
  border-bottom: 1px solid rgba(236, 234, 229, 0.3);
  padding-bottom: 1px;
  transition: border-color 0.4s var(--ease);
}

.form__alt a:hover { border-bottom-color: rgba(236, 234, 229, 0.85); }

/* Piège à robots de Netlify : invisible à l'œil, mais surtout pas
   display:none, sinon le champ n'est plus soumis et le filtre ne sert plus. */
.hidden-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Pages annexes : merci, 404 ---------- */

.standalone {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--paper);
}

.standalone__inner {
  padding: 4rem 0;
  text-align: center;
}

.standalone__inner h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 200;
  line-height: 1.08;
  margin: 0.8rem 0 1.4rem;
}

.standalone__inner p { margin-inline: auto; }

.standalone__links {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin: 2rem auto 2.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.standalone__links a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.4s var(--ease);
}

.standalone__links a:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */

.footer {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Même traitement que les liens de l'adresse : encre et filet fin.
   Le gris --muted du reste du pied de page ne donne que 3,1:1 sur la
   crème, insuffisant pour un élément cliquable de cette taille. */
.footer__social {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.4s var(--ease);
}

.footer__social:hover,
.footer__social:focus-visible { border-bottom-color: var(--ink); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .nav__list { gap: 1.2rem; }
}

@media (max-width: 900px) {
  .two, .two--flip, .form__row { grid-template-columns: 1fr; }
  .two--flip > :first-child { order: 0; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  /* sur deux colonnes, les huit vignettes se rangent par paires :
     aucune ne s'élargit, sinon la dernière rangée resterait trouée */
  .tile--lead { grid-column: span 1; }
  .tile--lead img { aspect-ratio: 3 / 4; }
  .menu__list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.2rem;
    margin: 0 -0.2rem;
  }
  .nav__list {
    position: absolute;
    right: 5%;
    top: 68px;
    flex-direction: column;
    gap: 1rem;
    width: min(260px, 90vw);
    padding: 1.4rem;
    background: var(--paper);
    border: 1px solid var(--line);
    display: none;
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { display: flex; align-items: center; min-height: 44px; }
  .footer__row { flex-direction: column; }

  /* au doigt il faut de quoi viser : on agrandit la zone, pas le dessin */
  .wordmark { display: inline-flex; align-items: center; min-height: 44px; }
  .address a,
  .footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- Téléphones ---------- */

@media (max-width: 560px) {
  .tile figcaption { padding: 0.7rem 0.2rem 0.95rem; }
  .menu__top { gap: 0.9rem; }
  .form input,
  .form select,
  .form textarea { padding: 0.82rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
