:root {
  --black: #050505;
  --text: #111111;
  --muted: #5f5f5f;
  --line: #d8d2c8;
  --background: #f7f4ef;
  --white: #ffffff;
  --accent: #9a4d18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 86px;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid #171717;
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 4px;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-size: 14px;
  color: #d5d5d5;
}

.site-nav {
  display: flex;
  gap: 44px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-image: url("assets/facade-tabac-mairie.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 96px));
  margin: 0 auto;
  color: var(--white);
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 800;
}

.hero p {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.5;
  color: #f4f4f4;
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
}

.hero-actions {
  gap: 16px;
}

.button {
  min-height: 52px;
  padding: 0 28px;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid currentColor;
}

.button-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.button-secondary {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
}

.button-outline {
  margin-top: 22px;
  color: #111111;
  background: transparent;
  border-color: #111111;
}

.section {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: 72px 0;
}

.section-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.section-text h2,
.bar-header h2 {
  margin: 10px 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-text p,
.bar-right p,
.event p,
.event-closing,
.info-section p {
  font-size: 17px;
  line-height: 1.65;
}

.section-text p,
.bar-right p,
.event p,
.event-closing {
  color: #1d1d1d;
}

.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
}

.rule {
  width: 88px;
  height: 1px;
  background: #111111;
  margin: 0 0 34px;
}

.section-text h3,
.bar-left h3,
.bar-right h3 {
  margin: 34px 0 18px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.section-photo img,
.bar-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.menu-preview {
  display: block;
  background: #ffffff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.menu-preview-restaurant {
  max-height: 330px;
}

.menu-preview-drinks {
  max-height: 520px;
}

.menu-preview img {
  width: 100%;
  object-fit: contain;
}

.menu-preview-restaurant img {
  max-height: 330px;
}

.menu-preview-drinks img {
  max-height: 520px;
}

.section-bar {
  padding-top: 22px;
}

.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.bar-photo {
  margin: 0 0 24px;
}

.events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.event {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.event h4 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
}

.event strong {
  display: block;
  margin: 14px 0 8px;
}

.event ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
}

.event li {
  margin: 4px 0;
}

.event-closing {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
}

.info-section {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.info-section p {
  margin: 8px 0 0;
  max-width: 780px;
}

.contact-strip {
  width: min(1280px, calc(100% - 96px));
  margin: 24px auto 0;
  padding: 34px 0 44px;
  border-top: 1px solid #111111;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.contact-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 0 34px;
  border-right: 1px solid var(--line);
}

.contact-item:first-child {
  padding-left: 0;
}

.contact-item:last-child {
  border-right: 0;
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #6d6d6d;
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: #686868;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.contact-item p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

.contact-item a {
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .site-header {
    height: auto;
    min-height: 80px;
    padding: 18px 24px;
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content,
  .section,
  .info-section,
  .contact-strip {
    width: min(100% - 40px, 1280px);
  }

  .section-split,
  .bar-grid,
  .events,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .contact-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 24px 0;
  }

  .contact-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero-content {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }
}

.daily-menu {
  margin: 34px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.daily-menu h3 {
  margin-top: 0;
}

.daily-menu p {
  margin: 8px 0;
}

.daily-menu-muted {
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background: var(--background);
}

.admin-shell {
  width: min(620px, calc(100% - 40px));
  margin: 72px auto;
  padding: 0;
}

.admin-panel {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 34px;
}

.admin-panel h1 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.admin-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid #111111;
  padding: 14px 14px;
  font: inherit;
  border-radius: 0;
  background: #ffffff;
}

.admin-form textarea {
  min-height: 96px;
  resize: vertical;
}

.admin-message {
  min-height: 24px;
  margin-top: 18px;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Ardoise dynamique du menu du jour */
.daily-menu {
  margin: 34px 0 0;
  padding: 0;
  border: 0;
}

.chalkboard-menu {
  width: min(100%, 520px);
  margin: 34px 0 0;
  padding: 12px;
  background: linear-gradient(135deg, #9a6738, #6e421f 48%, #b78045);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.chalkboard-inner {
  position: relative;
  padding: 34px 34px 30px;
  min-height: 520px;
  color: #f8f3e8;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(135deg, #171717, #242424 48%, #111111);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}

.chalkboard-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 5px
    );
  pointer-events: none;
  opacity: 0.35;
}

.chalkboard-topline {
  width: 68%;
  height: 1px;
  margin: 0 auto 18px;
  background: rgba(248, 243, 232, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.24);
}

.chalkboard-menu h3 {
  position: relative;
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 1px #ffffff, 0 0 8px rgba(255, 255, 255, 0.18);
}

.chalkboard-date {
  position: relative;
  margin: 18px 0 26px;
  text-align: center;
  color: #f1eadc;
  font-size: 20px;
  letter-spacing: 0.12em;
}

.chalkboard-divider {
  position: relative;
  width: 76%;
  height: 1px;
  margin: 0 auto 24px;
  background: rgba(248, 243, 232, 0.72);
}

.chalkboard-row,
.chalkboard-info {
  position: relative;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px dashed rgba(248, 243, 232, 0.5);
}

.chalkboard-info {
  margin-top: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 243, 232, 0.7);
  border-bottom: 0;
}

.chalkboard-label {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
}

.chalkboard-label::after {
  content: " :";
}

.chalkboard-value {
  color: #f8f3e8;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  word-break: break-word;
}

.chalkboard-error {
  position: relative;
  margin: 0;
  text-align: center;
  color: #f8f3e8;
  font-size: 18px;
}

@media (max-width: 640px) {
  .chalkboard-menu {
    width: 100%;
    padding: 9px;
  }

  .chalkboard-inner {
    min-height: auto;
    padding: 28px 22px 24px;
  }

  .chalkboard-menu h3 {
    font-size: 34px;
  }

  .chalkboard-row,
  .chalkboard-info {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .chalkboard-label,
  .chalkboard-value {
    font-size: 18px;
  }
}

/* FIX ardoise menu du jour - date + information */
.chalkboard-menu .chalkboard-date {
  position: relative;
  display: block;
  margin: 20px 0 28px;
  text-align: center;
  color: #f8f3e8 !important;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 1;
  z-index: 2;
}

.chalkboard-menu .chalkboard-divider {
  margin-top: 0;
}

.chalkboard-menu .chalkboard-row,
.chalkboard-menu .chalkboard-info {
  grid-template-columns: 150px 1fr;
  gap: 22px;
}

.chalkboard-menu .chalkboard-info {
  align-items: start;
  margin-top: 22px;
  padding-top: 26px;
}

.chalkboard-menu .chalkboard-info .chalkboard-label {
  white-space: nowrap;
}

.chalkboard-menu .chalkboard-info .chalkboard-value {
  display: block;
  padding-top: 2px;
}

.chalkboard-menu .chalkboard-label {
  line-height: 1.25;
}

.chalkboard-menu .chalkboard-value {
  line-height: 1.45;
}

@media (max-width: 640px) {
  .chalkboard-menu .chalkboard-row,
  .chalkboard-menu .chalkboard-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .chalkboard-menu .chalkboard-info .chalkboard-label {
    white-space: normal;
  }

  .chalkboard-menu .chalkboard-date {
    font-size: 18px;
  }
}
