/* ===============================
   L'Arganier — style.css
   Style marocain méditerranéen premium
   =============================== */

:root {
  --ivoire: #fff8ec;
  --sable: #f1dfc2;
  --sable-clair: #fbefd9;
  --terracotta: #a6482b;
  --terracotta-fonce: #6f2418;
  --argan: #c58a2a;
  --or: #d9a441;
  --olive: #476037;
  --vert-profond: #143d35;
  --bleu-zellige: #0f5f65;
  --bleu-nuit: #102f35;
  --encre: #241915;
  --texte: #5c463b;
  --blanc: #ffffff;
  --ombre: 0 24px 70px rgba(42, 25, 15, 0.14);
  --ombre-douce: 0 12px 35px rgba(42, 25, 15, 0.10);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--texte);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 15% 10%, rgba(217, 164, 65, 0.18), transparent 28%),
    radial-gradient(circle at 85% 5%, rgba(15, 95, 101, 0.14), transparent 28%),
    linear-gradient(180deg, #fff8ec 0%, #f9ecd6 48%, #fff8ec 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, transparent 46%, rgba(15, 95, 101, 0.30) 47%, rgba(15, 95, 101, 0.30) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(166, 72, 43, 0.25) 47%, rgba(166, 72, 43, 0.25) 53%, transparent 54%);
  background-size: 52px 52px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 248, 236, 0.92), rgba(255, 248, 236, 0.68), rgba(255, 248, 236, 0.92));
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

::selection {
  color: var(--ivoire);
  background: var(--terracotta);
}

/* Header / Navigation */

.site-header {
  position: relative;
  min-height: 92vh;
  padding: 22px clamp(18px, 4vw, 56px) 72px;
  color: var(--ivoire);
  background:
    linear-gradient(135deg, rgba(16, 47, 53, 0.95), rgba(20, 61, 53, 0.90)),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, 0.34), transparent 35%);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image:
    conic-gradient(from 45deg, transparent 0 25%, rgba(217, 164, 65, 0.65) 0 50%, transparent 0 75%, rgba(255, 248, 236, 0.42) 0),
    linear-gradient(45deg, rgba(255, 248, 236, 0.16) 25%, transparent 25% 75%, rgba(255, 248, 236, 0.16) 75%);
  background-size: 78px 78px, 78px 78px;
}

.site-header::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(217, 164, 65, 0.42);
  box-shadow: inset 0 0 0 44px rgba(217, 164, 65, 0.07);
}

.navbar,
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  padding: 4px;
  background: var(--ivoire);
  box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  font-size: 0.95rem;
  color: rgba(255, 248, 236, 0.86);
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--or);
  transition: width 0.22s ease;
}

.nav-links a:hover {
  color: var(--ivoire);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  padding-top: clamp(62px, 9vw, 118px);
}

.hero-content {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--argan);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.68;
}

.hero .eyebrow {
  color: #f1c96e;
}

.hero h1 {
  color: var(--ivoire);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-shadow: 0 14px 48px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: 590px;
  margin-top: 28px;
  color: rgba(255, 248, 236, 0.86);
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 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(--bleu-nuit);
  background: linear-gradient(135deg, #f5d483, var(--or));
  box-shadow: 0 16px 34px rgba(217, 164, 65, 0.28);
}

.btn-secondary {
  color: var(--ivoire);
  border: 1px solid rgba(255, 248, 236, 0.36);
  background: rgba(255, 248, 236, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 248, 236, 0.14);
}

.hero-image {
  position: relative;
  min-height: 520px;
  border-radius: 38px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(217, 164, 65, 0.85), rgba(255, 248, 236, 0.18), rgba(15, 95, 101, 0.75));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: 52px;
}

.hero-image img {
  height: 100%;
  min-height: 496px;
  object-fit: cover;
  border-radius: 28px;
  filter: saturate(1.06) contrast(1.03);
}

/* Sections */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(76px, 9vw, 118px) clamp(18px, 4vw, 28px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

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

.section-heading.centered .eyebrow {
  justify-content: center;
}

h2,
h3,
h4 {
  color: var(--encre);
  line-height: 1.12;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}

h4 {
  font-size: 1rem;
  font-weight: 900;
}

.section-subtitle {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--texte);
}

/* Intro */

.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.intro-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(166, 72, 43, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--ombre-douce);
}

.intro-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px auto;
  width: 74px;
  height: 74px;
  opacity: 0.18;
  background:
    linear-gradient(45deg, transparent 42%, var(--bleu-zellige) 43% 57%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--terracotta) 43% 57%, transparent 58%);
  background-size: 22px 22px;
}

.intro-card img {
  height: 100%;
  min-height: 310px;
  object-fit: cover;
}

.intro-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 38px);
}

.intro-card h3 {
  margin-bottom: 12px;
}

.intro-card-highlight {
  color: rgba(255, 248, 236, 0.86);
  background: linear-gradient(135deg, var(--bleu-nuit), var(--vert-profond));
}

.intro-card-highlight h3 {
  color: var(--ivoire);
}

/* Signature */

.signature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
}

.signature-content {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  color: rgba(255, 248, 236, 0.86);
  background:
    linear-gradient(145deg, rgba(20, 61, 53, 0.97), rgba(16, 47, 53, 0.97)),
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.28), transparent 40%);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.signature-content::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(217, 164, 65, 0.42);
}

.signature-content h2 {
  color: var(--ivoire);
  margin-bottom: 18px;
}

.signature-images {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: 210px 210px;
  gap: 18px;
}

.signature-images img {
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--ombre-douce);
}

.signature-images img:first-child {
  grid-row: 1 / 3;
  border-radius: 34px;
}

/* Menu */

.menu {
  max-width: 1240px;
}

.menu-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.menu-category {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(166, 72, 43, 0.12);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.80);
  box-shadow: var(--ombre-douce);
}

.menu-category::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 13px 13px, var(--or) 2px, transparent 3px),
    radial-gradient(circle at 39px 39px, var(--bleu-zellige) 2px, transparent 3px);
  background-size: 52px 52px;
}

.menu-category-wide {
  grid-column: 1 / -1;
}

.category-header {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid rgba(166, 72, 43, 0.10);
  background: linear-gradient(90deg, rgba(255, 248, 236, 0.94), rgba(241, 223, 194, 0.50));
}

.category-header img {
  width: 132px;
  height: 108px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(42, 25, 15, 0.12);
}

.menu-items {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  padding: 6px 22px 22px;
}

.menu-items.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.menu-item {
  padding: 20px 0;
  border-bottom: 1px dashed rgba(166, 72, 43, 0.20);
}

.menu-item:nth-last-child(1),
.menu-items.two-columns .menu-item:nth-last-child(2):nth-child(odd) {
  border-bottom: 0;
}

.menu-items.two-columns .menu-item:nth-child(odd) {
  padding-right: 16px;
}

.menu-items.two-columns .menu-item:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid rgba(166, 72, 43, 0.10);
}

.menu-item h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--terracotta-fonce);
}

.menu-item h4::before {
  content: "✦";
  color: var(--or);
  font-size: 0.78rem;
}

.menu-item p {
  color: var(--texte);
  font-size: 0.96rem;
}

.tajines-block {
  border-color: rgba(15, 95, 101, 0.18);
}

.tajines-block .category-header {
  background: linear-gradient(90deg, rgba(20, 61, 53, 0.96), rgba(15, 95, 101, 0.80));
}

.tajines-block .category-header h3,
.tajines-block .category-header .eyebrow {
  color: var(--ivoire);
}

.tajines-block .category-header .eyebrow::before,
.tajines-block .category-header .eyebrow::after {
  background: var(--or);
}

/* Galerie */

.gallery {
  max-width: 1240px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 18px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--sable);
  box-shadow: var(--ombre-douce);
}

.gallery-grid figure:nth-child(1),
.gallery-grid figure:nth-child(3) {
  grid-column: span 2;
}

.gallery-grid figure:nth-child(5) {
  grid-row: span 2;
}

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

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(20, 61, 53, 0.28));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.gallery-grid figure:hover::after {
  opacity: 1;
}

/* Réservation */

.reservation-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 40px;
  color: rgba(255, 248, 236, 0.88);
  background:
    linear-gradient(135deg, rgba(111, 36, 24, 0.94), rgba(20, 61, 53, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(217, 164, 65, 0.34), transparent 36%);
  box-shadow: var(--ombre);
  overflow: hidden;
}

.reservation-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 248, 236, 0.20);
  border-radius: 30px;
  pointer-events: none;
}

.reservation-card h2 {
  color: var(--ivoire);
  margin-bottom: 16px;
}

.contact-box {
  position: relative;
  z-index: 1;
  padding: 24px;
  border: 1px solid rgba(255, 248, 236, 0.20);
  border-radius: 24px;
  background: rgba(255, 248, 236, 0.10);
  backdrop-filter: blur(14px);
}

.contact-box p + p {
  margin-top: 12px;
}

.contact-box strong {
  color: #f7d887;
}

/* Footer */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  color: rgba(255, 248, 236, 0.78);
  background: var(--bleu-nuit);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  padding: 4px;
  background: var(--ivoire);
}

.footer-note {
  text-align: right;
}

/* Responsive */

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .hero,
  .signature,
  .reservation-card {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: auto;
  }

  .hero-image img {
    min-height: 360px;
  }

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

  .menu-category-wide {
    grid-column: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .gallery-grid figure:nth-child(1),
  .gallery-grid figure:nth-child(3),
  .gallery-grid figure:nth-child(5) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  body {
    line-height: 1.62;
  }

  .site-header {
    padding-inline: 14px;
    padding-bottom: 54px;
  }

  .navbar {
    align-items: flex-start;
    border-radius: 26px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .intro-card,
  .category-header {
    grid-template-columns: 1fr;
  }

  .intro-card img {
    min-height: 220px;
    max-height: 260px;
  }

  .category-header img {
    width: 100%;
    height: 190px;
  }

  .menu-items.two-columns {
    grid-template-columns: 1fr;
  }

  .menu-items.two-columns .menu-item:nth-child(odd),
  .menu-items.two-columns .menu-item:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .menu-items.two-columns .menu-item:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px dashed rgba(166, 72, 43, 0.20);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .reservation-card {
    border-radius: 30px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .brand span {
    font-size: 0.95rem;
  }

  .hero-text,
  .section-subtitle,
  .menu-item p {
    font-size: 0.94rem;
  }

  .hero-image img {
    min-height: 300px;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }
}
