: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);
  margin: 22px 0 24px;
}

.hero-separator img {
  width: 100%;
  height: auto;
  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: center;
  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: grid;
  width: clamp(36px, 9vw, 42px);
  height: clamp(36px, 9vw, 42px);
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  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 {
  width: clamp(24px, 6.2vw, 30px);
  height: clamp(24px, 6.2vw, 30px);
  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;
}

.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: 760px) {
  .phone-shell {
    box-shadow: 0 0 0 1px var(--palm-line);
  }
}

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

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