@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --green:       #1A9268;
  --green-dk:    #0D6B4A;
  --green-xdk:   #084D35;
  --green-lt:    #E2F5ED;
  --green-mid:   #8DD5B5;
  --gold:        #C8922A;
  --gold-lt:     #FDF3E0;
  --sand:        #F6F2EB;
  --sand-dk:     #EDE8DF;
  --white:       #FFFFFF;
  --text:        #161714;
  --text-muted:  #697068;
  --text-light:  #9AA099;
  --border:      rgba(0,0,0,0.07);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 2px 16px rgba(0,0,0,0.06);
  --nav-h:       64px;
  --sidebar-w:   240px;
  --max-w:       960px;
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sand);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ═══════════════════════════════════════
   LAYOUT SHELL
═══════════════════════════════════════ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar (desktop) ── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--green-xdk);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 200;
  transition: transform .3s ease;
}

.sidebar-logo {
  padding: 1.75rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-greeting {
  font-family: 'Amiri', serif;
  font-size: 11px;
  color: var(--green-mid);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 3px;
}

.logo-name {
  font-family: 'Amiri', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.logo-name em {
  font-style: normal;
  color: var(--green-mid);
}

.logo-badge {
  display: inline-block;
  margin-top: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green-mid);
  letter-spacing: 0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.3);
  padding: 0.6rem 0.75rem 0.4rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.nav-link:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-link.active { background: var(--green); color: #fff; }

.nav-link-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }

/* Rilastudio promo in sidebar */
.sidebar-promo {
  margin: 0.75rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(200,146,42,0.25) 0%, rgba(200,146,42,0.08) 100%);
  border: 1px solid rgba(200,146,42,0.3);
  padding: 1rem;
}

.sidebar-promo-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gold);
  margin-bottom: 4px;
}

.sidebar-promo-title {
  font-family: 'Amiri', serif;
  font-size: 14px;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 10px;
}

.sidebar-promo-btn {
  display: block;
  background: var(--gold);
  color: var(--green-xdk);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-align: center;
  transition: opacity .15s;
}
.sidebar-promo-btn:hover { opacity: .88; }

/* ── Top bar (mobile) ── */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--green-xdk);
  align-items: center;
  justify-content: space-between;
  padding: 0 1.1rem;
  z-index: 200;
}

.topbar-logo {
  font-family: 'Amiri', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.topbar-logo em { font-style: normal; color: var(--green-mid); }

/* Barre de recherche dans le topbar mobile */
.topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 0 12px;
  height: 34px;
  margin: 0 10px;
  cursor: text;
}
.topbar-search svg { flex-shrink: 0; color: rgba(255,255,255,.5); }
.topbar-search input {
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: #fff;
  outline: none;
  width: 100%;
}
.topbar-search input::placeholder { color: rgba(255,255,255,.45); }

.burger {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  border: none;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Overlay menu mobile */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
}
.mobile-menu.open { display: block; }
.mobile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.mobile-drawer {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--green-xdk);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .3s ease;
}
.mobile-menu.open .mobile-drawer { transform: translateX(0); }

/* ── Main content ── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.page-hero {
  background: var(--green-dk);
  padding: 3rem var(--pad, 2.5rem) 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: attr(data-symbol);
  position: absolute;
  right: -20px; top: -20px;
  font-size: 160px;
  opacity: 0.05;
  font-family: 'Amiri', serif;
  line-height: 1;
  user-select: none;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}
.hero-breadcrumb a { color: var(--green-mid); }
.hero-breadcrumb span { opacity: .5; }

.hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.hero-stat-value {
  font-family: 'Amiri', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-mid);
}
.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   FILTER BAR
═══════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem var(--pad, 2.5rem);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-input-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
}

.search-input-wrap svg {
  width: 15px; height: 15px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
}

.search-input-wrap input {
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--text-light); }

.filter-chip {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.filter-chip:hover { background: var(--green-lt); color: var(--green-dk); border-color: var(--green-mid); }
.filter-chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ═══════════════════════════════════════
   CONTENT AREA
═══════════════════════════════════════ */
.content-area {
  flex: 1;
  padding: 2rem var(--pad, 2.5rem);
}

/* ═══════════════════════════════════════
   CARDS — Listing
═══════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;          /* pour le bouton favori absolu */
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  /* overflow:hidden retiré — géré par .card-thumb pour les images */
}
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.09); }

.card-thumb {
  height: 160px;
  background: var(--sand-dk);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  overflow: hidden;            /* clippe l'image seulement, pas le bouton */
  border-radius: var(--radius) var(--radius) 0 0; /* coins arrondis en haut */
}

.card-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, transparent 60%);
}

.card-badge {
  position: absolute;
  top: 10px; left: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.badge-halal  { background: var(--green); color: #fff; } /* sans alcool */
.badge-intl   { background: #3B6BCF; color: #fff; }
.badge-franco { background: var(--gold); color: #fff; }
.badge-bilingue { background: #6B52C8; color: #fff; }
.badge-verified { background: #fff; color: var(--green-dk); }

.card-save {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.card-body { padding: 1rem 1.1rem 1.1rem; }

.card-name {
  font-family: 'Amiri', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.card-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tag {
  background: var(--sand);
  border-radius: 50px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.card-rating .stars { color: var(--gold); font-size: 12px; }

.card-action {
  background: var(--green-lt);
  color: var(--green-dk);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  transition: background .15s;
}
.card-action:hover { background: var(--green-mid); }

/* ═══════════════════════════════════════
   RILASTUDIO PROMO BANNER (in-page)
═══════════════════════════════════════ */
.rilastudio-banner {
  background: var(--green-xdk);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0.5rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.rilastudio-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,146,42,0.2), transparent 70%);
}

.rila-left { flex: 1; }

.rila-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 6px;
}

.rila-title {
  font-family: 'Amiri', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 8px;
}

.rila-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-width: 380px;
}

.rila-right { flex-shrink: 0; }

.rila-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--green-xdk);
  font-size: 13px;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  transition: opacity .15s, transform .15s;
}
.rila-btn:hover { opacity: .9; transform: translateY(-1px); }
.rila-btn-arrow { font-size: 16px; }

/* ═══════════════════════════════════════
   HOME — Hero
═══════════════════════════════════════ */
.home-hero {
  background: var(--green-dk);
  padding: 3.5rem var(--pad, 2.5rem) 3rem;
  position: relative;
  overflow: hidden;
}

.home-hero::after {
  content: '☾';
  position: absolute;
  right: 1.5rem; top: 50%;
  transform: translateY(-50%);
  font-size: 180px;
  opacity: 0.04;
  font-family: 'Amiri', serif;
  line-height: 1;
}

.home-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.home-hero-text {}

.hero-eyebrow {
  font-family: 'Amiri', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--green-mid);
  margin-bottom: 0.5rem;
}

.home-hero-title {
  font-family: 'Amiri', serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.home-hero-title em { font-style: normal; color: var(--green-mid); }

.home-hero-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.home-search {
  display: flex;
  gap: 8px;
  max-width: 500px;
}
.home-search-input {
  flex: 1;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 0.7rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #fff;
  outline: none;
}
.home-search-input::placeholder { color: rgba(255,255,255,0.4); }
.home-search-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 1.4rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.home-search-btn:hover { background: var(--green-dk); }

.home-hero-prayer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
  min-width: 240px;
}

.prayer-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--green-mid);
  margin-bottom: 0.9rem;
}

.prayer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prayer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.prayer-row-name { color: rgba(255,255,255,0.55); }
.prayer-row-time { font-weight: 600; color: #fff; }
.prayer-row.now .prayer-row-name { color: var(--green-mid); }
.prayer-row.now .prayer-row-time  { color: var(--green-mid); }
.prayer-now-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
  margin-left: 6px;
  display: inline-block;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; } 50% { opacity:.3; }
}

/* ═══════════════════════════════════════
   HOME — Rubriques
═══════════════════════════════════════ */
.rubrics-section {
  padding: 2.5rem var(--pad, 2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Amiri', serif;
  font-size: 24px;
  font-weight: 700;
}

.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-lt);
  padding: 4px 14px;
  border-radius: 50px;
}

.rubrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.rubric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  text-decoration: none;
  display: block;
}
.rubric-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.07); }

.rubric-icon { font-size: 28px; display: block; margin-bottom: 8px; line-height: 1; }
.rubric-name { font-size: 13px; font-weight: 600; color: var(--text); display: block; margin-bottom: 3px; }
.rubric-sub  { font-size: 11px; color: var(--text-muted); display: block; line-height: 1.4; }

.rubric-card.c-green  { background: #E8F8F1; border-color: #A8DFC5; }
.rubric-card.c-amber  { background: #FEF5E4; border-color: #F5D08A; }
.rubric-card.c-blue   { background: #E8F2FD; border-color: #A8C9EF; }
.rubric-card.c-purple { background: #EEEEFE; border-color: #C4C3F4; }
.rubric-card.c-red    { background: #FEECEC; border-color: #F4AAAA; }
.rubric-card.c-lime   { background: #EDF6DE; border-color: #BBDA8F; }
.rubric-card.c-teal   { background: #E2F7F3; border-color: #8ED6C1; }
.rubric-card.c-orange { background: #FEF0E6; border-color: #F5C090; }
.rubric-card.c-rose   { background: #FDE8F2; border-color: #F0A9CC; }

/* ═══════════════════════════════════════
   HOME — Community posts
═══════════════════════════════════════ */
.community-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem var(--pad, 2.5rem);
}
.community-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow .15s;
}
.post-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.post-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  flex-shrink: 0;
}
.post-name  { font-size: 13.5px; font-weight: 600; }
.post-meta  { font-size: 11px; color: var(--text-muted); }
.post-tag {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  padding: 2px 9px; border-radius: 50px;
}
.post-text { font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 10px; }
.post-footer { display: flex; gap: 14px; font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ═══════════════════════════════════════
   HOME — Rilastudio full-width
═══════════════════════════════════════ */
.rila-section {
  padding: 2.5rem var(--pad, 2.5rem);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   BOTTOM NAV (mobile only)
═══════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
  z-index: 200;
}

.bottom-nav-inner { display: flex; }

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
}
.bn-icon  { font-size: 20px; line-height: 1; }
.bn-label { font-size: 10px; font-weight: 500; color: var(--text-muted); }
.bn-item.active .bn-label { color: var(--green); }
.bn-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rubric-card { animation: fadeUp .4s ease both; }
.rubric-card:nth-child(1){animation-delay:.04s} .rubric-card:nth-child(2){animation-delay:.08s}
.rubric-card:nth-child(3){animation-delay:.12s} .rubric-card:nth-child(4){animation-delay:.16s}
.rubric-card:nth-child(5){animation-delay:.20s} .rubric-card:nth-child(6){animation-delay:.24s}
.rubric-card:nth-child(7){animation-delay:.28s} .rubric-card:nth-child(8){animation-delay:.32s}
.rubric-card:nth-child(9){animation-delay:.36s}

.listing-card { animation: fadeUp .38s ease both; }
.listing-card:nth-child(1){animation-delay:.05s} .listing-card:nth-child(2){animation-delay:.10s}
.listing-card:nth-child(3){animation-delay:.15s} .listing-card:nth-child(4){animation-delay:.20s}
.listing-card:nth-child(5){animation-delay:.25s} .listing-card:nth-child(6){animation-delay:.30s}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad: 1.1rem; }
  .sidebar { display: none; }
  .topbar { display: flex; }
  .main-content { margin-left: 0; padding-top: var(--nav-h); }
  .bottom-nav { display: block; }

  /* Espace sous le contenu pour la bottom nav sur TOUTES les pages */
  .main-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .home-hero-prayer { display: none; }
  .home-hero-inner { flex-direction: column; gap: 1.5rem; }
  .rilastudio-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .rila-desc { margin: 0 auto; }
  .rubrics-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .content-area { padding-bottom: calc(70px + 1rem); }
  .page-hero { padding-top: 1.75rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root { --sidebar-w: 200px; --pad: 1.75rem; }
  .rubrics-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* ── Bouton favori sur carte (style TripAdvisor) ── */
.card-fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  color: #9AA099;
  transition: transform .15s, color .15s;
  z-index: 20;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: all;
}
.card-fav-btn:hover { transform: scale(1.15); color: #E53E3E; }
.card-fav-btn.active svg { fill: #E53E3E; stroke: #E53E3E; }
.card-fav-btn.pop { animation: fav-pop .3s ease; }
@keyframes fav-pop {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1);   }
}

/* ── FAQ style TheFork ── */
.faq-list {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background .12s;
  line-height: 1.4;
}
.faq-question:hover { background: var(--sand); color: var(--text); }
.faq-chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--sand);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform .22s ease, background .15s;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  background: var(--green-lt);
  border-color: var(--green-mid);
  color: var(--green-dk);
}
.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  animation: faqIn .18s ease;
}
.faq-answer.open { display: block; }
.faq-answer p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Overlay en bas à gauche de la photo (style Terrasse Farid) */
.card-horaire-overlay {
  position: absolute;
  bottom: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}
.card-horaire-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Bloc horaires détaillé (fiche lieu) */
.horaires-detail {
  font-size: 13.5px;
}
.horaire-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  color: var(--text-muted);
}
.horaire-row:last-child { border-bottom: none; }
.horaire-row--actif {
  color: var(--text);
  font-weight: 700;
}
.horaire-jour {
  flex-shrink: 0;
  min-width: 90px;
}
.horaire-val {
  text-align: right;
  flex: 1;
}

/* ── Prix moyen — petit badge inline design ── */
.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.prix-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--green-dk);
  background: var(--green-lt);
  padding: 1px 7px;
  border-radius: 4px;
  letter-spacing: .2px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Idéal pour ── */
.ideal-pour-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ideal-pour-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  transition: background .12s, border-color .12s;
}
.ideal-pour-item:hover {
  background: var(--green-lt);
  border-color: var(--green-mid);
  color: var(--green-dk);
}
.ideal-pour-ico { font-size: 16px; line-height: 1; }
.ideal-pour-lbl { white-space: nowrap; }
