/* ==========================================================================
   Vovibs — feuille de style
   Thème clair par défaut, thème sombre via [data-theme="dark"]
   ========================================================================== */

:root{
  --spot:#0ea5b7;      --spot-soft:#d7f4f7;
  --resto:#f0682f;     --resto-soft:#ffe6d8;
  --acti:#7c5cff;      --acti-soft:#e9e3ff;
  --hotel:#e0a112;     --hotel-soft:#fff3d3;

  /* Couleurs de la marque (logo Vovibs) */
  --brand:#1e86f2;     --brand2:#45d8ff;    --brand-strong:#0c6fd0;   --brand-soft:#e4f1ff;

  --bg:#f6f6f8;
  --surface:#ffffff;
  --surface-2:#f1f1f4;
  --text:#15161a;
  --text-soft:#6b6e78;
  --text-faint:#9a9ca6;
  --border:#e7e7ec;
  --border-strong:#d8d8df;
  --shadow:0 1px 2px rgba(20,22,26,.04), 0 8px 24px rgba(20,22,26,.06);
  --shadow-lg:0 12px 40px rgba(20,22,26,.14);
  --accent:#1e86f2;
  --accent-contrast:#ffffff;
  --ink:#15161b;              /* neutre foncé (notifications, bandeau cookies) */
  --ring:rgba(30,134,242,.32);

  --radius:18px;
  --radius-sm:12px;
  --radius-lg:26px;
  --nav-w:248px;
  --maxw:1180px;

  --font:'Plus Jakarta Sans',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --display:'Fraunces',Georgia,serif;
}

[data-theme="dark"]{
  --bg:#0b0c0f;
  --surface:#15161b;
  --surface-2:#1d1f26;
  --text:#f3f4f7;
  --text-soft:#a7abb7;
  --text-faint:#6f7480;
  --border:#262832;
  --border-strong:#333644;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 12px 34px rgba(0,0,0,.5);
  --shadow-lg:0 18px 50px rgba(0,0,0,.6);
  --accent:#2f93f5;
  --accent-contrast:#ffffff;
  --ink:#23252e;
  --brand-soft:#0e2740;
  --spot-soft:#0c2b30; --resto-soft:#33190e; --acti-soft:#211a45; --hotel-soft:#3a2a06;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
  padding-left:var(--nav-w);
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
img{display:block;max-width:100%}
::selection{background:var(--brand);color:#fff}

/* Scrollbar discrète */
*::-webkit-scrollbar{width:10px;height:10px}
*::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:20px;border:3px solid var(--bg)}

/* ---------- Barre latérale ---------- */
.sidebar{
  position:fixed; top:0; left:0; bottom:0; width:var(--nav-w);
  background:var(--surface); border-right:1px solid var(--border);
  display:flex; flex-direction:column; padding:22px 16px; z-index:50;
}
.brand{display:flex;align-items:center;gap:10px;padding:6px 8px;margin-bottom:26px}
.brand-mark{
  width:40px;height:40px;border-radius:12px;object-fit:cover;flex:none;display:block;
  box-shadow:0 6px 18px rgba(30,134,242,.4);
}
.brand-name{font-family:var(--display);font-weight:700;font-size:22px;letter-spacing:-.02em}
.brand-name span{color:var(--brand)}
.brand.small{margin:0}

.nav{display:flex;flex-direction:column;gap:4px}
.nav-item{
  display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;
  color:var(--text-soft);font-weight:600;font-size:15.5px;transition:.15s;
}
.nav-item .ni-ico{font-size:19px;filter:grayscale(.2)}
.nav-item:hover{background:var(--surface-2);color:var(--text)}
.nav-item.active{background:var(--accent);color:var(--accent-contrast)}
.nav-item.active .ni-ico{filter:none}

.btn-create{
  margin-top:20px;padding:13px;border-radius:14px;font-weight:700;font-size:15px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;
  box-shadow:0 8px 20px rgba(30,134,242,.35);transition:.15s;
}
.btn-create:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(30,134,242,.45)}

.sidebar-foot{margin-top:auto;display:flex;align-items:center;gap:10px;color:var(--text-faint);font-size:12.5px;padding:0 8px}
.sidebar-legal{padding:10px 8px 2px;font-size:11px;line-height:1.7;color:var(--text-faint)}
.sidebar-legal a{color:var(--text-faint)}
.sidebar-legal a:hover{color:var(--text-soft);text-decoration:underline}
.theme-toggle{width:34px;height:34px;border-radius:10px;background:var(--surface-2);font-size:15px;display:grid;place-items:center}
.theme-toggle:hover{background:var(--border)}

/* ---------- Barre supérieure & tabbar mobiles ---------- */
.topbar,.tabbar{display:none}

/* ---------- Zone d'application ---------- */
.app{max-width:var(--maxw);margin:0 auto;padding:26px 26px 90px;min-height:100vh}

.page-head{margin-bottom:22px}
.page-title{font-family:var(--display);font-size:32px;font-weight:700;letter-spacing:-.02em;margin:0 0 4px}
.page-sub{color:var(--text-soft);margin:0;font-size:15px}

/* Deux colonnes (feed + latéral) */
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:30px;align-items:start}
@media (max-width:980px){.layout{grid-template-columns:1fr}.layout .rail{display:none}}

/* ---------- Chips catégories ---------- */
.cat-chip{
  display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;
  font-size:12.5px;font-weight:700;letter-spacing:.01em;
}
.cat-spot{background:var(--spot-soft);color:var(--spot)}
.cat-resto{background:var(--resto-soft);color:var(--resto)}
.cat-acti{background:var(--acti-soft);color:var(--acti)}
.cat-hotel{background:var(--hotel-soft);color:var(--hotel)}

/* ---------- Carte de publication (feed) ---------- */
.feed{display:flex;flex-direction:column;gap:22px;max-width:600px;margin:0 auto}
.post{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);
}
.post-head{display:flex;align-items:center;gap:11px;padding:13px 15px}
.avatar{border-radius:50%;object-fit:cover;background:var(--surface-2);flex:none}
.avatar.sm{width:38px;height:38px}
.avatar.md{width:46px;height:46px}
.avatar.lg{width:96px;height:96px;border:3px solid var(--surface);box-shadow:var(--shadow)}
.post-head .who{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.post-head .who b{font-size:14.5px}
.post-head .who small{color:var(--text-soft);font-size:12.5px;display:flex;align-items:center;gap:5px}
.post-head .grow{margin-left:auto}

.media{position:relative;aspect-ratio:4/5;background:var(--surface-2);cursor:pointer;overflow:hidden}
.media img{width:100%;height:100%;object-fit:cover;transition:.4s}
.post:hover .media img{transform:scale(1.03)}
.media .badge-cat{position:absolute;top:12px;left:12px;z-index:2;backdrop-filter:blur(6px)}
.media .rating{
  position:absolute;top:12px;right:12px;z-index:2;background:rgba(0,0,0,.55);color:#fff;
  padding:5px 9px;border-radius:999px;font-size:12.5px;font-weight:700;backdrop-filter:blur(6px);
}
.media .media-count{position:absolute;bottom:12px;right:12px;background:rgba(0,0,0,.55);color:#fff;padding:3px 9px;border-radius:999px;font-size:12px;font-weight:600;backdrop-filter:blur(6px)}
.media .place-tag{
  position:absolute;bottom:12px;left:12px;z-index:2;color:#fff;
  text-shadow:0 1px 12px rgba(0,0,0,.7);max-width:75%;
}
.media .place-tag b{font-size:17px;font-weight:700;display:block;letter-spacing:-.01em}
.media .place-tag small{font-size:12.5px;opacity:.95;display:flex;align-items:center;gap:4px}
.media::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.45),transparent 38%);pointer-events:none}

.post-body{padding:12px 15px 15px}
.actions{display:flex;align-items:center;gap:6px;margin-bottom:9px}
.act{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:11px;font-weight:600;font-size:13.5px;color:var(--text-soft);transition:.12s}
.act:hover{background:var(--surface-2);color:var(--text)}
.act.on-like{color:#e0245e}
.act.on-save{color:var(--brand)}
.act .ico{font-size:16px}
.act.grow{margin-left:auto}

.post-body .desc{font-size:14.5px;margin:2px 0 8px}
.post-body .desc b{font-weight:700}
.tip{background:var(--surface-2);border-radius:12px;padding:10px 12px;font-size:13.5px;color:var(--text-soft);display:flex;gap:8px;margin-top:8px}
.tip b{color:var(--text)}
.meta-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;color:var(--text-faint);font-size:12.5px}
.meta-row span{display:inline-flex;align-items:center;gap:5px}
.price-pill{color:var(--resto);font-weight:700}

/* ---------- Rail latéral ---------- */
.rail{position:sticky;top:26px;display:flex;flex-direction:column;gap:18px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.card h3{margin:0 0 14px;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint)}
.trend-item{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}
.trend-item:last-child{border-bottom:none;padding-bottom:0}
.trend-item:first-child{padding-top:0}
.trend-thumb{width:52px;height:52px;border-radius:12px;object-fit:cover;flex:none}
.trend-item .t-txt{min-width:0}
.trend-item .t-txt b{font-size:14px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trend-item .t-txt small{color:var(--text-soft);font-size:12.5px}
.trend-rank{font-family:var(--display);font-weight:700;font-size:18px;color:var(--text-faint);width:18px;text-align:center;flex:none}

.who-follow{display:flex;align-items:center;gap:11px;padding:9px 0}
.who-follow .who{min-width:0}
.who-follow .who b{font-size:14px;display:block}
.who-follow .who small{color:var(--text-soft);font-size:12px}
.btn-follow{margin-left:auto;padding:7px 14px;border-radius:999px;font-weight:700;font-size:13px;background:var(--accent);color:var(--accent-contrast);border:1px solid var(--accent);flex:none;transition:.12s}
.btn-follow.following{background:transparent;color:var(--text);border-color:var(--border-strong)}
.btn-follow:hover{opacity:.88}

/* ---------- Recherche / Explorer ---------- */
.searchbar{position:relative;margin-bottom:24px}
.searchbar input{
  width:100%;padding:16px 18px 16px 50px;border-radius:16px;border:1px solid var(--border);
  background:var(--surface);color:var(--text);font-size:16px;font-family:inherit;box-shadow:var(--shadow);outline:none;
}
.searchbar input:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
.searchbar .s-ico{position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:18px;opacity:.6}

.chips{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:22px}
.chip{padding:8px 15px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-weight:600;font-size:14px;color:var(--text-soft);transition:.12s}
.chip:hover{border-color:var(--border-strong);color:var(--text)}
.chip.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}

.section-h{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px}
.section-h h2{font-family:var(--display);font-size:22px;margin:0;font-weight:700;letter-spacing:-.01em}
.section-h a{color:var(--brand);font-weight:600;font-size:14px}

/* Grille destinations */
.dest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.dest-card{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;box-shadow:var(--shadow);cursor:pointer;border:1px solid var(--border)}
.dest-card img{width:100%;height:100%;object-fit:cover;transition:.5s}
.dest-card:hover img{transform:scale(1.06)}
.dest-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,.05) 55%)}
.dest-card .dc-txt{position:absolute;left:14px;bottom:13px;right:14px;z-index:2;color:#fff}
.dest-card .dc-txt .flag{font-size:22px}
.dest-card .dc-txt b{font-family:var(--display);font-size:20px;font-weight:700;display:block;letter-spacing:-.01em}
.dest-card .dc-txt small{opacity:.9;font-size:12.5px}

/* Grille de posts (profil, destination) */
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.pg-card{position:relative;border-radius:var(--radius-sm);overflow:hidden;aspect-ratio:1/1;cursor:pointer;background:var(--surface-2);border:1px solid var(--border)}
.pg-card img{width:100%;height:100%;object-fit:cover;transition:.4s}
.pg-card:hover img{transform:scale(1.05)}
.pg-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.6),transparent 50%)}
.pg-card .pg-cat{position:absolute;top:9px;left:9px;z-index:2}
.pg-card .pg-info{position:absolute;left:11px;bottom:9px;right:11px;z-index:2;color:#fff}
.pg-card .pg-info b{font-size:14px;display:block;text-shadow:0 1px 8px rgba(0,0,0,.6);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pg-card .pg-info small{font-size:11.5px;opacity:.9;display:flex;gap:9px;margin-top:2px}

/* ---------- Bannière destination ---------- */
.dest-hero{position:relative;border-radius:var(--radius-lg);overflow:hidden;height:280px;margin-bottom:20px;box-shadow:var(--shadow-lg)}
.dest-hero img{width:100%;height:100%;object-fit:cover}
.dest-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.1))}
.dest-hero .dh-txt{position:absolute;left:26px;bottom:22px;right:26px;z-index:2;color:#fff}
.dest-hero .dh-txt .flag{font-size:40px;line-height:1}
.dest-hero .dh-txt h1{font-family:var(--display);font-size:40px;margin:6px 0 4px;font-weight:700;letter-spacing:-.02em}
.dest-hero .dh-txt p{margin:0;opacity:.92;font-size:15px;max-width:640px}
.dest-hero .dh-stats{display:flex;gap:22px;margin-top:14px}
.dest-hero .dh-stats div b{font-size:20px;font-weight:800;display:block}
.dest-hero .dh-stats div small{opacity:.85;font-size:12px}

.city-row{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:6px}
.city-pill{flex:none;padding:9px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-weight:600;font-size:14px;transition:.12s;cursor:pointer}
.city-pill:hover{border-color:var(--border-strong)}
.city-pill.active{background:var(--accent);color:var(--accent-contrast);border-color:var(--accent)}

/* Onglets catégories */
.tabs{display:flex;gap:6px;background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:6px;margin:18px 0 22px;box-shadow:var(--shadow)}
.tabs .tab-btn{flex:1;padding:12px;border-radius:11px;font-weight:700;font-size:14.5px;color:var(--text-soft);display:flex;align-items:center;justify-content:center;gap:8px;transition:.15s}
.tabs .tab-btn:hover{background:var(--surface-2)}
.tabs .tab-btn.active[data-cat="spot"]{background:var(--spot);color:#fff}
.tabs .tab-btn.active[data-cat="resto"]{background:var(--resto);color:#fff}
.tabs .tab-btn.active[data-cat="acti"]{background:var(--acti);color:#fff}
.tabs .tab-btn.active[data-cat="hotel"]{background:var(--hotel);color:#fff}
.tab-count{font-size:12px;opacity:.7}

/* ---------- Carte (Leaflet) ---------- */
.map-wrap{border-radius:var(--radius-lg);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow-lg)}
#leafletMap,#miniMap,#destMap{width:100%;background:var(--surface-2)}
#leafletMap{height:calc(100vh - 150px);min-height:460px}
#destMap{height:340px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}
#miniMap{height:180px;border-radius:14px;overflow:hidden;border:1px solid var(--border)}
.leaflet-container{font-family:var(--font)}
.map-legend{position:absolute;bottom:14px;left:14px;z-index:1000;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:11px 14px;box-shadow:var(--shadow);font-size:13px}
.map-legend div{display:flex;align-items:center;gap:8px;margin:3px 0;font-weight:600}
.map-legend .dot{width:12px;height:12px;border-radius:50%}
.map-filter{position:absolute;top:14px;left:14px;z-index:1000;display:flex;gap:7px}

.pin{width:34px;height:34px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);display:grid;place-items:center;box-shadow:0 3px 10px rgba(0,0,0,.35);border:2px solid #fff}
.pin span{transform:rotate(45deg);font-size:15px}
.pin.spot{background:var(--spot)} .pin.resto{background:var(--resto)} .pin.acti{background:var(--acti)} .pin.hotel{background:var(--hotel)}
.leaflet-popup-content-wrapper{border-radius:14px;box-shadow:var(--shadow-lg)}
.leaflet-popup-content{margin:0;width:210px!important}
.pop{cursor:pointer}
.pop img{width:100%;height:120px;object-fit:cover;border-radius:14px 14px 0 0}
.pop .pop-b{padding:10px 12px}
.pop .pop-b b{font-size:14px;display:block}
.pop .pop-b small{color:var(--text-soft);font-size:12px}

/* ---------- Profil ---------- */
.profile-head{display:flex;gap:24px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.profile-head .p-main{flex:1;min-width:220px}
.profile-head h1{font-family:var(--display);font-size:28px;margin:0 0 2px;font-weight:700}
.profile-head .handle{color:var(--text-soft);font-size:14.5px;margin-bottom:8px}
.profile-head .bio{font-size:14.5px;margin:8px 0 12px;max-width:520px}
.p-stats{display:flex;gap:26px;margin:10px 0}
.p-stats div{cursor:default}
.p-stats div b{font-size:19px;font-weight:800;display:block}
.p-stats div small{color:var(--text-soft);font-size:12.5px}
.p-actions{display:flex;gap:10px;margin-top:6px}
.btn-primary{padding:10px 20px;border-radius:12px;font-weight:700;background:var(--accent);color:var(--accent-contrast);transition:.12s}
.btn-primary:hover{opacity:.9}
.btn-ghost{padding:10px 18px;border-radius:12px;font-weight:700;background:var(--surface-2);color:var(--text);border:1px solid var(--border)}
.countries-line{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.country-tag{padding:5px 11px;border-radius:999px;background:var(--surface-2);border:1px solid var(--border);font-size:13px;font-weight:600}

/* ---------- Collections / Mes voyages ---------- */
.coll-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.coll-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);cursor:pointer;transition:.15s}
.coll-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.coll-cover{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:2px;height:170px}
.coll-cover img{width:100%;height:100%;object-fit:cover}
.coll-cover img:first-child{grid-row:1/3}
.coll-cover .empty-cover{grid-column:1/3;grid-row:1/3;display:grid;place-items:center;background:var(--surface-2);color:var(--text-faint);font-size:40px}
.coll-body{padding:15px}
.coll-body b{font-size:17px;font-family:var(--display)}
.coll-body .coll-meta{display:flex;gap:12px;margin-top:8px;color:var(--text-soft);font-size:13px}
.coll-body .coll-meta span{display:inline-flex;gap:5px;align-items:center}

/* ---------- Détail publication (modale) ---------- */
.modal-root{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:24px;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);overflow:auto}
.modal-root[hidden]{display:none}
.modal{background:var(--surface);border-radius:var(--radius-lg);width:min(920px,100%);max-height:92vh;overflow:hidden;display:grid;grid-template-columns:1.1fr 1fr;box-shadow:var(--shadow-lg);animation:pop .2s ease}
@keyframes pop{from{transform:scale(.96);opacity:0}to{transform:scale(1);opacity:1}}
.modal-media{background:#000;position:relative;min-height:420px;display:flex}
.modal-media img{width:100%;height:100%;object-fit:cover}
.modal-media .m-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center;font-size:18px;z-index:3}
.modal-media .m-prev{left:12px} .modal-media .m-next{right:12px}
.modal-media .m-dots{position:absolute;bottom:14px;left:0;right:0;display:flex;justify-content:center;gap:6px;z-index:3}
.modal-media .m-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5)}
.modal-media .m-dots i.on{background:#fff}
.modal-side{display:flex;flex-direction:column;max-height:92vh;overflow:auto}
.modal-side .ms-head{padding:16px 18px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:2}
.modal-close{position:absolute;top:14px;right:14px;z-index:210;width:38px;height:38px;border-radius:50%;background:var(--surface);box-shadow:var(--shadow);font-size:18px;display:grid;place-items:center}
.modal-body{padding:16px 18px;flex:1}
.comments{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.comment{display:flex;gap:10px}
.comment .c-txt{background:var(--surface-2);border-radius:12px;padding:8px 12px;font-size:13.5px}
.comment .c-txt b{font-weight:700;margin-right:6px}
.comment-form{display:flex;gap:9px;padding:14px 18px;border-top:1px solid var(--border);position:sticky;bottom:0;background:var(--surface)}
.comment-form input{flex:1;padding:11px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;font-family:inherit}
.comment-form input:focus{border-color:var(--brand)}
.comment-form button{padding:0 18px;border-radius:12px;background:var(--accent);color:var(--accent-contrast);font-weight:700}
@media (max-width:760px){.modal{grid-template-columns:1fr;max-height:94vh}.modal-media{min-height:300px;max-height:44vh}}

/* Modale de création (formulaire) */
.form-modal{background:var(--surface);border-radius:var(--radius-lg);width:min(560px,100%);max-height:92vh;overflow:auto;box-shadow:var(--shadow-lg);padding:24px;position:relative;animation:pop .2s ease}
.form-modal h2{font-family:var(--display);margin:0 0 4px;font-size:24px}
.form-modal p.sub{color:var(--text-soft);margin:0 0 18px;font-size:14px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;font-size:13.5px;margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-family:inherit;font-size:14.5px;outline:none}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand)}
.field textarea{resize:vertical;min-height:80px}
.cat-pick{display:flex;gap:9px}
.cat-pick button{flex:1;padding:12px;border-radius:12px;border:2px solid var(--border);font-weight:700;font-size:14px;background:var(--surface-2);transition:.12s}
.cat-pick button.sel[data-cat="spot"]{border-color:var(--spot);background:var(--spot-soft);color:var(--spot)}
.cat-pick button.sel[data-cat="resto"]{border-color:var(--resto);background:var(--resto-soft);color:var(--resto)}
.cat-pick button.sel[data-cat="acti"]{border-color:var(--acti);background:var(--acti-soft);color:var(--acti)}
.cat-pick button.sel[data-cat="hotel"]{border-color:var(--hotel);background:var(--hotel-soft);color:var(--hotel)}
.form-actions{display:flex;gap:10px;margin-top:20px}
.form-actions .btn-primary{flex:1;text-align:center;padding:13px}

/* ---------- Toast ---------- */
.toast-root{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:400;display:flex;flex-direction:column;gap:10px;align-items:center;pointer-events:none}
.toast{background:var(--ink);color:#fff;padding:12px 20px;border-radius:14px;font-weight:600;font-size:14px;box-shadow:var(--shadow-lg);animation:slideup .3s ease;display:flex;align-items:center;gap:9px}
@keyframes slideup{from{transform:translateY(16px);opacity:0}to{transform:translateY(0);opacity:1}}

/* ---------- États vides ---------- */
.empty{text-align:center;padding:60px 20px;color:var(--text-soft)}
.empty .e-ico{font-size:54px;margin-bottom:12px}
.empty b{display:block;font-size:18px;color:var(--text);margin-bottom:6px;font-family:var(--display)}

/* ---------- Grille de stats profil (carte du monde) ---------- */
.world-card{margin-top:18px}
#profileMap{height:300px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border)}

/* ---------- Écran d'authentification ---------- */
body.auth-mode{padding-left:0;padding-bottom:0}
body.auth-mode .sidebar,body.auth-mode .topbar,body.auth-mode .tabbar{display:none!important}
body.auth-mode .app{max-width:none;margin:0;padding:0;min-height:100vh}
.auth-screen{display:grid;grid-template-columns:1.05fr .95fr;min-height:100vh}
.auth-hero{position:relative;background:linear-gradient(135deg,#1e86f2,#45d8ff 92%);color:#fff;overflow:hidden;display:flex;align-items:center}
.auth-hero::before{content:"";position:absolute;inset:0;background:
  radial-gradient(circle at 80% 15%,rgba(255,255,255,.22),transparent 45%),
  radial-gradient(circle at 15% 85%,rgba(255,255,255,.15),transparent 40%)}
.auth-hero-inner{position:relative;padding:56px;max-width:520px}
.auth-hero h1 .hl{color:#ffe08a}   /* 'vibs' du slogan, couleur du logo */
.auth-hero h1{font-family:var(--display);font-size:40px;line-height:1.1;font-weight:700;margin:0 0 16px;letter-spacing:-.02em}
.auth-hero p{font-size:16.5px;opacity:.95;margin:0 0 26px;max-width:440px}
.auth-badges{display:flex;flex-wrap:wrap;gap:10px}
.auth-badges span{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);padding:8px 14px;border-radius:999px;font-weight:600;font-size:14px;backdrop-filter:blur(4px)}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px 28px;background:var(--bg)}
.auth-card{width:100%;max-width:400px}
.auth-tabs{display:flex;gap:6px;background:var(--surface-2);border-radius:14px;padding:5px;margin-bottom:24px}
.auth-tab{flex:1;padding:11px;border-radius:10px;font-weight:700;font-size:14.5px;color:var(--text-soft)}
.auth-tab.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}
.auth-error{background:var(--resto-soft);color:var(--resto);border-radius:12px;padding:11px 14px;font-size:13.5px;font-weight:600;margin-bottom:14px}
.auth-submit{width:100%;padding:14px;border-radius:13px;font-weight:700;font-size:15.5px;color:#fff;margin-top:6px;background:linear-gradient(135deg,var(--brand),var(--brand2));box-shadow:0 8px 20px rgba(30,134,242,.35);transition:.15s}
.auth-submit:hover{transform:translateY(-1px)}
.auth-submit:disabled{opacity:.6;transform:none;cursor:default}
.auth-alt{text-align:center;margin-top:18px;color:var(--text-soft);font-size:14px}
.auth-alt a{color:var(--brand);font-weight:700;cursor:pointer}
.auth-demo{margin-top:22px;text-align:center;font-size:12.5px;color:var(--text-faint);background:var(--surface-2);padding:10px 12px;border-radius:12px}
.auth-demo code{background:var(--surface);padding:1px 6px;border-radius:6px;font-size:12px}
@media (max-width:840px){
  .auth-screen{grid-template-columns:1fr}
  .auth-hero{min-height:230px}
  .auth-hero-inner{padding:36px 28px}
  .auth-hero h1{font-size:30px}
  .auth-hero p{display:none}
}

/* ---------- Bouton déconnexion ---------- */
.logout-link{color:var(--text-faint);cursor:pointer;font-size:12.5px}
.logout-link:hover{color:var(--resto)}

/* ---------- Pastilles (non-lus) ---------- */
.nav-badge{background:#e0245e;color:#fff;border-radius:999px;font-size:11px;font-weight:800;padding:1px 7px;min-width:19px;text-align:center;display:inline-block}
.nav-item .nav-badge{margin-left:auto}
.topbar-search .nav-badge{position:absolute;top:-4px;right:-4px;padding:0 5px;min-width:16px;font-size:10px}

/* ---------- Messagerie ---------- */
.convo{display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:16px;cursor:pointer;transition:.12s;max-width:640px}
.convo:hover{background:var(--surface-2)}
.convo-main{flex:1;min-width:0}
.convo-top{display:flex;justify-content:space-between;gap:8px}
.convo-top b{font-size:15px}
.convo-top small{color:var(--text-faint);font-size:12px;flex:none}
.convo-last{color:var(--text-soft);font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.convo-last.unread{color:var(--text);font-weight:700}
.convo-badge{background:#e0245e;color:#fff;border-radius:999px;font-size:12px;font-weight:800;padding:2px 8px;flex:none}

.chat{max-width:640px;margin:0 auto;display:flex;flex-direction:column;height:calc(100vh - 130px);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.chat-head{display:flex;align-items:center;gap:11px;padding:13px 16px;border-bottom:1px solid var(--border);flex:none}
.chat-back{font-size:26px;line-height:1;color:var(--text-soft);padding-right:4px}
.chat-back:hover{color:var(--text)}
.chat-head b{font-size:16px}
.chat-body{flex:1;overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:8px;background:var(--bg)}
.bubble{max-width:74%;padding:10px 14px;border-radius:18px;font-size:14.5px;position:relative;word-wrap:break-word;line-height:1.35}
.bubble .bubble-time{display:block;font-size:10.5px;opacity:.65;margin-top:3px;text-align:right}
.bubble.me{align-self:flex-end;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;border-bottom-right-radius:5px}
.bubble.them{align-self:flex-start;background:var(--surface);border:1px solid var(--border);border-bottom-left-radius:5px}
.chat-form{display:flex;gap:9px;padding:12px 14px;border-top:1px solid var(--border);flex:none;background:var(--surface)}
.chat-form input{flex:1;padding:12px 15px;border-radius:22px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);outline:none;font-family:inherit;font-size:14.5px}
.chat-form input:focus{border-color:var(--brand)}
.chat-form button{padding:0 20px;border-radius:22px;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;font-weight:700}
@media (max-width:860px){.chat{height:calc(100vh - 165px);border-radius:14px}}

/* ---------- Menu d'actions (modifier / supprimer) ---------- */
.sheet{background:var(--surface);border-radius:var(--radius-lg);width:min(360px,100%);padding:10px;box-shadow:var(--shadow-lg);animation:pop .18s ease;display:flex;flex-direction:column;gap:4px}
.sheet-title{font-weight:700;font-size:15px;padding:12px 14px 10px;border-bottom:1px solid var(--border);margin-bottom:6px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sheet-btn{text-align:left;padding:13px 15px;border-radius:12px;font-weight:600;font-size:14.5px;transition:.12s}
.sheet-btn:hover{background:var(--surface-2)}
.sheet-btn.danger{color:#e0431f}
.sheet-btn.cancel{color:var(--text-faint);border-top:1px solid var(--border);border-radius:0 0 14px 14px;margin-top:4px;text-align:center}

/* ---------- Notifications ---------- */
.notif{display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:16px;cursor:pointer;transition:.12s;max-width:660px;position:relative}
.notif:hover{background:var(--surface-2)}
.notif.unread{background:var(--brand-soft)}
.notif.unread::before{content:"";position:absolute;left:3px;top:50%;transform:translateY(-50%);width:6px;height:6px;border-radius:50%;background:var(--brand)}
.notif-ico{font-size:16px;flex:none}
.notif-main{flex:1;min-width:0;font-size:14.5px}
.notif-main small{color:var(--text-faint);font-size:12px;display:block;margin-top:2px}
.notif-thumb{width:48px;height:48px;border-radius:10px;object-fit:cover;flex:none}

/* ---------- Modification du profil ---------- */
.avatar-edit{display:flex;align-items:center;gap:18px;margin-bottom:20px}
.avatar-edit img{width:84px;height:84px;border-radius:50%;object-fit:cover;background:var(--surface-2);flex:none;border:3px solid var(--surface);box-shadow:var(--shadow)}
.avatar-btn{display:inline-block;padding:9px 16px;border-radius:11px;font-weight:700;font-size:13.5px;background:var(--surface-2);border:1px solid var(--border);cursor:pointer}
.avatar-btn:hover{border-color:var(--border-strong)}
.edit-sep{margin:26px 0 16px;padding-top:20px;border-top:1px solid var(--border);font-weight:700;font-size:14px;color:var(--text-soft)}

/* ---------- Écrans auth secondaires ---------- */
.auth-title{font-family:var(--display);font-size:24px;margin:0 0 6px;font-weight:700}
.auth-sub{color:var(--text-soft);font-size:14px;margin:0 0 20px;line-height:1.55}
.auth-notice{background:var(--spot-soft);color:var(--spot);border-radius:12px;padding:12px 15px;font-size:13.5px;font-weight:600;margin-bottom:16px;line-height:1.5}

/* ---------- Bandeau cookies ---------- */
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:300;max-width:760px;margin:0 auto;background:var(--ink);color:#fff;border-radius:16px;padding:14px 18px;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:16px;font-size:13.5px}
.cookie-banner[hidden]{display:none}
.cookie-banner a{text-decoration:underline;font-weight:600}
.cookie-banner button{flex:none;background:var(--brand);color:#fff;padding:9px 16px;border-radius:10px;font-weight:700;font-size:13.5px}
@media (max-width:860px){.cookie-banner{bottom:80px;flex-direction:column;align-items:flex-start;gap:10px}.cookie-banner button{align-self:stretch}}

/* ---------- Liens légaux (pied auth) ---------- */
.auth-legal{margin-top:18px;text-align:center;font-size:12px;color:var(--text-faint);line-height:1.9}
.auth-legal a{color:var(--text-soft);text-decoration:underline;margin:0 5px}
.auth-legal a:hover{color:var(--text)}

/* ---------- Responsive ---------- */
@media (max-width:860px){
  body{padding-left:0;padding-bottom:70px}
  .sidebar{display:none}
  .topbar{
    display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:40;
    padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--border);
  }
  .topbar .brand-name{font-size:19px}
  .topbar-search{width:40px;height:40px;border-radius:12px;background:var(--surface-2);font-size:18px}
  .tabbar{
    display:flex;position:fixed;bottom:0;left:0;right:0;z-index:60;background:var(--surface);
    border-top:1px solid var(--border);padding:6px 8px 8px;justify-content:space-around;
  }
  .tab{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--text-faint);font-size:11px;padding:5px 12px;border-radius:12px}
  .tab span{font-size:21px}
  .tab.active{color:var(--brand)}
  .tab-fab{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;width:50px;height:50px;border-radius:16px;margin-top:-16px;box-shadow:0 8px 18px rgba(30,134,242,.4)}
  .tab-fab span{font-size:26px}
  .app{padding:18px 16px 90px}
  .page-title{font-size:26px}
  .dest-hero{height:230px}
  .dest-hero .dh-txt h1{font-size:30px}
}
@media (max-width:520px){
  .dest-grid{grid-template-columns:repeat(2,1fr)}
  .post-grid{grid-template-columns:repeat(2,1fr)}
}
