:root {
  color-scheme: dark;
  --black: #000;
  --white: #fff;
  --palm: #3D8B45;
  --palm-dark: #215F37;
  --gold: #B8890A;
  --banana: #E4B51A;
  --gold-line: rgba(184, 137, 10, 0.44);
  --palm-line: rgba(61, 139, 69, 0.5);
  --white-soft: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat Alternates", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.phone-shell {
  position: relative;
  width: min(100%, 420px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--black);
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: clamp(42px, 11vw, 52px) minmax(0, 1fr) clamp(42px, 11vw, 52px);
  align-items: center;
  min-height: clamp(86px, 21vw, 104px);
  padding: clamp(10px, 3vw, 16px) clamp(22px, 6vw, 30px);
  background: var(--black);
}

.logo-link {
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(54vw, 210px);
  min-width: 150px;
  max-width: 210px;
}

.logo-link img {
  display: block;
  width: 100%;
  max-height: clamp(64px, 17vw, 82px);
  height: auto;
  object-fit: contain;
}

.icon-button,
.search-icon {
  display: grid;
  width: clamp(42px, 11vw, 52px);
  height: clamp(42px, 11vw, 52px);
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button img,
.search-icon img {
  width: clamp(24px, 6.2vw, 31px);
  height: clamp(24px, 6.2vw, 31px);
  object-fit: contain;
}

.hero {
  min-height: 456px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.74) 50%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 100%),
    url("assets/fond-hero.avif") center / cover no-repeat;
}

.hero-content {
  padding: 25px 12px 20px;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.35rem, 9vw, 3.15rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 span {
  color: var(--palm);
}

.hero-separator {
  width: min(180px, 48vw);
  height: clamp(34px, 10vw, 48px);
  margin: 22px 0 24px;
}

.hero-separator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero p {
  margin: 0 0 22px;
  color: var(--white-soft);
  font-size: 1rem;
  font-weight: 300;
  font-family: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}

.search-card {
  display: grid;
  gap: 11px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  padding: 10px;
}

label {
  display: grid;
  gap: 8px;
}

label span,
.filter-label {
  color: var(--white-soft);
  font-size: 0.86rem;
  font-weight: 300;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--white);
  padding: 0 10px;
  outline: none;
}

textarea {
  min-height: 86px;
  padding-top: 10px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder,
select {
  color: var(--white-soft);
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--palm);
  outline-offset: 2px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.filter-row button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  padding: 0 12px;
  font-size: 0.84rem;
  cursor: pointer;
}

.content-section {
  padding: 18px 12px 26px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-title > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-title img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

h2 {
  margin: 0;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: 0;
}

.section-title a,
.result-line {
  color: var(--white-soft);
  font-size: 0.92rem;
  font-weight: 300;
}

.result-line {
  margin: 0 0 12px;
  color: var(--banana);
}

.restaurant-grid {
  display: grid;
  gap: 12px;
}

.restaurant-card,
.content-section,
.page-head,
.about-card,
.social-section,
.contact-actions,
.profile-panel,
.detail-section,
.detail-hero {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.restaurant-card.is-visible,
.content-section.is-visible,
.page-head.is-visible,
.about-card.is-visible,
.social-section.is-visible,
.contact-actions.is-visible,
.profile-panel.is-visible,
.detail-section.is-visible,
.detail-hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.restaurant-card {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: clamp(142px, 37vw, 172px);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: var(--black);
}

.restaurant-photo-link {
  display: block;
  min-height: 100%;
}

.restaurant-photo {
  width: 100%;
  height: 100%;
  min-height: clamp(142px, 37vw, 172px);
  object-fit: cover;
}

.restaurant-content {
  display: grid;
  align-content: start;
  gap: clamp(7px, 2vw, 10px);
  padding: clamp(10px, 2.8vw, 14px);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  border-radius: 6px;
  background: var(--palm);
  color: var(--white);
  padding: 4px 8px;
  font-size: clamp(0.75rem, 3vw, 0.9rem);
  font-weight: 700;
  line-height: 1.05;
}

.favorite-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: clamp(34px, 8.6vw, 40px);
  height: clamp(34px, 8.6vw, 40px);
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 170ms ease, background-color 170ms ease;
}

.favorite-button:active {
  transform: scale(0.82);
}

.favorite-button.is-favorite {
  background: rgba(61, 139, 69, 0.24);
}

.favorite-button.favorite-pop {
  animation: favoritePress 420ms ease;
}

.heart-icon {
  display: block;
  width: clamp(24px, 6.2vw, 28px);
  height: clamp(24px, 6.2vw, 28px);
  object-fit: contain;
}

@keyframes favoritePress {
  0% {
    transform: scale(1);
  }

  42% {
    transform: scale(0.76);
  }

  70% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

.restaurant-content h3 {
  margin: 0;
  width: fit-content;
  border-bottom: 1px solid var(--palm);
  padding-bottom: 6px;
  font-size: clamp(0.75rem, 3vw, 0.98rem);
  font-weight: 700;
  line-height: 1.15;
}

.restaurant-title-link {
  width: fit-content;
}

.restaurant-content p {
  margin: 0;
  color: var(--white-soft);
  font-size: clamp(0.75rem, 3vw, 0.92rem);
  line-height: 1.35;
}

.card-description,
.card-extra {
  display: none;
}

.rating,
.meta {
  font-size: clamp(0.72rem, 2.7vw, 0.84rem);
}

.rating {
  color: var(--white-soft);
}

.meta {
  color: var(--palm);
}

.empty-state {
  display: grid;
  justify-items: center;
  min-height: 160px;
  border: 1px dashed var(--gold-line);
  border-radius: 6px;
  background: var(--black);
  padding: 24px 18px;
  text-align: center;
}

.empty-state h3 {
  margin: 5px 0 8px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}

.empty-state p {
  max-width: 290px;
  margin: 0;
  color: var(--white-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.empty-palm {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.paid-section {
  display: grid;
  gap: 10px;
  margin: 4px 12px 24px;
  border: 1px solid var(--palm-line);
  border-radius: 6px;
  background: var(--black);
  padding: 16px;
}

.paid-section p {
  margin: 0;
  color: var(--banana);
  font-size: 0.88rem;
}

.paid-section h2 {
  font-size: 1.35rem;
}

.price-line {
  color: var(--palm);
  font-size: 1.5rem;
  font-weight: 800;
}

.paid-section a {
  display: inline-flex;
  justify-content: center;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  padding: 12px 14px;
  font-weight: 700;
}

.profile-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, #000 100%),
    url("assets/fondpageformulaire.avif") center / cover no-repeat;
}

.profile-panel {
  min-height: calc(100vh - 88px);
  padding: 30px 12px 26px;
}

.profile-intro {
  margin-bottom: 18px;
}

.profile-intro p,
.profile-status > p {
  margin: 0 0 8px;
  color: var(--banana);
  font-size: 0.88rem;
}

.profile-intro h1 {
  font-size: clamp(2.35rem, 12vw, 3.8rem);
}

.profile-intro span {
  display: block;
  max-width: 340px;
  margin-top: 10px;
  color: var(--white-soft);
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-form,
.profile-status {
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: transparent;
  padding: 20px;
}

.profile-form[hidden],
.profile-status[hidden] {
  display: none;
}

.form-step[hidden] {
  display: none;
}

.form-step.is-active {
  animation: stepReveal 260ms ease;
}

fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--palm-line);
  border-radius: 8px;
  padding: 12px;
}

legend {
  color: var(--palm);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0 8px;
}

.profile-form button,
.step-button {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
}

.detail-shell {
  background: var(--black);
}

.detail-page {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
}

.detail-hero {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, #000 100%);
  pointer-events: none;
}

.detail-hero > img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.detail-favorite {
  position: absolute;
  right: 14px;
  bottom: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.64);
}

.detail-section {
  display: grid;
  gap: 12px;
  margin: 0 12px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--black);
  padding: 14px;
}

.detail-heading {
  border-color: var(--palm-line);
}

.detail-heading h1 {
  width: fit-content;
  border-bottom: 1px solid var(--palm);
  padding-bottom: 8px;
  font-size: clamp(1.8rem, 9vw, 2.7rem);
}

.detail-type {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
}

.detail-place,
.detail-description {
  margin: 0;
  line-height: 1.45;
}

.detail-place {
  color: var(--palm);
}

.detail-description {
  color: var(--white-soft);
}

.detail-section h2 {
  font-size: 1.28rem;
}

.info-list,
.meal-list {
  display: grid;
  gap: 10px;
}

.info-list a,
.info-list div,
.meal-list article {
  display: grid;
  gap: 5px;
  border: 1px solid var(--palm-line);
  border-radius: 6px;
  padding: 11px;
}

.info-list span,
.meal-list p {
  color: var(--white-soft);
  font-size: 0.82rem;
}

.info-list strong,
.meal-list h3,
.meal-list strong {
  color: var(--white);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  object-fit: cover;
}

.meal-list article {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.meal-list h3,
.meal-list p {
  margin: 0;
}

.meal-list strong {
  color: var(--banana);
  white-space: nowrap;
}

.detail-socials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-socials a {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  color: var(--banana);
  font-size: 0.82rem;
  font-weight: 700;
}

@keyframes stepReveal {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-status h2 {
  font-size: 1.45rem;
}

.status-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--palm-line);
  border-radius: 6px;
  background: transparent;
  padding: 12px;
}

.status-card span {
  color: var(--banana);
  font-size: 0.78rem;
}

.status-card strong {
  color: var(--white);
}

.status-card small {
  color: var(--white-soft);
  line-height: 1.4;
}

.page-shell main {
  min-height: calc(100vh - 180px);
}

.page-head {
  padding: 34px 12px 10px;
}

.page-head p {
  margin: 0 0 8px;
  color: var(--banana);
}

.page-head h1 {
  font-size: clamp(2.8rem, 14vw, 4.4rem);
}

.about-head {
  padding-bottom: 18px;
}

.about-stack {
  display: grid;
  gap: 14px;
  padding: 0 12px 28px;
}

.about-card,
.social-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: var(--black);
  padding: 14px;
}

.about-main {
  border-color: var(--palm-line);
}

.about-card span,
.social-card span {
  color: var(--banana);
  font-size: 0.78rem;
}

.about-card h2 {
  font-size: 1.35rem;
}

.about-card p,
.social-card span {
  margin: 0;
  color: var(--white-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-title {
  margin: 4px 0 12px;
}

.social-grid {
  display: grid;
  gap: 10px;
}

.social-card strong {
  color: var(--white);
  font-size: 1rem;
}

.facebook-card {
  min-height: 118px;
  border-color: var(--palm);
  background:
    linear-gradient(135deg, rgba(61, 139, 69, 0.22), rgba(0, 0, 0, 0.88)),
    var(--black);
}

.facebook-card strong {
  color: var(--palm);
  font-size: clamp(1.4rem, 8vw, 2rem);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-actions a {
  display: grid;
  min-height: 46px;
  place-items: center;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.contact-actions a:first-child {
  background: var(--palm);
  color: var(--white);
}

.contact-actions a:last-child {
  border: 1px solid var(--gold);
  color: var(--banana);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.category-page-grid {
  grid-template-columns: 1fr;
}

.category-card {
  display: grid;
  justify-items: center;
  min-height: 138px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  padding: 17px 8px 10px;
  cursor: pointer;
}

.category-page-grid .category-card {
  grid-template-columns: 80px 1fr;
  align-items: center;
  justify-items: start;
  min-height: 112px;
  padding: 16px;
}

.category-card.active,
.category-card:hover {
  border-color: var(--palm);
}

.category-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.category-card strong {
  margin-top: 9px;
  font-size: 0.98rem;
  font-weight: 500;
}

.category-page-grid .category-card strong {
  margin-top: 0;
  font-size: 1.15rem;
}

.category-card span {
  margin-top: 8px;
  color: var(--banana);
  font-size: 0.72rem;
}

.category-page-grid .category-card span {
  grid-column: 2;
  margin-top: -38px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 420px);
  min-height: 78px;
  transform: translateX(-50%);
  border-top: 1px solid var(--gold-line);
  background: var(--black);
}

.bottom-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  color: var(--gold);
  font-size: 0.72rem;
}

.bottom-nav a.active {
  color: var(--palm);
  font-weight: 700;
}

.bottom-nav img {
  width: clamp(24px, 6.2vw, 30px);
  height: clamp(24px, 6.2vw, 30px);
  object-fit: contain;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .phone-shell {
    width: min(100%, 720px);
  }

  .topbar {
    grid-template-columns: clamp(48px, 7vw, 58px) minmax(0, 1fr) clamp(48px, 7vw, 58px);
    min-height: clamp(92px, 13vw, 112px);
    padding-inline: clamp(28px, 6vw, 46px);
  }

  .logo-link {
    width: clamp(178px, 30vw, 238px);
    max-width: 238px;
  }

  .logo-link img {
    max-height: clamp(74px, 11vw, 94px);
  }

  .icon-button,
  .search-icon {
    width: clamp(46px, 7vw, 58px);
    height: clamp(46px, 7vw, 58px);
  }

  .icon-button img,
  .search-icon img,
  .bottom-nav img {
    width: clamp(24px, 4vw, 32px);
    height: clamp(24px, 4vw, 32px);
  }

  .hero {
    min-height: clamp(500px, 72vw, 620px);
  }

  .hero-content,
  .content-section,
  .page-head,
  .about-stack,
  .profile-panel {
    padding-inline: clamp(24px, 6vw, 52px);
  }

  .hero-content {
    max-width: 660px;
    padding-top: clamp(34px, 6vw, 62px);
  }

  h1 {
    font-size: clamp(3.1rem, 7.2vw, 4.4rem);
  }

  .hero p {
    max-width: 460px;
    font-size: clamp(1rem, 2.2vw, 1.16rem);
  }

  .search-card {
    max-width: 560px;
    padding: 12px;
  }

  .restaurant-grid,
  .social-grid {
    gap: 16px;
  }

  .restaurant-card {
    min-height: clamp(166px, 27vw, 210px);
  }

  .restaurant-photo {
    min-height: clamp(166px, 27vw, 210px);
  }

  .paid-section {
    margin-inline: clamp(24px, 6vw, 52px);
  }

  .profile-form,
  .profile-status {
    max-width: 640px;
    padding: clamp(22px, 4vw, 32px);
  }

  fieldset {
    padding: clamp(16px, 3vw, 22px);
  }

  .category-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-page-grid .category-card {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 170px;
    text-align: center;
  }

  .category-page-grid .category-card span {
    grid-column: auto;
    margin-top: 8px;
  }

  .detail-section {
    margin-inline: clamp(24px, 6vw, 52px);
    padding: clamp(18px, 3.2vw, 26px);
  }

  .detail-hero > img {
    height: clamp(360px, 58vw, 470px);
  }

  .bottom-nav {
    width: min(100%, 720px);
  }
}

@media (min-width: 960px) {
  body {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.92), #000 420px),
      var(--black);
  }

  .phone-shell {
    width: 100%;
    padding-bottom: 106px;
  }

  .topbar {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    width: min(100%, 1280px);
    min-height: 92px;
    margin: 0 auto;
    padding-block: 0;
    padding-inline: clamp(34px, 5vw, 64px);
  }

  .logo-link {
    width: clamp(190px, 16vw, 250px);
    max-width: 250px;
  }

  .logo-link img {
    max-height: clamp(78px, 8vw, 100px);
  }

  .icon-button,
  .search-icon {
    width: 58px;
    height: 58px;
  }

  .hero {
    width: min(calc(100% - 72px), 1280px);
    min-height: clamp(500px, 42vw, 580px);
    margin: 0 auto;
    background-position: center;
  }

  .hero-content {
    max-width: 760px;
    padding: clamp(36px, 4vw, 52px) clamp(38px, 5vw, 64px) 34px;
  }

  h1 {
    font-size: clamp(3rem, 3.9vw, 3.85rem);
    line-height: 1.06;
  }

  .hero-separator {
    width: min(230px, 20vw);
    height: clamp(34px, 3vw, 42px);
    margin-block: 18px 20px;
  }

  .hero p {
    margin-bottom: 18px;
  }

  .search-card {
    max-width: 620px;
    gap: 14px;
  }

  .content-section {
    width: min(calc(100% - 72px), 1320px);
    margin: 0 auto;
    padding: 38px 0 64px;
  }

  .restaurant-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr));
    gap: 18px;
  }

  .restaurant-card {
    min-height: 210px;
  }

  .restaurant-photo {
    min-height: 210px;
  }

  .restaurant-content {
    gap: 12px;
    padding: 18px;
  }

  .card-description {
    display: block;
    color: var(--white-soft);
  }

  .card-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
  }

  .card-extra span {
    border: 1px solid var(--palm-line);
    border-radius: 6px;
    color: var(--banana);
    padding: 6px 8px;
    font-size: clamp(0.72rem, 0.75vw, 0.84rem);
  }

  .badge,
  .restaurant-content h3,
  .restaurant-content p {
    font-size: clamp(0.82rem, 0.9vw, 1rem);
  }

  .rating,
  .meta {
    font-size: clamp(0.78rem, 0.82vw, 0.92rem);
  }

  .page-head {
    width: min(calc(100% - 72px), 1320px);
    margin: 0 auto;
    padding: 44px 0 22px;
  }

  .page-head h1 {
    font-size: clamp(3.4rem, 4.4vw, 5rem);
  }

  .about-stack {
    width: min(calc(100% - 72px), 1320px);
    margin: 0 auto;
    padding: 0 0 74px;
  }

  .about-main,
  .about-grid,
  .social-section,
  .contact-actions {
    grid-column: 1 / -1;
  }

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

  .about-grid .about-card {
    min-height: 120px;
  }

  .social-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .facebook-card {
    min-height: 150px;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .category-grid,
  .category-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .category-card {
    min-height: 180px;
  }

  .category-card img {
    width: 68px;
    height: 68px;
  }

  .paid-section {
    max-width: 720px;
    margin: 0 clamp(48px, 7vw, 86px) 74px;
  }

  .profile-shell {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0.58) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, #000 100%),
      url("assets/fondpageformulaire.avif") center / cover no-repeat;
  }

  .profile-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1fr);
    align-content: center;
    gap: clamp(34px, 5vw, 72px);
    min-height: calc(100vh - 104px);
    padding: 54px clamp(48px, 7vw, 86px) 84px;
  }

  .profile-intro {
    margin-bottom: 0;
  }

  .profile-intro span {
    max-width: 430px;
  }

  .profile-form,
  .profile-status {
    width: 100%;
    max-width: 620px;
    justify-self: end;
  }

  .detail-page {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
    align-items: start;
    gap: 22px;
    padding: 0 clamp(48px, 7vw, 86px) 86px;
  }

  .detail-hero {
    grid-column: 1 / -1;
    border: 1px solid var(--gold-line);
    border-radius: 8px;
  }

  .detail-hero > img {
    height: clamp(420px, 42vw, 560px);
  }

  .detail-heading {
    grid-column: 1 / -1;
  }

  .detail-section {
    margin: 0;
  }

  .detail-section h2 {
    font-size: clamp(1.25rem, 1.35vw, 1.55rem);
  }

  .photo-strip img {
    aspect-ratio: 4 / 3;
  }

  .bottom-nav {
    width: min(100%, 1280px);
    min-height: 88px;
  }

  .bottom-nav a {
    font-size: clamp(0.78rem, 0.88vw, 0.95rem);
  }
}

@media (min-width: 960px) {
  .favorites-shell .content-section {
    width: min(calc(100% - 72px), 1380px);
  }

  .favorites-shell .restaurant-grid {
    grid-template-columns: 1fr;
  }

  .favorites-shell .restaurant-card {
    grid-template-columns: minmax(340px, 0.46fr) minmax(420px, 0.54fr);
    min-height: 270px;
  }

  .favorites-shell .restaurant-photo {
    min-height: 270px;
  }

  .favorites-shell .restaurant-content {
    align-content: center;
  }
}

@media (max-width: 520px) {
  .restaurant-card {
    grid-template-columns: 48% 52%;
  }

  .restaurant-content {
    padding: 10px;
  }

  .favorite-button {
    width: 34px;
    height: 34px;
  }

  .detail-socials,
  .contact-actions,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .restaurant-card {
    grid-template-columns: 48% 52%;
  }

  .bottom-nav {
    min-height: 72px;
  }

  .bottom-nav a {
    gap: 4px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .restaurant-card,
  .content-section,
  .page-head,
  .about-card,
  .social-section,
  .contact-actions,
  .profile-panel,
  .detail-section,
  .detail-hero {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 760px) {
  body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background: var(--black);
    padding: 24px;
  }

  body::before {
    content: "Comores Chahoula est disponible uniquement sur telephone pour le moment.";
    display: grid;
    width: min(100%, 420px);
    min-height: 220px;
    place-items: center;
    border: 1px solid var(--palm-line);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(61, 139, 69, 0.16), rgba(0, 0, 0, 0.94)),
      var(--black);
    color: var(--white);
    padding: 28px;
    text-align: center;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.45;
  }

  .phone-shell {
    display: none;
  }
}
