:root {
  /* Palette chaude / café */
  --bg-main: #070606;
  --bg-alt: #0d0b0a;
  --bg-card: #151210;
  --bg-soft: #1d1815;
  --accent: #d7a462;
  --accent-dark: #b7833a;
  --text-main: #f5f3f0;
  --text-muted: #a89f97;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-soft: 14px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.7);
  --transition-fast: 180ms ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(to bottom, #070606, #0b0908 40%, #080707 100%);
  color: var(--text-main);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button {
  font-family: inherit;
}

body.nav-open {
  overflow: hidden;
}

/* LAYOUT -------------------------------------------------- */

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.narrow {
  max-width: 900px;
}

/* HEADER -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 6, 6, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 150px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-subtitle {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* NAVIGATION */

.site-nav {
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
}

.nav-links a {
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 400;
  color: var(--text-muted);
  padding-bottom: 0.35rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: var(--text-main);
}

/* Burger */

.nav-toggle {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c0a09;
  color: inherit;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile nav panel */

.site-nav.is-open {
  position: fixed;
  inset: 52px 0 0 0;
  background: rgba(7, 6, 6, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  display: block;
}

.site-nav.is-open .nav-links {
  flex-direction: column;
  align-items: flex-start;
  padding: 1.8rem 1.5rem;
}

/* HERO --------------------------------------------------- */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: var(--text-main);
  overflow: hidden;
}

.hero-home {
  background-image:
    linear-gradient(to right, #070606, rgba(7, 6, 6, 0.7)),
    url("../img-idea/decor/decor1.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  display: none;
}

.hero-content {
  padding-block: 3.5rem 4.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.hero-subtitle {
  max-width: 28rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.hero-note {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* PAGE HERO ---------------------------------------------- */

.page-hero,
.lab-hero {
  padding-block: 3.6rem 3.2rem;
  background: #090807;
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-hero h1,
.lab-hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.page-intro {
  max-width: 720px;
  color: var(--text-muted);
}

/* LAB HERO BG */

.lab-hero {
  position: relative;
  overflow: hidden;
}

.lab-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(7, 6, 6, 0.95), rgba(7, 6, 6, 0.7)),
    url("../img-idea/decor/decor2.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: -1;
}

.lab-hero-content {
  position: relative;
}

/* SECTIONS ------------------------------------------------ */

.section {
  padding-block: 3.2rem;
}

.section:nth-of-type(odd) {
  background: var(--bg-main);
}

.section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.section-intro {
  max-width: 720px;
  color: var(--text-muted);
}

/* CARDS, GRIDS ------------------------------------------- */

.cards-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-soft);
  padding: 1.8rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-link {
  display: inline-flex;
  margin-top: 1.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* Decor grid */

.section-decor {
  background: #0a0807;
}

.decor-grid {
  display: grid;
  gap: 1rem;
}

.decor-item {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #100d0b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
}

.decor-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 250ms ease-out, filter 250ms ease-out;
  filter: saturate(1.15) contrast(1.06);
}

.decor-item:hover img {
  transform: scale(1.04);
  filter: saturate(1.3) contrast(1.1);
}

/* Plats */

.plats-grid,
.menu-gallery-grid {
  display: grid;
  gap: 1.2rem;
}

.plat-card {
  background: #120f0d;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.7);
}

.plat-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform 260ms ease-out, filter 260ms ease-out;
  filter: saturate(1.15) contrast(1.06);
}

.plat-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.3) contrast(1.1);
}

/* Split layout (expérience) */

.split-section {
  background: var(--bg-alt);
}

.split-section .split-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split-text p {
  color: var(--text-muted);
}

.split-image img {
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  height: 260px;
  width: 100%;
  object-fit: cover;
}

/* Menu page */

.section-menu {
  background: var(--bg-main);
}

.section-menu .menu-title {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.section-menu .menu-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.menu-item {
  padding-block: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}

.menu-item:last-of-type {
  border-bottom: 1px solid var(--border-subtle);
}

.menu-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.menu-description {
  margin: 0;
  color: var(--text-muted);
}

.menu-note {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

/* CTA band */

.section-cta-reservation {
  padding-block: 2.6rem 3.4rem;
  background: #090706;
}

.cta-bar {
  background: #151210;
  border-radius: 999px;
  border: 1px solid rgba(215, 164, 98, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  padding: 1.3rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.cta-main {
  margin: 0;
}

/* Reservation */

.section-reservation {
  background:
    linear-gradient(to right, #0a0807, rgba(10, 8, 7, 0.7)),
    url("../img-idea/plat/plat8.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.section-reservation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #070606, rgba(7, 6, 6, 0.85));
}

.section-reservation .reservation-layout {
  position: relative;
  display: grid;
  gap: 2.4rem;
}

.reservation-info h2,
.reservation-form-wrapper h2,
.contact-info h2,
.contact-form-wrapper h2 {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  margin-top: 0;
}

.reservation-list {
  padding-left: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.reservation-list li {
  margin-bottom: 0.2rem;
}

.reservation-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */

.section-contact {
  background:
    linear-gradient(to right, #0b0908, #151210);
}

.section-contact .contact-layout {
  display: grid;
  gap: 2.2rem;
}

.contact-block h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Buttons ----------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #1b120a;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 160ms ease-out;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7);
}

.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent-dark), #936128);
}

.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.btn.btn-outline:hover {
  background: rgba(215, 164, 98, 0.12);
}

/* Forms -------------------------------------------------- */

form {
  background: rgba(15, 11, 9, 0.96);
  border-radius: 18px;
  padding: 1.8rem 1.6rem 1.7rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.1rem;
}

label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

input,
textarea {
  background: #060504;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.form-error {
  font-size: 0.78rem;
  color: #ff6b8b;
  min-height: 1.1em;
  margin-top: 0.2rem;
}

.form-success {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: #66e0a3;
  min-height: 1.1em;
}

/* FOOTER ------------------------------------------------- */

.site-footer {
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 2.4rem 1.5rem;
  background: #050404;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 1.8rem;
}

.footer-title {
  font-family: "Playfair Display", serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

.footer-baseline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}

.footer-nav-inline a {
  font-size: 0.8rem;
  color: var(--text-main);
}

.footer-nav-inline a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SCROLL REVEAL ------------------------------------------ */

/* Par défaut : visible pour éviter le bug si JS ne tourne pas */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease-out, transform 420ms ease-out;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ACCESSIBILITÉ ------------------------------------------ */

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* RESPONSIVE --------------------------------------------- */

@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .decor-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .plats-grid,
  .menu-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-section .split-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .section-reservation .reservation-layout,
  .section-contact .contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1.6fr;
    align-items: flex-start;
  }

  .cta-bar {
    padding-inline: 2.1rem;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: block;
  }

  .site-nav.is-open {
    position: static;
    inset: auto;
    background: transparent;
    border-top: 0;
  }

  .nav-toggle {
    display: none;
  }

  .hero-content {
    padding-block: 4.6rem 5rem;
  }

  .hero-home {
    min-height: 92vh;
  }
}