/* ============================================================
   Transit Food Djerba — Landing page styles
   Inspired by Rami Club design system, brand orange #E8471A
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&family=Amiri:ital,wght@0,400;0,700&display=swap');

:root {
  /* Palette — papier / bois / mer (clin d'oeil à Djerba) */
  --paper-50:  #FBF7F0;
  --paper-100: #F5EDE0;
  --paper-200: #ECE0CC;
  --paper-300: #DDCBAE;
  --paper-400: #C8B48F;

  --wood-300: #B58866;
  --wood-400: #8B5A3C;
  --wood-500: #6E4528;
  --wood-700: #3D2817;
  --wood-800: #2A1B0F;

  --ink-900: #1A1410;
  --ink-700: #3F3329;
  --ink-500: #6B5D4F;
  --ink-300: #9B8A77;

  /* Brand orange du logo */
  --brand:        #E8471A;
  --brand-soft:   #FF6835;
  --brand-deep:   #B83410;
  --brand-tint:   #FCE3D9;

  /* Mer de Djerba (utilisé avec parcimonie) */
  --sea-500:      #2E6B7A;
  --sea-300:      #7CA9B0;

  /* Or vieilli — étoiles, accents */
  --gold-400:     #B8893A;
  --gold-300:     #D4A65A;

  /* Sémantique */
  --bg:           var(--paper-50);
  --bg-elevated:  #FFFFFF;
  --bg-sunken:    var(--paper-200);
  --surface:      #FFFFFF;
  --fg:           var(--ink-900);
  --fg-muted:     var(--ink-500);
  --fg-subtle:    var(--ink-300);
  --border:       rgba(61, 40, 23, 0.10);
  --border-strong: rgba(61, 40, 23, 0.20);

  /* Type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic:  "Amiri", serif;

  /* Spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Shadows — warm brown-tinted */
  --shadow-soft:   0 1px 2px rgba(61, 40, 23, 0.08), 0 1px 1px rgba(61, 40, 23, 0.04);
  --shadow-medium: 0 4px 14px rgba(61, 40, 23, 0.10), 0 2px 4px rgba(61, 40, 23, 0.05);
  --shadow-lifted: 0 14px 40px rgba(61, 40, 23, 0.16), 0 4px 10px rgba(61, 40, 23, 0.08);
  --shadow-deep:   0 30px 80px rgba(61, 40, 23, 0.22), 0 10px 20px rgba(61, 40, 23, 0.10);
  --shadow-brand:  0 20px 50px rgba(232, 71, 26, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.4, 0.0, 0.2, 1);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--brand-tint); color: var(--brand-deep); }

/* Paper grain */
.paper-grain {
  position: relative;
}
.paper-grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.16  0 0 0 0 0.09  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
  z-index: 0;
}
.paper-grain > * { position: relative; z-index: 1; }

/* ============================================================
   CONTAINERS & SECTIONS
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

section { padding: var(--s-24) 0; }
section.compact { padding: var(--s-16) 0; }

@media (max-width: 768px) {
  section { padding: var(--s-16) 0; }
  section.compact { padding: var(--s-12) 0; }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  max-width: 18ch;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--brand);
}

.section-lede {
  font-size: 18px;
  color: var(--fg-muted);
  margin-top: var(--s-5);
  max-width: 56ch;
  line-height: 1.6;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease) 250ms, background var(--ease) 250ms;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(251, 247, 240, 0.92);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-8);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.75;
  transition: opacity 150ms var(--ease);
}
.nav-links a:hover { opacity: 1; }

.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  align-items: center; justify-content: center;
  color: var(--fg);
}
.nav-mobile-toggle:hover { background: var(--paper-200); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
}

.nav-mobile {
  display: none;
  padding: var(--s-3) var(--s-5) var(--s-6);
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-direction: column;
  gap: var(--s-3);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: var(--s-3) 0;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-of-type { border-bottom: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 20px rgba(232, 71, 26, 0.25);
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(232, 71, 26, 0.32); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(232, 71, 26, 0.20); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--paper-100); }

.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ============================================================
   STORE BADGES (App Store + Google Play)
   ============================================================ */
.store-badges {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink-900);
  color: white;
  padding: 10px 18px;
  border-radius: 12px;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
  box-shadow: var(--shadow-medium);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lifted); }
.store-badge svg { flex-shrink: 0; }
.store-badge .label-small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 3px;
}
.store-badge .label-big {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--s-16) 0 var(--s-24);
}
.hero::before {
  /* Soft sun glow behind the headline */
  content: "";
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 104, 53, 0.18) 0%, rgba(255, 104, 53, 0.06) 35%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%; left: -8%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(184, 137, 58, 0.12) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-12); }
  .hero { padding: var(--s-12) 0 var(--s-16); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-700);
  padding: 6px 6px 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-soft);
}
.hero-tag .pill {
  background: var(--brand);
  color: white;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  padding-bottom: 0.18em;
}
.hero h1 .accent {
  color: var(--brand);
  font-style: italic;
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
  white-space: nowrap;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.18em;
  height: 0.12em;
  background: var(--brand-tint);
  z-index: -1;
  border-radius: var(--r-full);
}
.hero p.lede {
  margin-top: var(--s-12);
  font-size: 19px;
  color: var(--fg-muted);
  max-width: 52ch;
  line-height: 1.6;
}
.hero-ctas {
  margin-top: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg-muted);
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-subtle); }
.hero-meta .stars { color: var(--gold-400); letter-spacing: 1px; }

/* ============================================================
   PHONE MOCKUP
   ============================================================ */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
}
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(ellipse, rgba(232, 71, 26, 0.12) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 320px;
  height: 662px;
  background: #0E0A07;
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.04) inset,
    0 50px 100px rgba(61, 40, 23, 0.30),
    0 20px 40px rgba(61, 40, 23, 0.20);
  transform: rotate(-3deg);
  z-index: 1;
  flex-shrink: 0;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--paper-50);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #0E0A07;
  border-radius: 0 0 18px 18px;
  z-index: 5;
}
.phone-notch::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2A1B0F;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

/* Inner app UI */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.app-statusbar .icons { display: flex; gap: 5px; align-items: center; }

.app-header {
  padding: 14px 20px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-greeting {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.app-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink-900);
  margin-top: 1px;
  font-weight: 400;
}
.app-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-soft) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.app-search {
  margin: 4px 20px 12px;
  background: var(--paper-100);
  border-radius: 14px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.app-categories {
  display: flex;
  gap: 8px;
  padding: 0 20px 16px;
  overflow: hidden;
}
.app-cat {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-700);
}
.app-cat.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

.app-hero-card {
  margin: 0 20px 16px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, #E8471A 0%, #FF8A4A 50%, #FFB37A 100%);
  color: white;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.app-hero-card::before {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 60%);
  border-radius: 50%;
}
.app-hero-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}
.app-hero-card .sub {
  font-size: 11px;
  opacity: 0.92;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}
.app-hero-card .free-order {
  align-self: flex-start;
  background: rgba(255,255,255,0.92);
  color: var(--brand-deep);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 20px 8px;
}
.app-section-title h5 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--ink-900);
}
.app-section-title .more {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}

.app-restaurants {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.app-resto {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.app-resto-img {
  width: 56px; height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.app-resto-info { flex: 1; min-width: 0; }
.app-resto-info h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-resto-info .meta {
  font-size: 11px;
  color: var(--fg-muted);
  display: flex;
  gap: 6px;
  align-items: center;
}
.app-resto-info .meta .stars {
  color: var(--gold-400);
  font-weight: 600;
}

.app-bottom-bar {
  margin-top: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px 22px;
  background: white;
  border-top: 1px solid var(--border);
}
.app-bottom-bar .item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--fg-subtle);
}
.app-bottom-bar .item.active { color: var(--brand); }

/* Floating ornaments around phone */
.phone-ornament {
  position: absolute;
  z-index: 2;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lifted);
  font-size: 13px;
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
}
.phone-ornament .icon-circle {
  width: 32px; height: 32px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.phone-ornament.tl {
  top: 12%;
  left: -6%;
  animation-delay: -2s;
}
.phone-ornament.br {
  bottom: 14%;
  right: -8%;
  animation-delay: -4s;
}
.phone-ornament strong { font-weight: 700; color: var(--ink-900); }
.phone-ornament .sub { font-size: 11px; color: var(--fg-muted); font-weight: 400; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 600px) {
  .phone { width: 280px; height: 580px; transform: rotate(-2deg); }
  .phone-ornament { font-size: 12px; padding: 8px 10px; }
  .phone-ornament.tl { left: -2%; }
  .phone-ornament.br { right: -2%; }
}

/* ============================================================
   DJERBA MAP — hand-drawn illustrated coverage map
   ============================================================ */
.djerba-map-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.djerba-map-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 960px) {
  .djerba-map-grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

.map-card {
  position: relative;
  aspect-ratio: 5 / 4.2;
  background:
    radial-gradient(ellipse at 30% 20%, #DCEDEF 0%, #B4D2D8 55%, #8FB8BF 100%);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lifted);
  border: 1px solid var(--border);
}
.map-card svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-card::after {
  /* Vintage paper grain over the whole map */
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.24  0 0 0 0 0.16  0 0 0 0 0.09  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.7;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.zone-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  margin: 6px 6px 0 0;
  box-shadow: var(--shadow-soft);
}
.zone-tag .dot-marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  position: relative;
}

.zone-list {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.map-fact-grid {
  margin-top: var(--s-8);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.map-fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--shadow-soft);
}
.map-fact .num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--brand);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.map-fact .num .small { font-size: 18px; color: var(--ink-700); font-style: italic; margin-left: 2px; }
.map-fact .label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* Pulse animation for the Houmt Souk pin */
@keyframes pin-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.5); opacity: 0; }
}
.pin-pulse {
  transform-origin: center;
  animation: pin-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.pin-pulse-2 { animation-delay: -1.2s; }

/* ============================================================
   INNER PAGES (Assistance, Conditions générales)
   ============================================================ */
.page-hero {
  padding: var(--s-16) 0 var(--s-12);
  position: relative;
  overflow: hidden;
  background: var(--paper-100);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 71, 26, 0.14) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  max-width: 820px;
}
.page-crumbs {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-crumbs a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.page-crumbs a:hover { text-decoration: underline; }
.page-crumbs .sep { color: var(--fg-subtle); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.page-hero h1 em { color: var(--brand); font-style: italic; }
.page-hero .page-lede {
  margin-top: var(--s-5);
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 60ch;
  line-height: 1.6;
}
.page-hero .page-meta {
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--fg-subtle);
}

.page-body {
  padding: var(--s-16) 0 var(--s-20);
  background: var(--bg);
}
.page-content {
  max-width: 820px;
  margin: 0 auto;
}
.page-content > * + * { margin-top: var(--s-6); }
.page-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-top: var(--s-12);
}
.page-content h2:first-child { margin-top: 0; }
.page-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
}
.page-content a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.page-content a:hover { color: var(--brand-deep); }

/* Help/assistance cards */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (max-width: 640px) {
  .help-grid { grid-template-columns: 1fr; }
}
.help-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.help-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }
.help-card .h-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.help-card h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
  line-height: 1.3;
}
.help-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Troubleshoot checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 15px;
  color: var(--ink-700);
}
.checklist li .c-mark {
  width: 24px; height: 24px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Contact mini-block (assistance) */
.contact-mini {
  margin-top: var(--s-8);
  background: linear-gradient(135deg, rgba(232, 71, 26, 0.06) 0%, rgba(184, 137, 58, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6) var(--s-8);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-6);
  align-items: center;
}
@media (max-width: 640px) {
  .contact-mini { grid-template-columns: 1fr; padding: var(--s-5); }
}
.contact-mini h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.contact-mini h3 em { color: var(--brand); font-style: italic; }
.contact-mini p {
  margin-top: 6px;
  font-size: 15px;
  color: var(--fg-muted);
}
.contact-mini-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.contact-channel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none !important;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.contact-channel:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); color: var(--ink-900) !important; }
.contact-channel.is-primary {
  background: var(--brand);
  color: white !important;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(232, 71, 26, 0.25);
}
.contact-channel.is-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: white !important; }
.contact-channel svg { flex-shrink: 0; }

/* Numbered terms list */
.terms-list {
  list-style: none;
  padding: 0;
  margin: var(--s-6) 0 0;
  counter-reset: term;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.terms-list li {
  counter-increment: term;
  padding: var(--s-5) var(--s-6) var(--s-5) calc(var(--s-6) + 56px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.terms-list li:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}
.terms-list li::before {
  content: counter(term, decimal-leading-zero);
  position: absolute;
  left: var(--s-5);
  top: var(--s-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.01em;
}
.terms-list li strong {
  color: var(--ink-900);
  font-weight: 700;
}
@media (max-width: 600px) {
  .terms-list li {
    padding: calc(var(--s-5) + 28px) var(--s-5) var(--s-5);
  }
  .terms-list li::before {
    top: var(--s-4);
    left: var(--s-5);
  }
}

/* Page anchor — quick back-to-home */
.back-home {
  margin-top: var(--s-12);
  text-align: center;
}
.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.back-home a:hover { color: var(--brand-deep); text-decoration: underline; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: 10%; right: -10%;
  width: 50%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 71, 26, 0.10) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s-12);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

.contact-info {
  margin-top: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  text-decoration: none;
  color: inherit;
}
a.contact-info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}
.ci-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2px;
}
.ci-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-900);
  word-break: break-word;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-8);
  box-shadow: var(--shadow-lifted);
  position: relative;
}
@media (max-width: 600px) {
  .contact-form { padding: var(--s-6); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: var(--s-3); }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.form-row .form-field { margin-bottom: 0; }
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.form-label .optional {
  font-weight: 400;
  color: var(--fg-subtle);
  font-size: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--fg-subtle);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 3px rgba(232, 71, 26, 0.15);
}
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236B5D4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #c44a4a;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-3);
  flex-wrap: wrap;
}
.form-note {
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 36ch;
  line-height: 1.4;
  margin: 0;
}

.form-success {
  margin-top: var(--s-4);
  background: #EEF7EE;
  border: 1px solid #BFE0BF;
  color: #1B5E20;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.form-success[hidden] { display: none; }
.success-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4CAF50;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.form-success strong { display: block; font-size: 14px; }
.form-success span { font-size: 13px; color: #2E7D32; }

.contact-form.is-submitting button[type="submit"] {
  opacity: 0.7;
  pointer-events: none;
}
.contact-form.has-error .form-error {
  background: #FDECEA;
  border: 1px solid #F5C2BC;
  color: #B71C1C;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: 13px;
  margin-top: var(--s-3);
}

/* ============================================================
   INTERACTIVE LEAFLET MAP
   ============================================================ */
.map-interactive {
  background: var(--paper-100);
  position: relative;
}
.map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-10);
  flex-wrap: wrap;
}
.map-legend {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.map-leg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 150ms var(--ease);
}
.map-leg-btn:hover { background: white; box-shadow: var(--shadow-soft); }
.map-leg-btn.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}
.map-leg-btn .leg-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3) inset;
}

.map-frame {
  border-radius: var(--r-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lifted);
  background: #DCEDEF;
  position: relative;
}
#djerba-map {
  width: 100%;
  height: 560px;
  background: #DCEDEF;
}
@media (max-width: 760px) {
  #djerba-map { height: 460px; }
}

/* Custom pin */
.tf-pin {
  width: 34px;
  height: 42px;
  position: relative;
}
.tf-pin-body {
  position: absolute;
  inset: 0;
  background: var(--brand);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-45deg);
  transform-origin: 50% 60%;
  box-shadow: 0 6px 14px rgba(232, 71, 26, 0.45), 0 0 0 3px white;
}
.tf-pin-body::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: white;
  border-radius: 50%;
}
.tf-pin-body::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--brand);
}
/* Specific color per category */
.tf-pin[data-cat="tunisien"] .tf-pin-body { background: #C4623F; box-shadow: 0 6px 14px rgba(196, 98, 63, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="tunisien"] .tf-pin-body::before { background: #C4623F; }
.tf-pin[data-cat="pizza"] .tf-pin-body { background: #B8893A; box-shadow: 0 6px 14px rgba(184, 137, 58, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="pizza"] .tf-pin-body::before { background: #B8893A; }
.tf-pin[data-cat="sandwichs"] .tf-pin-body { background: #8B5A3C; box-shadow: 0 6px 14px rgba(139, 90, 60, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="sandwichs"] .tf-pin-body::before { background: #8B5A3C; }
.tf-pin[data-cat="italien"] .tf-pin-body { background: #2E5D4F; box-shadow: 0 6px 14px rgba(46, 93, 79, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="italien"] .tf-pin-body::before { background: #2E5D4F; }
.tf-pin[data-cat="international"] .tf-pin-body { background: #2E6B7A; box-shadow: 0 6px 14px rgba(46, 107, 122, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="international"] .tf-pin-body::before { background: #2E6B7A; }
.tf-pin[data-cat="sucre"] .tf-pin-body { background: #D4A65A; box-shadow: 0 6px 14px rgba(212, 166, 90, 0.45), 0 0 0 3px white; }
.tf-pin[data-cat="sucre"] .tf-pin-body::before { background: #D4A65A; }

/* Leaflet popup tuning */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-lg) !important;
  padding: 0 !important;
  box-shadow: var(--shadow-lifted) !important;
  overflow: hidden;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 230px !important;
  font-family: var(--font-body);
}
.leaflet-popup-tip { box-shadow: var(--shadow-medium) !important; }

.tf-popup-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-200);
}
.tf-popup-body {
  padding: 12px 14px 14px;
}
.tf-popup-body h5 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink-900);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.tf-popup-tags {
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: 500;
  margin-bottom: 6px;
}
.tf-popup-addr {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  color: var(--fg-muted);
  line-height: 1.4;
}
.tf-popup-addr svg {
  flex-shrink: 0;
  color: var(--fg-subtle);
  margin-top: 1px;
}

/* Cluster marker — for "many in same spot" */
.tf-pin-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  color: white;
  font-size: 13px;
  z-index: 2;
  transform: rotate(0);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats {
  background: var(--ink-900);
  color: var(--paper-50);
  padding: var(--s-12) 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(232, 71, 26, 0.22) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(184, 137, 58, 0.16) 0%, transparent 50%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  align-items: center;
}
.stats-item {
  text-align: center;
}
.stats-item .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  font-weight: 400;
  color: white;
  letter-spacing: -0.02em;
}
.stats-item .num .unit {
  color: var(--brand-soft);
  font-style: italic;
}
.stats-item .label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
}

/* ============================================================
   STEPS — Comment ça marche
   ============================================================ */
.steps {
  background: var(--bg);
}
.steps-grid {
  margin-top: var(--s-12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 880px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-8) var(--s-6);
  box-shadow: var(--shadow-soft);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-medium); }

.step-num {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--paper-300);
  font-style: italic;
}
.step-icon {
  width: 56px; height: 56px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
}
.step p {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   RESTAURANTS
   ============================================================ */
.restaurants {
  background: var(--paper-100);
  position: relative;
}
.restaurants-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-12);
  flex-wrap: wrap;
}
.cuisine-chips {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.cuisine-chip {
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-700);
  transition: all 150ms var(--ease);
  cursor: pointer;
}
.cuisine-chip:hover { background: white; box-shadow: var(--shadow-soft); }
.cuisine-chip.active {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

.resto-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
@media (max-width: 1080px) { .resto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .resto-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .resto-grid { grid-template-columns: 1fr; } }

.resto-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.resto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lifted);
  border-color: var(--border-strong);
}
.resto-card:hover .resto-image-bg {
  transform: scale(1.06);
}

.resto-image {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background-color: var(--paper-200);
  display: block;
}
.resto-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 500ms var(--ease);
}
.resto-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* Open/Closed status pill */
.resto-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  background: rgba(26, 20, 16, 0.78);
  color: white;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.resto-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-300);
  flex-shrink: 0;
  position: relative;
}
.resto-status.is-open .status-dot {
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(74, 222, 128, 0); }
}
.resto-status.is-closed .status-dot {
  background: #ef4444;
}

.resto-time {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-900);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.resto-time svg {
  color: var(--brand);
}

.resto-body {
  padding: var(--s-5) var(--s-5) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.resto-body h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin-bottom: 2px;
  text-wrap: balance;
}
.resto-tags {
  font-size: 13px;
  color: var(--brand-deep);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.resto-meta {
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 12px;
  color: var(--fg-muted);
}
.resto-meta-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.resto-meta-line svg {
  color: var(--fg-subtle);
  flex-shrink: 0;
}
.resto-meta-line span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  color: var(--ink-700);
}
.resto-hours {
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
  flex-shrink: 0;
}
.resto-hours.is-open { color: #15803d; }
.resto-hours.is-closed { color: #b91c1c; }

/* ============================================================
   COMMANDE LIBRE — featured section
   ============================================================ */
.free-order-section {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.free-order-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: var(--s-16);
  align-items: center;
}
@media (max-width: 960px) {
  .free-order-grid { grid-template-columns: 1fr; gap: var(--s-10); }
}

/* Animated note pad showing what users can ask for */
.note-pad {
  background: white;
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  box-shadow: var(--shadow-lifted);
  position: relative;
  transform: rotate(-1.2deg);
  border: 1px solid var(--border);
}
.note-pad::before {
  /* Tape on top */
  content: "";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(2deg);
  width: 100px; height: 28px;
  background: linear-gradient(180deg, rgba(232, 71, 26, 0.30) 0%, rgba(232, 71, 26, 0.18) 100%);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(61, 40, 23, 0.1);
}
.note-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--border-strong);
  margin-bottom: var(--s-4);
}
.note-head h5 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
}
.note-head .ts {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.note-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.45;
  border-bottom: 1px dashed var(--border);
}
.note-line:last-child { border-bottom: none; }
.note-line .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.note-line .check svg { width: 12px; height: 12px; }
.note-cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--brand);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.free-order-bullets {
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-4);
}
.bullet {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
}
.bullet .b-icon {
  width: 40px; height: 40px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}
.bullet h6 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 2px;
}
.bullet p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ============================================================
   CUISINE / CATEGORIES STRIP
   ============================================================ */
.cuisines {
  background: var(--paper-100);
}
.cuisine-grid {
  margin-top: var(--s-10);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-3);
}
@media (max-width: 880px) { .cuisine-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .cuisine-grid { grid-template-columns: repeat(2, 1fr); } }

.cuisine-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  cursor: pointer;
}
.cuisine-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-medium); }
.cuisine-tile .emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}
.cuisine-tile h5 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}
.cuisine-tile .count {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ============================================================
   DOWNLOAD CTA SECTION
   ============================================================ */
.download {
  background: linear-gradient(135deg, var(--brand) 0%, #FF8A4A 50%, var(--brand-soft) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  margin: var(--s-12) var(--s-5);
  max-width: calc(var(--container) - var(--s-10));
  margin-left: auto;
  margin-right: auto;
  padding: var(--s-16);
}
.download::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 60%);
  border-radius: 50%;
}
.download::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -5%;
  width: 40%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 60%);
  border-radius: 50%;
}
.download-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 880px) {
  .download { padding: var(--s-12) var(--s-6); margin: var(--s-8) var(--s-4); }
  .download-inner { grid-template-columns: 1fr; gap: var(--s-8); text-align: center; }
}

.download h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.download h2 em { font-style: italic; opacity: 0.9; }
.download p {
  margin-top: var(--s-5);
  font-size: 18px;
  opacity: 0.92;
  max-width: 42ch;
  line-height: 1.55;
}
@media (max-width: 880px) { .download p { margin-left: auto; margin-right: auto; } }

.download .store-badges {
  margin-top: var(--s-8);
}
@media (max-width: 880px) { .download .store-badges { justify-content: center; } }

.download-side {
  display: flex;
  justify-content: center;
  align-items: center;
}
.qr-card {
  background: white;
  border-radius: var(--r-xl);
  padding: var(--s-5);
  text-align: center;
  color: var(--ink-900);
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  max-width: 260px;
  transform: rotate(3deg);
  transition: transform 300ms var(--ease);
}
.qr-card:hover {
  transform: rotate(0) scale(1.02);
}
.qr-img-real {
  width: 220px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}
.qr-card .qr-label {
  margin-top: var(--s-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.qr-card .qr-sub {
  font-size: 11px;
  color: var(--fg-muted);
  margin-top: 2px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  background: var(--bg);
}
.faq-grid {
  margin-top: var(--s-10);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 200ms var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-soft); border-color: var(--border-strong); }
.faq-item summary {
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 26px;
  font-family: var(--font-display);
  color: var(--brand);
  transition: transform 200ms var(--ease);
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer {
  padding: 0 var(--s-6) var(--s-5);
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 64ch;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-900);
  color: var(--paper-200);
  padding: var(--s-16) 0 var(--s-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--s-10);
  margin-bottom: var(--s-12);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h6 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: var(--s-4);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 150ms var(--ease);
}
.footer a:hover { color: var(--brand-soft); }
.footer-brand p {
  margin-top: var(--s-4);
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 36ch;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-social { display: flex; gap: var(--s-3); }
.footer-social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 150ms var(--ease);
}
.footer-social a:hover { background: var(--brand); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.visible { opacity: 1; transform: none; transition: none; }
  .phone-ornament { animation: none; }
  .note-cursor { animation: none; }
  * { scroll-behavior: auto; }
}
