/*
  Le Phare à Hon — style.css
  Style bistronomique sobre, classe et chaleureux.
  À placer dans le même dossier que index.html et les images .webp
*/

:root {
  --ink: #101513;
  --ink-soft: #1d2724;
  --slate: #18211f;
  --slate-2: #26322f;
  --cream: #f7f1e6;
  --cream-2: #ebe0cf;
  --paper: #fffaf1;
  --gold: #c9a45d;
  --gold-soft: #ead7ad;
  --sage: #879a83;
  --terracotta: #b56445;
  --muted: #716a5f;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(15, 18, 15, 0.18);
  --shadow-dark: 0 28px 90px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(201, 164, 93, 0.14), transparent 36rem),
    linear-gradient(180deg, var(--cream) 0%, #f4eadb 42%, #efe2cf 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(16, 21, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 19, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: -2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  color: var(--ink);
  background: var(--gold-soft);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px clamp(18px, 4vw, 44px);
  background: rgba(247, 241, 230, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16, 21, 19, 0.08);
}

.navbar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 35%),
    var(--ink);
  border: 1px solid rgba(201, 164, 93, 0.42);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(16, 21, 19, 0.18);
}

.brand-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  background: rgba(255, 250, 241, 0.66);
  border: 1px solid rgba(16, 21, 19, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(16, 21, 19, 0.06);
}

.nav-links a {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  color: rgba(16, 21, 19, 0.76);
  font-size: 0.92rem;
  font-weight: 650;
  transition: 0.25s ease;
}

.nav-links a:hover {
  color: var(--cream);
  background: var(--ink);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--cream);
  border-radius: 999px;
}

/* TYPOGRAPHIE */
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 830px;
  font-size: clamp(2.65rem, 7vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 4.25rem);
}

h3 {
  font-size: clamp(1.28rem, 2.1vw, 1.75rem);
}

p {
  color: rgba(16, 21, 19, 0.72);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px 0;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 {
  margin-top: 10px;
}

.section-heading p:not(.eyebrow) {
  max-width: 660px;
  margin: 18px auto 0;
  font-size: 1.06rem;
}

/* BOUTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    var(--ink);
  box-shadow: 0 18px 34px rgba(16, 21, 19, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 24px 42px rgba(16, 21, 19, 0.28);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid rgba(16, 21, 19, 0.12);
}

.btn-secondary:hover {
  background: var(--white);
  box-shadow: 0 18px 34px rgba(16, 21, 19, 0.1);
}

/* HERO */
.hero {
  max-width: min(1440px, calc(100% - 36px));
  min-height: calc(100vh - 86px);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.88), rgba(238, 225, 206, 0.74)),
    var(--paper);
  border: 1px solid rgba(16, 21, 19, 0.09);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--slate);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(16, 21, 19, 0.05) 55%, rgba(16, 21, 19, 0.4) 100%),
    linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.34) 100%);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 7vw, 92px);
}

.hero-content::before {
  content: "Cuisine locale · Ardoise de saison";
  position: absolute;
  right: clamp(22px, 4vw, 58px);
  top: clamp(24px, 5vw, 60px);
  color: rgba(16, 21, 19, 0.18);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 5.2rem);
  font-style: italic;
  line-height: 0.95;
  pointer-events: none;
  max-width: 420px;
  text-align: right;
}

.hero-content > * {
  position: relative;
}

.hero h1 {
  margin-top: 14px;
}

.hero-text {
  max-width: 650px;
  margin-top: 26px;
  font-size: clamp(1.06rem, 1.8vw, 1.22rem);
}

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

.rating-card {
  width: fit-content;
  max-width: 100%;
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid rgba(16, 21, 19, 0.1);
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(16, 21, 19, 0.08);
}

.rating-card strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.rating-card span {
  color: rgba(16, 21, 19, 0.68);
  font-size: 0.95rem;
}

/* SECTIONS */
.intro-section,
.menu-section,
.gallery-section,
.info-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(82px, 10vw, 132px) clamp(18px, 4vw, 28px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.intro-card,
.info-card,
.formule-card,
.menu-category {
  border: 1px solid rgba(16, 21, 19, 0.1);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 18px 50px rgba(16, 21, 19, 0.08);
}

.intro-card {
  position: relative;
  min-height: 250px;
  padding: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  width: 42px;
  height: 2px;
  background: var(--gold);
}

.intro-card h3 {
  max-width: 260px;
}

.intro-card p {
  margin-top: 22px;
}

/* SIGNATURE DARK */
.signature-section {
  max-width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(50px, 8vw, 84px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(34px, 6vw, 80px);
  align-items: center;
  border-radius: clamp(24px, 4vw, 46px);
  color: var(--cream);
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 164, 93, 0.22), transparent 32rem),
    linear-gradient(135deg, #101513 0%, #1f2b28 100%);
  box-shadow: var(--shadow-dark);
  overflow: hidden;
}

.signature-section p:not(.eyebrow) {
  color: rgba(247, 241, 230, 0.76);
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.signature-content h2 {
  margin-top: 12px;
}

.signature-images {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
  align-items: end;
}

.signature-images img {
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(247, 241, 230, 0.12);
}

.signature-images img:first-child {
  height: 360px;
  transform: translateY(32px);
}

/* MENU */
.menu-section {
  position: relative;
}

.menu-section::before {
  content: "";
  position: absolute;
  top: 58px;
  left: 50%;
  width: min(620px, 82vw);
  height: min(620px, 82vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 93, 0.18), transparent 68%);
  z-index: -1;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.menu-category {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.menu-category::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(201, 164, 93, 0.28);
  border-radius: 24px;
  pointer-events: none;
}

.featured-category {
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    var(--slate);
  box-shadow: 0 24px 70px rgba(16, 21, 19, 0.26);
  transform: translateY(-14px);
}

.featured-category p,
.featured-category .menu-item span {
  color: rgba(247, 241, 230, 0.76);
}

.menu-category h3 {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 164, 93, 0.35);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(16, 21, 19, 0.08);
}

.featured-category .menu-item {
  border-bottom-color: rgba(247, 241, 230, 0.12);
}

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

.menu-item h4 {
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.menu-item p {
  margin-top: 7px;
  font-size: 0.95rem;
}

.menu-item span {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.formules {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.formule-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.formule-card p {
  color: var(--gold);
  font-weight: 850;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.formule-card span {
  color: var(--muted);
}

.formule-card strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
}

.formule-card.highlighted {
  color: var(--cream);
  background: linear-gradient(135deg, var(--ink), var(--slate-2));
  border-color: rgba(201, 164, 93, 0.42);
  box-shadow: 0 26px 70px rgba(16, 21, 19, 0.24);
}

.formule-card.highlighted p,
.formule-card.highlighted span,
.formule-card.highlighted strong {
  color: var(--cream);
}

/* GALERIE */
.gallery-section {
  padding-top: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}

.gallery-item {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--slate);
  box-shadow: 0 20px 45px rgba(16, 21, 19, 0.14);
  border: 1px solid rgba(16, 21, 19, 0.08);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
  min-height: 536px;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.62) 100%);
  opacity: 0.9;
}

.gallery-item:hover img {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* AVIS */
.reviews-section {
  max-width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border-radius: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(235, 224, 207, 0.72)),
    var(--paper);
  border: 1px solid rgba(16, 21, 19, 0.09);
  box-shadow: var(--shadow);
}

.reviews-content h2 {
  margin-top: 12px;
}

.reviews-content p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 20px;
  font-size: 1.05rem;
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review-stats article {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border-radius: 24px;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(16, 21, 19, 0.16);
}

.review-stats strong {
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.review-stats span {
  color: rgba(247, 241, 230, 0.74);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* INFOS */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 220px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

.info-card h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.info-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--terracotta);
  font-weight: 850;
  border-bottom: 1px solid currentColor;
}

.info-card span,
.info-card li {
  color: rgba(16, 21, 19, 0.68);
}

.info-card li + li {
  margin-top: 8px;
}

/* CTA + FOOTER */
.cta-section {
  max-width: var(--max);
  margin: 0 auto clamp(42px, 7vw, 82px);
  padding: clamp(34px, 6vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius-xl);
  color: var(--cream);
  background:
    radial-gradient(circle at top right, rgba(201, 164, 93, 0.23), transparent 24rem),
    linear-gradient(135deg, #111715, #2a3631);
  box-shadow: var(--shadow-dark);
}

.cta-section h2 {
  max-width: 720px;
  margin-top: 10px;
}

.cta-section p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 16px;
  color: rgba(247, 241, 230, 0.72);
}

.cta-section .btn-primary {
  color: var(--ink);
  background: var(--gold-soft);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 28px) 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(16, 21, 19, 0.12);
}

.site-footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.site-footer p {
  margin-top: 4px;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--terracotta);
  font-weight: 800;
}

/* ANIMATIONS SOBRES */
@media (prefers-reduced-motion: no-preference) {
  .intro-card,
  .menu-category,
  .formule-card,
  .gallery-item,
  .info-card,
  .reviews-section,
  .cta-section {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
  }

  .intro-card:hover,
  .formule-card:hover,
  .info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 62px rgba(16, 21, 19, 0.13);
  }
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 440px;
  }

  .hero-content::before {
    display: none;
  }

  .intro-grid,
  .menu-grid,
  .formules {
    grid-template-columns: 1fr;
  }

  .featured-category {
    transform: none;
  }

  .signature-section,
  .reviews-section {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 14px;
  }

  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 250, 241, 0.96);
    box-shadow: 0 18px 50px rgba(16, 21, 19, 0.14);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    justify-content: center;
  }

  .hero,
  .signature-section,
  .reviews-section {
    max-width: calc(100% - 24px);
    border-radius: 26px;
  }

  .hero-media {
    min-height: 330px;
  }

  .hero-content {
    padding: 34px 24px 38px;
  }

  .hero-actions,
  .cta-section,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .rating-card {
    width: 100%;
    align-items: flex-start;
    border-radius: 22px;
  }

  .signature-images {
    grid-template-columns: 1fr;
  }

  .signature-images img,
  .signature-images img:first-child {
    height: 300px;
    transform: none;
  }

  .gallery-grid,
  .info-grid,
  .review-stats {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .intro-section,
  .menu-section,
  .gallery-section,
  .info-section {
    padding-block: 64px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .brand-text {
    font-size: 1.04rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .menu-item {
    flex-direction: column;
    gap: 6px;
  }
}
