/* ==========================================================
   TripCooking — Page Pays (FB cover full width) — CSS COMPLET
   - Banner 100% width, pas d'arrondi arrière-plan
   - Nom + stats + actions DANS la bannière
   - Tabs sticky sous bannière
   - Colonnes left/right sticky
   - Centre plus large (sidebars compactes)
   ========================================================== */

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body.page-pays.paysSocial.fbPays{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #22123f;
  background:
    radial-gradient(1200px 700px at 25% 0%, #e7dcff 0%, transparent 60%),
    radial-gradient(900px 500px at 85% 20%, #f2edff 0%, transparent 55%),
    linear-gradient(180deg, #efe8ff, #fbf8ff);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

button, input { font: inherit; }
button{ cursor: pointer; }
input{ outline: none; }

.srOnly{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Variables ---------- */
:root{
  --wrap: 1320px;

  /* Sticky offsets */
  --topbarH: 62px;

  --ink: #22123f;
  --muted: rgba(34,18,63,.70);
  --muted2: rgba(34,18,63,.55);

  --violet-900:#2a0c4f;
  --violet-700:#53258f;
  --violet-600:#6f3bd1;
  --violet-500:#8456ff;

  --glass: rgba(255,255,255,.62);
  --stroke: rgba(140,110,255,.22);

  --shadow: 0 20px 60px rgba(34,10,74,.14);
  --shadow2: 0 10px 26px rgba(34,10,74,.10);

  --r-xl: 22px;
  --r-lg: 16px;
  --r-md: 14px;
}

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* ==========================================================
   Breadcrumb (optionnel)
   ========================================================== */
.breadcrumb{
  max-width: var(--wrap);
  margin: 10px auto 0;
  padding: 0 18px;
  color: rgba(34,18,63,.58);
  font-size: 13px;
}
.breadcrumb ol{
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.breadcrumb li+li::before{ content:"›"; margin-right:8px; opacity:.65; }

/* ==========================================================
   HEADER (Banner full width + Topbar sticky)
   ========================================================== */
.fbHeader{
  position: relative;
}

/* Banner full width, sans arrondis */
.fbBanner{
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  /* pas de border-radius */
  box-shadow: 0 18px 40px rgba(34,10,74,.10);
  border-bottom: 1px solid rgba(140,110,255,.14);
}

.fbBanner__bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .95;
  filter: saturate(1.1);
}

.fbBanner__veil{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(132,86,255,.22), transparent 65%),
    radial-gradient(900px 420px at 85% 0%, rgba(111,59,209,.18), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.62));
}

/* Contenu dans la bannière */
.fbBanner__inner{
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
}

/* Identity bloc */
.fbBanner__identity{
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-width: 0;
}

.fbAvatar{
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: rgba(255,255,255,.86);
  border: 4px solid rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(34,10,74,.14);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.fbFlag{ font-size: 38px; line-height: 1; }

.fbIdentity__txt{
  min-width: 0;
  padding-bottom: 6px;
}

.fbCountry{
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: rgba(42,12,79,.96);
  text-shadow: 0 6px 26px rgba(34,10,74,.10);
}

.fbMeta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 750;
  color: rgba(34,18,63,.66);
}
.fbMeta .dot{ opacity: .65; }

/* followers */
.fbFollowers{
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fbFollowersText{
  font-size: 13px;
  font-weight: 700;
  color: rgba(34,18,63,.62);
}

/* Actions à droite (dans la bannière) */
.fbBanner__actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.fbActions__form{ margin: 0; }

/* Buttons */
.fbBtn{
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(140,110,255,.18);
  background: rgba(255,255,255,.76);
  color: rgba(42,12,79,.92);
  font-weight: 900;
  box-shadow: var(--shadow2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.fbBtn:hover{ background: rgba(255,255,255,.90); text-decoration:none; }

.fbBtn--primary{
  border: 0;
  background: linear-gradient(135deg, rgba(132,86,255,.98), rgba(111,59,209,.92));
  color: #fff;
  box-shadow: 0 16px 30px rgba(111,59,209,.22);
}
.fbBtn--primary:hover{ filter: brightness(1.03); }

.fbBtn--soft{
  background: rgba(132,86,255,.14);
  border: 1px dashed rgba(132,86,255,.38);
}
.fbBtn--soft:hover{ background: rgba(132,86,255,.18); }

.fbBtn--ghost{
  background: rgba(255,255,255,.60);
}

/* ==========================================================
   Topbar sticky (tabs + search)
   ========================================================== */
.fbTopbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 255, .74);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(140,110,255,.14);
}

.fbTopbar__inner{
  height: var(--topbarH);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.fbTab{
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 950;
  color: rgba(34,18,63,.70);
  text-decoration: none;
}
.fbTab:hover{
  background: rgba(255,255,255,.60);
  text-decoration:none;
}

.fbTab.isActive{
  background: rgba(132,86,255,.18);
  border: 1px solid rgba(132,86,255,.28);
  color: rgba(42,12,79,.95);
}

/* Search */
.fbSearch{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 360px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(140,110,255,.18);
  border-radius: 14px;
  padding: 8px 10px 8px 12px;
  box-shadow: var(--shadow2);
}
.fbSearch input{
  border: 0;
  background: transparent;
  flex: 1;
  font-size: 13px;
  color: var(--ink);
}
.fbSearch button{
  width: 36px; height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(132,86,255,.22);
  color: rgba(42,12,79,.92);
}
.fbSearch button:hover{ background: rgba(132,86,255,.28); }

/* ==========================================================
   Layout page (3 colonnes)
   Centre large, sidebars fines et collées
   Sidebars sticky sous la topbar
   ========================================================== */
.fbLayout{
  padding: 16px 0 70px;
}

.fbLayout__grid{
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 290px;
  gap: 10px;
  align-items: start;
}

/* Sticky sidebars (sous la topbar) */
.fbLeft, .fbRight{
  position: sticky;
  top: calc(var(--topbarH) + 14px);
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Cards */
.fbCard{
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(140,110,255,.18);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  overflow: hidden;
  padding: 14px;
}

.fbCard__title{
  margin: 0 0 10px;
  font-size: 15px;
  color: rgba(42,12,79,.95);
}

.fbAboutText{
  margin: 0 0 12px;
  color: rgba(34,18,63,.70);
  line-height: 1.55;
  font-size: 13px;
}

/* About list */
.fbAboutList{ margin: 0; padding: 0; }
.fbAboutList > div{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(140,110,255,.12);
}
.fbAboutList dt{
  font-size: 12px;
  color: rgba(34,18,63,.56);
}
.fbAboutList dd{
  margin: 0;
  font-weight: 900;
  color: rgba(42,12,79,.92);
}

/* Map */
.fbMapBox{
  height: 170px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(132,86,255,.18), rgba(111,59,209,.08));
  border: 1px solid rgba(140,110,255,.14);
}
.fbMapBox img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .65;
}

/* Stats pills */
.fbStatsMini{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fbStatPill{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(140,110,255,.14);
  box-shadow: var(--shadow2);
  font-weight: 950;
  font-size: 12px;
  color: rgba(34,18,63,.74);
}
.fbStatPill:hover{ background: rgba(255,255,255,.84); text-decoration:none; }

/* Right deco */
.fbCard--deco{ padding: 0; }
.fbCard--deco img{
  width: 100%;
  height: 240px;
  object-fit: cover;
  opacity: .55;
  filter: saturate(1.1);
}

/* Avatar stack */
.avatarStack{ display: flex; align-items: center; }
.avatarStack .avatar{
  width: 26px; height: 26px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(34,10,74,.10);
  margin-left: -8px;
}
.avatarStack .avatar:first-child{ margin-left: 0; }
.avatarStack .avatar img{ width:100%; height:100%; object-fit: cover; }

/* Right lists */
.sideList{ display: grid; gap: 8px; }
.sideList a{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(140,110,255,.14);
  box-shadow: var(--shadow2);
  font-weight: 900;
  color: rgba(34,18,63,.78);
}
.sideList a:hover{ background: rgba(255,255,255,.82); text-decoration:none; }

/* Tags */
.tags{ display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(140,110,255,.14);
  box-shadow: var(--shadow2);
  font-weight: 950;
  font-size: 12px;
  color: rgba(34,18,63,.74);
}
.tag:hover{ background: rgba(255,255,255,.84); text-decoration:none; }

/* ==========================================================
   MAIN FEED
   ========================================================== */
.fbMain{ min-width: 0; }

/* Composer */
.fbComposer{ padding: 14px; }
.fbComposer__top{ display:flex; gap:10px; align-items:center; }
.fbComposer__ava{
  width: 40px; height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.80);
  border: 1px solid rgba(140,110,255,.18);
  box-shadow: var(--shadow2);
  flex: 0 0 auto;
}
.fbComposer__fakeInput{
  flex: 1;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(140,110,255,.16);
  background: rgba(255,255,255,.70);
  color: rgba(34,18,63,.65);
  font-weight: 800;
  text-align: left;
  padding: 0 14px;
}
.fbComposer__fakeInput:hover{ background: rgba(255,255,255,.86); }

.fbComposer__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(140,110,255,.12);
}
.fbComposer__btn{
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(140,110,255,.14);
  background: rgba(255,255,255,.60);
  box-shadow: var(--shadow2);
  font-weight: 900;
  color: rgba(34,18,63,.74);
}
.fbComposer__btn:hover{ background: rgba(255,255,255,.86); }

/* Feed head */
.feedHead{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 2px 12px;
}
.feedHead h2{
  margin: 0;
  font-size: 18px;
  color: rgba(42,12,79,.95);
}
.feedFilters{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(140,110,255,.14);
  box-shadow: var(--shadow2);
  font-weight: 950;
  font-size: 12px;
  color: rgba(34,18,63,.72);
}
.chip.isActive{
  background: rgba(132,86,255,.18);
  border-color: rgba(132,86,255,.28);
  color: rgba(42,12,79,.95);
}

/* Posts */
.posts{ display:grid; gap:14px; }

.post{
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(140,110,255,.18);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow2);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.postHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px 10px;
}
.postAuthor{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.postAva{
  width: 40px; height: 40px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.85);
  border: 2px solid rgba(255,255,255,.90);
  box-shadow: 0 10px 20px rgba(34,10,74,.10);
  flex: 0 0 auto;
}
.postAva img{ width:100%; height:100%; object-fit:cover; }
.postWho{ display:grid; gap:3px; min-width:0; }
.postWho b{ font-weight: 950; color: rgba(42,12,79,.95); }
.postMeta{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(34,18,63,.58);
  font-size:12px;
  white-space:nowrap;
}
.badgeType{
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(140,110,255,.14);
  background: rgba(255,255,255,.55);
  font-weight: 950;
}
.postMore{
  width: 36px; height: 36px;
  border-radius: 14px;
  border: 1px solid rgba(140,110,255,.14);
  background: rgba(255,255,255,.55);
  box-shadow: var(--shadow2);
  color: rgba(34,18,63,.72);
  font-weight: 950;
}
.postMore:hover{ background: rgba(255,255,255,.82); }

.postMedia{
  position: relative;
  display:block;
  height: 300px;
  overflow:hidden;
  background: rgba(255,255,255,.6);
}
.postMedia img{
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.06);
}
.postMedia:hover img{
  transform: scale(1.05);
  transition: transform .25s ease;
}
.postBadge{
  position:absolute;
  right:12px;
  top:12px;
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(140,110,255,.18);
  color: rgba(42,12,79,.95);
}

.postBody{ padding: 12px 14px 14px; }
.postTitle{ margin:0 0 6px; font-size:17px; color: rgba(42,12,79,.95); }
.postText{ margin:0 0 12px; color: rgba(34,18,63,.70); line-height:1.5; font-size:13px; }

.postActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-top:10px;
  border-top:1px solid rgba(140,110,255,.12);
}
.act{
  border: 1px solid rgba(140,110,255,.14);
  background: rgba(255,255,255,.60);
  border-radius: 999px;
  padding: 8px 11px;
  font-weight: 950;
  font-size: 12px;
  color: rgba(34,18,63,.74);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.act:hover{ background: rgba(255,255,255,.86); text-decoration:none; }
.act--link{ text-decoration:none; }

/* Pagination */
.pager{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:16px 0 0;
  padding:14px 0;
}
.pager a{
  width: 38px; height: 38px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(140,110,255,.14);
  box-shadow: var(--shadow2);
  font-weight: 950;
  color: rgba(34,18,63,.75);
  text-decoration:none;
}
.pager a:hover{ background: rgba(255,255,255,.86); }
.pager a.isActive{
  background: rgba(132,86,255,.18);
  border-color: rgba(132,86,255,.28);
  color: rgba(42,12,79,.95);
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(132,86,255,.18);
  border-color: rgba(132,86,255,.35);
}
.fbMapBox{
  position: relative;
  width: 100%;
}

#countryMap.countryMap{
  width: 100%;
  height: 240px;      /* IMPORTANT */
  min-height: 240px;  /* IMPORTANT */
  border-radius: 16px;
  overflow: hidden;
}

/* optionnel pour le fallback */
#countryMapFallback{
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 16px;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1350px){
  :root{ --wrap: 1180px; }
  .fbSearch{ width: 320px; }
  .fbLayout__grid{ grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 12px; }
}

@media (max-width: 1020px){
  .fbBanner{ height: 220px; }
  .fbBanner__inner{
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 14px;
  }
  .fbBanner__actions{ width: 100%; justify-content: flex-start; }
  .fbTopbar__inner{
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    align-items: stretch;
  }
  .fbSearch{ width: 100%; }
  .fbLayout__grid{ grid-template-columns: 1fr; }
  .fbLeft, .fbRight{ position: static; }
  .postMedia{ height: 260px; }
}

@media (max-width: 640px){
  .fbBanner{ height: 200px; }
  .fbAvatar{ width: 76px; height: 76px; border-radius: 22px; }
  .fbFlag{ font-size: 32px; }
  .fbCountry{ font-size: 24px; }
  .fbBtn{ height: 36px; padding: 0 10px; border-radius: 12px; }
  .postMedia{ height: 220px; }
}
