/* ==========================================================================
   Shodai Matcha — feuille de style
   Palette : vert matcha, chêne, crème. Esprit : maison de thé, papier washi,
   lignes fines, beaucoup d'espace (ma 間).
   ========================================================================== */
:root {
  /* Crème / papier */
  --cream: #F6F1E7;
  --cream-deep: #ECE3D2;
  --paper: #FBF8F2;

  /* Chêne */
  --oak-900: #34261A;
  --oak-700: #5A3F28;
  --oak-500: #8A6440;
  --oak-300: #C4A37C;
  --line: #DCCFBA;

  /* Matcha */
  --matcha-900: #2E4126;
  --matcha-700: #4B6337;
  --matcha-500: #7D9259;
  --matcha-200: #DCE2C8;

  /* Texte */
  --ink: #2A231C;
  --muted: #6C6053;
  --error: #9A3B2B;

  /* Typographies : si "Shippori Mincho" / "Zen Kaku Gothic New" sont auto-hébergées,
     elles seront utilisées en priorité, sinon les polices japonaises du système. */
  --font-serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", "Songti SC", Georgia, serif;
  --font-sans: "Zen Kaku Gothic New", "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;

  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Grain discret façon papier washi */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* Le footer reste en bas même sur les pages courtes */
main {
  flex: 1;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background-color: var(--matcha-200);
  color: var(--matcha-900);
}

:focus-visible {
  outline: 2px solid var(--matcha-700);
  outline-offset: 3px;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
}

@media (min-width: 700px) {
  .container {
    width: min(1200px, 100% - 4rem);
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--oak-900);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

p {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* Étiquette de section : petit trait + texte espacé */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--matcha-700);
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

/* Numéro en kanji (一, 二, 三) dans un petit cadre façon tampon */
.section-num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0;
  color: var(--cream);
  background-color: var(--matcha-700);
}

.section-tag:has(.section-num)::before {
  display: none;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  max-width: 18ch;
}

.section-header.text-center h2 {
  margin: 0 auto;
}

/* Lien texte souligné avec flèche */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  padding-bottom: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--matcha-900);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease), gap 0.3s var(--ease);
}

.text-link::after {
  content: "→";
}

.text-link:hover {
  gap: 1rem;
  background-size: 40% 1px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary {
  color: var(--cream);
  background-color: var(--matcha-900);
  border-color: var(--matcha-900);
}

.btn-primary:hover {
  background-color: var(--matcha-700);
  border-color: var(--matcha-700);
}

.btn-outline {
  color: var(--oak-900);
  background-color: transparent;
  border-color: var(--oak-500);
}

.btn-outline:hover {
  color: var(--cream);
  background-color: var(--oak-900);
  border-color: var(--oak-900);
}

.btn-light {
  color: var(--matcha-900);
  background-color: var(--cream);
  border-color: var(--cream);
}

.btn-light:hover {
  background-color: var(--paper);
  border-color: var(--paper);
}

.btn-ghost-light {
  color: var(--cream);
  background-color: transparent;
  border-color: rgba(246, 241, 231, 0.45);
}

.btn-ghost-light:hover {
  background-color: rgba(246, 241, 231, 0.1);
  border-color: var(--cream);
}

/* ==========================================================================
   Header
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(246, 241, 231, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 8px 24px rgba(52, 38, 26, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.logo-image {
  display: flex;
  width: 44px;
  height: 44px;
}

.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--oak-900);
}

.logo-text small {
  margin-top: 3px;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--matcha-700);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--oak-700);
  transition: color 0.25s ease;
}

/* Petit point vert sous le lien actif */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 5px;
  height: 5px;
  background-color: var(--matcha-700);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--matcha-900);
}

.nav-link.active {
  color: var(--matcha-900);
}

.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-cta {
  padding: 12px 24px;
}

/* Sélecteur de langue FR / EN / NL */
.lang-switch {
  display: flex;
  align-items: center;
  margin-left: -0.6rem; /* l'écart du menu (2.4rem) est déjà large */
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.lang-link {
  position: relative;
  padding: 6px 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s ease;
}

.lang-link + .lang-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 1px;
  height: 10px;
  background-color: var(--line);
  transform: translateY(-50%);
}

.lang-link:hover {
  color: var(--oak-900);
}

.lang-link.active {
  color: var(--matcha-900);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background-color: var(--oak-900);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Fond flouté derrière le menu mobile */
.nav-overlay {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  /* Sélecteur de langue en bas du menu hamburger, en grandes cases faciles à toucher */
  .lang-switch {
    margin: 0;
    padding: 0;
    border-left: none;
    border: 1px solid var(--line);
  }

  .lang-link {
    flex: 1;
    padding: 12px 0;
    font-size: 0.8rem;
    text-align: center;
  }

  .lang-link + .lang-link {
    border-left: 1px solid var(--line);
  }

  .lang-link + .lang-link::before {
    display: none;
  }

  .lang-link.active {
    color: var(--cream);
    background-color: var(--matcha-900);
    text-decoration: none;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1.4rem;
    padding: 0.6rem 1rem 1.6rem;
    background-color: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .menu-open .nav-menu {
    display: flex;
    animation: menu-in 0.35s var(--ease);
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 1.05rem 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    left: auto;
    right: 4px;
    bottom: 50%;
    transform: translateY(50%) scale(0);
  }

  .nav-link.active::after {
    transform: translateY(50%) scale(1);
  }

  .nav-cta {
    padding: 15px 24px;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99; /* juste sous le header (z-index: 100) */
    background-color: rgba(52, 38, 26, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Accueil : Hero
   ========================================================================== */
.hero-section {
  padding: 3rem 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--matcha-700);
}

.sub-badge::before {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

.hero-title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6.4vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--oak-900);
}

.hero-title em {
  font-style: normal;
  color: var(--matcha-700);
}

.hero-subtitle {
  max-width: 44ch;
  margin-top: 1.6rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.4rem;
}

/* Visuel : soleil matcha, cadre en bois fin, texte vertical */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--cream-deep);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--oak-300);
  pointer-events: none;
}

.hero-sun {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1;
  background-color: var(--matcha-200);
  border-radius: 50%;
  transform: translateX(-50%);
}

.hero-cup {
  position: absolute;
  left: 50%;
  bottom: 6%;
  height: 84%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(46, 65, 38, 0.25));
  animation: cup-in 1.4s var(--ease) both;
}

.hero-vertical {
  position: absolute;
  top: 34px;
  right: 34px;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.5em;
  color: var(--oak-700);
}

.hero-vertical span {
  margin-top: 1.2em;
  font-size: 0.8rem;
  color: var(--matcha-700);
}

@keyframes cup-in {
  from { opacity: 0; transform: translate(-50%, 24px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Bandeau infos pratiques */
.hero-strip {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strip > div {
  padding: 1.3rem 0;
}

.hero-strip > div + div {
  border-top: 1px solid var(--line);
}

.strip-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oak-500);
}

.hero-strip p {
  font-size: 0.95rem;
  color: var(--ink);
}

.hero-strip a {
  text-decoration: none;
}

.hero-strip a:hover {
  color: var(--matcha-700);
}

@media (min-width: 861px) {
  .hero-section {
    padding-top: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 5rem;
  }

  .hero-strip > div {
    padding: 1.6rem 2rem;
  }

  .hero-strip > div:first-child {
    padding-left: 0;
  }

  .hero-strip > div + div {
    border-top: none;
    border-left: 1px solid var(--line);
  }
}

/* ==========================================================================
   Accueil : Notre esprit
   ========================================================================== */
.about-section {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  margin-right: 18px;
}

/* Cadre en chêne décalé derrière la photo */
.about-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--oak-300);
}

.rounded-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.floating-wood-badge {
  position: absolute;
  left: -1px;
  bottom: 2.2rem;
  padding: 0.9rem 1.3rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  background-color: var(--oak-700);
}

.about-text h2 {
  margin-bottom: 1.6rem;
}

.about-text p {
  max-width: 54ch;
  margin-bottom: 1.1rem;
}

@media (min-width: 861px) {
  .about-section {
    padding: 8rem 0;
  }

  .about-grid {
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
  }

  .about-image-wrapper {
    max-width: 460px;
  }
}

/* ==========================================================================
   Accueil : Galerie
   ========================================================================== */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--cream-deep);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.item-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--oak-900);
  background-color: var(--paper);
}

@media (min-width: 861px) {
  .gallery-grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 280px 280px;
    gap: 1.2rem;
  }

  .gallery-item {
    aspect-ratio: auto;
  }

  .gallery-item:first-child {
    grid-row: span 2;
  }
}

/* ==========================================================================
   Accueil : Avis
   ========================================================================== */
.reviews-section {
  padding: 6rem 0;
}

.reviews-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.google-rating-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-number {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--oak-900);
}

.google-rating-summary .stars {
  display: block;
}

.reviews-count {
  font-size: 0.82rem;
  color: var(--muted);
}

.stars {
  font-size: 1rem;
  letter-spacing: 2px;
}

.star.full {
  color: var(--oak-500);
}

.star.empty {
  color: var(--line);
}

.star.half {
  background: linear-gradient(90deg, var(--oak-500) 50%, var(--line) 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 1.8rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--matcha-700);
}

.review-card > p {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.review-header strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oak-900);
}

.review-header .stars {
  font-size: 0.8rem;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  font-family: var(--font-serif);
  color: var(--cream);
  background-color: var(--matcha-700);
  border-radius: 50%;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reviews-more {
  margin-top: 3rem;
  text-align: center;
}

@media (min-width: 861px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Accueil : appel à réserver
   ========================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background-color: var(--matcha-900);
}

.cta-inner {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.cta-kanji {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: var(--matcha-500);
}

.cta-section h2 {
  margin-bottom: 0.6rem;
  color: var(--cream);
}

.cta-section p {
  color: rgba(246, 241, 231, 0.75);
}

.cta-inner .btn {
  justify-self: start;
}

@media (min-width: 861px) {
  .cta-inner {
    grid-template-columns: auto 1fr auto;
    gap: 4rem;
  }

  .cta-kanji {
    writing-mode: vertical-rl;
    padding-right: 3rem;
    border-right: 1px solid rgba(246, 241, 231, 0.2);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  padding: 4.5rem 0 1.5rem;
  color: rgba(246, 241, 231, 0.75);
  background-color: var(--oak-900);
}

.main-footer h3, .main-footer h4 {
  color: var(--cream);
}

.main-footer h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.main-footer h4 {
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-300);
}

.main-footer p {
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  color: rgba(246, 241, 231, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 1.6rem;
}

.footer-brand p {
  max-width: 34ch;
}

.footer-kanji {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.15em;
  color: var(--oak-300);
}

.footer-phone {
  text-decoration: none;
  color: var(--cream);
}

.footer-phone:hover {
  color: var(--matcha-200);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
}

.main-footer .footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.5);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
}

.footer-legal a {
  font-size: 0.8rem;
  text-decoration: none;
  color: rgba(246, 241, 231, 0.65);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--cream);
}

@media (min-width: 861px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
  }
}

/* ==========================================================================
   Animations au défilement
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Décalage léger entre éléments voisins d'une grille */
.gallery-grid .reveal:nth-child(2),
.reviews-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.gallery-grid .reveal:nth-child(3),
.reviews-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   En-tête des pages intérieures (Carte, Réservation, Contact, Légal)
   ========================================================================== */
.menu-hero,
.reservation-hero,
.contact-hero,
.legal-hero {
  border-bottom: 1px solid var(--line);
}

.page-hero {
  position: relative;
  padding: 4rem 0 3rem;
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.page-hero p {
  max-width: 52ch;
}

/* Grands caractères verticaux en filigrane */
.hero-kanji {
  position: absolute;
  top: 2.6rem;
  right: 0;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: 0.25em;
  color: var(--oak-300);
  opacity: 0.6;
  pointer-events: none;
}

/* Téléphone : on réserve une colonne à droite pour les kanji verticaux */
@media (max-width: 699px) {
  .page-hero:has(.hero-kanji) {
    padding-right: 2.6rem;
  }

  .hero-kanji {
    font-size: 1.4rem;
  }
}

@media (min-width: 861px) {
  .page-hero {
    padding: 5.5rem 0 4rem;
  }
}

/* ==========================================================================
   Page Carte
   ========================================================================== */
.menu-empty {
  padding: 4rem 0;
}

/* Barre de catégories horizontale, collée sous le header */
.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background-color: rgba(246, 241, 231, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.category-list {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-list.dragging {
  cursor: grabbing;
  user-select: none;
}

.category-list.dragging .category-link {
  pointer-events: none;
}

.category-link {
  flex: 0 0 auto;
  padding: 1.05rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color 0.25s ease, box-shadow 0.25s ease;
}

.category-link:hover {
  color: var(--oak-900);
}

.category-link.active {
  color: var(--matcha-900);
  box-shadow: inset 0 -2px 0 var(--matcha-700);
}

/* Sections et items */
.menu-content {
  padding-bottom: 5rem;
  counter-reset: category;
}

.menu-category {
  padding-top: 4rem;
  /* évite que le titre soit masqué par le header + la barre sticky */
  scroll-margin-top: calc(var(--header-h) + 60px);
}

.menu-category h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  border-bottom: 1px solid var(--line);
}

.menu-category h2::before {
  counter-increment: category;
  content: counter(category, decimal-leading-zero);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--matcha-700);
}

/* Vignettes verticales avec photo (lignes de même hauteur) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 0.9rem; /* l'espace vertical entre les rangées vient de la marge des cartes */
}

.menu-card {
  display: flex; /* repli pour les anciens navigateurs */
  flex-direction: column;
  margin-bottom: 2rem;
}

.card-photo {
  display: flex;
  align-items: center;      /* une photo plus courte est centrée dans la zone */
  justify-content: center;
  align-self: stretch;
  overflow: hidden;
  padding: 0.6rem;
  background-color: var(--cream-deep);
  border-radius: var(--radius);
  transition: background-color 0.4s ease;
}

.card-photo img {
  display: block;
  width: 100%;
  height: auto;             /* la photo garde ses proportions */
  transition: transform 0.8s var(--ease);
}

.menu-card:hover .card-photo {
  background-color: var(--matcha-200);
}

.menu-card:hover .card-photo img {
  transform: translateY(-4px) scale(1.03);
}

/* Cadre affiché quand un plat n'a pas de photo */
.card-photo.no-image {
  aspect-ratio: 4 / 5;
}

.card-photo.no-image::after {
  content: "初代";
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  color: var(--oak-300);
}

.card-body {
  flex: 1;
  padding: 1rem 0.1rem 0;
}

.card-price {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--matcha-700);
}

.card-body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.card-body p {
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Navigateurs récents : chaque carte occupe 4 lignes partagées avec ses voisines
   (photo, prix, nom, description), donc tout s'aligne sur toute la rangée */
@supports (grid-template-rows: subgrid) {
  .menu-card {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .card-body {
    display: contents; /* ses enfants rejoignent directement la grille de la carte */
  }

  .card-price {
    margin: 0;
    padding: 1rem 0.1rem 0.25rem;
  }

  .card-body h3 {
    margin: 0;
    padding: 0 0.1rem 0.4rem;
  }

  .card-body p {
    padding: 0 0.1rem;
  }
}

/* Tablette : 3 colonnes */
@media (min-width: 700px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.4rem;
  }

  .menu-card {
    margin-bottom: 2.6rem;
  }
}

/* Ordinateur : 4 colonnes */
@media (min-width: 1000px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 1.8rem;
  }
}

/* Catégorie sans aucune photo : cartes de texte façon menu papier */
.menu-grid:not(:has(img)) .card-photo {
  display: none;
}

.menu-grid:not(:has(img)) .menu-card {
  padding: 0.4rem 1.1rem 1.2rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--matcha-700);
}

/* Barre de catégories : un peu plus haute sur mobile */
@media (max-width: 860px) {
  .category-list {
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Page Réservation
   ========================================================================== */
.reservation-section {
  padding: 3rem 0 6rem;
}

/* --- Carte téléphone (verte) --- */
.phone-card {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 2rem;
  color: var(--cream);
  background-color: var(--matcha-900);
  border-radius: var(--radius);
}

/* Grand kanji en filigrane */
.phone-card::after {
  content: "話";
  position: absolute;
  right: -0.15em;
  bottom: -0.25em;
  font-family: var(--font-serif);
  font-size: 11rem;
  line-height: 1;
  color: rgba(246, 241, 231, 0.05);
  pointer-events: none;
}

.phone-card > * {
  position: relative;
  z-index: 1;
}

.phone-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--matcha-200);
}

.phone-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background-color: currentColor;
}

.phone-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: var(--cream);
}

.phone-card p {
  font-size: 0.92rem;
  color: rgba(246, 241, 231, 0.72);
}

.phone-number {
  display: block;
  margin: 1.6rem 0;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
}

.phone-number:hover {
  color: var(--matcha-200);
}

.phone-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.copy-feedback {
  min-height: 1.4em;
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--matcha-200) !important;
}

.phone-hours {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(246, 241, 231, 0.18);
}

.phone-hours h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--matcha-200);
}

.phone-hours ul {
  list-style: none;
}

.phone-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 8px 0;
  font-size: 0.9rem;
  color: rgba(246, 241, 231, 0.85);
  border-bottom: 1px dashed rgba(246, 241, 231, 0.14);
}

.phone-hours li:last-child {
  border-bottom: none;
}

/* --- Carte calendrier TheFork --- */
.booking-card {
  padding: 2.4rem 2rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.booking-card > p {
  margin-bottom: 1.6rem;
}

.thefork {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  background-color: var(--cream);
  overflow: auto;
}

/* Hauteurs de l'iframe selon la largeur d'écran (à ajuster selon le rendu réel) */
@media only screen and (max-width: 320px) {
  .thefork { min-height: 840px; }
}
@media only screen and (min-width: 321px) and (max-width: 516px) {
  .thefork { min-height: 650px; }
}
@media only screen and (min-width: 517px) {
  .thefork { min-height: 760px; }
}

.booking-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
}

/* Mise en page (mobile d'abord) */
.reservation-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.reservation-wrap > * {
  width: 100%;
  min-width: 0;
}

.reservation-wrap .phone-card {
  position: relative; /* garde le kanji en filigrane à l'intérieur de la carte */
}

/* Ordinateur : téléphone à gauche, calendrier à droite */
@media (min-width: 861px) {
  .reservation-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .reservation-wrap .phone-card {
    flex: 0 0 360px;
    width: 360px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .reservation-wrap .booking-card {
    flex: 1;
  }
}

/* Téléphone : le calendrier passe en premier, pleine largeur */
@media (max-width: 860px) {
  .reservation-wrap .booking-card {
    order: -1;
    padding: 1.6rem 0.4rem;
  }

  .reservation-wrap .booking-card > *:not(.thefork) {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .reservation-wrap .phone-actions .btn {
    flex: 1;
    padding: 14px 16px;
  }
}

/* ==========================================================================
   Page Infos & Contact
   ========================================================================== */
.contact-section {
  padding: 3rem 0 5rem;
}

.contact-top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.info-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.info-card:first-child {
  padding-top: 0;
}

.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.6rem;
  height: 2.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--matcha-900);
  border: 1px solid var(--matcha-500);
}

.info-card h2 {
  margin-bottom: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-500);
}

.info-card p {
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.info-phone {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--oak-900);
}

.info-phone:hover {
  color: var(--matcha-700);
}

.info-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--matcha-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.info-link:hover {
  color: var(--matcha-900);
}

.contact-map {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background-color: var(--cream-deep);
  border: 1px solid var(--line);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.4) sepia(0.12);
}

/* Bon à savoir */
.know-section {
  padding: 6rem 0;
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.know-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.know-item {
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}

.know-item:hover {
  background-color: var(--cream);
}

.know-icon {
  display: block;
  margin-bottom: 1.2rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--matcha-700);
}

.know-item h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
}

.know-item p {
  font-size: 0.9rem;
}

/* Formulaire */
.form-section {
  padding: 6rem 0;
}

.form-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.2rem 1.4rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
}

.form-card h2 {
  margin-bottom: 0.8rem;
}

.form-card .text-center p {
  margin-bottom: 0.3rem;
}

.form-card form {
  margin-top: 2.4rem;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.form-field {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-bottom: 1.4rem;
}

.form-field label {
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak-700);
}

.optional {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background-color: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 150px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--matcha-700);
}

.char-count {
  align-self: flex-end;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.form-submit {
  display: block;
  width: 100%;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  min-height: 1.4em;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

.form-status.success {
  color: var(--matcha-700);
}

.form-status.error {
  color: var(--error);
}

.form-privacy {
  margin-top: 0.6rem;
  font-size: 0.78rem;
  text-align: center;
}

.form-privacy a {
  color: var(--matcha-700);
  text-underline-offset: 3px;
}

@media (min-width: 600px) {
  .know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-card {
    padding: 3rem 3rem;
  }

  .form-row {
    flex-direction: row;
    gap: 1rem;
  }

  .form-submit {
    width: auto;
    min-width: 260px;
    margin: 0 auto;
  }
}

@media (min-width: 861px) {
  .contact-top {
    flex-direction: row;
    align-items: stretch;
    gap: 4rem;
  }

  .contact-info {
    flex: 0 0 340px;
  }

  .contact-map {
    flex: 1;
  }

  .know-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Pages légales
   ========================================================================== */
.legal-section {
  padding: 3rem 0 6rem;
}

.legal-card {
  max-width: 820px;
  padding: 2rem 1.4rem;
  background-color: var(--paper);
  border: 1px solid var(--line);
}

.legal-card h2 {
  margin: 2.6rem 0 0.9rem;
  font-size: 1.45rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 1.6rem 0 0.6rem;
  font-size: 1.1rem;
}

.legal-card p {
  margin-bottom: 0.9rem;
}

.legal-card ul {
  margin: 0 0 1rem 1.2rem;
}

.legal-card li {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.legal-card li::marker {
  color: var(--matcha-500);
}

.legal-card strong {
  color: var(--ink);
}

.legal-card a {
  color: var(--matcha-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  word-break: break-word;
}

.legal-facts {
  margin: 1rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.legal-facts div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-facts dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak-500);
}

.legal-facts dd {
  color: var(--ink);
  word-break: break-word;
}

.legal-table-wrap {
  margin: 1rem 0 1.6rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak-700);
  background-color: var(--cream-deep);
}

.legal-table td {
  color: var(--muted);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

@media (min-width: 600px) {
  .legal-card {
    padding: 3rem;
  }

  .legal-facts div {
    flex-direction: row;
    gap: 1.5rem;
  }

  .legal-facts dt {
    flex: 0 0 220px;
    padding-top: 0.2rem;
  }
}

/* ==========================================================================
   Page d'erreur
   ========================================================================== */
.error-section {
  padding: 6rem 0 7rem;
}

.error-code {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 18vw, 11rem);
  line-height: 1;
  letter-spacing: 0.05em;
  color: transparent;
  -webkit-text-stroke: 1px var(--oak-300);
}

.error-section .section-tag::after {
  content: "";
  width: 28px;
  height: 1px;
  background-color: currentColor;
}

.error-section h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.error-message {
  max-width: 46ch;
  margin: 0 auto;
}

.error-actions {
  margin-top: 2.4rem;
}
