/* « On entre dans Beer Sheva » : chaque rubrique est un univers posé sur une vraie photo de la ville,
   découpé en étapes numérotées. Fond pierre chaude (plus de page blanche), cartes claires par-dessus. */

:root {
  --stone: #ECE3D6;
  --stone-deep: #DCCDB8;
  --bg: var(--stone);
}
.langbar { background: rgb(236 227 214 / 88%); }
.tabbar { background: rgb(246 240 231 / 94%); grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ---------- fond d'univers : la photo de la rubrique, fixe et adoucie, derrière tout le contenu ---------- */
.view--universe { position: relative; isolation: isolate; }
.view--universe::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(236 227 214 / 62%) 0%, rgb(236 227 214 / 86%) 38%, var(--stone) 78%),
    var(--universe) center / cover no-repeat;
}

/* ---------- portes d'entrée des univers (accueil) ---------- */
.tile--photo { isolation: isolate; min-height: 168px; padding-top: 60px; justify-content: flex-end; background: var(--navy); color: var(--white); box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.tile--photo .tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 20 35 / 5%) 20%, rgb(15 20 35 / 78%) 100%); }
.tile--photo .tile__icon { position: absolute; top: 10px; inset-inline-start: 10px; width: 40px; height: 40px; margin: 0; background: rgb(255 255 255 / 92%); color: var(--cat); }
.tile--photo .tile__title { font-size: 1.02rem; color: var(--white); text-shadow: 0 1px 8px rgb(0 0 0 / 40%); }
.tile--photo .tile__sub { color: rgb(255 255 255 / 86%); }
.tile--photo:active { transform: scale(0.97); }
@media (hover: hover) {
  .tile--photo:hover { box-shadow: var(--shadow-lift); }
  .tile--photo:hover .tile__img { transform: scale(1.06); }
}
.tile__stamp {
  position: absolute; top: 12px; inset-inline-end: 10px; padding: 2px 8px;
  border: 2px solid currentColor; border-radius: 6px; color: var(--sand);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-8deg);
}
.tile:not(.tile--photo) .tile__stamp { color: var(--cat); }

/* ---------- progression de la visite (accueil) ---------- */
.quest { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgb(255 255 255 / 70%); }
.quest__text { font-size: 14px; font-weight: 700; color: var(--navy); }
.quest__bar { height: 10px; border-radius: 999px; background: var(--stone-deep); overflow: hidden; }
.quest__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sea); transition: width 0.6s ease; }

/* ---------- étapes d'une rubrique ---------- */
.stage-nav .chip { background: rgb(255 255 255 / 82%); }
.stage-nav .chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--cat, var(--accent))); flex: none; }
.stage { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; scroll-margin-top: 72px; }
.stage + .stage { margin-top: 10px; padding-top: 22px; border-top: 2px dashed var(--stone-deep); }
.stage__head { display: flex; align-items: center; gap: 12px; }
.stage__num {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ring, var(--navy)); color: var(--white); font-family: var(--font-display); font-size: 1.05rem; font-weight: 900;
}
.stage__titles { display: flex; flex-direction: column; min-width: 0; }
.stage__kicker { color: var(--teal-deep); font-size: 12.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.stage__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 900; line-height: 1.12; text-transform: uppercase; color: var(--ring, var(--title)); text-wrap: balance; }
.stage__sub { color: var(--text-muted); font-size: 14px; }
/* code couleur des restaurants : liseré halavi (bleu) / bassari (rouge) sur chaque fiche de la section */
.stage .card { border-inline-start: 6px solid var(--ring, var(--border)); }

/* ---------- le conseil de Hanna : sa bulle ---------- */
.tip {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 12px;
  border-radius: 22px 22px 22px 6px; background: var(--caramel-soft); border: 2px solid var(--caramel);
  color: var(--ink); text-decoration: none;
}
[dir="rtl"] .tip { border-radius: 22px 22px 6px 22px; }
.tip__who { display: flex; align-items: center; gap: 12px; }
.tip__face { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--sea); }
.tip__label { color: var(--caramel-deep); font-family: var(--font-display); font-size: 1.02rem; font-weight: 900; letter-spacing: 0.02em; text-transform: uppercase; }
.tip__handle { color: var(--teal-deep); font-size: 13px; font-weight: 600; }
.tip__text { margin: 0; padding-inline-start: 14px; border-inline-start: 4px solid var(--sea); font-size: 16px; font-style: italic; line-height: 1.5; text-wrap: pretty; }
.tip__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: var(--white); color: var(--caramel-deep); font-size: 14px; font-weight: 700; text-decoration: none;
}

/* ---------- Shabbat : la paracha en titre ---------- */
.shabbat { align-items: flex-start; }
.shabbat__body { display: flex; flex-direction: column; gap: 2px; }
.shabbat__parasha { font-family: var(--font-display); font-size: 1.08rem; font-weight: 900; color: var(--ochre); }

/* ---------- profils du pôle olim ---------- */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px 16px; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow);
}
.profile--mine { border: 2px solid var(--sea); }
.profile__face {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--stone); color: var(--stone-deep); border: 3px dashed var(--stone-deep);
}
.profile__face .icon { color: var(--ink-soft); opacity: 0.45; }
.profile__body { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.profile__lang { padding: 2px 10px; border-radius: 999px; background: var(--sea-soft); color: var(--teal-deep); font-size: 13px; font-weight: 800; }
.profile__role { font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.profile__pending { color: var(--text-muted); font-size: 13px; }
.profile__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: var(--shadow); }
.profile__name { font-size: 16px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.profile__name + .profile__role { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.profile__text { font-size: 13px; color: var(--ink-soft); line-height: 1.4; overflow-wrap: anywhere; }
.profile__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.profile__btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--sea-soft); color: var(--teal-deep); font-size: 13px; font-weight: 800; text-decoration: none;
}
.profile__edit { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.profile__add { margin-top: 12px; }
.stage--mine .stage__num { background: var(--sea); }
.tile--contacts, .page-head--contacts { --cat: var(--navy); --cat-soft: var(--blue-light); }
.tab--contacts { color: var(--navy); }

@media (min-width: 520px) {
  .profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  .tile--photo, .tile--photo .tile__img { transition: none; }
}
