/* ─────────────────────────────────────────
   COINMALIN — categories.css
   Ultra-moderne · TheFork-inspired · Pro
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --g-deep:    #0D3D2B;
  --g-primary: #1A6B46;
  --g-mid:     #2E8B57;
  --g-light:   #4DB87A;
  --g-pale:    #EAF5EE;
  --g-50:      #F2FAF5;
  --white:     #FFFFFF;
  --cream:     #F7F4EE;
  --gold:      #C8A855;
  --gold-pale: #FDF8EC;
  --ink:       #0A1F15;
  --body:      #2C4A38;
  --muted:     #6B8F7A;
  --subtle:    #A0BFB0;
  --line:      rgba(26,107,70,0.1);
  --line-md:   rgba(26,107,70,0.18);
  --sh-sm:     0 2px 16px rgba(13,61,43,0.07);
  --sh-md:     0 8px 32px rgba(13,61,43,0.11);
  --sh-lg:     0 24px 60px rgba(13,61,43,0.16);
  --sh-xl:     0 40px 80px rgba(13,61,43,0.22);
  --r-xs:      6px;
  --r-sm:      10px;
  --r-md:      16px;
  --r-lg:      20px;
  --r-xl:      28px;
  --r-2xl:     36px;
  --r-full:    999px;
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-body:    'Plus Jakarta Sans', sans-serif;
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:         0.26s;
  --topbar-h:  64px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-md); border-radius: 4px; }

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.10s; }
.reveal--delay-2 { transition-delay: 0.20s; }
.reveal--delay-3 { transition-delay: 0.30s; }
.reveal--delay-4 { transition-delay: 0.40s; }

/* ── CONTAINER ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease), padding var(--t) var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), var(--sh-sm);
  padding: 12px 0;
}
.nav__inner {
  max-width: 1240px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo {
  font-family: var(--f-display); font-size: 1.55rem; font-weight: 400;
  color: var(--white); letter-spacing: -0.01em;
  transition: color var(--t) var(--ease);
}
.nav.scrolled .nav__logo { color: var(--g-deep); }
.nav__logo span { color: var(--g-light); }
.nav.scrolled .nav__logo span { color: var(--g-primary); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.8); border-radius: var(--r-full);
  transition: all var(--t) var(--ease);
}
.nav.scrolled .nav__link { color: var(--body); }
.nav__link:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.nav.scrolled .nav__link:hover { background: var(--g-pale); color: var(--g-deep); }
.nav__link--active { font-weight: 600; background: rgba(255,255,255,0.15); color: var(--white); }
.nav.scrolled .nav__link--active { background: var(--g-pale); color: var(--g-primary); }
.nav__link--ghost { border: 1px solid rgba(255,255,255,0.3); }
.nav.scrolled .nav__link--ghost { border-color: var(--line-md); }
.nav__link--cta {
  background: var(--g-primary); color: var(--white) !important;
  border-radius: var(--r-full); padding: 9px 20px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(26,107,70,0.28);
}
.nav__link--cta:hover { background: var(--g-deep) !important; transform: translateY(-1px); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all var(--t) var(--ease); }
.nav.scrolled .nav__burger span { background: var(--g-deep); }
@media (max-width: 900px) {
  .nav__inner { padding: 0 20px; }
  /* Le burger reste cliquable AU-DESSUS du panneau (pour fermer) */
  .nav__burger { display: flex; position: relative; z-index: 1001; -webkit-tap-highlight-color: transparent; }
  /* Panneau plein écran — forme longue top/right/bottom/left :
     `inset:0` n'est pas supporté par certains Safari iOS, le menu
     s'affichait alors SANS fond, flottant sur le contenu */
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 16px; transform: translateX(100%);
    transition: transform var(--t) var(--ease), visibility var(--t) var(--ease);
    z-index: 999;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(80px + env(safe-area-inset-top, 0)) 24px calc(24px + env(safe-area-inset-bottom, 0));
  }
  .nav__links.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .nav__link { font-size: 18px; color: var(--ink) !important; }
  .nav__link--ghost { border-color: var(--line-md); }
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  height: 88vh; min-height: 640px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transform: scale(1.02);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,16,10,0.75) 0%,
    rgba(4,16,10,0.22) 42%,
    rgba(4,16,10,0.0) 68%
  );
}
.hero__grain { display: none; }
.hero__content { position: relative; z-index: 2; padding: 0 0 60px; width: 100%; }
.hero__content .container { display: flex; flex-direction: column; gap: 0; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g-light); margin-bottom: 16px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero__eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1.5px; background: currentColor; border-radius: 2px; }
.hero__title {
  font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 400; line-height: 1.1; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 20px;
  animation: fadeUp 0.9s ease 0.35s both;
}
.hero__title em { font-style: italic; color: var(--g-light); }
.hero__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.5s both;
}
.hero__subtitle { font-size: 15px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 500px; }
.hero__stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg); padding: 16px 24px; backdrop-filter: blur(8px); flex-shrink: 0;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; padding: 0 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.12); }
.hero__stat:first-child { padding-left: 0; }
.hero__stat:last-child { padding-right: 0; border-right: none; }
.hero__stat strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 400; color: var(--white); }
.hero__stat span { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.42); white-space: nowrap; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  .hero { height: 100svh; min-height: unset; max-height: none; }
  .hero__content { padding: 0 0 56px; }
  .hero__stats { display: none; }
  .hero__title { font-size: clamp(2.2rem, 7vw, 3rem); }
}
@media (max-width: 480px) {
  .hero { height: 100svh; min-height: unset; }
  .hero__content { padding: 0 0 48px; }
}

/* ═══════════════════════════════════════
   SEARCH BAR sticky
═══════════════════════════════════════ */
.search-bar {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 14px 0; position: sticky; top: var(--topbar-h); z-index: 50;
  box-shadow: var(--sh-sm);
}
.search-bar__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-bar__field {
  flex: 1; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  background: var(--g-50); border: 1.5px solid var(--line);
  border-radius: var(--r-full); padding: 0 16px; height: 44px;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-bar__field:focus-within { border-color: var(--g-mid); background: var(--white); box-shadow: 0 0 0 3px rgba(46,139,87,0.1); }
.search-bar__field > svg { color: var(--subtle); flex-shrink: 0; }
.search-bar__input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; font-weight: 500; color: var(--ink); }
.search-bar__input::placeholder { color: var(--subtle); }
.search-bar__clear {
  width: 22px; height: 22px; border-radius: 50%; background: var(--subtle);
  display: none; align-items: center; justify-content: center;
  color: white; flex-shrink: 0; transition: background var(--t);
}
.search-bar__clear.visible { display: flex; }
.search-bar__clear:hover { background: var(--muted); }
.search-bar__count { font-size: 13px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.search-bar__count strong { color: var(--g-primary); font-weight: 700; }
@media (max-width: 640px) { .search-bar__count { display: none; } }

/* ── Indicateur de localisation — discret, pro ── */
.search-loc {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--g-50);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--g-primary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease);
}
.search-loc.visible { display: flex; }
.search-loc svg { color: var(--g-mid); flex-shrink: 0; }
.search-loc--pending #searchLocText {
  opacity: 0.5;
  animation: loc-pulse 1.4s ease-in-out infinite;
}
@keyframes loc-pulse {
  0%,100% { opacity: 0.35; } 50% { opacity: 0.75; }
}
@media (max-width: 560px) { .search-loc { display: none !important; } }

/* Badge distance sur les cartes — injecté par JS uniquement en mode géo */
.tfc__dist {
  position: absolute; top: 8px; left: 8px;
  background: rgba(13,61,43,0.82); backdrop-filter: blur(6px);
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: var(--r-full);
  pointer-events: none; z-index: 3;
  display: flex; align-items: center; gap: 4px;
}
.tfc__dist::before {
  content: '';
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: #4DB87A; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   NAVIGATION CATÉGORIES pills
═══════════════════════════════════════ */
.cat-nav { padding: 28px 0 0; background: var(--white); }
.cat-nav__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cat-nav__list::-webkit-scrollbar { display: none; }
.cat-nav__pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-full);
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--body);
  background: var(--white); white-space: nowrap; flex-shrink: 0;
  transition: all var(--t) var(--ease); cursor: pointer;
}
.cat-nav__pill:hover { border-color: var(--g-mid); color: var(--g-deep); background: var(--g-pale); }
.cat-nav__pill.active {
  background: var(--g-primary); border-color: var(--g-primary);
  color: var(--white); box-shadow: 0 4px 16px rgba(26,107,70,0.28);
}
.pill-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ═══════════════════════════════════════
   SECTION TITRE
═══════════════════════════════════════ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--g-mid); margin-bottom: 16px;
}
.eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1.5px; background: currentColor; border-radius: 2px; flex-shrink: 0; }

/* Eyebrow — variante centrée, lignes symétriques */
.eyebrow--center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.eyebrow--center::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   SECTION : CHOISISSEZ VOS PLATS
   Style TheFork · Cercles · Ultra-pro
═══════════════════════════════════════ */
.dishes-section {
  padding: 52px 0 44px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.dishes-section__head { margin: 0 auto 40px; text-align: center; max-width: 600px; }
.dishes-section__title-row {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; margin-bottom: 10px;
}
.dishes-section__title {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1.2;
}
.dishes-section__title em { font-style: italic; color: var(--g-primary); }
.dishes-section__link {
  font-size: 13px; font-weight: 700; color: var(--g-primary);
  white-space: nowrap; flex-shrink: 0;
  transition: color var(--t), letter-spacing var(--t);
}
.dishes-section__link:hover { color: var(--g-deep); letter-spacing: 0.02em; }
.dishes-section__sub { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 460px; margin: 0 auto; }

/* Rangée scrollable */
.dishes-scroll {
  display: flex; gap: 20px;
  overflow-x: auto; padding: 6px 2px 20px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.dishes-scroll::-webkit-scrollbar { display: none; }

/* Carte plat circulaire */
.dish-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; flex-shrink: 0; cursor: pointer;
  border: none; background: none; padding: 0; width: 88px;
  font-family: var(--f-body); text-decoration: none;
  transition: transform var(--t) var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.dish-card:hover  { transform: translateY(-5px); }
.dish-card:active { transform: scale(0.90); }

/* Anneau dégradé vert → or */
.dish-card__ring {
  width: 82px; height: 82px; border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--gold) 100%);
  box-shadow: 0 6px 22px rgba(13,61,43,0.15); flex-shrink: 0;
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.dish-card:hover .dish-card__ring {
  box-shadow: 0 12px 36px rgba(13,61,43,0.24), 0 0 0 4px rgba(200,168,85,0.20);
  transform: scale(1.05);
}
.dish-card__img-wrap {
  width: 100%; height: 100%; border-radius: 50%;
  overflow: hidden; background: var(--g-50);
}
.dish-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s var(--ease);
}
.dish-card:hover .dish-card__img { transform: scale(1.12); }

/* Label */
.dish-card__label {
  font-size: 12px; font-weight: 700; color: var(--ink);
  text-align: center; line-height: 1.3; max-width: 88px;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color var(--t);
}
.dish-card:hover .dish-card__label { color: var(--g-primary); }

/* Skeleton loaders */
.dish-skel {
  flex-shrink: 0; width: 82px; height: 82px; border-radius: 50%;
  background: linear-gradient(90deg, #f0f7f3 0%, #dff0e7 40%, #f0f7f3 80%);
  background-size: 300px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* Section masquée si vide */
.dishes-section.hidden { display: none; }

@media (max-width: 768px) {
  .dishes-section { padding: 36px 0 28px; }
  .dish-card__ring { width: 70px; height: 70px; }
  .dish-card { width: 74px; gap: 8px; }
  .dish-card__label { font-size: 11px; max-width: 74px; }
  .dish-skel { width: 70px; height: 70px; }
  .dishes-scroll { gap: 14px; }
}

/* ═══════════════════════════════════════
   CATS SECTION — CAROUSELS
═══════════════════════════════════════ */
.cats-section { padding: 48px 0 72px; background: var(--white); }
.cats-section__head { margin: 0 auto 44px; text-align: center; max-width: 520px; }
.cats-section__title { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.cats-section__title em { font-style: italic; color: var(--g-primary); }

/* Row — espace réduit entre les carrousels */
.cat-row { margin-bottom: 14px; overflow: visible; }
.cat-row:last-child { margin-bottom: 0; }
.cat-row[data-empty="true"] { display: none !important; }
.cat-row__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cat-row__label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cat-row__link { font-size: 13px; font-weight: 700; color: var(--g-primary); transition: color var(--t); flex-shrink: 0; }
.cat-row__link:hover { color: var(--g-deep); }

/* Badges */
.cat-row__badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.cat-row__badge--gold   { background: rgba(200,168,85,0.13); color: #8A6A10; }
.cat-row__badge--green  { background: var(--g-pale); color: var(--g-deep); }
.cat-row__badge--orange { background: rgba(224,123,57,0.11); color: #903D0A; }
.cat-row__badge--purple { background: rgba(124,58,237,0.09); color: #5B21B6; }
.cat-row__badge--blue   { background: rgba(59,130,246,0.09); color: #1A3FA0; }
.cat-row__badge--teal   { background: rgba(20,184,166,0.10); color: #0F766E; }

/* Track — aligné sur la largeur du contenu (.container), comme TheFork */
.cat-track-wrap { max-width: 1240px; margin: 0 auto; position: relative; }
.cat-track {
  display: flex; gap: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;   /* inertie/momentum natif iOS */
  overscroll-behavior-x: contain;      /* évite que le scroll horizontal entraîne la page */
  padding: 6px 40px 18px;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; align-items: flex-start;
  scroll-snap-type: x proximity;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-track.is-dragging { cursor: grabbing; scroll-behavior: auto; }
@media (max-width: 768px) { .cat-track { padding: 6px 20px 18px; gap: 13px; } }

/* Snap align sur tous les types de cartes */
.tfc, .hcard, .mcard, .icard, .rcard { scroll-snap-align: start; }

/* ── Edge fades retirés (pas de dégradé blanc sur les bords) ── */

/* ── Flèches de navigation carousel ── */
.carousel-arrow {
  position: absolute;
  top: calc(50% - 20px);
  z-index: 20;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line-md);
  box-shadow: var(--sh-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              box-shadow var(--t) var(--ease), opacity 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.carousel-arrow:hover {
  background: var(--g-deep);
  color: var(--white);
  border-color: var(--g-deep);
  box-shadow: var(--sh-lg);
  transform: scale(1.08);
}
.carousel-arrow--prev { left: 0; }
.carousel-arrow--next { right: 0; }
.carousel-arrow--hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}
@media (max-width: 768px) { .carousel-arrow { display: none; } }

/* ═══════════════════════════════════════
   SKELETON LOADERS
═══════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.skel-bg {
  background: linear-gradient(90deg, #f0f7f3 0%, #dff0e7 40%, #f0f7f3 80%);
  background-size: 800px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}
/* Standard skeleton card */
.skel-card {
  width: 210px; flex-shrink: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--white);
}
.skel-card--hero { width: 280px; }
.skel-img { height: 148px; }
.skel-img--hero { height: 200px; }
.skel-body { padding: 12px 14px; }
.skel-line { height: 10px; border-radius: 6px; margin-bottom: 8px; }
.skel-line--xs  { width: 40%; }
.skel-line--sm  { width: 55%; }
.skel-line--md  { width: 75%; height: 13px; }
.skel-line--lg  { width: 90%; }

/* ═══════════════════════════════════════
   STATUS BADGE
═══════════════════════════════════════ */
.card-status {
  position: absolute; top: 10px; left: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}

/* Séparer les badges qui se superposent :
   distance (tfc__dist) reste top-left,
   statut (card-status) passe top-right */
.tfc .card-status  { left: auto; right: 8px;  top: 8px; }
.hcard .card-status { left: auto; right: 12px; top: 12px; }
.card-status__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.card-status--open   { background: rgba(255,255,255,0.93); color: #1A6B46; }
.card-status--open   .card-status__dot { background: #4DB87A; box-shadow: 0 0 0 3px rgba(77,184,122,0.25); animation: pulse 2s infinite; }
.card-status--closed { background: rgba(20,10,10,0.55); color: rgba(255,255,255,0.9); }
.card-status--closed .card-status__dot { background: #E53E3E; }
.card-status--full   { background: rgba(255,255,255,0.93); color: #92400E; }
.card-status--full   .card-status__dot { background: #F59E0B; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(77,184,122,0.25); }
  50%       { box-shadow: 0 0 0 5px rgba(77,184,122,0); }
}

/* ═══════════════════════════════════════
   STAR RATING
═══════════════════════════════════════ */
.stars { display: inline-flex; gap: 1px; align-items: center; }
.stars svg { width: 11px; height: 11px; }
.star--on  { fill: #C8A855; stroke: none; }
.star--off { fill: #E5E7EB; stroke: none; }

/* Note pill — remplace les 5 étoiles sur les tfc */
.tfc__note-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--gold-pale); border: 1px solid rgba(200,168,85,0.22);
  border-radius: var(--r-full); padding: 2px 8px;
  line-height: 1;
}

/* ═══════════════════════════════════════
   FAV BUTTON
═══════════════════════════════════════ */
.fav-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  position: relative; z-index: 2;
}
.fav-btn svg { width: 15px; height: 15px; fill: transparent; stroke: var(--muted); stroke-width: 2; transition: all 0.22s var(--spring); }
.fav-btn:hover { border-color: #1A6B46; background: #EAF5EE; }
.fav-btn:hover svg { stroke: #1A6B46; }
.fav-btn.fav--active { border-color: #1A6B46; background: #EAF5EE; }
.fav-btn.fav--active svg { fill: #1A6B46; stroke: #1A6B46; }
.fav-btn.fav--pop { animation: favPop 0.38s var(--spring); }
@keyframes favPop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 75% { transform: scale(0.88); } 100% { transform: scale(1); } }

/* Ghost variant (for overlay on dark) */
.fav-btn--ghost {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
}
.fav-btn--ghost svg { stroke: rgba(255,255,255,0.9); }
.fav-btn--ghost:hover { background: rgba(255,255,255,0.25); border-color: rgba(255,255,255,0.5); }
.fav-btn--ghost.fav--active { background: rgba(26,107,70,0.28); border-color: rgba(26,107,70,0.6); }
.fav-btn--ghost.fav--active svg { fill: #fff; stroke: #fff; }

/* ═══════════════════════════════════════
   CTA BUTTONS (réserver / voir)
═══════════════════════════════════════ */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  flex: 1; height: 36px; border-radius: var(--r-full);
  background: var(--g-primary); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.22s var(--ease); white-space: nowrap;
}
.cta-btn:hover { background: var(--g-deep); transform: translateY(-1px); box-shadow: 0 5px 16px rgba(26,107,70,0.3); }
.cta-btn--secondary {
  background: var(--g-50); color: var(--g-primary);
  border: 1.5px solid var(--line);
}
.cta-btn--secondary:hover { background: var(--g-pale); border-color: var(--g-primary); box-shadow: none; }

/* ═══════════════════════════════════════
   CARTE THEFORK (standard)
═══════════════════════════════════════ */
.tfc {
  width: 210px; flex-shrink: 0;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.tfc:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: var(--line-md);
}


.tfc__link { display: block; text-decoration: none; flex: 1; }

.tfc__img-wrap { width: 100%; height: 158px; position: relative; overflow: hidden; }
.tfc__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); display: block; }
.tfc:hover .tfc__img { transform: scale(1.07); }
.tfc__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,13,0.18) 0%, transparent 55%);
  pointer-events: none;
}

/* Sponsored badge — masqué */
.tfc__sponsored { display: none !important; }

.tfc__body { padding: 14px 16px 10px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tfc__top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.tfc__cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--g-primary);
  background: var(--g-50); border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 3px 8px 3px 6px;
}
.tfc__loc { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--subtle); flex-shrink: 0; }
.tfc__name {
  font-family: var(--f-display); font-size: 1rem; color: var(--ink);
  line-height: 1.25; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.tfc__rating { display: flex; align-items: center; gap: 5px; }
.tfc__note { font-size: 12px; font-weight: 700; color: var(--ink); }
.tfc__nb   { font-size: 11px; color: var(--muted); }

/* Prix — mise en valeur de la valeur */
.tfc__price {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--subtle);
  margin-top: auto; padding-top: 4px;
}
.tfc__price-val {
  font-size: 12px; font-weight: 700; color: var(--g-deep);
  background: var(--g-50); border: 1px solid var(--line);
  border-radius: var(--r-full); padding: 2px 9px;
}

/* Stats — vues + likes */
.tfc__stats {
  display: flex; align-items: center; gap: 10px;
  padding-top: 6px; margin-top: 4px;
  border-top: 1px solid var(--line);
}
.tfc__views, .tfc__likes {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 500; color: var(--subtle);
}
.tfc__likes { font-weight: 600; }
/* Rouge UNIQUEMENT si l'utilisateur a liké (classe posée par likes.js) */
.tfc__likes.ep-engage__like--liked { color: #E53E3E; }
/* Actions — séparées par une fine ligne */
.tfc__actions {
  padding: 10px 12px 12px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════
   HERO CARD (pour sponsors — grande carte)
═══════════════════════════════════════ */
.hcard {
  width: 280px; flex-shrink: 0;
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative; background: var(--white);
}
.hcard:hover { transform: translateY(-8px); box-shadow: var(--sh-xl); }

.hcard__link { display: block; text-decoration: none; }

.hcard__img-wrap { width: 100%; height: 200px; position: relative; overflow: hidden; }
.hcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); display: block; }
.hcard:hover .hcard__img { transform: scale(1.07); }
.hcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(5,18,12,0.92) 0%,
    rgba(10,31,21,0.4) 45%,
    transparent 100%
  );
}

/* Top row: fav + sponsored badges */
.hcard__top {
  position: absolute; top: 12px; left: 12px; right: 12px;
  z-index: 4; display: flex; justify-content: space-between; align-items: flex-start;
}
/* Sponsor badge hcard — masqué */
.hcard__sponsor-badge { display: none !important; }

/* Body overlaid on photo */
.hcard__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 18px 18px; z-index: 3;
}
.hcard__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 600; margin-bottom: 4px; }
.hcard__name { font-family: var(--f-display); font-size: 1.1rem; color: var(--white); line-height: 1.2; margin-bottom: 10px; }
.hcard__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hcard__price { font-size: 12px; color: rgba(255,255,255,0.72); }
.hcard__price strong { color: var(--white); font-weight: 700; }
.hcard__rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--white); }
.hcard__rating svg { fill: #C8A855; flex-shrink: 0; }

/* Stats overlay */
.hcard__stats {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.hcard__views-cnt, .hcard__likes-cnt {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.65);
}
.hcard__likes-cnt.ep-engage__like--liked { color: #ff6b6b; }
/* Footer strip */
.hcard__footer {
  background: var(--white); padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--line);
}
.hcard__footer .cta-btn { font-size: 12px; }

/* ═══════════════════════════════════════
   SECTION : PAR BUDGET
═══════════════════════════════════════ */
.budget-section { background: var(--cream); padding: 80px 0; }
.budget-section__head { margin: 0 auto 52px; text-align: center; max-width: 580px; }
.budget-section__title { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.budget-section__title em { font-style: italic; color: var(--g-primary); }
.budget-section__sub { font-size: 15px; color: var(--muted); max-width: 480px; line-height: 1.75; margin: 0 auto; }
.budget-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.budget-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all var(--t) var(--ease);
  cursor: pointer; position: relative; overflow: hidden;
  text-decoration: none;
}
.budget-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--g-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t) var(--ease);
}
.budget-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.budget-card:hover::before { transform: scaleX(1); }
.budget-card__range { font-family: var(--f-display); font-size: 1.4rem; font-weight: 400; color: var(--g-primary); letter-spacing: -0.01em; line-height: 1.1; }
.budget-card__unit { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 2px; }
.budget-card__desc { font-size: 13px; line-height: 1.65; color: var(--muted); }
.budget-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.budget-card__tag { background: var(--g-50); color: var(--body); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-full); border: 1px solid var(--line); }
.budget-card__link { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--g-primary); margin-top: auto; transition: gap var(--t); }
.budget-card:hover .budget-card__link { gap: 10px; }
@media (max-width: 900px) { .budget-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .budget-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════
   SECTION : QUARTIERS
═══════════════════════════════════════ */
.quartiers-section { padding: 80px 0; background: var(--white); }
.quartiers-section__head { margin: 0 auto 48px; text-align: center; max-width: 500px; }
.quartiers-section__title { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 400; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
.quartiers-section__title em { font-style: italic; color: var(--g-primary); }
.quartiers-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.quartiers-scroll::-webkit-scrollbar { display: none; }
.quartier-card {
  flex-shrink: 0; width: 200px; border: 1.5px solid var(--line);
  border-radius: var(--r-lg); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all var(--t) var(--ease); cursor: pointer;
  background: var(--white); text-decoration: none;
}
.quartier-card:hover { border-color: var(--g-primary); box-shadow: var(--sh-md); transform: translateY(-3px); background: var(--g-pale); }
.quartier-card__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--g-50); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--g-primary); transition: background var(--t), color var(--t), border-color var(--t);
}
.quartier-card:hover .quartier-card__icon { background: var(--g-primary); color: var(--white); border-color: var(--g-primary); }
.quartier-card__name { font-family: var(--f-display); font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.quartier-card__count { font-size: 12px; color: var(--muted); font-weight: 500; }
.quartier-card__count strong { color: var(--g-primary); font-weight: 700; }

/* ═══════════════════════════════════════
   CTA COMMERÇANT
═══════════════════════════════════════ */
.cta-section { background: var(--g-deep); padding: 80px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -80px; right: -80px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(77,184,122,0.12) 0%, transparent 70%); pointer-events: none; }
.cta-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-section__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g-light); margin-bottom: 20px; }
.cta-section__tag::before { content: ''; width: 24px; height: 1.5px; background: currentColor; border-radius: 2px; }
.cta-section__title { font-family: var(--f-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: var(--white); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 18px; }
.cta-section__title em { font-style: italic; color: var(--g-light); }
.cta-section__desc { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.6); margin-bottom: 36px; max-width: 420px; }
.cta-section__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--r-full); font-size: 14px; font-weight: 600; transition: all var(--t) var(--ease); white-space: nowrap; cursor: pointer; }
.btn--white { background: var(--white); color: var(--g-deep); }
.btn--white:hover { background: var(--cream); transform: translateY(-2px); }
.btn--outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn--outline-white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.btn--primary { background: var(--g-primary); color: var(--white); box-shadow: 0 4px 16px rgba(26,107,70,0.28); }
.btn--primary:hover { background: var(--g-deep); transform: translateY(-2px); }
.cta-visual { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-xl); padding: 28px; }
.cta-visual__screen { display: flex; flex-direction: column; gap: 14px; }
.cta-visual__label { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 4px; }
.cta-visual__label-icon { width: 36px; height: 36px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; }
.cta-visual__label-text { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.cta-visual__label-sub { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.wa-bubble { max-width: 82%; padding: 12px 16px; border-radius: 14px; font-size: 13px; line-height: 1.65; }
.wa-bubble--in { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.82); align-self: flex-start; border-bottom-left-radius: 4px; }
.wa-bubble--out { background: #25D366; color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
.wa-time { display: block; font-size: 10px; margin-top: 5px; opacity: 0.5; text-align: right; }
@media (max-width: 900px) { .cta-section__inner { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer { background: var(--ink); padding: 72px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 80px; margin-bottom: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer__logo { font-family: var(--f-display); font-size: 1.55rem; color: var(--white); letter-spacing: -0.01em; display: block; margin-bottom: 14px; }
.footer__logo span { color: var(--g-light); }
.footer__tagline { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.38); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col strong { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.42); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color var(--t); }
.footer__col a:hover { color: var(--white); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,0.24); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { color: rgba(255,255,255,0.24); transition: color var(--t); }
.footer__legal a:hover { color: rgba(255,255,255,0.55); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; gap: 40px; } .footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } .footer__bottom { flex-direction: column; gap: 12px; text-align: center; } }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state { display: none; flex-direction: column; align-items: center; padding: 80px 24px; gap: 16px; text-align: center; }
.empty-state.show { display: flex; }
.empty-state__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--g-50); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--subtle); }
.empty-state h3 { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); }
.empty-state p { font-size: 14px; color: var(--muted); max-width: 320px; line-height: 1.6; }

/* ═══════════════════════════════════════
   TOAST NOTIFICATION
═══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9999;
  background: var(--ink); color: var(--white);
  padding: 12px 24px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  opacity: 0; pointer-events: none;
  max-width: calc(100vw - 40px); text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: opacity 0.32s var(--ease), transform 0.38s var(--spring);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--green  { background: var(--g-primary); }
.toast--neutral { background: var(--muted); }
.toast--red    { background: #C53030; }

/* ═══════════════════════════════════════
   MODAL RÉSERVATION (bottom sheet)
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: transparent;
  pointer-events: none;
  transition: background 0.3s var(--ease);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.open {
  background: rgba(5,15,10,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: all;
}
.modal-sheet {
  width: 100%; max-width: 520px;
  background: var(--white);
  border-radius: 26px 26px 0 0;
  padding: 20px 24px calc(28px + env(safe-area-inset-bottom, 16px));
  position: relative;
  transform: translateY(100%);
  transition: transform 0.42s var(--spring);
  max-height: 92vh;
  max-height: 92dvh;               /* barre d'adresse iOS */
  overflow-y: auto;
  overscroll-behavior: contain;    /* le scroll interne ne secoue pas la page */
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }
.modal-handle { width: 40px; height: 4px; background: var(--line-md); border-radius: 2px; margin: 0 auto 22px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--g-50); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer;
  transition: all var(--t) var(--ease);
}
.modal-close:hover { background: var(--g-pale); color: var(--ink); }

.modal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.modal-icon {
  width: 46px; height: 46px; border-radius: var(--r-md);
  background: var(--g-pale); color: var(--g-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-title { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.modal-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.modal-input {
  height: 46px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); padding: 0 14px;
  font-size: 16px; color: var(--ink); outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  background: var(--g-50); width: 100%;
}
.modal-input:focus { border-color: var(--g-mid); background: var(--white); box-shadow: 0 0 0 3px rgba(46,139,87,0.12); }
.modal-textarea { height: auto; padding: 12px 14px; resize: none; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-hint { font-size: 12px; color: var(--muted); line-height: 1.45; margin: -6px 0 0; }
.modal-err  { font-size: 12.5px; color: #C53030; font-weight: 600; line-height: 1.45; margin: -4px 0 0; display: none; }
.modal-confirm {
  height: 52px; border-radius: var(--r-full);
  background: var(--g-primary); color: var(--white);
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
  transition: all 0.22s var(--ease);
}
.modal-confirm:hover { background: var(--g-deep); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,107,70,0.32); }
.modal-confirm:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ═══════════════════════════════════════
   DOMAIN SECTIONS — chapitres par univers
═══════════════════════════════════════ */
.domain-section {
  position: relative;
  padding: 0 0 28px;
  margin-bottom: 36px;
}

.domain-section__header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 40px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 768px) {
  .domain-section__header { padding: 28px 20px 20px; }
}

.domain-section__title-block {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.domain-section__icon {
  width: 54px; height: 54px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--sh-sm);
}
.domain-section__icon--green  { background: var(--g-pale);                  color: var(--g-deep); }
.domain-section__icon--blue   { background: rgba(59,130,246,0.10);          color: #1A3FA0; }
.domain-section__icon--orange { background: rgba(224,123,57,0.11);          color: #903D0A; }
.domain-section__icon--teal   { background: rgba(20,184,166,0.10);          color: #0F766E; }

.domain-section__title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.domain-section__sub {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.domain-section__count {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: var(--g-50);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--g-primary);
  letter-spacing: 0.01em;
}

.domain-section__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--g-primary);
  white-space: nowrap;
  transition: color var(--t), gap var(--t);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.domain-section__link:hover { color: var(--g-deep); gap: 8px; }

/* ═══════════════════════════════════════
   LABEL ÉDITORIAL — au-dessus de chaque carousel
   Style : texte italique · ligne fading à droite
═══════════════════════════════════════ */
.cat-phrase {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

/* Emoji — masqué, rôle purement décoratif gardé en HTML */
.cat-phrase__pill { display: none; }

.cat-phrase__text {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--body);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Ligne fading qui s'étend jusqu'au bord */
.cat-phrase::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-md) 0%, transparent 100%);
  min-width: 24px;
}

/* Version featured — gradient texte (gardé pour cohérence si réactivé) */
.cat-phrase--featured .cat-phrase__text {
  color: var(--g-primary);
}

/* ═══════════════════════════════════════
   ROUND CAROUSEL ROW
═══════════════════════════════════════ */
.cat-row--round {
  background: linear-gradient(135deg, var(--g-50) 0%, rgba(200,168,85,0.05) 100%);
  border-radius: var(--r-xl);
  margin: 4px 0 4px;
  padding: 24px 0 6px;
  overflow: visible;
}
@media (max-width: 768px) { .cat-row--round { border-radius: var(--r-lg); padding: 20px 0 4px; } }

.cat-track--round {
  align-items: center;
  gap: 24px;
  padding: 12px 40px 24px;
}
@media (max-width: 768px) { .cat-track--round { padding: 10px 20px 18px; gap: 16px; } }

/* ═══════════════════════════════════════
   ROUND CARD — carte circulaire (3e ligne)
═══════════════════════════════════════ */
.rcard {
  flex-shrink: 0;
  width: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
  position: relative;
}
.rcard:hover { transform: translateY(-6px); }

.rcard__ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--gold) 100%);
  box-shadow: 0 8px 28px rgba(13,61,43,0.18);
  position: relative;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}
.rcard:hover .rcard__ring {
  box-shadow: 0 14px 40px rgba(13,61,43,0.26), 0 0 0 4px rgba(200,168,85,0.22);
}

.rcard__img-wrap {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--g-50);
}
.rcard__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.rcard:hover .rcard__img { transform: scale(1.1); }

/* Dot statut ouvert */
.rcard__online-dot {
  position: absolute;
  bottom: 5px; right: 5px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #4DB87A;
  border: 2.5px solid var(--white);
  box-shadow: 0 0 0 2px rgba(77,184,122,0.25);
  animation: pulse 2s infinite;
}

.rcard__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  width: 100%;
}

.rcard__name {
  font-family: var(--f-display);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 120px;
}

.rcard__rating {
  display: flex;
  align-items: center;
  gap: 3px;
}
.rcard__note {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.rcard__price {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.rcard__price strong { color: var(--g-primary); font-weight: 700; }

/* ═══════════════════════════════════════
   SKELETON ROUND CARD
═══════════════════════════════════════ */
.rcard-skel {
  flex-shrink: 0;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.rcard-skel__circle {
  width: 120px; height: 120px;
  border-radius: 50%;
}
.rcard-skel__lines {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%;
}
.rcard-skel__line         { height: 9px; border-radius: 6px; }
.rcard-skel__line--name   { width: 80%; }
.rcard-skel__line--price  { width: 50%; }

/* ═══════════════════════════════════════
   CM-CARD — carte premium full-image
   Utilisée pour les lignes imageOnly
═══════════════════════════════════════ */
.cm-card {
  width: 260px; height: 330px; flex-shrink: 0;
  border-radius: 22px; overflow: hidden;
  position: relative; cursor: pointer;
  background: var(--ink);
  transition: transform 0.38s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.38s ease;
  scroll-snap-align: start;
}
.cm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.28), 0 8px 16px rgba(0,0,0,0.16);
}

.cm-card__img-wrap {
  position: relative; width: 100%; height: 100%;
}
/* Dégradé haut (zone badge) */
.cm-card__img-wrap::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.48) 0%, transparent 100%);
  z-index: 2; pointer-events: none;
}

.cm-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.cm-card:hover .cm-card__img { transform: scale(1.07); }

/* Dégradé bas (zone texte) */
.cm-card__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.84) 0%,
    rgba(0,0,0,0.44) 44%,
    rgba(0,0,0,0.06) 72%,
    transparent 100%
  );
  pointer-events: none;
}

/* Badge note — glassmorphisme haut gauche */
.cm-card__badge {
  position: absolute; top: 13px; left: 13px; z-index: 4;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

/* Fav button top right dans cm-card */
.cm-card .fav-btn {
  position: absolute; top: 11px; right: 11px; z-index: 4;
}

/* Infos bas — nom / meta / desc */
.cm-card__info {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  padding: 18px 16px 56px; /* padding-bottom réservé pour le bouton */
  transition: transform 0.36s ease;
}
.cm-card:hover .cm-card__info { transform: translateY(-4px); }

.cm-card__name {
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 400;
  color: #fff; margin: 0 0 4px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cm-card__meta {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.82);
  margin: 0 0 2px; letter-spacing: 0.01em;
}
.cm-card__desc {
  font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.55);
  margin: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.cm-card:hover .cm-card__desc { opacity: 0; transform: translateY(4px); }

/* Bouton réserver — slide depuis le bas */
.cm-card__resa {
  position: absolute; bottom: 14px; left: 14px; right: 14px; z-index: 4;
  transform: translateY(calc(100% + 18px)); opacity: 0;
  transition: transform 0.36s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.28s ease;
  background: #fff; color: var(--g-deep);
  border: none; border-radius: 12px;
  padding: 11px 0; text-align: center;
  font-family: var(--f-body); font-size: 13px; font-weight: 700;
  cursor: pointer; letter-spacing: 0.01em;
  transition: transform 0.36s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.28s ease, background 0.2s ease, color 0.2s ease;
}
.cm-card:hover .cm-card__resa { transform: translateY(0); opacity: 1; }
.cm-card__resa:hover { background: var(--g-deep); color: #fff; }

/* Lien couvrant toute la carte (z-index 1, derrière les boutons) */
.cm-card__cover-link {
  position: absolute; inset: 0; z-index: 1;
}

/* Skeleton cm-card */
.cm-card-skel {
  width: 260px; height: 330px; flex-shrink: 0;
  border-radius: 22px;
  background: linear-gradient(90deg, #e8eeeb 0%, #d4e2d9 40%, #e8eeeb 80%);
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@media (max-width: 768px) {
  .cm-card { width: 220px; height: 290px; border-radius: 18px; }
  .cm-card-skel { width: 220px; height: 290px; }
}

/* ═══════════════════════════════════════
   IMAGE-ONLY CARD (2e et dernier carousel)
═══════════════════════════════════════ */
.icard {
  width: 260px; height: 260px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}
.icard:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--sh-lg); }

.icard__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s var(--ease);
}
.icard:hover .icard__img { transform: scale(1.1); }

/* Overlay semi-opaque visible uniquement au hover */
.icard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,18,12,0.75) 0%, rgba(10,31,21,0.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  display: flex; align-items: flex-end;
  padding: 14px;
  pointer-events: none;
}
.icard:hover .icard__overlay { opacity: 1; }

.icard__name {
  font-family: var(--f-display); font-size: 0.84rem; font-weight: 400;
  color: var(--white); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════════════
   MENU CARD — carte plat du jour (2e carousel)
═══════════════════════════════════════ */
.mcard {
  width: 200px; height: 240px;
  flex-shrink: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
  background: var(--g-50);
}
.mcard:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--sh-lg); }

.mcard__img-wrap {
  position: absolute; inset: 0;
}
.mcard__img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.55s var(--ease);
}
.mcard:hover .mcard__img { transform: scale(1.08); }

/* Overlay dégradé permanent en bas */
.mcard__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,14,9,0.88) 0%,
    rgba(4,14,9,0.30) 52%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 14px 16px;
  gap: 6px;
}

/* Badge mcard — masqué */
.mcard__badge { display: none !important; }

.mcard__info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.mcard__name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.mcard__price {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  padding: 3px 8px;
}

.mcard__etab {
  font-size: 11px;
  color: rgba(255,255,255,0.48);
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Skeleton pour menu cards */
.skel-card--menu {
  width: 200px; height: 240px;
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
}
.skel-card--menu .skel-img { height: 100%; }

@media (max-width: 480px) {
  .mcard { width: 165px; height: 200px; }
  .skel-card--menu { width: 165px; height: 200px; }
}

/* Skeleton pour image-only cards */
.skel-card--square {
  width: 260px; height: 260px;
  border-radius: var(--r-lg); overflow: hidden;
  flex-shrink: 0;
}
.skel-card--square .skel-img {
  width: 100%; height: 100%;
}

@media (max-width: 480px) {
  .icard { width: 200px; height: 200px; }
  .skel-card--square { width: 200px; height: 200px; }
}

/* ═══════════════════════════════════════
   TRACK EMPTY / ERROR
═══════════════════════════════════════ */
.track-msg {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 260px; height: 140px; border-radius: var(--r-lg);
  border: 1.5px dashed var(--line-md); color: var(--subtle);
  font-size: 13px; font-weight: 500;
}

/* ═══════════════════════════════════════
   LEAD ROW — premier carousel de chaque domaine
   Cartes plus grandes pour hiérarchie visuelle
═══════════════════════════════════════ */
#row-r1 .tfc, #row-h1 .tfc, #row-s1 .tfc, #row-a1 .tfc {
  width: 240px;
}
#row-r1 .tfc__img-wrap, #row-h1 .tfc__img-wrap,
#row-s1 .tfc__img-wrap, #row-a1 .tfc__img-wrap {
  height: 178px;
}

/* ═══════════════════════════════════════
   RESPONSIVE FINAL
═══════════════════════════════════════ */
@media (max-width: 480px) {
  .tfc    { width: 185px; }
  .tfc__img-wrap { height: 130px; }
  .tfc__body { padding: 12px 13px 8px; }
  .tfc__cat { font-size: 9px; padding: 2px 7px 2px 5px; }
  .hcard  { width: 250px; }
  .hcard__img-wrap { height: 178px; }
  .modal-row { grid-template-columns: 1fr; }
  #row-r1 .tfc, #row-h1 .tfc, #row-s1 .tfc, #row-a1 .tfc { width: 200px; }
  #row-r1 .tfc__img-wrap, #row-h1 .tfc__img-wrap,
  #row-s1 .tfc__img-wrap, #row-a1 .tfc__img-wrap { height: 145px; }
}
