/* ═══════════════════════════════════════════════════════════════════
   TADAIMA — « Le Seuil »
   Palette : Washi #F5F0E6 · Lin #EAE1D0 · Encre sumi #2B2724 · Pin #45523F
             Chêne #B3906B · Grès #6A5D4C · Chêne clair #D9B68C
   Typo : Fraunces (titres) · Karla (texte)
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --chene-fonce: #7A5C38;
  --washi: #F5F0E6;
  --lin: #EAE1D0;
  --encre: #2B2724;
  --pin: #45523F;
  --chene: #B3906B;
  --gres: #6A5D4C;
  --chene-clair: #D9B68C;
  --fraunces: "Fraunces", Georgia, serif;
  --karla: "Karla", "Helvetica Neue", Arial, sans-serif;
  --ja: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Sans JP", serif;
}

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

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

body {
  font-family: var(--karla);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--encre);
  background-color: var(--washi);
  /* Grain washi : léger bruit en dégradés croisés, toucher papier plutôt que blanc d'écran */
  background-image:
    radial-gradient(rgba(43, 39, 36, 0.022) 1px, transparent 1.4px),
    radial-gradient(rgba(43, 39, 36, 0.016) 1px, transparent 1.6px);
  background-size: 7px 9px, 11px 13px;
  background-position: 0 0, 4px 6px;
}

::selection { background: var(--pin); color: var(--washi); }

h1, h2, h3 { font-family: var(--fraunces); font-weight: 500; }
[lang="ja"] { font-family: var(--ja); }

a { color: var(--pin); }
a:focus-visible { outline: 2px solid var(--pin); outline-offset: 3px; border-radius: 2px; }

/* ─── Hero : le seuil ─────────────────────────────────────────────── */

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 0 0;
  position: relative;
}
.hero { min-height: 92svh; }
.hero-inner { margin-top: auto; padding-inline: 1.5rem; }
.hero-bandeau { padding-inline: 1.5rem; }
.seuil { margin-top: auto; }

.surtitre {
  font-family: var(--karla);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gres);
}

.logotype {
  text-transform: uppercase;
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin-top: 0.6rem;
}

.kana {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--chene);
  letter-spacing: 0.55em;
  margin: 0.5rem 0 2.2rem 0.55em; /* compense le dernier letter-spacing */
}

.tagline {
  font-family: var(--fraunces);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--pin);
}

.hero-copy {
  max-width: 34em;
  margin: 1.4rem auto 2.4rem;
  color: var(--gres);
}

.hero-actions { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-block;
  background: var(--pin);
  color: var(--washi);
  font-family: var(--karla);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  transition: background-color 250ms ease;
}
.btn:hover { background: #37422f; }
.btn:focus-visible { outline-color: var(--encre); }

.lien-carte {
  font-weight: 500;
  text-decoration: none;
  position: relative;
}
/* Souligné « coup de pinceau » qui s'étire */
.lien-carte::after, .ou-trouver a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--pin);
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 300ms ease;
}
.lien-carte:hover::after, .lien-carte:focus-visible::after,
.ou-trouver a:hover::after, .ou-trouver a:focus-visible::after { transform: scaleX(1); }
.ou-trouver a { position: relative; text-decoration: none; }

.hero-bandeau {
  margin: 3.2rem 0 2.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gres);
}

/* La barre de seuil — latte de bois pleine largeur, chaussures posées à gauche */
.seuil {
  width: 100%;
  height: 18px;
  background:
    linear-gradient(180deg, #c6a37c 0%, var(--chene) 38%, #98764f 100%);
  box-shadow: 0 3px 10px rgba(43, 39, 36, 0.28);
  position: relative;
}
.seuil::before { /* veinure discrète */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(43,39,36,0.08) 90px 92px);
}
.chaussures {
  position: absolute;
  left: clamp(1rem, 6vw, 5rem);
  bottom: 16px;
  width: 58px;
  color: var(--gres);
  opacity: 0.85;
}

/* ─── Sections ────────────────────────────────────────────────────── */

.section { padding: 5.5rem 1.5rem; }
.contenu { max-width: 62rem; margin: 0 auto; }

.fond-lin { background-color: var(--lin); }
.trame-tatami {
  background-image: repeating-linear-gradient(90deg, rgba(43, 39, 36, 0.018) 0 2px, transparent 2px 56px);
}

.numero {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--chene-fonce);
  margin-bottom: 0.4rem;
}
.numero .numero-fr { color: var(--gres); }
.numero [lang="ja"] { font-size: 1.7rem; }
.numero-fr {
  font-family: var(--karla);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.numero-clair { color: var(--chene-clair); }

h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  margin-bottom: 2.2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.55rem;
}
/* Fil d'encre : trait de pinceau irrégulier sous le titre */
.fil-encre {
  position: absolute;
  left: 0; bottom: 0;
  width: 72%;
  height: 3px;
  background: var(--chene);
  border-radius: 2px 40% 3px 60% / 3px 70% 2px 50%;
  opacity: 0.75;
}
.fil-clair { background: var(--chene-clair); }

.deux-colonnes {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.deux-colonnes p + p { margin-top: 1rem; }
.picto-rituel { color: var(--pin); max-width: 120px; justify-self: center; }

.intro-maison { max-width: 44em; }

.cartes-produits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2.4rem 0 1.8rem;
}
.carte-produit {
  border-top: 2px solid var(--chene);
  padding-top: 1rem;
}
.carte-produit h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.carte-produit p { font-size: 0.95rem; color: var(--gres); }

.mention { font-size: 0.9rem; color: var(--gres); font-style: italic; }

/* ─── Carte du midi ───────────────────────────────────────────────── */

.menu-note {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gres);
  margin: -1.4rem 0 1.8rem;
}

.formules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.8rem;
  font-family: var(--fraunces);
  font-size: 1.15rem;
  border-block: 1px solid var(--chene);
  padding: 1.1rem 0;
  margin-bottom: 2.6rem;
}
.formules p { display: flex; gap: 0.7rem; align-items: baseline; }
.formules b { font-family: var(--karla); font-weight: 500; color: var(--encre); }

.carte-midi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}
.carte-colonne h3 {
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--karla);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.carte-colonne h3 b { color: var(--encre); font-weight: 500; margin-left: 0.5rem; }
.carte-colonne dl div { margin-bottom: 1.15rem; }
.carte-colonne dt {
  font-family: var(--fraunces);
  font-style: italic;
  font-size: 1.15rem;
  /* filet couture pointillé jusqu'au bord */
  border-bottom: 1px dotted var(--chene);
  padding-bottom: 0.25rem;
  margin-bottom: 0.3rem;
}
.carte-colonne dd { font-size: 0.95rem; color: var(--gres); }
.carte-colonne dd i { font-style: italic; }
.desserts-titre { margin-top: 2.2rem; }
.desserts-texte { font-size: 0.95rem; color: var(--gres); }

/* ─── Le soir : la pénombre ───────────────────────────────────────── */

.fond-encre { background-color: var(--encre); color: var(--washi); }
/* Seigaiha en gaufrage : vagues concentriques à peine perceptibles */
.seigaiha {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40' viewBox='0 0 80 40'%3E%3Cg fill='none' stroke='%23F5F0E6' stroke-opacity='0.05'%3E%3Ccircle cx='0' cy='40' r='38'/%3E%3Ccircle cx='0' cy='40' r='28'/%3E%3Ccircle cx='0' cy='40' r='18'/%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3Ccircle cx='40' cy='40' r='28'/%3E%3Ccircle cx='40' cy='40' r='18'/%3E%3Ccircle cx='80' cy='40' r='38'/%3E%3Ccircle cx='80' cy='40' r='28'/%3E%3Ccircle cx='80' cy='40' r='18'/%3E%3C/g%3E%3C/svg%3E");
}
.titre-clair { color: var(--washi); }
.intro-soir { max-width: 42em; color: var(--chene-clair); }

.menus-soir {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
  margin: 2.8rem 0 2.4rem;
}
.carte-washi {
  background: var(--washi);
  color: var(--encre);
  padding: 2rem 1.5rem 1.7rem;
  text-align: center;
  border-radius: 2px;
  position: relative;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.35);
}
.kanji-temps { font-size: 2.6rem; color: var(--chene); line-height: 1; margin-bottom: 0.7rem; }
.carte-washi h3 { font-size: 1.35rem; }
.temps { font-size: 0.9rem; color: var(--gres); margin: 0.4rem 0 1rem; }
.pastilles { display: block; margin-top: 0.55rem; }
.pastilles i {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--chene);
  margin: 0 3px;
}
.prix { font-family: var(--fraunces); font-size: 1.6rem; color: var(--encre); }

.exergue {
  font-family: var(--fraunces);
  font-style: italic;
  font-size: 1.2rem;
  text-align: center;
  color: var(--chene-clair);
  max-width: 34em;
  margin: 0 auto;
}

/* ─── Les usages ──────────────────────────────────────────────────── */

.usages-intro { margin: -1.2rem 0 2.2rem; color: var(--gres); }

.notices {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2.6rem;
}
.notices li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1rem;
  align-items: start;
}
.notices svg { width: 32px; height: 32px; color: var(--pin); margin-top: 0.2rem; }
.notices p { font-size: 0.97rem; color: var(--gres); }
.notices strong { color: var(--encre); }

/* ─── Réservation ─────────────────────────────────────────────────── */

.section-reservation { text-align: center; padding-bottom: 6.5rem; }
.section-reservation .numero { justify-content: center; }

.horaires {
  max-width: 30rem;
  margin: 0 auto 2.4rem;
  border-block: 1px solid var(--chene);
  padding: 1.3rem 0;
}
.horaires p {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.3rem 0;
  flex-wrap: wrap;
}
.horaires span { color: var(--gres); }
.horaires b { font-weight: 500; }
.horaires i { color: var(--gres); font-size: 0.85em; }

.reservation-note { color: var(--gres); font-style: italic; }

.tel-geant {
  display: inline-block;
  font-family: var(--fraunces);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 500;
  color: var(--pin);
  text-decoration: none;
  margin: 0.8rem 0 1.6rem;
  border-bottom: 3px solid transparent;
  transition: border-color 250ms ease;
}
.tel-geant:hover, .tel-geant:focus-visible { border-bottom-color: var(--chene); }

.ou-trouver { color: var(--gres); }

/* CTA fixe en zone pouce, mobile seulement */
.btn-mobile {
  display: none;
  transform: translateY(130%);
  transition: transform 300ms ease;
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  text-align: center;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(43, 39, 36, 0.35);
}

/* ─── Footer ──────────────────────────────────────────────────────── */

footer {
  background: var(--encre);
  color: var(--chene-clair);
  text-align: center;
  padding: 2.6rem 1.5rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hanko {
  width: 44px;
  color: var(--pin);
  background: var(--washi);
  border-radius: 5px;
  padding: 2px;
  margin: 1.1rem auto 0.9rem;
  display: block;
}
.hanko text { font-family: var(--ja); }
.footer-mentions { text-transform: none; letter-spacing: 0.03em; opacity: 0.75; }

/* ─── Apparitions douces ──────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .section { padding: 4rem 1.25rem; }
  .deux-colonnes, .carte-midi, .menus-soir, .notices, .cartes-produits { grid-template-columns: 1fr; }
  .picto-rituel { max-width: 84px; }
  .menus-soir { gap: 1.4rem; }
  .hero { min-height: 88vh; min-height: 88svh; }
  .hero-bandeau { margin-top: 2.4rem; }
  .btn-mobile { display: block; }
  .section-reservation { padding-bottom: 8rem; } /* place pour le CTA fixe */
  footer { padding-bottom: 6.5rem; }
}

.seuil-franchi .btn-mobile { transform: translateY(0); }
.btn-mobile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--washi), 0 0 0 5px var(--encre), 0 6px 20px rgba(43, 39, 36, 0.35);
}
@media (prefers-reduced-motion: reduce) { .btn-mobile { transition: none; } }
