/* ============================================================
   WOUGGO V2 — flux.css
   ============================================================ */

body { background:#FFF7ED; overflow-x:hidden; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { position:fixed;top:0;left:0;width:60px;height:100vh;background:#fff;border-right:1px solid #E5E7EB;display:flex;flex-direction:column;align-items:center;padding:1rem 0;z-index:200; }
.sidebar__logo { margin-bottom:1.25rem; }
.sidebar__links { flex:1;display:flex;flex-direction:column;align-items:center;gap:4px; }
.sidebar__bottom { margin-top:auto; }
.sidebar__item { width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;text-decoration:none;cursor:pointer;color:#9CA3AF;transition:background .15s,color .15s; }
.sidebar__item:hover,.sidebar__item.active { background:#FFF7ED;color:#F97316; }
.sidebar__item svg { width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
@media(max-width:768px){.sidebar{display:none;}}

/* ── Page ────────────────────────────────────────────────── */
.page-wrap { margin-left:60px;min-height:100vh;background:#FFF7ED; }
@media(max-width:768px){.page-wrap{margin-left:0;padding-bottom:64px;}}

/* ── Header ──────────────────────────────────────────────── */
.flux-header {
  display:flex;justify-content:space-between;align-items:center;
  padding:.875rem 1.25rem;
  background:#fff;border-bottom:1px solid #E5E7EB;
  position:sticky;top:0;z-index:100;
}
.flux-header__left { display:flex;align-items:center;gap:.75rem; }
.flux-header__title { font-size:1.25rem;font-weight:700;color:#532822; }
.flux-header__right { display:flex;align-items:center;gap:.5rem; }

.location-pill {
  display:flex;align-items:center;gap:4px;
  padding:.3125rem .75rem;border:1.5px solid #E0D8D0;border-radius:999px;
  font-size:.8125rem;font-weight:500;color:#532822;background:#fff;
  cursor:pointer;font-family:inherit;transition:all .15s;
}
.location-pill:hover { border-color:#F97316;color:#F97316; }

.btn-icon {
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  color:#7A5C58;text-decoration:none;border-radius:50%;
  transition:background .15s;
}
.btn-icon:hover { background:#FFF7ED; }

.flux-avatar {
  width:32px;height:32px;border-radius:50%;background:#F97316;
  color:#fff;font-size:.875rem;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

/* ── Filtres ─────────────────────────────────────────────── */
.flux-filters {
  display:flex;gap:.5rem;overflow-x:auto;padding:.75rem 1.25rem;
  scrollbar-width:none;background:#fff;border-bottom:1px solid #E5E7EB;
  position:sticky;top:61px;z-index:99;
}
.flux-filters::-webkit-scrollbar{display:none}
.flux-filter {
  flex-shrink:0;padding:.375rem .875rem;border-radius:999px;
  font-size:.8125rem;font-weight:500;border:1.5px solid #E0D8D0;
  background:#fff;color:#532822;cursor:pointer;font-family:inherit;
  transition:all .15s;white-space:nowrap;
}
.flux-filter:hover,.flux-filter.active { background:#F97316;border-color:#F97316;color:#fff; }

/* ── Badge nouvelles publications ────────────────────────── */
.flux-new-badge {
  display:flex;align-items:center;justify-content:center;gap:.375rem;
  margin:.75rem auto 0;width:fit-content;
  padding:.5rem 1.25rem;background:#532822;color:#fff;border-radius:999px;
  font-size:.8125rem;font-weight:600;cursor:pointer;
  animation:badge-bounce .6s ease;
  transition:transform .15s;
}
.flux-new-badge:hover { transform:scale(1.03); }
.flux-new-badge.hidden { display:none; }
@keyframes badge-bounce { 0%{transform:translateY(-8px);opacity:0}100%{transform:translateY(0);opacity:1} }

/* ── Feed ────────────────────────────────────────────────── */
.flux-feed {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:1rem;padding:1rem 1.25rem;
}
@media(max-width:600px){.flux-feed{grid-template-columns:1fr;}}

/* ── Carte flux ──────────────────────────────────────────── */
.flux-card {
  background:#fff;border-radius:14px;border:1px solid #EDE8E2;
  overflow:hidden;cursor:pointer;
  transition:transform .15s,box-shadow .15s;
  position:relative;
}
.flux-card:hover { transform:translateY(-2px);box-shadow:0 6px 20px rgba(83,40,34,.1); }

.flux-card__pinned {
  position:absolute;top:8px;left:8px;z-index:2;
  background:rgba(83,40,34,.85);color:#fff;
  font-size:10px;font-weight:600;padding:3px 8px;border-radius:999px;
  backdrop-filter:blur(4px);
}

.flux-card__img {
  position:relative;aspect-ratio:16/9;overflow:hidden;background:#F0EDE8;
}
.flux-card__img img { width:100%;height:100%;object-fit:cover;transition:transform .3s; }
.flux-card:hover .flux-card__img img { transform:scale(1.04); }
.flux-card__ph { width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:48px; }

/* Badge type */
.flux-card__type-badge {
  position:absolute;bottom:8px;left:8px;
  padding:3px 8px;border-radius:999px;
  font-size:10px;font-weight:700;color:#fff;
  backdrop-filter:blur(4px);
}
.flux-badge--lieu        { background:rgba(59,59,92,.8); }
.flux-badge--evenement   { background:rgba(26,26,46,.85); }
.flux-badge--bon_plan    { background:rgba(249,115,22,.85); }
.flux-badge--offre_flash { background:rgba(249,115,22,.9);animation:pulse-flash 1.5s infinite; }
.flux-badge--partenaire  { background:rgba(107,114,128,.8); }

.flux-card__body { padding:.875rem; }
.flux-card__titre { font-size:.9375rem;font-weight:700;color:#532822;margin:0 0 .375rem;line-height:1.35; }
.flux-card__resume { font-size:.8125rem;color:#7A5C58;line-height:1.5;margin:0 0 .75rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.flux-card__footer { display:flex;justify-content:space-between;align-items:center; }
.flux-card__time { font-size:.75rem;color:#9CA3AF; }
.flux-card__share {
  width:30px;height:30px;border-radius:50%;
  background:#FFF7ED;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:#7A5C58;transition:all .15s;
}
.flux-card__share:hover { background:#F97316;color:#fff; }

/* ── Vide ────────────────────────────────────────────────── */
.flux-empty {
  grid-column:1/-1;
  text-align:center;padding:3rem 1rem;
  color:#7A5C58;font-size:.9375rem;
}

/* ── Load more ───────────────────────────────────────────── */
.flux-load-more {
  display:flex;justify-content:center;
  padding:1rem;
}

/* ── Bottom nav ──────────────────────────────────────────── */
.bottom-nav { display:none; }
@media(max-width:768px){.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:64px;background:#fff;border-top:1px solid #E5E7EB;align-items:center;justify-content:space-around;z-index:200;padding-bottom:env(safe-area-inset-bottom);}}
.bottom-nav__item { flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;color:#9CA3AF;text-decoration:none;cursor:pointer;transition:color .15s; }
.bottom-nav__item.active { color:#F97316; }
.bottom-nav__label { font-size:10px;font-weight:500; }
.bnav-icon { width:24px;height:24px;display:flex;align-items:center;justify-content:center; }
.bnav-icon svg { width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.bottom-nav__item.active .bnav-icon svg { stroke:#F97316; }
.bnav-center { position:relative; }
.bnav-fab { width:52px;height:52px;background:#F97316;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-16px;box-shadow:0 4px 16px rgba(249,115,22,.4); }
.bnav-fab svg { width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round; }

/* ── Misc ────────────────────────────────────────────────── */
.villes-list { display:flex;flex-direction:column;gap:4px;max-height:300px;overflow-y:auto; }
.ville-item { display:flex;justify-content:space-between;align-items:center;padding:.625rem 1rem;border-radius:8px;cursor:pointer;transition:background .15s; }
.ville-item:hover { background:#FFF7ED; }
.ville-item__nom { font-weight:600;color:#532822; }
.ville-item__pays { font-size:.875rem;color:#7A5C58; }
.sk { background:linear-gradient(90deg,#EDE8E2 25%,#F5F0EA 50%,#EDE8E2 75%);background-size:200% 100%;animation:sk-sh 1.5s infinite;border-radius:8px; }
@keyframes sk-sh{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes pulse-flash{0%,100%{opacity:1}50%{opacity:.7}}

/* form-input pour la modal */
.form-input { width:100%;height:44px;padding:0 1rem;border:1.5px solid #E0D8D0;border-radius:10px;font-size:.9375rem;font-family:inherit;color:#532822;background:#fff;outline:none;transition:border-color .15s; }
.form-input:focus { border-color:#F97316; }
.form-group { display:flex;flex-direction:column;gap:.375rem; }

/* btn pour load more */
.btn { display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.625rem 1.5rem;border-radius:10px;font-size:.9375rem;font-weight:600;font-family:inherit;cursor:pointer;border:none;transition:all .15s;text-decoration:none; }
.btn-secondary { background:transparent;color:#F97316;border:1.5px solid #F97316; }
.btn-secondary:hover { background:#FFF7ED; }
.btn-primary { background:#F97316;color:#fff; }
.btn-primary:hover { background:#EA6A00; }
