/* app.css — WEWO Premium Glass (clean v1)
   Objectif:
   - 1 design system commun
   - pages sans <style> inline
   - scoping par .page-xxx quand nécessaire
*/

/* =========================
   1) TOKENS / VARIABLES
   ========================= */
:root{
  /* Brand */
  --violet-1:#5f2da6;
  --violet-2:#7a3fe0;
  --violet-3:#9b5bff;

  /* Text */
  --ink:#0f0a1a;
  --white:#ffffff;
  --text-strong: rgba(255,255,255,.94);
  --text-soft:   rgba(255,255,255,.84);
  --text-dim:    rgba(255,255,255,.70);
  --text-micro:  rgba(255,255,255,.58);

  /* Glass */
  --glass-1: rgba(255,255,255,.10);
  --glass-2: rgba(255,255,255,.14);
  --glass-3: rgba(255,255,255,.20);
  --border-1: rgba(255,255,255,.18);
  --border-2: rgba(255,255,255,.28);

  /* Status */
  --danger:#ff4d6d;
  --success:#2ecc71;
  --warn:#ffb020;

  /* Shadows */
  --shadow-xl: 0 24px 70px rgba(0,0,0,.35);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.22);
  --shadow-md: 0 14px 40px rgba(0,0,0,.18);
  --shadow-sm: 0 10px 22px rgba(0,0,0,.12);

  /* Radius */
  --r-xxl: 22px;
  --r-xl:  18px;
  --r-lg:  16px;
  --r-md:  14px;
  --r-sm:  12px;

  /* Spacing */
  --gap-1: 6px;
  --gap-2: 10px;
  --gap-3: 12px;
  --gap-4: 14px;
  --gap-5: 16px;
  --gap-6: 18px;

  /* Focus */
  --focus: 0 0 0 4px rgba(255,255,255,.18);

  /* Container */
  --container: 420px;
  --container-wide: 960px;

  /* Motion */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --d-fast: 120ms;
  --d-med:  180ms;
}

/* =========================
   2) RESET & BASE
   ========================= */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-strong);
  min-height: 100dvh;

  /* Premium background */
  background:
    radial-gradient(1100px 720px at 22% -10%, rgba(255,255,255,.22), transparent 55%),
    radial-gradient(900px 620px at 95% 8%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(700px 520px at 72% 34%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, var(--violet-1), var(--violet-2));

  padding-top: max(18px, env(safe-area-inset-top));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

a{ color:#fff; }
img{ max-width:100%; height:auto; }


/* =========================
   3) LAYOUTS (PAGE FAMILIES)
   ========================= */

/* Centered “screens” (index/auth/verify/forgot/add_place-like) */
.page-index,
.page-auth,
.page-verify,
.page-forgot,
.page-profile,
.page-addplace{
  display:flex;
  justify-content:center;
  align-items:flex-start;
}

/* Internal app pages (profile/community/legal with drawer) */
.page-profile,
.page-communaute,
.page-legal{
  /* keep normal flow; content handles width */
}

/* Common wrappers */
.container{
  width: min(var(--container), 92vw);
  padding-top: 26px;
}
.wrap{
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px 14px 44px;
}

/* =========================
   4) DECOR (optional sparkles)
   ========================= */
.bg-sparkles{
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity: .35;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.30), transparent 18%),
    radial-gradient(circle at 76% 26%, rgba(255,255,255,.20), transparent 16%),
    radial-gradient(circle at 58% 74%, rgba(255,255,255,.18), transparent 18%),
    radial-gradient(circle at 22% 78%, rgba(255,255,255,.16), transparent 16%);
  filter: blur(.2px);
  animation: floatSparkles 12s var(--ease-out) infinite alternate;
}
@keyframes floatSparkles{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(0,-10px,0) scale(1.02); }
}

/* =========================
   5) GLASS CARD (keeps .card to avoid breaking)
   ========================= */
.card{
  background: linear-gradient(180deg, var(--glass-3), var(--glass-1));
  border: 1px solid var(--border-2);
  border-radius: var(--r-xxl);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(600px 220px at 15% 0%, rgba(255,255,255,.22), transparent 55%);
  pointer-events:none;
}
.card > *{ position: relative; }

/* inner helper */
.card-inner{ padding:14px; }

/* =========================
   6) BRAND / HERO (index/auth)
   ========================= */
.brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-bottom: 14px;
  text-align:center;
}
.logo{
  width:94px;
  height:auto;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.22));
  user-select:none;
  -webkit-user-drag:none;
}
.title{
  margin:0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing:.2px;
}
.subtitle{
  margin:0;
  font-size: 14px;
  opacity:.86;
  color: var(--text-soft);
}

.hero{
  margin-top:12px;
  color:#fff;
  padding:16px 16px 10px;
}
.hero h1{
  margin:0 0 8px;
  font-size:22px;
  line-height:1.15;
  letter-spacing:.2px;
  font-weight:950;
}
.hero p{
  margin:0;
  opacity:.92;
  color:rgba(255,255,255,.92);
  font-weight:650;
  line-height:1.35;
}

.divider{
  height:1px;
  background: rgba(255,255,255,.18);
  margin: 12px 0 14px;
  border-radius:999px;
}

/* =========================
   7) BUTTONS (premium)
   ========================= */
.btn{
  background:#5b2bbf;
  color:white;
  padding:10px 16px;
  font-weight:600;
  border-radius:999px;
  border:none;
}


    .btn-primary,
    .btn-secondary,
    .link-button{
      width: 100%;
      appearance:none;
      border:none;
      cursor:pointer;
      font-weight: 950;
      border-radius: 16px;
      padding: 13px 12px;
      transition: transform var(--dur-1) var(--ease-fast),
                  filter var(--dur-2) var(--ease),
                  background var(--dur-2) var(--ease),
                  border-color var(--dur-2) var(--ease),
                  box-shadow var(--dur-2) var(--ease);
      -webkit-tap-highlight-color: transparent;
      position: relative;
      z-index: 1;
    }
    .btn-primary:active,
    .btn-secondary:active,
    .link-button:active{ transform: scale(.99); }

    /* Primary = blanc premium */
    .btn-primary{
      background: #fff;
      color: var(--violet-1);
      box-shadow: var(--shadow-md);
    }
    .btn-primary:hover{ filter: brightness(.98); }
    .btn-primary:disabled{
      opacity: .55;
      cursor:not-allowed;
      box-shadow: none;
    }

    /* Secondary (si besoin plus tard) */
    .btn-secondary{
      background: rgba(255,255,255,.10);
      color: rgba(255,255,255,.94);
      border: 1px solid rgba(255,255,255,.22);
      box-shadow: var(--shadow-sm);
    }
    .btn-secondary:hover{
      background: rgba(255,255,255,.14);
      border-color: rgba(255,255,255,.30);
    }

.btn.small, .btn-primary.small, .btn-secondary.small{
  width:auto;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 850;
  border-radius: 12px;
}

.btn-danger-vulnerable {
  background:linear-gradient(135deg, #8b2fff, #8b2fff);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:0.15s ease;
  font-size:13px;
}

.btn-danger-vulnerable.active {
  background:linear-gradient(135deg, #8b2fff, #8b2fff);
  box-shadow:0 0 12px rgba(255,50,80,0.6);
}


/* Badge version */
.page-map .hint {
  position: fixed;
  top: 64px;          /* sous la top-bar */
  left: 12px;
  z-index: 1200;

  background: rgba(255,255,255,0.9);
  color: #5b2bbf;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Bouton flottant Ajouter un lieu – centré sous la barre */
.page-map .btn-purple {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1300;

  bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);

  padding: 14px 22px;
  border-radius: 999px;
}

/* Ajout de lieu */

.place-card {
  margin-top:8px;
}

.question-group {
  margin-bottom:14px;
}

.question-label {
  font-size:13px;
  margin:0 0 6px;
  font-weight:500;
}

.rating-options {
  display:flex;
  gap:8px;
  font-size:13px;
}

.rating-options label {
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom:0;
}

/* Profil */

.profile-main-line {
  font-size:18px;
  font-weight:600;
  margin:0 0 4px;
  color:#fff;
}

.profile-sub-line {
  margin:2px 0;
  font-size:13px;
  color:#fff;
}

.progress-wrapper {
  margin-top:12px;
}

.progress-label {
  font-size:12px;
  margin-bottom:4px;
}

.progress-bar {
  width:100%;
  height:8px;
  border-radius:999px;
  background:#eee;
  overflow:hidden;
}

.progress-fill {
  height:100%;
  background:linear-gradient(90deg, #5b2bbf, #ff4d6d);
  width:0%;
  transition:width 0.2s ease;
}

.trust-code {
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#fff;
}

.section-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.trust-list {
  margin-top:4px;
  margin-bottom:12px;
  color:#fff;
}

.trust-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 10px;
  border-radius:10px;
  background:#f7f5fb;
  margin-bottom:6px;
  font-size:13px;
}

.trust-item-main {
  display:flex;
  flex-direction:column;
}

.trust-item-actions {
  display:flex;
  gap:4px;
}

/* Responsive */

@media (min-width:768px) {
  .intro h1 {
    font-size:24px;
  }

  #map {
    height:65vh;
  }
}
.trust-marker-wrapper {
  /* on laisse Leaflet gérer la position */
}

.trust-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  border: 2px solid #fff;
}

.trust-marker--normal {
  background: #2ecc71; /* vert */
}

.trust-marker--vulnerable {
  background: #e74c3c; /* rouge */
}
.btn-danger-vulnerable.has-vulnerable-contact {
  box-shadow: 0 0 14px rgba(255, 0, 0, 0.7);
}
.btn-purple {
  display: inline-block;
  background-color: #7a42f4;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}


/* Bouton danger (actions irréversibles) */
.btn-danger{
  width: 100%;
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 950;
  border-radius: 16px;
  padding: 13px 12px;
  color: #fff;
  background: var(--danger);
  box-shadow: var(--shadow-md);
  -webkit-tap-highlight-color: transparent;
}
.btn-danger:active{ transform: scale(.99); }
.btn-danger:hover{ filter: brightness(.96); }


/* =========================
   PWA INSTALL BUTTON
   ========================= */

.install-btn{
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;

  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(123, 97, 255, .35);

  background: #ffffff;
  color: #7b61ff; /* violet WEWO */

  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;

  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  cursor: pointer;
}

/* =========================
   CARTE PLEIN ÉCRAN (Google Maps)
   ========================= */

.page-map,
.page-map body {
  height: 100%;
}

.page-map body {
  overflow: hidden;
}

/* On enlève le layout "page" qui réduit */
.page-map .main {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* On enlève la card autour si tu l'as */
.page-map .map-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin: 0;
}

/* La carte devient fond d'écran */
.page-map #map {
  position: fixed;
  inset: 0;           /* top/right/bottom/left = 0 */
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  z-index: 0;
}

/* Ta top-bar passe au-dessus de la carte */
.page-map .top-bar {
  position: fixed;    /* au lieu de sticky */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Boutons flottants sur la carte */
.page-map .map-footer {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1200;

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;

  padding: 0;          /* ⬅️ plus de “barre” */
  background: none;    /* ⬅️ supprimée */
  box-shadow: none;    /* ⬅️ supprimée */
  border-radius: 0;
}

/* Évite que les boutons deviennent énormes / cassent la ligne */
.page-map .map-footer .btn-primary,
.page-map .map-footer .btn-danger-vulnerable,
.page-map .map-footer #refreshMapBtn {
  flex: 0 0 auto;
}

/* Le bouton refresh en “petit rond” */
.btn-refresh {
  background: white;
  border: 2px solid #5b2bbf; /* violet WEWO */
  color: #5b2bbf;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.btn-refresh:active {
  transform: scale(0.95);
}


/* Link button (auth) */
.link-button{
  width:100%;
  border:1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.10);
  color:#fff;
  border-radius: 14px;
  padding: 12px 12px;
  cursor:pointer;
  font-weight: 800;
}

/* Forgot link chip */
.link-forgot{
  display:inline-block;
  margin-top: 10px;
  font-size: 13px;
  opacity:.86;
  color:#fff;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  padding: 8px 10px;
  border-radius: 999px;
}

/* Disabled */
.btn[disabled], button[disabled]{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}




/* =========================
   8) FORMS / INPUTS (glass)
   ========================= */
 .form-group{
      text-align:left;
      margin-bottom: 12px;
	
    }

    label{
      display:block;
      font-size: 13px;
      font-weight: 900;
      color: #fff; 
      margin-bottom: 6px;
      letter-spacing: .15px;
    }

    .field{
      position: relative;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"]{
      width:100%;
      padding: 12px 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,.20);
      background: rgba(255,255,255,.14);
      color:#fff;
      outline: none;
      font-size: 15px;
      font-weight: 750;
      transition: background var(--dur-2) var(--ease),
                  border-color var(--dur-2) var(--ease),
                  transform var(--dur-1) var(--ease-fast),
                  box-shadow var(--dur-2) var(--ease);
    }


/* Placeholder (texte d'exemple) */
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder{
  color: rgba(255,255,255,.65);
  font-weight: 800;
  opacity: 1;
}

/* Bonus Safari / iOS (au cas où) */
input[type="email"]::-webkit-input-placeholder,
input[type="password"]::-webkit-input-placeholder,
input[type="text"]::-webkit-input-placeholder{
  color: rgba(255,255,255,.65);
}


.field,
.input, .select,
.w-input,
textarea.w-input{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.14);
  color: #fff;
  -webkit-text-fill-color: #fff;
  padding: 12px 12px;
  outline: none;
  transition: border-color var(--d-fast) var(--ease-out),
              background var(--d-fast) var(--ease-out);
  font-weight: 750;
  backdrop-filter: blur(10px);
}

.input::placeholder, .w-input::placeholder{
  color: rgba(255,255,255,.65);
  font-weight: 800;
}
.field input:focus,
.field textarea:focus,
input:focus,
textarea:focus,
select:focus{
  border-color: rgba(255,255,255,.42);
  background: rgba(255,255,255,.14);
  box-shadow: var(--focus);
}

.select option{ color:#111; }

.helper, .hint{
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.35;
  margin-top: 6px;
}

/* Checkbox row */
.checkbox-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.86);
}
.checkbox-label input{ transform: translateY(2px); }

/* =========================
   9) TABS (auth)
   ========================= */
.tabs{
  display:flex;
  gap:10px;
  padding: 6px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  margin: 12px 0 12px;
}
.tab{
  flex:1;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.84);
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 900;
  cursor:pointer;
}
.tab.active{
  background:#fff;
  color: var(--violet-1);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}

/* =========================
   10) MESSAGES (auth)
   ========================= */
#authMessage{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.82);
}
.msg-error{ color: rgba(255,255,255,.92); background: rgba(255,77,109,.18); border:1px solid rgba(255,77,109,.30); padding:10px 12px; border-radius:14px; }
.msg-success{ color: rgba(255,255,255,.92); background: rgba(46,204,113,.16); border:1px solid rgba(46,204,113,.28); padding:10px 12px; border-radius:14px; }

/* =========================
   11) NAV / HEADER PATTERNS
   - macaron
   - drawer
   - contact stack
   ========================= */

/* Hide old top-bar everywhere by default if it exists in HTML legacy */
.top-bar{ display:none !important; }

/* Macaron (logo button) */
.wewo-macaron{
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 9999 !important;

  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;

  width: auto;
  height: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wewo-macaron img, .wewo-macaron .logo-icon{
  display:block;
  width:60px;
  height:60px;
}

/* Push content below macaron for internal pages */
.page-profile .main,
.page-communaute .wrap,
.page-legal .wrap{
  padding-top: 76px;
}

/* Stack pastilles en haut à droite (sous la top-bar) */
.contact-status-stack{
  position: fixed;
  top: 66px;          /* ajuste si ta top-bar est plus haute */
  right: 12px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Pastille contact */
.contact-pill{
  display:flex;
  align-items:center;
  gap:8px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #eee;
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  cursor: pointer;
  user-select: none;
  max-width: 220px;
}

.contact-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.contact-name{
  font-size: 13px;
  font-weight: 650;
  color:#222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-dot--online{ background:#2ecc71; }
.contact-dot--vulnerable{ background:#ff2d55; }
/* offline récent (<= 6h) */
.contact-dot--recent{ background:#b0b0b0; opacity:0.85; }

/* optionnel : rendre le pill un peu plus "désactivé" en recent */
.contact-pill--recent{
  opacity: 0.92;
  border-color: #f0f0f0;
}


/* petit pulse pour vulnérable (optionnel mais utile) */
@keyframes pulseRed {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,109,0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(255,77,109,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); }
}
.contact-pill--vulnerable .contact-dot--vulnerable{
  animation: pulseRed 1.2s infinite;
}




/* Drawer overlay + drawer — (WEWO drawer ancien, gardé tel quel) */

/* Bouton icône (logo cliquable) */
.icon-btn{
  background: transparent;
  border: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.icon-btn:active{ transform: scale(0.98); }

/* Drawer overlay */
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.18);   /* ou transparent si tu veux */
  z-index: 9997;                 /* (aligné avec le système premium) */

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .22s ease, visibility 0s linear .22s;
}

/* overlay visible quand menu ouvert */
.drawer-overlay.open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition: opacity .22s ease, visibility 0s;
}

/* Drawer (menu latéral) */
.drawer{
  position: fixed;
  top: 50px;
  left: 0;
  height: 100dvh;
  width: min(82vw, 180px);
  background: transparent;
  z-index: 9999;                 /* (au-dessus de l’overlay) */

  transform: translateX(-102%);
  transition: transform .22s ease;

  display: flex;
  flex-direction: column;
}
.drawer.open{ transform: translateX(0); }

.drawer-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-bottom: none;
}
.drawer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.drawer-logo{
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.drawer-name{
  font-weight: 700;
  color: #5b2bbf;
}
.drawer-close{
  border:0;
  background:#f2effa;
  color:#5b2bbf;
  border-radius: 10px;
  padding: 8px 10px;
  cursor:pointer;
}

.drawer-nav{
  padding: 10px;
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.drawer-link{
  text-decoration:none;
  color:#5b2bbf;
  padding: 12px 12px;
  border-radius: 12px;
  background: #f7f5fb;
}
.drawer-link:hover{ filter: brightness(0.98); }

.badge-dev{
  margin-left: 8px;
  font-size: 12px;
  color:#5b2bbf;
  background:#efe9ff;
  padding: 3px 8px;
  border-radius: 999px;
}

.drawer-footer{
  margin-top:auto;
  padding: 12px;
  border-top: 1px solid #eee;
}
.drawer-logout{
  width:100%;
  border:0;
  border-radius: 14px;
  padding: 12px;
  cursor:pointer;
  background: #ffebee;
  color: #b71c1c;
  font-weight: 700;
}


/* =========================
   12) PROFILE (trust list)
   ========================= */
.profile-main-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.trust-code{
  font-weight: 950;
  letter-spacing:.4px;
  font-size: 14px;
  opacity:.95;
}

.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin: 0 0 10px;
}
.section-header h2, .section-header h3{
  margin:0;
  font-size: 16px;
  font-weight: 950;
}

.trust-list{ display:flex; flex-direction:column; gap:10px; }

.trust-item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}
.trust-item.pending{ background: rgba(255,255,255,.10); }

.trust-item-main strong{
  display:block;
  font-size: 14px;
  font-weight: 950;
}
.trust-item-actions{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }

/* =========================
   13) COMMUNITY (cards, pills, modal, fab)
   ========================= */
.controls{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}
@media (min-width:760px){
  .controls{ grid-template-columns: 1.2fr .8fr .8fr; }
}

.pills{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.pill{
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.14);
  color:#fff;
  border-radius:999px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:950;
  user-select:none;
}
.pill.active{
  background:#fff;
  color:var(--violet-1);
  border:1px solid rgba(255,255,255,.85);
  box-shadow:0 12px 22px rgba(0,0,0,.12);
}

.section-title{
  margin:18px 2px 10px;
  color:#fff;
  font-weight:950;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.section-title small{
  font-weight:850;
  opacity:.9;
  color:rgba(255,255,255,.92);
}

/* category tiles */
.cats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
@media (min-width:760px){
  .cats{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cat{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  border-radius:18px;
  padding:12px 12px;
  cursor:pointer;
  backdrop-filter: blur(10px);
  box-shadow:0 10px 22px rgba(0,0,0,.12);
  transition:.12s transform;
  user-select:none;
  min-height:84px;
}
.cat:active{ transform: translateY(1px); }
.cat .emoji{ font-size:18px; }
.cat .label{ margin-top:6px; font-weight:950; line-height:1.15; }
.cat .hint{ margin-top:2px; font-weight:800; opacity:.9; font-size:12px; }

/* feed cards inside community can reuse .card + .card-inner */
.feed{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

/* badges/chips inside community (kept from HTML names) */
.meta{ display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; margin-bottom:8px; }
.badges{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:950;
  font-size:12px;
  border-radius:999px;
  padding:6px 10px;
  background:rgba(255,255,255,.10);
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
}
.badge.paid{ background:rgba(255,176,32,.16); border-color:rgba(255,176,32,.26); color:#fff; }
.badge.free{ background:rgba(46,204,113,.14); border-color:rgba(46,204,113,.24); color:#fff; }
.badge.pro{ background:rgba(155,91,255,.14); border-color:rgba(155,91,255,.22); color:#fff; }
.time{ color:rgba(255,255,255,.72); font-weight:850; font-size:12px; }

.desc{ margin:0 0 10px; color:rgba(255,255,255,.86); font-weight:650; line-height:1.35; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }

.chips{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.chip{
  font-size:12px;
  font-weight:900;
  color:rgba(255,255,255,.80);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  padding:6px 10px;
}

.cta{ display:flex; gap:8px; flex-wrap:wrap; }
.btn.primary{
  background:linear-gradient(135deg, var(--violet-1), var(--violet-3));
  color:#fff;
  box-shadow:0 14px 26px rgba(91,43,191,.28);
  border:0;
  width:auto;
  padding:10px 12px;
  border-radius:14px;
}
.btn.ghost{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  width:auto;
  padding:10px 12px;
  border-radius:14px;
}
.btn.ghost:active, .btn.primary:active{ transform: translateY(1px); }

/* FAB */
.fab{
  position:fixed;
  right:14px;
  bottom:16px;
  z-index:60;
  border:0;
  border-radius:999px;
  padding:12px 14px;
  font-weight:950;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg, var(--violet-1), var(--violet-3));
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  display:flex; align-items:center; gap:8px;
}
.fab:active{ transform: translateY(1px); }

/* Modal */
.overlay{
  position:fixed; inset:0;
  background:rgba(10,8,16,.52);
  display:none;
  align-items:flex-end;
  justify-content:center;
  padding:14px;
  z-index:999;
}
.overlay.show{ display:flex; }
.modal{
  width:min(720px, 100%);
  background: #fff;
  color: #111;
  border-radius:22px;
  box-shadow: var(--shadow-xl);
  overflow:hidden;
}
.modal-head{
  padding:12px 14px;
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-bottom:1px solid rgba(0,0,0,.08);
  background:linear-gradient(135deg, rgba(91,43,191,.10), rgba(155,91,255,.10));
}
.modal-head strong{ font-weight:950; }
.close{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:14px;
  padding:8px 10px;
  cursor:pointer;
  font-weight:950;
}
.modal-body{ padding:14px; }
.grid{ display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:760px){ .grid{ grid-template-columns: 1fr 1fr; } }
.field label{
  color: rgba(25,20,37,.86);
}

.field input,
.field textarea,
.field select{
  width:100%;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  padding:12px 12px;
  font-weight:750;
  outline:none;

  color: #fff; /* ← TEXTE SAISI */
  background: transparent; /* si fond glass / violet */
  -webkit-text-fill-color: #fff; /* Safari / mobile */
}
.field textarea{ min-height:92px; resize:vertical; }
.modal-actions{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap;
  padding:12px 14px;
  border-top:1px solid rgba(0,0,0,.08);
  background:rgba(0,0,0,.02);
}
.foot{
  margin-top:14px;
  color:rgba(255,255,255,.92);
  font-weight:750;
  opacity:.95;
  font-size:12px;
  line-height:1.35;
  padding:0 2px;
}

/* =========================
   14) LEGAL PAGES (typography)
   ========================= */
.page-legal .wrap{ max-width: var(--container-wide); }
.page-legal h2{ margin:0 0 8px; font-size:22px; letter-spacing:.2px; }
.page-legal h3{ margin:0 0 8px; font-size:18px; }
.page-legal p, .page-legal li{ line-height:1.55; font-size:15px; color: var(--text-strong); }
.page-legal .meta{ font-size:13px; color: var(--text-dim); }
.page-legal ul{ margin:8px 0 0 18px; padding:0; }
.note{
  margin-top:10px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.78);
  font-size:14px;
  line-height:1.5;
}
.footer{
  margin-top:18px;
  font-size:13px;
  color: rgba(255,255,255,.72);
  text-align:center;
}
.pill{
  display:inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.75);
}


/* WEWO PLACES — force emoji visible inside Leaflet divIcon */
.leaflet-marker-icon.wewo-place-pin,
.leaflet-marker-icon.wewo-place-pin *{
  color: #0f0a1a !important;   /* noir WEWO (ink) */
}
/* ADD_PLACE — map visible */
.page-addplace #map{
  height: 230px;         /* ou 260px si tu veux plus grand */
  width: 100%;
  border-radius: 16px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

/* ADD_PLACE — catégorie sélectionnée */
.page-addplace .cat.active{
  background: #ffffff;
  color: var(--violet-1);
  border-color: rgba(255,255,255,.9);
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
}

.page-addplace .cat.active .label,
.page-addplace .cat.active .hint{
  color: var(--violet-1);
}

.page-addplace .cat.active .emoji{
  filter: none;
}
