/* Maharaja Restaurant — feuille de style partagée (index.html + commande.html) */

:root {
  --forest: #043f35;          /* couleur de marque, identique au thème du shop Delova */
  --forest-deep: #032620;
  --forest-line: rgba(232, 206, 148, 0.22);
  --brass: #c79a3c;
  --brass-soft: #e8ce94;
  --paper: #fbf9f4;
  --paper-alt: #f3efe6;
  --ink: #17201c;
  --ink-soft: #5a6660;
  --white: #ffffff;

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

.mh-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.mh-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brass);
  color: var(--forest-deep);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 100;
}
.mh-skip:focus { left: 0; }

/* ---------- Wordmark ---------- */

.mh-wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  font-variation-settings: "SOFT" 40, "WONK" 1;
}
.mh-wordmark span {
  display: block;
  font-family: var(--body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  margin-top: 5px;
  opacity: 0.68;
}

/* ---------- En-tête ---------- */

.mh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--forest-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--forest-line);
}
.mh-header .mh-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}
.mh-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.mh-nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mh-nav a:hover { border-bottom-color: var(--brass); }
.mh-header-actions { display: flex; align-items: center; gap: 10px; }

/* Sélecteur de langue */
.mh-lang {
  display: flex;
  border: 1px solid rgba(251, 249, 244, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  margin-right: 4px;
}
.mh-lang button {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(251, 249, 244, 0.72);
  font-family: var(--body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 9px 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mh-lang button + button { border-left: 1px solid rgba(251, 249, 244, 0.18); }
.mh-lang button:hover { color: var(--paper); background: rgba(251, 249, 244, 0.08); }
.mh-lang button[aria-current="true"] {
  background: var(--brass);
  color: var(--forest-deep);
}

@media (max-width: 900px) {
  .mh-nav { display: none; }
  .mh-header-actions { margin-left: auto; }
}
@media (max-width: 700px) {
  /* Le lanceur flottant du widget prend le relais du bouton « Réserver ». */
  .mh-header-actions .dr-open { display: none; }
}
@media (max-width: 560px) {
  .mh-header .mh-wrap { min-height: 68px; gap: 12px; }
  .mh-header-actions { gap: 8px; }
  .mh-header-actions .mh-btn { padding: 10px 14px; font-size: 0.78rem; }
  .mh-lang button { padding: 8px 8px; font-size: 0.72rem; }
}

/* ---------- Boutons ---------- */

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.mh-btn:hover { transform: translateY(-2px); }
.mh-btn--brass { background: var(--brass); color: var(--forest-deep); }
.mh-btn--brass:hover { background: var(--brass-soft); }
.mh-btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(251, 249, 244, 0.4);
}
.mh-btn--ghost:hover { border-color: var(--brass); color: var(--brass-soft); }
.mh-btn--ink {
  background: var(--forest);
  color: var(--paper);
}
.mh-btn--ink:hover { background: var(--forest-deep); }
.mh-btn--outline {
  background: transparent;
  color: var(--forest);
  border-color: rgba(4, 63, 53, 0.35);
}
.mh-btn--outline:hover { border-color: var(--forest); background: rgba(4, 63, 53, 0.05); }

/* ---------- Hero ---------- */

.mh-hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 96px);
}
/* Jali : treillis géométrique inspiré des claustras de grès moghols */
.mh-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, var(--forest-line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(-45deg, var(--forest-line) 0 1px, transparent 1px 42px);
  opacity: 0.55;
  mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(120% 90% at 78% 18%, #000 0%, transparent 68%);
  pointer-events: none;
}
.mh-hero > .mh-wrap { position: relative; }

.mh-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap; /* le filet suit le texte, il ne le coupe pas */
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin: 0 0 26px;
}
.mh-eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 150px);
  background: var(--forest-line);
}

.mh-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
}
.mh-hero h1 em {
  font-style: normal;
  display: block;
  font-size: clamp(0.92rem, 2.4vw, 1.35rem);
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 22px;
}

.mh-hero p.mh-lede {
  max-width: 46ch;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: rgba(251, 249, 244, 0.82);
  margin: 34px 0 0;
}

.mh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.mh-status {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--forest-line);
  font-size: 0.92rem;
  color: rgba(251, 249, 244, 0.78);
}
.mh-status b { color: var(--paper); font-weight: 700; }
.mh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}
.mh-status[data-open="false"] .mh-dot { background: #9aa5a0; }

/* ---------- Sections claires ---------- */

.mh-section { padding: clamp(64px, 9vw, 108px) 0; }
.mh-section--alt { background: var(--paper-alt); }

.mh-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 46px;
}
.mh-section-head > div { min-width: 0; }
.mh-section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 10px 0 0;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.mh-section-head .mh-eyebrow { color: var(--forest); margin-bottom: 0; }
.mh-section-head .mh-eyebrow::after { background: rgba(4, 63, 53, 0.22); }
.mh-section-head p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ---------- La carte : table des matières ---------- */

.mh-menu-list { border-top: 1px solid rgba(4, 63, 53, 0.18); }

.mh-menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 8px 18px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(4, 63, 53, 0.14);
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.mh-menu-row:hover,
.mh-menu-row:focus-visible {
  background: rgba(4, 63, 53, 0.045);
  padding-left: 14px;
}
.mh-menu-name {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
}
/* Points de conduite, comme sur une carte imprimée */
.mh-menu-name::after {
  content: "";
  flex: 1;
  height: 1px;
  min-width: 24px;
  background-image: radial-gradient(circle, rgba(4, 63, 53, 0.42) 1px, transparent 1.2px);
  background-size: 7px 2px;
  background-repeat: repeat-x;
  transform: translateY(-4px);
}
.mh-menu-meta {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mh-menu-meta b { color: var(--forest); font-weight: 700; }
.mh-menu-sample {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.mh-menu-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
}
.mh-menu-foot p { margin: 0; font-size: 0.88rem; color: var(--ink-soft); max-width: 44ch; }

@media (max-width: 600px) {
  .mh-menu-name::after { display: none; }
  .mh-menu-row { grid-template-columns: 1fr; }
}

/* ---------- Deux façons de venir ---------- */

.mh-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.mh-card {
  background: var(--white);
  border: 1px solid rgba(4, 63, 53, 0.14);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mh-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.mh-card p { margin: 0; color: var(--ink-soft); }
.mh-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.93rem;
}
.mh-card li { display: flex; gap: 10px; align-items: flex-start; }
.mh-card li::before {
  content: "◆";
  color: var(--brass);
  font-size: 0.62rem;
  line-height: 1.9;
  flex: none;
}
.mh-card .mh-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Infos pratiques ---------- */

.mh-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}
.mh-info h3 {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--forest);
  margin: 0 0 22px;
}
.mh-hours { width: 100%; border-collapse: collapse; }
.mh-hours th,
.mh-hours td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid rgba(4, 63, 53, 0.12);
  font-weight: 400;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
}
.mh-hours th { font-weight: 500; width: 42%; }
.mh-hours td { text-align: right; color: var(--ink-soft); }
.mh-hours tr[data-today="true"] th,
.mh-hours tr[data-today="true"] td { color: var(--forest); font-weight: 700; }
.mh-hours tr[data-closed="true"] td { color: #9aa5a0; }

.mh-contact { font-style: normal; line-height: 1.9; }
.mh-contact a { color: var(--forest); text-decoration-color: rgba(4, 63, 53, 0.3); }
.mh-contact a:hover { text-decoration-color: var(--forest); }
.mh-contact .mh-place {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

/* ---------- Pied de page ---------- */

.mh-footer {
  background: var(--forest-deep);
  color: rgba(251, 249, 244, 0.7);
  padding: 56px 0 40px;
  font-size: 0.9rem;
}
.mh-footer .mh-wordmark { color: var(--paper); }
.mh-footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--forest-line);
}
.mh-footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.mh-footer-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.mh-footer-links a:hover { border-bottom-color: var(--brass); color: var(--paper); }
.mh-footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(251, 249, 244, 0.5);
}
.mh-footer-bottom a { color: inherit; }

/* ---------- Page commande ---------- */

/* En-tête NON collant : la barre de catégories du shop est sticky dans son
   shadow DOM et serait recouverte par un en-tête collant. */
.mh-header--static { position: static; }

.mh-shop {
  padding: 34px 0 72px;
  background: var(--white);
  min-height: 60vh;
}
.mh-shop-intro {
  max-width: var(--wrap);
  margin: 0 auto 26px;
  padding: 0 24px;
}
.mh-shop-intro h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 2.6rem);
  margin: 0 0 8px;
  font-variation-settings: "SOFT" 50, "WONK" 1;
}
.mh-shop-intro p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }
.mh-shop-mount { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- Révélation au défilement ---------- */

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

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