  .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
  :root{
    --violet:#a855f7;
    --violet-deep:#7c3aed;
    --bg-dark:#08060d;
    --bg-light:#f4f2f8;
    --text-dark:#f5f3fa;
    --text-light:#161320;
    --railw:64px;
    --headerh:82px;
    /* fond de .profil-card aplati en couleur opaque : sert d'anneau autour
       de l'avatar qui chevauche la couverture (un anneau translucide
       laisserait voir la photo au travers) */
    --card-solid:#100a19;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:var(--bg-dark);
    color:var(--text-dark);
    overflow-x:hidden;
    transition:background .5s ease,color .5s ease;
    cursor:none;
  }
  body.light{background:var(--bg-light);color:var(--text-light);--card-solid:#efebf8;}

  a{color:inherit;text-decoration:none;}

  /* ambient blobs */
  .blob{position:fixed;border-radius:50%;-webkit-filter:blur(90px);filter:blur(90px);opacity:.5;z-index:0;pointer-events:none;transition:opacity .5s;}
  .blob.b1{width:420px;height:420px;background:#7c3aed;top:-120px;right:-80px;}
  .blob.b2{width:360px;height:360px;background:#c026d3;bottom:-140px;left:-100px;opacity:.35;}
  body.light .blob{opacity:.2;}

  /* ---- bandeau « confirmez votre adresse » ----
     Dans le flux, au-dessus du header : il défile avec la page plutôt
     que de rogner en permanence la hauteur utile. */
  .verif-bandeau{
    position:relative;z-index:95;
    display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
    padding:11px 20px;
    background:linear-gradient(135deg,rgba(251,191,36,.16),rgba(168,85,247,.12));
    border-bottom:1px solid rgba(251,191,36,.3);
    font-size:13.5px;line-height:1.5;text-align:center;
  }
  .verif-bandeau[hidden]{display:none;}
  .verif-texte strong{font-weight:700;color:#fbbf24;}
  .verif-btn{
    font-family:inherit;font-size:13px;font-weight:600;color:inherit;cursor:none;
    background:transparent;border:1px solid rgba(251,191,36,.5);
    border-radius:999px;padding:6px 14px;flex:none;transition:background .18s;
  }
  .verif-btn:hover:not(:disabled){background:rgba(251,191,36,.16);}
  .verif-btn:disabled,.verif-btn.is-busy{opacity:.5;cursor:default;}
  @media(max-width:520px){.verif-bandeau{font-size:12.5px;padding:10px 14px;gap:10px;}}

  /* ---- top bar ---- */
  header{
    position:-webkit-sticky;position:sticky;top:0;z-index:90;
    display:flex;align-items:center;justify-content:space-between;
    padding:18px 40px;
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    background:rgba(8,6,13,.55);
    border-bottom:1px solid rgba(168,85,247,.18);
    transition:background .5s;
  }
  body.light header{background:rgba(244,242,248,.6);border-bottom-color:rgba(124,58,237,.15);}
  .logo-group{display:flex;align-items:center;gap:10px;}
  .brand-name{display:none;font-weight:700;font-size:19px;letter-spacing:-.3px;}
  .logo-mini{height:46px;width:auto;display:block;}
  nav{display:flex;gap:26px;font-size:14px;font-weight:500;}
  nav a{position:relative;display:flex;align-items:center;justify-content:center;
    color:inherit;opacity:.7;transition:opacity .2s,color .2s;}
  nav a:hover,nav a:focus,nav a.active{opacity:1;color:var(--violet);}
  nav svg{width:24px;height:24px;display:block;stroke:currentColor;fill:none;
    stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
  /* infobulle desktop : sous l'icone */
  nav a::after{
    content:attr(data-label);
    position:absolute;top:calc(100% + 10px);left:50%;transform:translateX(-50%) translateY(-4px);
    padding:5px 10px;border-radius:8px;white-space:nowrap;
    font-size:11px;font-weight:600;letter-spacing:.2px;color:#fff;
    background:linear-gradient(135deg,#a855f7,#7c3aed);
    box-shadow:0 6px 16px rgba(124,58,237,.4);
    opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;}
  nav a::before{
    content:'';position:absolute;top:calc(100% + 5px);left:50%;transform:translateX(-50%) translateY(-4px);
    border:5px solid transparent;border-bottom-color:#7c3aed;
    opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;}
  nav a:hover::after,nav a:focus::after,nav a:hover::before,nav a:focus::before{
    opacity:1;transform:translateX(-50%) translateY(0);}
  .top-actions{display:flex;align-items:center;gap:14px;}

  /* ---- etat connexion : le menu membre reste cache tant qu'on n'est pas connecte / inscrit ---- */
  .main-nav{display:none;}
  body.logged-in .main-nav{display:flex;}
  /* hors connexion : Connexion/Rejoindre/Creer mon compte ; connecte : avatar + menu profil */
  body.logged-in #btnLogin,body.logged-in #btnJoin,body.logged-in #btnCreate{display:none;}

  /* ---- avatar + menu profil (visible une fois connecte) ---- */
  .profile{display:none;position:relative;}
  body.logged-in .profile{display:block;}
  .avatar{
    width:40px;height:40px;border-radius:50%;border:none;padding:0;cursor:none;
    background:linear-gradient(135deg,#a855f7,#7c3aed);
    box-shadow:0 0 14px rgba(168,85,247,.45);
    display:flex;align-items:center;justify-content:center;
    transition:transform .2s,box-shadow .2s;
  }
  .avatar:hover{transform:translateY(-1px);box-shadow:0 0 22px rgba(168,85,247,.7);}
  .avatar svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
  .profile-menu{
    position:absolute;top:calc(100% + 12px);right:0;min-width:196px;
    background:rgba(20,14,32,.96);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    border:1px solid rgba(168,85,247,.25);border-radius:14px;
    box-shadow:0 18px 40px rgba(8,6,13,.5);padding:8px;
    opacity:0;visibility:hidden;transform:translateY(-6px);
    transition:opacity .2s,transform .2s,visibility .2s;z-index:40;
  }
  body.light .profile-menu{background:rgba(255,255,255,.98);border-color:rgba(124,58,237,.18);box-shadow:0 18px 40px rgba(124,58,237,.18);}
  .profile.open .profile-menu{opacity:1;visibility:visible;transform:translateY(0);}
  .profile-head{padding:8px 12px 10px;border-bottom:1px solid rgba(168,85,247,.18);margin-bottom:6px;}
  .profile-head .pname{font-size:14px;font-weight:600;}
  .profile-head .pmail{font-size:11px;opacity:.6;}
  .profile-menu a,.profile-menu button{
    display:block;width:100%;padding:10px 12px;border-radius:9px;border:none;background:transparent;
    font-family:inherit;font-size:13px;font-weight:500;color:inherit;text-align:left;
    cursor:none;transition:background .15s,color .15s;
  }
  .profile-menu a:hover,.profile-menu button:hover{background:rgba(168,85,247,.14);color:var(--violet);}
  .profile-menu .sep{height:1px;margin:6px 4px;background:rgba(168,85,247,.18);padding:0;}
  .profile-menu .logout{color:#f87171;}
  .profile-menu .logout:hover{background:rgba(248,113,113,.14);color:#f87171;}
  .profile-menu .menu-support{color:#f43f5e;font-weight:600;}
  .profile-menu .menu-support:hover{background:rgba(244,63,94,.12);color:#f43f5e;}
  .profile-menu .menu-support::before{content:'♥ ';}
  .switch{
    width:52px;height:28px;border-radius:999px;
    border:1px solid rgba(168,85,247,.5);
    background:rgba(168,85,247,.12);
    position:relative;cursor:none;flex:none;
  }
  .switch .knob{
    position:absolute;top:2px;left:2px;width:22px;height:22px;border-radius:50%;
    background:linear-gradient(135deg,#c084fc,#7c3aed);
    transition:left .3s ease;display:flex;align-items:center;justify-content:center;font-size:11px;
  }
  body.light .switch .knob{left:26px;}
  .btn{
    border:none;border-radius:999px;padding:9px 20px;font-size:13px;font-weight:600;
    cursor:none;font-family:inherit;transition:transform .2s,box-shadow .2s;
  }
  .btn.solid{background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;box-shadow:0 0 16px rgba(168,85,247,.45);}
  .btn.solid:hover{transform:translateY(-2px);box-shadow:0 0 26px rgba(168,85,247,.7);}
  .btn.line{background:transparent;color:inherit;border:1px solid rgba(168,85,247,.5);}
  .btn.line:hover{background:rgba(168,85,247,.1);}

  /* ---- hero ---- */
  .hero{
    position:relative;z-index:1;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    max-width:720px;margin:0 auto;padding:70px 40px 40px;
  }
  .hero-logo{width:100%;max-width:300px;height:auto;display:block;margin:0 auto 28px;}
  .hero .eyebrow{
    display:inline-block;font-size:12px;letter-spacing:2px;text-transform:uppercase;
    color:var(--violet);border:1px solid rgba(168,85,247,.4);
    padding:6px 14px;border-radius:999px;margin-bottom:22px;
  }
  .hero h1{font-size:clamp(34px,4.4vw,58px);line-height:1.05;font-weight:700;letter-spacing:-1px;margin-bottom:18px;}
  .hero h1 em{
    font-style:normal;
    background:linear-gradient(120deg,#c084fc,#7c3aed);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  }
  .hero p{max-width:480px;font-size:16px;line-height:1.7;opacity:.72;margin:0 auto 30px;}
  .hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;}
  /* mise en avant de la gratuite */
  .hero .eyebrow strong{color:#fff;font-weight:700;
    background:linear-gradient(135deg,#a855f7,#7c3aed);
    padding:2px 9px;border-radius:999px;margin:0 3px;
    box-shadow:0 0 12px rgba(168,85,247,.5);}
  .free-note{margin:16px auto 0;font-size:13.5px;font-weight:600;color:var(--violet);letter-spacing:.2px;}
  .free-note strong{font-weight:800;}
  /* statistiques du hero : masquees tant que la communaute n'est pas assez grande */
  .hero-stats{display:none;gap:34px;margin-top:38px;justify-content:center;}
  body.has-stats .hero-stats{display:flex;}
  .hero-stats div span{display:block;}
  .hero-stats .num{font-size:26px;font-weight:700;color:var(--violet);}
  .hero-stats .lbl{font-size:12px;opacity:.6;letter-spacing:.5px;}

  /* ---- bandeau texte defilant (marquee) ---- */
  .ticker{position:relative;z-index:1;overflow:hidden;white-space:nowrap;width:100%;
    margin-top:34px;border-radius:16px;
    border:1px solid rgba(168,85,247,.22);
    background:linear-gradient(90deg,rgba(168,85,247,.14),rgba(124,58,237,.06));
    padding:16px 0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
    mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);}
  body.light .ticker{background:linear-gradient(90deg,rgba(124,58,237,.10),rgba(168,85,247,.05));}
  .ticker__track{display:inline-flex;white-space:nowrap;will-change:transform;
    animation:ticker-scroll 30s linear infinite;}
  .ticker:hover .ticker__track{animation-play-state:paused;}
  .ticker__item{display:inline-block;padding:0 34px;
    font-size:clamp(19px,2.6vw,28px);font-weight:700;letter-spacing:.5px;color:var(--violet);}
  .ticker__item em{font-style:normal;
    background:linear-gradient(120deg,#c084fc,#7c3aed);
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;}
  .ticker__item::before{content:'';display:inline-block;vertical-align:middle;
    width:9px;height:9px;border-radius:50%;background:var(--violet);
    box-shadow:0 0 10px var(--violet);margin-right:34px;opacity:.9;}
  @keyframes ticker-scroll{from{transform:translateX(0);}to{transform:translateX(-50%);}}
  @media(prefers-reduced-motion:reduce){.ticker__track{animation:none;}}

  /* ---- events ---- */
  .events{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:50px 40px 90px;}
  .events-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:30px;flex-wrap:wrap;gap:14px;}
  .events-head h2{font-size:30px;font-weight:700;letter-spacing:-.5px;}
  .events-head p{opacity:.6;font-size:14px;}
  .grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px;}
  .ev{
    position:relative;border-radius:20px;overflow:hidden;
    border:1px solid rgba(168,85,247,.25);
    background:rgba(168,85,247,.05);
    transition:transform .28s,box-shadow .28s,border-color .28s;
  }
  body.light .ev{background:rgba(124,58,237,.04);border-color:rgba(124,58,237,.18);}
  .ev:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(124,58,237,.3);border-color:rgba(168,85,247,.6);}
  .ev-banner{height:120px;position:relative;background-size:cover;background-position:center;}
  .ev-banner::after{content:'';position:absolute;inset:0;
    background:linear-gradient(180deg,rgba(15,8,26,.12) 0%,rgba(15,8,26,.55) 100%);}
  .ev-banner .tag{
    position:absolute;top:12px;left:12px;z-index:1;font-size:11px;font-weight:600;
    text-transform:uppercase;letter-spacing:.6px;color:#fff;
    background:rgba(0,0,0,.45);padding:4px 12px;border-radius:999px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  }
  .ev-body{padding:18px 20px 20px;}
  .ev-body h3{font-size:19px;margin-bottom:8px;}
  .ev-body p{font-size:13px;opacity:.65;line-height:1.5;margin-bottom:16px;}
  .ev-meta{display:flex;justify-content:space-between;align-items:center;font-size:12px;opacity:.7;}
  .ev-meta .members{display:flex;align-items:center;gap:6px;color:var(--violet);font-weight:600;}
  .dot{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 8px #22c55e;}

  /* ---- features strip ---- */
  .features{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:0 40px 90px;
    display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;}
  .feat{padding:24px;border-radius:18px;border:1px solid rgba(168,85,247,.2);background:rgba(168,85,247,.04);}
  .feat .ic{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;
    background:linear-gradient(135deg,#a855f7,#7c3aed);font-size:20px;margin-bottom:14px;
    box-shadow:0 4px 14px rgba(124,58,237,.35);}
  .feat .ic svg{width:23px;height:23px;stroke:#fff;fill:none;stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round;}
  .feat h4{font-size:16px;margin-bottom:6px;}
  .feat p{font-size:13px;opacity:.65;line-height:1.55;}

  footer{position:relative;z-index:1;text-align:center;padding:30px;font-size:12px;opacity:.5;
    border-top:1px solid rgba(168,85,247,.15);}
  .footer-links{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;
    gap:10px 24px;margin-bottom:14px;font-size:13px;opacity:.95;}
  .footer-links a{display:inline-flex;align-items:center;gap:7px;color:var(--violet);font-weight:600;}
  .footer-links a:hover{text-decoration:underline;}
  .footer-links svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;
    stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}

  /* ---- cursor halo ---- */
  .halo{position:fixed;top:0;left:0;width:280px;height:280px;border-radius:50%;
    background:radial-gradient(circle,rgba(0,255,255,.35) 0%,rgba(255,0,255,.15) 35%,transparent 70%);
    -webkit-filter:blur(8px);filter:blur(8px);pointer-events:none;transform:translate(-50%,-50%);
    transition:width .2s ease,height .2s ease,transform .08s ease-out;z-index:9999;mix-blend-mode:screen;}
  .halo::before{content:'';position:absolute;top:50%;left:50%;width:12px;height:12px;border-radius:50%;
    background:#fff;box-shadow:0 0 10px 4px cyan,0 0 20px 8px magenta,0 0 40px 16px rgba(0,255,255,.6);
    transform:translate(-50%,-50%);}
  .halo.clicked{width:400px;height:400px;
    background:radial-gradient(circle,rgba(255,0,255,.45) 0%,rgba(0,255,255,.2) 40%,transparent 70%);}
  .ripple{position:fixed;top:0;left:0;width:20px;height:20px;border-radius:50%;border:2px solid cyan;
    box-shadow:0 0 15px cyan,0 0 30px magenta;pointer-events:none;transform:translate(-50%,-50%);
    animation:ripple-anim .6s ease-out forwards;z-index:9998;}
  @keyframes ripple-anim{0%{width:20px;height:20px;opacity:1;}100%{width:200px;height:200px;opacity:0;}}

  /* ---- halo : variante mode clair (violet, plus dense, visible sur fond clair) ---- */
  body.light .halo{
    mix-blend-mode:normal;
    background:radial-gradient(circle,rgba(124,58,237,.45) 0%,rgba(168,85,247,.22) 40%,transparent 72%);}
  body.light .halo::before{
    background:#7c3aed;
    box-shadow:0 0 10px 4px rgba(124,58,237,.9),0 0 20px 8px rgba(168,85,247,.7),0 0 40px 16px rgba(124,58,237,.4);}
  body.light .halo.clicked{
    background:radial-gradient(circle,rgba(124,58,237,.55) 0%,rgba(192,38,211,.28) 40%,transparent 72%);}
  body.light .ripple{
    border-color:#7c3aed;
    box-shadow:0 0 15px rgba(124,58,237,.8),0 0 30px rgba(192,38,211,.6);}

  /* icone seule (mobile) - masquee par defaut sur desktop */
  .logo-icon{display:none;}

  /* ---- barre de navigation mobile (icones SVG) - masquee par defaut sur desktop ---- */
  .mobile-nav{display:none;}

  @media(max-width:860px){
    header{padding:14px 20px;background:var(--bg-dark);backdrop-filter:none;border-bottom:1px solid rgba(168,85,247,.18);}
    body.light header{background:var(--bg-light);}
    nav{display:none;}
    /* le nav du header reste masque sur mobile meme connecte (c'est la barre du bas qui prend le relais) */
    body.logged-in .main-nav{display:none;}
    .hero{padding:50px 22px 30px;}
    .events,.features{padding-left:22px;padding-right:22px;}
    body{cursor:auto;}
    .halo{display:none;}

    /* mobile : ic\u00f4ne seule (petit) dans le header + nom du site \u00e0 c\u00f4t\u00e9 ; wordmark complet (grand) en hero comme desktop */
    .logo-mini.wordmark{display:none;}
    .logo-mini.logo-icon{display:block;height:40px;width:auto;}
    .brand-name{display:block;}
    .hero-logo.wordmark{display:block;max-width:280px;}
    .hero-logo.logo-icon{display:none;}

    /* barre d'icones SVG en bas de l'ecran */
    .mobile-nav{
      display:flex;justify-content:space-around;align-items:center;
      position:fixed;left:0;right:0;bottom:0;z-index:30;
      padding:8px 6px 8px;
      padding-bottom:calc(8px + constant(safe-area-inset-bottom));
      padding-bottom:calc(8px + env(safe-area-inset-bottom));
      background:rgba(8,6,13,.82);
      -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
      border-top:1px solid rgba(168,85,247,.22);
    }
    body.light .mobile-nav{background:rgba(244,242,248,.85);border-top-color:rgba(124,58,237,.16);}
    /* la barre du bas n'apparait qu'une fois connecte / inscrit */
    body:not(.logged-in) .mobile-nav{display:none;}
    .mobile-nav a{
      position:relative;
      display:flex;align-items:center;justify-content:center;
      flex:1;padding:8px 0;
      color:inherit;opacity:.6;transition:opacity .2s,color .2s;
    }
    .mobile-nav a:hover,.mobile-nav a:active,.mobile-nav a.active{opacity:1;color:var(--violet);}
    .mobile-nav svg{width:26px;height:26px;display:block;stroke:var(--pic,currentColor);fill:none;
      stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
    .mobile-nav a.active{opacity:1;}   /* picto en couleur, actif = pleine opacité */
    /* infobulle au survol / appui : nom de la rubrique */
    .mobile-nav a::after{
      content:attr(data-label);
      position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%) translateY(4px);
      padding:5px 10px;border-radius:8px;white-space:nowrap;
      font-size:11px;font-weight:600;letter-spacing:.2px;color:#fff;
      background:linear-gradient(135deg,#a855f7,#7c3aed);
      box-shadow:0 6px 16px rgba(124,58,237,.4);
      opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
    }
    .mobile-nav a::before{
      content:'';position:absolute;bottom:calc(100% + 1px);left:50%;transform:translateX(-50%) translateY(4px);
      border:5px solid transparent;border-top-color:#7c3aed;
      opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;
    }
    .mobile-nav a:hover::after,.mobile-nav a:focus::after,.mobile-nav a:active::after,
    .mobile-nav a:hover::before,.mobile-nav a:focus::before,.mobile-nav a:active::before{
      opacity:1;transform:translateX(-50%) translateY(0);
    }
    /* laisse respirer le contenu au-dessus de la barre fixe */
    footer{margin-bottom:64px;}
  }

/* ================================================================
   FIL D'ACTUALITE (reserve aux membres connectes)
   ================================================================ */
.feed{display:none;position:relative;z-index:1;max-width:680px;margin:0 auto;padding:0 40px 90px;}
body.logged-in .feed{display:block;}
.feed-head{margin-bottom:24px;}
.feed-head h2{font-size:30px;font-weight:700;letter-spacing:-.5px;margin-bottom:6px;}
.feed-head p{opacity:.6;font-size:14px;}

/* --- zone de publication --- */
.composer{border:1px solid rgba(168,85,247,.25);background:rgba(168,85,247,.05);
  border-radius:20px;padding:18px;margin-bottom:28px;}
body.light .composer{background:rgba(124,58,237,.04);border-color:rgba(124,58,237,.18);}
.composer-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  border:2px dashed rgba(168,85,247,.4);border-radius:14px;padding:26px 18px;text-align:center;
  cursor:none;transition:background .2s,border-color .2s;}
.composer-drop:hover,.composer-drop.dragover{background:rgba(168,85,247,.1);border-color:var(--violet);}
.composer-drop svg{width:30px;height:30px;stroke:var(--violet);fill:none;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;}
.composer-drop span{font-size:14px;font-weight:600;color:var(--violet);}
.composer-drop small{font-size:11px;opacity:.6;}
.previews{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px;margin-top:14px;}
.preview{position:relative;aspect-ratio:1;border-radius:12px;overflow:hidden;border:1px solid rgba(168,85,247,.25);}
.preview img{width:100%;height:100%;object-fit:cover;display:block;}
.preview button{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;border:none;
  background:rgba(0,0,0,.6);color:#fff;font-size:14px;line-height:1;cursor:none;
  display:flex;align-items:center;justify-content:center;transition:background .2s;}
.preview button:hover{background:#ef4444;}
.composer textarea{width:100%;margin-top:14px;padding:12px 14px;border-radius:12px;resize:vertical;
  border:1px solid rgba(168,85,247,.25);background:transparent;color:inherit;
  font-family:inherit;font-size:14px;line-height:1.5;}
.composer textarea:focus{outline:none;border-color:var(--violet);}
.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-top:14px;flex-wrap:wrap;}
.composer-hint{font-size:11px;opacity:.55;max-width:60%;}
.composer .btn:disabled{opacity:.4;transform:none;box-shadow:none;}

/* --- publications --- */
.posts{display:flex;flex-direction:column;gap:22px;}
.post{border:1px solid rgba(168,85,247,.22);background:rgba(168,85,247,.04);
  border-radius:20px;overflow:hidden;animation:post-in .35s ease both;}
body.light .post{background:rgba(124,58,237,.03);border-color:rgba(124,58,237,.16);}
@keyframes post-in{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
.post-head{display:flex;align-items:center;gap:12px;padding:14px 18px;}
.post-avatar{width:38px;height:38px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-weight:700;font-size:13px;}
.post-author{font-size:14px;font-weight:600;}
.post-time{font-size:11px;opacity:.55;}
.post-media{display:grid;gap:3px;}
.post-media.multi{grid-template-columns:1fr 1fr;}
.post-media img,.post-ph{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;}
.post-caption{padding:14px 18px 0;font-size:14px;line-height:1.6;}
.post-actions{display:flex;gap:20px;padding:12px 18px 16px;}
.post-btn{display:inline-flex;align-items:center;gap:6px;background:none;border:none;color:inherit;
  font-family:inherit;font-size:13px;font-weight:600;opacity:.7;cursor:none;
  transition:opacity .2s,color .2s;}
.post-btn:hover{opacity:1;color:var(--violet);}
.post-btn.liked{color:#f43f5e;opacity:1;}
.post-btn.liked svg{fill:#f43f5e;}
.post-btn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}

/* --- scroll infini --- */
.feed-sentinel{display:flex;justify-content:center;padding:26px 0;}
.spinner{width:26px;height:26px;border-radius:50%;
  border:3px solid rgba(168,85,247,.25);border-top-color:var(--violet);
  animation:spin .8s linear infinite;}
@keyframes spin{to{transform:rotate(360deg);}}
.feed-end{text-align:center;font-size:13px;opacity:.55;padding:20px 0;}

@media(max-width:860px){
  .feed{padding-left:22px;padding-right:22px;}
  .composer-hint{max-width:100%;}
}
/* --- badge photo traitee (EXIF retire) --- */
.preview-badge{position:absolute;left:5px;bottom:5px;font-size:9px;font-weight:700;
  letter-spacing:.3px;text-transform:uppercase;background:rgba(0,0,0,.65);color:#6ee7b7;
  padding:2px 6px;border-radius:6px;pointer-events:none;}

/* --- suppression de ses propres publications --- */
.post-del{margin-left:auto;display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:inherit;opacity:.5;padding:6px;border-radius:8px;
  cursor:none;transition:opacity .2s,color .2s,background .2s;}
.post-del:hover{opacity:1;color:#f43f5e;background:rgba(244,63,94,.12);}
.post-del svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}

/* --- commentaires --- */
.post-comments{border-top:1px solid rgba(168,85,247,.16);padding:14px 18px 16px;}
body.light .post-comments{border-top-color:rgba(124,58,237,.14);}
.comment-list{display:flex;flex-direction:column;gap:12px;}
.comment-list:not(:empty){margin-bottom:12px;}
.comment{display:flex;gap:10px;align-items:flex-start;}
.comment-avatar{width:30px;height:30px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:11px;font-weight:700;}
.comment-body{font-size:13px;line-height:1.5;padding-top:4px;}
.comment-author{font-weight:600;margin-right:6px;}
.comment-empty{font-size:12.5px;opacity:.5;margin-bottom:12px;}
.comment-form{display:flex;gap:8px;}
.comment-form input{flex:1;min-width:0;padding:9px 14px;border-radius:999px;
  border:1px solid rgba(168,85,247,.25);background:transparent;color:inherit;
  font-family:inherit;font-size:13px;}
.comment-form input:focus{outline:none;border-color:var(--violet);}
.comment-form .btn{padding:8px 16px;font-size:12px;flex:none;}
/* --- apercu video dans le composer --- */
.preview-noThumb{width:100%;height:100%;background:linear-gradient(135deg,#4c1d95,#7c3aed);}
.preview-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  width:34px;height:34px;border-radius:50%;background:rgba(0,0,0,.55);
  display:flex;align-items:center;justify-content:center;pointer-events:none;}
.preview-play svg{width:16px;height:16px;fill:#fff;stroke:none;margin-left:2px;}
.preview-badge.badge-video{color:#c4b5fd;}

/* --- lecteur video dans le fil --- */
.post-media video{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;background:#000;}
.post-media.multi video{aspect-ratio:1;}
/* ================================================================
   RECHERCHE DE VILLE (autocompletion geo.api.gouv.fr)
   ================================================================ */
.city-search{position:relative;max-width:440px;margin:0 0 26px;}
.city-field{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;
  border:1px solid rgba(168,85,247,.3);background:rgba(168,85,247,.06);
  transition:border-color .2s,background .2s;}
.city-field:focus-within{border-color:var(--violet);background:rgba(168,85,247,.1);}
body.light .city-field{background:rgba(124,58,237,.05);border-color:rgba(124,58,237,.2);}
.city-pin{width:18px;height:18px;flex:none;stroke:var(--violet);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.city-field input{flex:1;min-width:0;border:none;background:transparent;color:inherit;
  font-family:inherit;font-size:14px;}
.city-field input:focus{outline:none;}
.city-field input::placeholder{opacity:.5;}
.city-geo,.city-clear{flex:none;border:none;background:transparent;color:inherit;opacity:.55;
  cursor:none;padding:4px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  transition:opacity .2s,color .2s,background .2s;}
.city-geo:hover,.city-clear:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.14);}
.city-geo svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.city-clear{font-size:17px;line-height:1;width:26px;height:26px;}

.city-list{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:15;
  list-style:none;margin:0;padding:6px;border-radius:14px;max-height:260px;overflow-y:auto;
  background:rgba(20,14,32,.97);border:1px solid rgba(168,85,247,.25);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 40px rgba(8,6,13,.5);}
body.light .city-list{background:rgba(255,255,255,.99);border-color:rgba(124,58,237,.18);
  box-shadow:0 18px 40px rgba(124,58,237,.18);}
.city-item{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 12px;border-radius:9px;font-size:13.5px;cursor:none;
  transition:background .15s,color .15s;}
.city-item:hover,.city-item.is-active{background:rgba(168,85,247,.16);color:var(--violet);}
.city-name{font-weight:600;}
.city-dep{font-size:11.5px;opacity:.55;}

.city-status{margin-top:10px;font-size:12.5px;opacity:.7;}
.city-status.is-error{color:#fb7185;opacity:1;}

/* soiree masquee car hors du departement du membre (et des limitrophes) */
.ev.dept-hidden{display:none;}

/* badge de distance sur la carte de soiree */
.ev-dist{position:absolute;top:12px;right:12px;z-index:1;font-size:11px;font-weight:700;
  letter-spacing:.4px;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);
  padding:4px 11px;border-radius:999px;box-shadow:0 4px 12px rgba(124,58,237,.45);}
/* --- infobulle stylee du bouton "Utiliser ma position" ---
   Placee AU-DESSUS : la liste d'autocompletion s'ouvre en dessous. */
.city-geo{position:relative;}
.city-geo::after{
  content:attr(data-label);
  position:absolute;bottom:calc(100% + 9px);left:50%;
  transform:translateX(-50%) translateY(4px);
  padding:5px 10px;border-radius:8px;white-space:nowrap;
  font-size:11px;font-weight:600;letter-spacing:.2px;color:#fff;
  background:linear-gradient(135deg,#a855f7,#7c3aed);
  box-shadow:0 6px 16px rgba(124,58,237,.4);
  opacity:0;pointer-events:none;z-index:20;
  transition:opacity .2s,transform .2s;}
.city-geo::before{
  content:'';position:absolute;bottom:calc(100% + 4px);left:50%;
  transform:translateX(-50%) translateY(4px);
  border:5px solid transparent;border-top-color:#7c3aed;
  opacity:0;pointer-events:none;z-index:20;
  transition:opacity .2s,transform .2s;}
.city-geo:hover::after,.city-geo:focus-visible::after,
.city-geo:hover::before,.city-geo:focus-visible::before{
  opacity:1;transform:translateX(-50%) translateY(0);}
/* ================================================================
   MODERATION : menu de publication, signalement, blocage
   ================================================================ */
.post-more-wrap{position:relative;margin-left:auto;}
.post-more{display:flex;align-items:center;justify-content:center;
  background:none;border:none;color:inherit;opacity:.5;padding:6px;border-radius:8px;
  cursor:none;transition:opacity .2s,color .2s,background .2s;}
.post-more:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.14);}
.post-more svg{width:17px;height:17px;stroke:currentColor;fill:currentColor;}
.post-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:222px;z-index:25;
  padding:6px;border-radius:14px;
  background:rgba(20,14,32,.97);border:1px solid rgba(168,85,247,.25);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 40px rgba(8,6,13,.5);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s,transform .2s,visibility .2s;}
body.light .post-menu{background:rgba(255,255,255,.99);border-color:rgba(124,58,237,.18);
  box-shadow:0 18px 40px rgba(124,58,237,.18);}
.post-more-wrap.open .post-menu{opacity:1;visibility:visible;transform:translateY(0);}
.post-menu button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;
  padding:10px 12px;border:none;border-radius:9px;background:transparent;color:inherit;
  font-family:inherit;font-size:13px;font-weight:500;cursor:none;
  transition:background .15s,color .15s;}
.post-menu button:hover{background:rgba(168,85,247,.14);color:var(--violet);}
.post-menu button.danger:hover{background:rgba(244,63,94,.14);color:#f43f5e;}
.post-menu svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;
  stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* --- fenetre modale de signalement --- */
.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;
  justify-content:center;padding:20px;background:rgba(6,4,12,.72);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.modal-backdrop[hidden]{display:none;}
.modal{width:100%;max-width:460px;max-height:88vh;overflow-y:auto;
  padding:26px;border-radius:20px;
  background:#140e22;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);
  animation:modal-in .22s ease both;}
body.light .modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
@keyframes modal-in{from{opacity:0;transform:translateY(12px) scale(.98);}to{opacity:1;transform:none;}}
.modal h3{font-size:19px;font-weight:700;letter-spacing:-.3px;margin-bottom:6px;}
.modal-sub{font-size:13px;opacity:.65;margin-bottom:18px;}
.reasons{border:none;display:flex;flex-direction:column;gap:8px;margin-bottom:18px;}
.reason{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border-radius:11px;
  border:1px solid rgba(168,85,247,.2);font-size:13.5px;line-height:1.45;cursor:none;
  transition:border-color .2s,background .2s;}
.reason:hover{background:rgba(168,85,247,.08);border-color:rgba(168,85,247,.45);}
.reason input{accent-color:#a855f7;margin-top:2px;flex:none;}
.reason:has(input:checked){border-color:var(--violet);background:rgba(168,85,247,.12);}
.modal-label{display:block;font-size:12px;font-weight:600;opacity:.7;margin-bottom:6px;}
.modal textarea{width:100%;padding:11px 13px;border-radius:11px;resize:vertical;
  border:1px solid rgba(168,85,247,.25);background:transparent;color:inherit;
  font-family:inherit;font-size:13.5px;}
.modal textarea:focus{outline:none;border-color:var(--violet);}
.modal-note{font-size:11.5px;opacity:.6;line-height:1.5;margin:12px 0 18px;}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;}

/* --- notification ephemere --- */
.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,14px);z-index:120;
  display:flex;align-items:center;gap:14px;max-width:min(560px,calc(100vw - 32px));
  padding:13px 18px;border-radius:14px;font-size:13.5px;
  background:rgba(20,14,32,.97);color:#f5f3fa;border:1px solid rgba(168,85,247,.3);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 44px rgba(0,0,0,.5);
  opacity:0;visibility:hidden;transition:opacity .25s,transform .25s,visibility .25s;}
.toast.is-open{opacity:1;visibility:visible;transform:translate(-50%,0);}
.toast-action{flex:none;background:none;border:none;color:#c084fc;font-family:inherit;
  font-size:13px;font-weight:700;cursor:none;padding:2px 4px;border-radius:6px;}
.toast-action:hover{text-decoration:underline;}
@media(max-width:860px){
  .toast{bottom:calc(78px + env(safe-area-inset-bottom));}  /* au-dessus de la barre mobile */
}
/* ================================================================
   NOTIFICATIONS (activite sur ses publications) — visible connecte
   ================================================================ */
.notif{display:none;position:relative;}
body.logged-in .notif{display:block;}
.notif-btn{position:relative;display:flex;align-items:center;justify-content:center;
  width:40px;height:40px;border-radius:50%;border:none;background:transparent;color:inherit;
  cursor:none;transition:background .2s,color .2s;}
.notif-btn:hover{background:rgba(168,85,247,.14);color:var(--violet);}
.notif-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.notif-btn.has-unread svg{stroke:var(--violet);}
.notif-badge{position:absolute;top:3px;right:3px;min-width:17px;height:17px;padding:0 4px;
  border-radius:999px;background:#f43f5e;color:#fff;font-size:10px;font-weight:700;
  display:flex;align-items:center;justify-content:center;line-height:1;
  box-shadow:0 0 0 2px var(--bg-dark);}
body.light .notif-badge{box-shadow:0 0 0 2px var(--bg-light);}

.notif-panel{position:absolute;top:calc(100% + 12px);right:0;width:340px;max-width:calc(100vw - 32px);
  border-radius:16px;padding:6px;z-index:45;
  background:rgba(20,14,32,.97);border:1px solid rgba(168,85,247,.25);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 18px 44px rgba(8,6,13,.55);
  opacity:0;visibility:hidden;transform:translateY(-6px);
  transition:opacity .2s,transform .2s,visibility .2s;}
body.light .notif-panel{background:rgba(255,255,255,.99);border-color:rgba(124,58,237,.18);
  box-shadow:0 18px 44px rgba(124,58,237,.2);}
.notif.open .notif-panel{opacity:1;visibility:visible;transform:translateY(0);}
.notif-head{display:flex;align-items:center;justify-content:space-between;
  padding:10px 12px 8px;border-bottom:1px solid rgba(168,85,247,.16);margin-bottom:4px;}
.notif-head>span{font-size:14px;font-weight:700;}
.notif-readall{background:none;border:none;color:var(--violet);font-family:inherit;
  font-size:11.5px;font-weight:600;cursor:none;padding:2px 4px;border-radius:6px;}
.notif-readall:hover{text-decoration:underline;}
.notif-list{list-style:none;margin:0;padding:0;max-height:390px;overflow-y:auto;}
.notif-item{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:11px;
  cursor:none;transition:background .15s;}
.notif-item:hover{background:rgba(168,85,247,.1);}
.notif-item.unread{background:rgba(168,85,247,.08);}
.notif-item.unread::after{content:'';flex:none;width:8px;height:8px;border-radius:50%;
  background:var(--violet);box-shadow:0 0 8px var(--violet);}
.notif-avatar{width:38px;height:38px;border-radius:50%;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:12px;font-weight:700;}
.notif-body{flex:1;min-width:0;}
.notif-text{font-size:13px;line-height:1.4;margin:0;}
.notif-actor{font-weight:700;}
.notif-time{display:flex;align-items:center;gap:6px;font-size:11px;opacity:.6;margin-top:3px;}
.notif-type{display:inline-flex;}
.notif-type svg{width:13px;height:13px;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.notif-type.is-like svg{stroke:none;fill:#f43f5e;}
.notif-type.is-comment svg{stroke:#c084fc;fill:none;}
.notif-thumb{position:relative;width:42px;height:42px;flex:none;border-radius:9px;overflow:hidden;
  border:1px solid rgba(168,85,247,.25);}
.notif-mediatype{position:absolute;bottom:2px;right:2px;display:flex;
  background:rgba(0,0,0,.55);border-radius:5px;padding:1px;}
.notif-mediatype svg{width:11px;height:11px;stroke:#fff;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;}
.notif-empty{text-align:center;font-size:13px;opacity:.55;padding:26px 16px;}

@media(max-width:860px){
  .notif-panel{position:fixed;top:64px;right:12px;left:12px;width:auto;}
}
/* ================================================================
   DECOUVERTE DE MEMBRES (visible connecte)
   ================================================================ */
.members{display:none;position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:20px 40px 80px;}
body.logged-in .members{display:block;}
.members-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  flex-wrap:wrap;margin-bottom:22px;}
.members-head h2{font-size:30px;font-weight:700;letter-spacing:-.5px;margin-bottom:6px;}
.members-head p{opacity:.6;font-size:14px;}
/* en-tete du volet de recherche */
.rail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.rail-head>span{font-size:15px;font-weight:700;letter-spacing:-.2px;}
.rail-close{display:flex;align-items:center;justify-content:center;width:30px;height:30px;
  border-radius:9px;border:1px solid rgba(168,85,247,.28);background:transparent;color:inherit;
  opacity:.7;cursor:none;transition:opacity .2s,color .2s,background .2s;}
.rail-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.rail-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;}

/* --- tiroir de recherche : glisse depuis la gauche par-dessus la page --- */
.search-backdrop{position:fixed;inset:0;z-index:70;background:rgba(6,4,12,.55);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .3s ease;}
.search-backdrop[hidden]{display:none;}
.members.searching .search-backdrop{opacity:1;}

/* tiroir agrandi : filtres + profils cote a cote (desktop / tablette) */
.search-rail{position:fixed;top:0;left:0;bottom:0;z-index:80;width:min(1120px,95vw);max-width:95vw;
  display:flex;flex-direction:column;padding:20px 22px;
  background:#0e0918;border-right:1px solid rgba(168,85,247,.28);
  box-shadow:24px 0 60px rgba(0,0,0,.5);
  transform:translateX(-100%);transition:transform .32s cubic-bezier(.4,0,.2,1);
  overflow:hidden;overscroll-behavior:contain;}
body.light .search-rail{background:#faf8fe;border-right-color:rgba(124,58,237,.18);}
.members.searching .search-rail{transform:translateX(0);}

.search-panel{flex:1;min-height:0;display:grid;grid-template-columns:270px 1fr;gap:24px;}
.search-panel .filters{overflow-y:auto;padding-right:6px;overscroll-behavior:contain;}
.search-results{overflow-y:auto;min-width:0;overscroll-behavior:contain;}
.search-results .members-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));}
.search-results .members-count{margin-bottom:14px;}

.filters{display:flex;flex-direction:column;gap:16px;}
.filter-block{display:flex;flex-direction:column;gap:9px;}
.filter-legend{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  color:var(--violet);}
.chips{display:flex;flex-wrap:wrap;gap:8px;}
.chip{position:relative;cursor:none;}
.chip input{position:absolute;opacity:0;pointer-events:none;}
.chip span{display:inline-block;padding:7px 14px;border-radius:999px;font-size:12.5px;font-weight:600;
  border:1px solid rgba(168,85,247,.3);color:inherit;opacity:.7;transition:all .18s;}
.chip input:checked+span{background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;
  border-color:transparent;opacity:1;box-shadow:0 0 14px rgba(168,85,247,.4);}
.chip input:focus-visible+span{outline:2px solid var(--violet);outline-offset:2px;}

.filter.age{display:flex;align-items:center;gap:8px;}
.filter.age select{flex:1;}
.age .sep{opacity:.5;}
.filters select,.filters input[type="search"]{width:100%;
  padding:9px 12px;border-radius:10px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;font-family:inherit;font-size:13px;}
.filters select:focus,.filters input:focus{outline:none;border-color:var(--violet);}
.filters select option{color:#161320;}
.btn-sm{padding:8px 13px;font-size:12px;}
.btn-block{width:100%;justify-content:center;}
#nearMe{width:100%;}
#nearMe.active{background:rgba(168,85,247,.16);border-color:var(--violet);color:var(--violet);}
.online-toggle{cursor:none;display:flex;align-items:center;gap:8px;font-size:13px;}
.online-toggle input{accent-color:#22c55e;flex:none;}

/* le formulaire scrolle, le pied reste en bas du tiroir */
.search-rail .filters{flex:1;}
.rail-foot{padding-top:14px;margin-top:14px;border-top:1px solid rgba(168,85,247,.16);}

.members-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;}
.members-count{font-size:13px;opacity:.6;}
.clear-search{background:none;border:none;color:var(--violet);font-family:inherit;
  font-size:12.5px;font-weight:600;cursor:none;padding:4px 6px;border-radius:7px;}
.clear-search:hover{background:rgba(168,85,247,.12);}
.clear-search[hidden]{display:none;}

/* --- grille de membres --- */
.members-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;}
.member-new{position:absolute;top:10px;left:10px;font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;color:#fff;
  background:linear-gradient(135deg,#a855f7,#7c3aed);padding:3px 9px;border-radius:999px;
  box-shadow:0 2px 8px rgba(124,58,237,.5);}
.member{border:1px solid rgba(168,85,247,.22);background:rgba(168,85,247,.04);
  border-radius:18px;overflow:hidden;display:flex;flex-direction:column;
  transition:transform .25s,box-shadow .25s,border-color .25s;animation:post-in .3s ease both;}
body.light .member{background:rgba(124,58,237,.03);border-color:rgba(124,58,237,.14);}
.member:hover{transform:translateY(-5px);box-shadow:0 16px 36px rgba(124,58,237,.28);
  border-color:rgba(168,85,247,.55);}
.member-top{position:relative;height:96px;display:flex;align-items:center;justify-content:center;}
.member-avatar{width:56px;height:56px;border-radius:50%;background:rgba(0,0,0,.28);
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:18px;
  border:2px solid rgba(255,255,255,.5);}
.member-online{position:absolute;top:10px;right:10px;font-size:10px;font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;color:#fff;background:rgba(34,197,94,.9);
  padding:3px 9px;border-radius:999px;display:flex;align-items:center;gap:5px;}
.member-online::before{content:'';width:6px;height:6px;border-radius:50%;background:#fff;}
.member-body{padding:14px 16px 6px;flex:1;}
.member-name{display:flex;align-items:center;gap:6px;font-size:16px;font-weight:700;}
.member-verif{display:inline-flex;color:var(--violet);}
.member-verif svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;}
.member-meta{font-size:13px;opacity:.75;margin-top:2px;}
.member-loc{display:flex;align-items:center;gap:5px;font-size:12.5px;opacity:.6;margin-top:6px;}
.member-loc svg{width:14px;height:14px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;}
.member-active{font-size:11.5px;opacity:.5;margin-top:5px;}
.member-actions{display:flex;gap:9px;padding:12px 16px 16px;align-items:center;}
.member-like,.member-friend{position:relative;flex:none;width:40px;height:40px;border-radius:12px;
  border:1px solid rgba(168,85,247,.3);background:transparent;color:inherit;cursor:none;
  display:flex;align-items:center;justify-content:center;transition:all .18s;}
.member-like{opacity:.75;}
.member-like:hover{opacity:1;border-color:#f43f5e;color:#f43f5e;}
.member-like.liked{color:#f43f5e;opacity:1;border-color:#f43f5e;background:rgba(244,63,94,.1);}
.member-like.liked svg{fill:#f43f5e;}
.member-like svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
/* bouton "faire une demande" : picto violet plein, "envoyée" en creux */
.member-friend{flex:1;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);
  border-color:transparent;box-shadow:0 0 14px rgba(168,85,247,.35);}
.member-friend:hover{transform:translateY(-1px);box-shadow:0 0 20px rgba(168,85,247,.55);}
.member-friend svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;}
.member-friend.pending{background:transparent;color:var(--violet);border-color:rgba(168,85,247,.5);
  box-shadow:none;}
.member-friend.pending svg{stroke:var(--violet);}
/* infobulle des boutons de carte */
.member-like::after,.member-friend::after{content:attr(data-label);
  position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%) translateY(4px);
  padding:5px 9px;border-radius:7px;white-space:nowrap;font-size:11px;font-weight:600;color:#fff;
  background:linear-gradient(135deg,#a855f7,#7c3aed);box-shadow:0 6px 16px rgba(124,58,237,.4);
  opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;z-index:3;}
.member-like:hover::after,.member-friend:hover::after,
.member-friend:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0);}

/* --- selecteur d'affichage compact / grandes fiches --- */
.results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;}
.view-toggle{display:flex;gap:4px;padding:3px;border-radius:11px;border:1px solid rgba(168,85,247,.24);flex:none;}
.view-btn{position:relative;width:32px;height:30px;border:none;border-radius:8px;background:transparent;
  color:inherit;opacity:.6;cursor:none;display:flex;align-items:center;justify-content:center;
  transition:all .18s;}
.view-btn:hover{opacity:1;color:var(--violet);}
.view-btn.active{opacity:1;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);}
.view-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}

/* --- vue "grandes fiches" --- */
.members-grid.large{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;}
.members-grid.large .member-top{height:150px;}
.members-grid.large .member-avatar{width:78px;height:78px;font-size:24px;}
.members-grid.large .member-body{padding:18px 20px 8px;}
.members-grid.large .member-name{font-size:19px;}
.members-grid.large .member-meta{font-size:14px;}
.members-grid.large .member-actions{padding:14px 20px 20px;}

.members-more{text-align:center;margin-top:26px;}
.members-empty{text-align:center;font-size:14px;opacity:.55;padding:34px 0;}

@media(max-width:860px){
  .members{padding-left:22px;padding-right:22px;}
  .members-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;}
  /* mobile : tiroir plein ecran, vertical (filtres en haut, profils en dessous) */
  .search-rail{width:100vw;max-width:100vw;padding:16px;}
  .search-panel{grid-template-columns:1fr;gap:16px;overflow-y:auto;overscroll-behavior:contain;}
  .search-panel .filters{overflow:visible;padding-right:0;
    padding-bottom:14px;margin-bottom:2px;border-bottom:1px solid rgba(168,85,247,.16);}
  .search-results{overflow:visible;}
  .search-results .members-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));}
}
/* --- notifications : demandes d'ami (accepter / refuser) --- */
.notif-item.has-actions{align-items:flex-start;}
.notif-type.is-friend svg{stroke:#c084fc;fill:none;}
.notif-actions{display:flex;gap:8px;margin-top:9px;}
.na-btn{display:inline-flex;align-items:center;gap:5px;padding:6px 11px;border-radius:9px;
  font-family:inherit;font-size:12px;font-weight:600;cursor:none;border:1px solid transparent;
  transition:all .15s;}
.na-btn svg{width:14px;height:14px;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;fill:none;}
.na-accept{background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;}
.na-accept svg{stroke:#fff;}
.na-accept:hover{box-shadow:0 4px 14px rgba(168,85,247,.5);}
.na-decline{background:transparent;color:inherit;border-color:rgba(168,85,247,.3);opacity:.8;}
.na-decline svg{stroke:currentColor;}
.na-decline:hover{opacity:1;color:#f43f5e;border-color:#f43f5e;background:rgba(244,63,94,.08);}
.notif-note{font-size:11px;line-height:1.45;opacity:.7;margin-top:7px;
  padding:7px 9px;border-radius:8px;background:rgba(244,63,94,.1);color:#fca5a5;}
body.light .notif-note{color:#b91c1c;background:rgba(244,63,94,.08);}
.notif-item.resolved{opacity:.85;}
/* ================================================================
   ENCART DE REASSURANCE (regles de contact) — avant connexion
   ================================================================ */
.reassure{position:relative;z-index:1;max-width:900px;margin:0 auto;padding:20px 40px 40px;}
body.logged-in .reassure{display:none;}   /* reserve aux visiteurs non connectes */
.reassure-card{border:1px solid rgba(168,85,247,.3);border-radius:22px;padding:32px 30px;
  background:linear-gradient(160deg,rgba(168,85,247,.1),rgba(124,58,237,.03));text-align:center;}
body.light .reassure-card{background:linear-gradient(160deg,rgba(124,58,237,.07),rgba(168,85,247,.02));
  border-color:rgba(124,58,237,.18);}
.reassure-badge{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;
  letter-spacing:1px;text-transform:uppercase;color:var(--violet);
  border:1px solid rgba(168,85,247,.4);padding:6px 13px;border-radius:999px;margin-bottom:16px;}
.reassure-badge svg{width:15px;height:15px;stroke:var(--violet);fill:none;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;}
.reassure-card h2{font-size:clamp(21px,3vw,28px);line-height:1.2;letter-spacing:-.5px;
  font-weight:700;margin-bottom:14px;}
.reassure-card>p{font-size:15px;line-height:1.7;opacity:.82;max-width:62ch;margin:0 auto 20px;}
.reassure-list{list-style:none;display:flex;flex-direction:column;gap:12px;margin:0 auto 22px;
  max-width:60ch;text-align:left;}
.reassure-list li{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.55;}
.reassure-list .ri{flex:none;width:24px;height:24px;border-radius:50%;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:12px;font-weight:700;
  display:flex;align-items:center;justify-content:center;margin-top:1px;}
.reassure-foot{font-size:13px;opacity:.7;margin:0;}
.reassure-foot a{color:var(--violet);font-weight:600;}
.reassure-foot a:hover{text-decoration:underline;}
.reassure-cta{margin-top:22px;padding-top:20px;border-top:1px solid rgba(168,85,247,.18);
  display:flex;flex-direction:column;align-items:center;gap:14px;}
.reassure-cta p{font-size:14.5px;line-height:1.6;margin:0;opacity:.92;max-width:60ch;}
.reassure-cta .btn{cursor:none;}
@media(max-width:860px){.reassure{padding:16px 22px 30px;}.reassure-card{padding:24px 20px;}
  .reassure-cta .btn{width:100%;text-align:center;}}
/* bouton "faire une demande" verrouille (membre non autorise a initier) */
.member-friend.blocked{background:transparent;color:inherit;border-color:rgba(168,85,247,.25);
  opacity:.55;cursor:not-allowed;box-shadow:none;}
.member-friend.blocked svg{stroke:currentColor;}
.member-friend.blocked:hover{transform:none;}
/* note d'initiative dans le tiroir */
.init-note{font-size:12.5px;line-height:1.5;margin-bottom:14px;padding:10px 13px;border-radius:10px;
  background:rgba(168,85,247,.1);border:1px solid rgba(168,85,247,.25);color:inherit;}
/* badge "vous a regarde" (deblocage par visite) */
.member-visited{position:absolute;bottom:8px;left:8px;font-size:9.5px;font-weight:700;
  letter-spacing:.3px;text-transform:uppercase;color:#fff;background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  padding:3px 8px;border-radius:999px;display:flex;align-items:center;gap:5px;}
.member-visited::before{content:'';width:6px;height:6px;border-radius:50%;background:#ff2fd0;
  box-shadow:0 0 5px rgba(255,47,208,.9);}
/* ================================================================
   CERTIFICATION (photo "Pour HIVEVIBE" + date)
   ================================================================ */
.cert-chip{display:inline-block;margin-top:8px;font-size:10px;font-weight:700;letter-spacing:.4px;
  text-transform:uppercase;padding:3px 9px;border-radius:999px;}
.cert-chip--todo{color:#fca5a5;background:rgba(244,63,94,.14);}
.cert-chip--pending{color:#fbbf24;background:rgba(251,191,36,.15);}
.cert-chip--done{color:#34d399;background:rgba(52,211,153,.15);}
.cert-chip--neutral{color:#c4b5fd;background:rgba(168,85,247,.14);}
body.light .cert-chip--neutral{color:#7c3aed;}
.profile-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;}
.profile-chips .cert-chip{margin-top:0;}
#certifyMenu{color:var(--violet);font-weight:600;}
#becomeOrgMenu{color:var(--violet);font-weight:600;}
#becomeOrgMenu.done{color:inherit;opacity:.6;font-weight:500;cursor:default;}

.cert-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.cert-backdrop[hidden]{display:none;}
.cert-modal{position:relative;width:100%;max-width:470px;max-height:90vh;overflow-y:auto;
  padding:28px;border-radius:20px;background:#140e22;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .cert-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.cert-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:9px;
  border:1px solid rgba(168,85,247,.28);background:transparent;color:inherit;opacity:.7;cursor:none;
  display:flex;align-items:center;justify-content:center;transition:all .2s;}
.cert-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.cert-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.cert-modal h3{font-size:20px;font-weight:700;letter-spacing:-.3px;margin-bottom:8px;padding-right:32px;}
.cert-sub{font-size:13px;line-height:1.6;opacity:.75;margin-bottom:18px;}
.cert-steps{margin:0 0 18px;padding-left:20px;display:flex;flex-direction:column;gap:8px;
  font-size:13.5px;line-height:1.5;}
.cert-steps strong{color:var(--violet);}
.cert-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  border:2px dashed rgba(168,85,247,.4);border-radius:14px;padding:26px 18px;text-align:center;
  cursor:none;transition:background .2s,border-color .2s;}
.cert-drop:hover,.cert-drop.dragover{background:rgba(168,85,247,.1);border-color:var(--violet);}
.cert-drop svg{width:30px;height:30px;stroke:var(--violet);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.cert-drop span{font-size:14px;font-weight:600;color:var(--violet);}
.cert-drop small{font-size:11px;opacity:.6;}
.cert-preview{margin-top:14px;border-radius:12px;overflow:hidden;border:1px solid rgba(168,85,247,.25);}
.cert-preview[hidden]{display:none;}
.cert-preview img{width:100%;display:block;max-height:300px;object-fit:cover;}
.cert-note{font-size:11.5px;opacity:.6;line-height:1.5;margin:14px 0 0;}
.cert-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px;flex-wrap:wrap;}
.cert-result{margin-top:14px;font-size:13px;padding:10px 13px;border-radius:10px;}
.cert-result[hidden]{display:none;}
.cert-result.ok{background:rgba(52,211,153,.14);color:#6ee7b7;}
body.light .cert-result.ok{color:#047857;}
/* ================================================================
   MODALE D'INSCRIPTION (acceptation CGU + charte)
   ================================================================ */
.signup-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.signup-backdrop[hidden]{display:none;}
.signup-modal{position:relative;width:100%;max-width:440px;max-height:92vh;overflow-y:auto;
  padding:28px;border-radius:20px;background:#140e22;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .signup-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.signup-close{position:absolute;top:14px;right:14px;width:32px;height:32px;border-radius:9px;
  border:1px solid rgba(168,85,247,.28);background:transparent;color:inherit;opacity:.7;cursor:none;
  display:flex;align-items:center;justify-content:center;transition:all .2s;}
.signup-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.signup-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.signup-modal h3{font-size:21px;font-weight:700;letter-spacing:-.3px;margin-bottom:6px;padding-right:32px;}
.signup-sub{font-size:13px;opacity:.7;margin-bottom:20px;}
.signup-form{display:flex;flex-direction:column;gap:14px;}
.sf-field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;}
.sf-field input,.sf-field select{padding:10px 13px;border-radius:11px;
  border:1px solid rgba(168,85,247,.28);background:transparent;color:inherit;
  font-family:inherit;font-size:14px;font-weight:400;}
.sf-field input:focus,.sf-field select:focus{outline:none;border-color:var(--violet);}
.sf-field select option{color:#161320;}
.sf-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;font-weight:400;cursor:none;}
.sf-check input{accent-color:#a855f7;margin-top:2px;flex:none;width:16px;height:16px;}
.sf-check a{color:var(--violet);font-weight:600;}
.sf-check a:hover{text-decoration:underline;}
/* .sf-field est en display:flex : sans cette règle, l'attribut hidden
   n'aurait aucun effet sur le second champ de date. */
.sf-field[hidden]{display:none;}
/* le sélecteur de date natif est illisible en thème sombre sans ceci */
.sf-field input[type="date"]{color-scheme:dark;}
body.light .sf-field input[type="date"]{color-scheme:light;}

/* mot de passe + confirmation l'un sous l'autre */
.sf-row{display:grid;grid-template-columns:1fr;gap:12px;}
/* date(s) de naissance : une colonne, deux si profil Couple */
.sf-birth{display:grid;grid-template-columns:1fr;gap:12px;}
.sf-birth.is-couple{grid-template-columns:1fr 1fr;}
@media(max-width:520px){
  .sf-birth.is-couple{grid-template-columns:1fr;}
}

.sf-hint{font-size:11.5px;line-height:1.5;font-weight:400;opacity:.55;margin:-4px 0 2px;}
.sf-hint strong{font-weight:700;opacity:.9;}
.sf-err{font-size:12px;line-height:1.5;font-weight:600;color:#f87171;margin:-2px 0 2px;}
.sf-err[hidden]{display:none;}
.signup-form .btn-block{margin-top:6px;}
.signup-form .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none;}
.signup-alt{text-align:center;font-size:12.5px;opacity:.75;margin:2px 0 0;}
.signup-login-link{background:none;border:none;color:var(--violet);font-family:inherit;
  font-size:12.5px;font-weight:700;cursor:none;padding:0;}
.signup-login-link:hover{text-decoration:underline;}
/* ================================================================
   LECTURE OBLIGATOIRE DE LA CHARTE (inscription)
   ================================================================ */
.sf-charte{display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:12px;
  border:1px dashed rgba(168,85,247,.35);background:rgba(168,85,247,.05);}
.charte-read-btn{display:flex;align-items:center;gap:9px;width:100%;padding:10px 13px;border-radius:10px;
  border:1px solid rgba(168,85,247,.4);background:transparent;color:var(--violet);
  font-family:inherit;font-size:13.5px;font-weight:600;cursor:none;transition:all .18s;}
.charte-read-btn:hover{background:rgba(168,85,247,.12);}
.charte-read-btn svg{width:17px;height:17px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.charte-read-state{margin-left:auto;font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;padding:3px 8px;border-radius:999px;background:rgba(244,63,94,.16);color:#fca5a5;}
.charte-read-state.done{background:rgba(52,211,153,.16);color:#6ee7b7;}
.sf-charte-check input:disabled{opacity:.5;}
.sf-charte-check:has(input:disabled){opacity:.6;}
.charte-hint{font-size:11.5px;opacity:.65;line-height:1.4;margin:0;}
.charte-hint[hidden]{display:none;}

/* modale de lecture */
.charte-backdrop{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.78);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.charte-backdrop[hidden]{display:none;}
.charte-modal{display:flex;flex-direction:column;width:100%;max-width:560px;max-height:88vh;
  border-radius:20px;background:#140e22;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.6);animation:modal-in .22s ease both;overflow:hidden;}
body.light .charte-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.charte-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:18px 20px;border-bottom:1px solid rgba(168,85,247,.18);}
.charte-modal-head h3{font-size:17px;font-weight:700;letter-spacing:-.2px;}
.charte-modal-close{width:30px;height:30px;flex:none;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.7;cursor:none;display:flex;align-items:center;justify-content:center;transition:all .2s;}
.charte-modal-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.charte-modal-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.charte-modal-body{flex:1;overflow-y:auto;padding:20px;overscroll-behavior:contain;}
.charte-modal-body:focus{outline:none;}
.cm-intro{font-size:14px;line-height:1.6;margin-bottom:16px;}
.cm-list{margin:0 0 16px;padding-left:22px;display:flex;flex-direction:column;gap:12px;
  font-size:13.5px;line-height:1.6;}
.cm-list strong{color:var(--violet);}
.cm-final{font-size:13.5px;line-height:1.6;padding:14px 16px;border-radius:12px;
  background:rgba(168,85,247,.1);border:1px solid rgba(168,85,247,.2);}
.charte-modal-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:16px 20px;border-top:1px solid rgba(168,85,247,.18);}
.charte-scroll-hint{font-size:12px;opacity:.7;margin:0;}
.charte-scroll-hint[hidden]{display:none;}
.charte-modal-foot .btn:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none;}
/* --- cadre "organisateur·trice" a l'inscription --- */
.sf-organizer{display:flex;flex-direction:column;gap:9px;padding:13px;border-radius:12px;
  border:1px solid rgba(168,85,247,.3);background:rgba(168,85,247,.06);}
.sf-org-head{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--violet);}
.sf-org-head svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.sf-org-note{font-size:11.5px;line-height:1.5;opacity:.7;margin:0;}
.signup-result{font-size:12.5px;line-height:1.5;padding:10px 13px;border-radius:10px;margin:0;
  background:rgba(52,211,153,.14);color:#6ee7b7;}
body.light .signup-result{color:#047857;}
.signup-result[hidden]{display:none;}

/* --- badge "Orga" sur les fiches membres --- */
.member-orga{display:inline-flex;align-items:center;gap:3px;font-size:10px;font-weight:700;
  letter-spacing:.3px;text-transform:uppercase;color:#fff;
  background:linear-gradient(135deg,#a855f7,#7c3aed);padding:2px 7px 2px 5px;border-radius:999px;}
.member-orga svg{width:12px;height:12px;stroke:#fff;fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;}
/* ================================================================
   MONETISATION — fiche premium (sponsorise) + emplacement pub
   ================================================================ */
/* soiree mise en avant */
.ev--premium{border-color:rgba(168,85,247,.6);box-shadow:0 0 0 1px rgba(168,85,247,.4),0 14px 34px rgba(124,58,237,.25);}
.ev-sponsor{position:absolute;top:12px;right:12px;z-index:1;font-size:10px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase;color:#fff;
  background:linear-gradient(135deg,#f59e0b,#d97706);padding:4px 10px;border-radius:999px;
  box-shadow:0 3px 10px rgba(217,119,6,.5);}

/* emplacement publicitaire (placeholder) */
.ad-slot{position:relative;z-index:1;max-width:1180px;margin:0 auto 20px;padding:0 40px;}
.ad-label{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;opacity:.45;margin-bottom:6px;}
.ad-frame{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  text-align:center;min-height:100px;padding:22px;border-radius:16px;
  border:1px dashed rgba(168,85,247,.35);background:rgba(168,85,247,.05);}
body.light .ad-frame{background:rgba(124,58,237,.04);border-color:rgba(124,58,237,.2);}
.ad-frame strong{font-size:15px;}
.ad-frame span{font-size:12.5px;opacity:.6;}

/* lien "soutenir" dans le footer */
.footer-support{color:#f43f5e !important;}
.footer-support svg{fill:currentColor;stroke:none;}

@media(max-width:860px){.ad-slot{padding:0 22px;}}
/* --- modale de partage (confirmation jolie) --- */
.share-confirm{text-align:center;max-width:400px;}
.share-hero-ic{display:inline-flex;align-items:center;justify-content:center;width:60px;height:60px;
  border-radius:50%;margin:0 auto 16px;background:linear-gradient(135deg,#a855f7,#7c3aed);
  box-shadow:0 10px 26px rgba(124,58,237,.5);}
.share-hero-ic svg{width:28px;height:28px;stroke:#fff;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.share-confirm h3{font-size:20px;font-weight:700;letter-spacing:-.3px;margin-bottom:8px;}
.share-confirm .modal-sub{font-size:13.5px;opacity:.72;line-height:1.55;margin-bottom:18px;}
.share-avatars{display:flex;justify-content:center;margin-bottom:14px;}
.share-av2{width:42px;height:42px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:13px;font-weight:700;
  border:2px solid #140e22;margin-left:-10px;box-shadow:0 2px 8px rgba(0,0,0,.3);}
.share-av2:first-child{margin-left:0;}
.share-av2.more{background:rgba(168,85,247,.22);color:var(--violet);}
body.light .share-av2{border-color:#fff;}
.share-count{font-size:13.5px;margin-bottom:20px;}
.share-count strong{color:var(--violet);}
.share-confirm .modal-actions{justify-content:center;}
.share-confirm .modal-actions .btn{min-width:120px;}
/* icone du bouton "Partager" sur la publication */
.post-btn svg{fill:none;}

/* --- modale d'invitation : selection de membres (fans) --- */
.invite-modal{max-width:430px;}
.invite-modal h3{text-align:center;font-size:20px;font-weight:700;letter-spacing:-.3px;margin-bottom:8px;}
.invite-modal .modal-sub{text-align:center;font-size:13.5px;opacity:.72;line-height:1.5;margin-bottom:16px;}
.inv-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:12px;}
.inv-selcount{opacity:.6;font-weight:600;}
.inv-selall{background:none;border:none;color:var(--violet);font-family:inherit;font-size:12px;
  font-weight:700;cursor:none;padding:2px 4px;border-radius:6px;}
.inv-selall:hover{text-decoration:underline;}
.inv-list{display:flex;flex-direction:column;gap:4px;max-height:300px;overflow-y:auto;margin-bottom:18px;
  overscroll-behavior:contain;}
.inv-member{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border-radius:11px;
  border:1px solid transparent;background:transparent;color:inherit;font-family:inherit;text-align:left;
  cursor:none;transition:background .15s,border-color .15s;}
.inv-member:hover{background:rgba(168,85,247,.1);}
.inv-member.selected{background:rgba(168,85,247,.14);border-color:rgba(168,85,247,.5);}
.inv-av{width:36px;height:36px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:12px;font-weight:700;}
.inv-name{flex:1;font-size:14px;font-weight:600;}
.inv-check{width:24px;height:24px;flex:none;border-radius:50%;border:2px solid rgba(168,85,247,.4);
  display:flex;align-items:center;justify-content:center;opacity:.5;transition:all .15s;}
.inv-check svg{width:14px;height:14px;stroke:#fff;fill:none;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;opacity:0;}
.inv-member.selected .inv-check{background:linear-gradient(135deg,#a855f7,#7c3aed);border-color:transparent;opacity:1;}
.inv-member.selected .inv-check svg{opacity:1;}

/* --- J'aime + commentaires sur les cartes de soiree (membres connectes) --- */
.ev-social{display:none;}
body.logged-in .ev-social{display:block;}
.ev-actions{display:flex;gap:20px;margin-top:14px;padding-top:12px;
  border-top:1px solid rgba(168,85,247,.14);}
.ev-social .post-comments{padding:14px 0 0;border-top:1px solid rgba(168,85,247,.14);margin-top:12px;}
.ev-social .comment-form .btn{padding:8px 14px;font-size:12px;flex:none;}
/* ================================================================
   CONNEXION — boutons sociaux Google / Facebook
   ================================================================ */
.social-btns{display:flex;flex-direction:column;gap:10px;margin-bottom:18px;}
.social-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;
  padding:11px 14px;border-radius:11px;cursor:none;font-family:inherit;font-size:14px;font-weight:600;
  border:1px solid rgba(168,85,247,.3);background:transparent;color:inherit;
  transition:background .18s,border-color .18s,box-shadow .18s;}
.social-btn:hover{background:rgba(168,85,247,.08);border-color:rgba(168,85,247,.5);}
.social-btn svg{width:19px;height:19px;flex:none;}
body.light .social-btn{border-color:rgba(124,58,237,.22);}

.or-divider{display:flex;align-items:center;gap:12px;margin:0 0 18px;
  color:inherit;opacity:.45;font-size:12px;text-transform:uppercase;letter-spacing:1px;}
.or-divider::before,.or-divider::after{content:'';flex:1;height:1px;background:rgba(168,85,247,.25);}

.login-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  font-size:12.5px;flex-wrap:wrap;}
.li-remember{display:inline-flex;align-items:center;gap:7px;cursor:none;opacity:.85;}
.li-remember input{accent-color:#a855f7;width:15px;height:15px;}
.li-forgot{background:none;border:none;color:var(--violet);font-family:inherit;font-size:12.5px;
  font-weight:600;cursor:none;padding:0;}
.li-forgot:hover{text-decoration:underline;}
/* ================================================================
   MODERATION ADMIN — bouton + publication de bannissement
   ================================================================ */
.admin-ban-btn{display:inline-flex;align-items:center;gap:7px;margin-top:10px;
  border-color:rgba(244,63,94,.5)!important;color:#f43f5e!important;}
.admin-ban-btn:hover{background:rgba(244,63,94,.1)!important;}
.admin-ban-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;}

.ban-input{width:100%;padding:11px 13px;border-radius:11px;border:1px solid rgba(168,85,247,.25);
  background:transparent;color:inherit;font-family:inherit;font-size:14px;margin-bottom:4px;}
.ban-input:focus{outline:none;border-color:var(--violet);}

/* publication de bannissement dans le fil */
.post--ban{border-color:rgba(244,63,94,.45);background:rgba(244,63,94,.06);}
body.light .post--ban{background:rgba(244,63,94,.05);}
.ban-head{display:flex;align-items:center;gap:9px;padding:13px 18px;
  border-bottom:1px solid rgba(244,63,94,.22);
  font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#f43f5e;}
.ban-head svg{width:18px;height:18px;stroke:#f43f5e;fill:none;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;flex:none;}
.ban-body{padding:16px 18px 18px;}
.ban-title{font-size:15px;line-height:1.5;margin-bottom:12px;}
.ban-title strong{color:var(--violet);}
.ban-motif{font-size:13.5px;line-height:1.55;padding:11px 13px;border-radius:11px;
  background:rgba(0,0,0,.18);}
body.light .ban-motif{background:rgba(244,63,94,.06);}
.ban-label{display:block;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;
  color:#f43f5e;margin-bottom:4px;}
/* ================================================================
   MESSAGERIE / TCHAT
   ================================================================ */
.chat-link{position:relative;}
.chat-badge{position:absolute;top:-4px;right:-4px;min-width:16px;height:16px;padding:0 4px;
  border-radius:999px;background:#f43f5e;color:#fff;font-size:9px;font-weight:700;
  display:flex;align-items:center;justify-content:center;line-height:1;}

.chat-overlay{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.chat-overlay[hidden]{display:none;}
.chat-window{display:flex;width:100%;max-width:900px;height:min(680px,86vh);overflow:hidden;
  border-radius:20px;background:#0e0918;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .chat-window{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}

/* colonne conversations */
.chat-side{width:300px;flex:none;display:flex;flex-direction:column;
  border-right:1px solid rgba(168,85,247,.18);}
.chat-side-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;
  border-bottom:1px solid rgba(168,85,247,.18);font-size:16px;font-weight:700;}
.chat-x{width:30px;height:30px;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.7;cursor:none;display:flex;align-items:center;justify-content:center;transition:all .2s;}
.chat-x:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.chat-x svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.chat-convos{flex:1;overflow-y:auto;padding:6px;}
.chat-convo{display:flex;align-items:center;gap:11px;width:100%;padding:10px;border-radius:12px;
  border:none;background:transparent;color:inherit;font-family:inherit;text-align:left;cursor:none;
  transition:background .15s;}
.chat-convo:hover{background:rgba(168,85,247,.1);}
.chat-convo.is-active{background:rgba(168,85,247,.16);}
.chat-av{position:relative;width:44px;height:44px;flex:none;border-radius:50%;color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;}
.chat-dot{position:absolute;bottom:1px;right:1px;width:11px;height:11px;border-radius:50%;
  background:#22c55e;border:2px solid #0e0918;}
body.light .chat-dot{border-color:#fff;}
.chat-convo-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;}
.chat-convo-name{font-size:14px;font-weight:600;display:flex;align-items:center;gap:6px;min-width:0;}
.chat-convo-last{font-size:12.5px;opacity:.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.chat-unread{flex:none;min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:10px;font-weight:700;
  display:flex;align-items:center;justify-content:center;}

/* fil actif */
.chat-main{flex:1;display:flex;flex-direction:column;min-width:0;}
.chat-thread-head{display:flex;align-items:center;gap:11px;padding:13px 18px;
  border-bottom:1px solid rgba(168,85,247,.18);}
.chat-thread-head[hidden]{display:none;}
.chat-back{display:none;width:32px;height:32px;border:none;background:transparent;color:inherit;
  cursor:none;align-items:center;justify-content:center;border-radius:8px;}
.chat-back svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.chat-peer-av{width:38px;height:38px;flex:none;border-radius:50%;color:#fff;display:flex;
  align-items:center;justify-content:center;font-size:12px;font-weight:700;}
.chat-peer-info{display:flex;flex-direction:column;}
.chat-peer-name{font-size:14px;font-weight:700;display:flex;align-items:center;gap:6px;}
.chat-peer-status{font-size:11.5px;opacity:.6;}
.chat-messages{flex:1;overflow-y:auto;padding:18px;display:flex;flex-direction:column;gap:8px;}
.chat-bubble{max-width:75%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.45;word-wrap:break-word;}
.chat-bubble.them{align-self:flex-start;background:rgba(168,85,247,.16);border-bottom-left-radius:5px;}
.chat-bubble.me{align-self:flex-end;background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;border-bottom-right-radius:5px;}
body.light .chat-bubble.them{background:rgba(124,58,237,.1);}
.chat-input{display:flex;gap:10px;padding:14px 18px;border-top:1px solid rgba(168,85,247,.18);}
.chat-input[hidden]{display:none;}
.chat-input input{flex:1;padding:11px 15px;border-radius:999px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;font-family:inherit;font-size:14px;}
.chat-input input:focus{outline:none;border-color:var(--violet);}
.chat-input button{flex:none;width:44px;height:44px;border-radius:50%;border:none;cursor:none;
  background:linear-gradient(135deg,#a855f7,#7c3aed);display:flex;align-items:center;justify-content:center;
  transition:box-shadow .2s;}
.chat-input button:hover{box-shadow:0 0 18px rgba(168,85,247,.6);}
.chat-input button svg{width:19px;height:19px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.chat-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;
  text-align:center;padding:30px;opacity:.5;}
.chat-placeholder[hidden]{display:none;}
.chat-placeholder svg{width:52px;height:52px;stroke:var(--violet);fill:none;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round;}
.chat-placeholder p{font-size:14px;max-width:34ch;}

/* mobile : une seule colonne, on bascule liste <-> fil */
@media(max-width:720px){
  .chat-overlay{padding:0;}
  .chat-window{max-width:100%;width:100%;height:100%;border-radius:0;border:none;}
  .chat-side{width:100%;}
  .chat-main{display:none;}
  .chat-overlay.thread-open .chat-side{display:none;}
  .chat-overlay.thread-open .chat-main{display:flex;}
  .chat-back{display:flex;}
}
/* --- selecteur d'emojis dans le tchat --- */
.chat-input{position:relative;}
.chat-emoji-btn{flex:none;width:40px;height:44px;border:none;background:transparent;color:inherit;
  opacity:.65;cursor:none;display:flex;align-items:center;justify-content:center;transition:opacity .2s,color .2s;}
.chat-emoji-btn:hover,.chat-emoji-btn[aria-expanded="true"]{opacity:1;color:var(--violet);}
.chat-emoji-btn svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.chat-emoji-panel{position:absolute;bottom:calc(100% + 8px);left:12px;right:12px;width:auto;
  max-height:230px;overflow-y:auto;overflow-x:hidden;padding:8px;border-radius:14px;z-index:5;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:2px;justify-items:stretch;
  background:rgba(20,14,32,.98);border:1px solid rgba(168,85,247,.28);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:0 16px 40px rgba(0,0,0,.5);}
body.light .chat-emoji-panel{background:#fff;border-color:rgba(124,58,237,.2);box-shadow:0 16px 40px rgba(124,58,237,.2);}
.chat-emoji-panel[hidden]{display:none;}
.emoji-cell{border:none;background:transparent;cursor:none;font-size:22px;line-height:1;height:36px;
  display:flex;align-items:center;justify-content:center;border-radius:8px;
  transition:background .12s,transform .12s;}
.emoji-cell:hover{background:rgba(168,85,247,.16);transform:scale(1.15);}
/* ================================================================
   FICHE PROFIL MEMBRE
   ================================================================ */
.mprofile-backdrop{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.mprofile-backdrop[hidden]{display:none;}
.mprofile{position:relative;width:100%;max-width:440px;max-height:90vh;overflow-y:auto;
  border-radius:20px;background:#0e0918;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .mprofile{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.mprofile-close{position:absolute;top:12px;right:12px;z-index:2;width:34px;height:34px;border-radius:50%;
  border:none;background:rgba(0,0,0,.4);color:#fff;cursor:none;display:flex;align-items:center;justify-content:center;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s;}
.mprofile-close:hover{background:rgba(0,0,0,.6);}
.mprofile-close svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.mprofile-hero{position:relative;height:150px;display:flex;align-items:center;justify-content:center;
  border-radius:20px 20px 0 0;}
.mprofile-av{width:92px;height:92px;border-radius:50%;background:rgba(0,0,0,.28);border:3px solid rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:30px;}
.mprofile-online{position:absolute;top:14px;left:14px;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;color:#fff;background:rgba(34,197,94,.9);padding:4px 11px;border-radius:999px;
  display:flex;align-items:center;gap:6px;}
.mprofile-online::before{content:'';width:6px;height:6px;border-radius:50%;background:#fff;}
.mprofile-online[hidden]{display:none;}
.mprofile-body{padding:20px 22px 22px;}
.mprofile-name{display:flex;align-items:center;gap:7px;font-size:22px;font-weight:700;letter-spacing:-.3px;}
.mprofile-meta{font-size:14px;opacity:.8;margin-top:4px;}
.mprofile-loc{display:flex;align-items:center;gap:6px;font-size:13px;opacity:.65;margin-top:8px;}
.mprofile-loc svg{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.mprofile-active{font-size:12px;opacity:.5;margin-top:5px;}
.mprofile-about{font-size:14px;line-height:1.6;margin:16px 0;opacity:.9;}
.mprofile-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:20px;}
.mprofile-tile{aspect-ratio:1;border-radius:10px;}
.mprofile-actions{display:flex;gap:9px;flex-wrap:wrap;}
.mprofile-actions .btn{flex:1;min-width:120px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:11px 12px;font-size:13px;}
.mprofile-actions .btn svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.mprofile-actions .btn.solid svg{stroke:#fff;}
.mp-like.liked{color:#f43f5e;border-color:#f43f5e;}
.mp-like.liked svg{fill:#f43f5e;stroke:#f43f5e;}
.mprofile-actions .btn:disabled{opacity:.5;cursor:not-allowed;}
/* carte membre cliquable */
.member{cursor:none;}
.member:focus-visible{outline:2px solid var(--violet);outline-offset:3px;}
/* ================================================================
   PARAMETRES DU COMPTE
   ================================================================ */
.settings-backdrop{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.settings-backdrop[hidden]{display:none;}
.settings-modal{width:100%;max-width:480px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;
  border-radius:20px;background:#0e0918;border:1px solid rgba(168,85,247,.28);
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .settings-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.settings-head{display:flex;align-items:center;justify-content:space-between;padding:18px 22px;
  border-bottom:1px solid rgba(168,85,247,.18);}
.settings-head h3{font-size:19px;font-weight:700;letter-spacing:-.3px;}
.settings-close{width:32px;height:32px;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.7;cursor:none;display:flex;align-items:center;justify-content:center;transition:all .2s;}
.settings-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.settings-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.settings-body{overflow-y:auto;padding:8px 22px 22px;}
.settings-sec{padding:16px 0;border-bottom:1px solid rgba(168,85,247,.14);}
.settings-sec:last-child{border-bottom:none;}
.settings-sec h4{font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--violet);margin-bottom:12px;}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 0;font-size:14px;cursor:none;}
.setting-row select{padding:8px 12px;border-radius:10px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;font-family:inherit;font-size:13px;}
.setting-row select option{color:#161320;}

/* interrupteur */
.switch2{position:relative;flex:none;width:44px;height:26px;}
.switch2 input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:none;}
.slider2{position:absolute;inset:0;border-radius:999px;background:rgba(168,85,247,.22);transition:background .2s;}
.slider2::before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.4);}
.switch2 input:checked+.slider2{background:linear-gradient(135deg,#a855f7,#7c3aed);}
.switch2 input:checked+.slider2::before{transform:translateX(18px);}
.switch2 input:focus-visible+.slider2{outline:2px solid var(--violet);outline-offset:2px;}

/* champs libres des parametres (pseudo, description) */
.settings-champ{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;
  font-size:12px;font-weight:600;letter-spacing:.3px;opacity:.85;}
.settings-champ input,.settings-champ textarea{
  padding:10px 12px;border-radius:10px;border:1px solid rgba(168,85,247,.28);
  background:rgba(168,85,247,.06);color:inherit;font-family:inherit;font-size:14px;
  font-weight:400;letter-spacing:normal;opacity:1;}
.settings-champ textarea{resize:vertical;min-height:76px;line-height:1.5;}
.settings-champ input:focus,.settings-champ textarea:focus{
  outline:none;border-color:var(--violet);background:rgba(168,85,247,.12);}
.settings-erreur{margin-top:8px;font-size:13px;color:#f43f5e;line-height:1.45;}

/* membres bloques */
.blocked-row{display:flex;align-items:center;gap:11px;padding:8px 0;}
.blocked-av{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#6b7280,#4b5563);color:#fff;font-size:12px;font-weight:700;}
.blocked-name{flex:1;font-size:14px;font-weight:600;}
.settings-note{font-size:12px;opacity:.6;line-height:1.5;margin-top:8px;}
.danger-btn{color:#f43f5e!important;border-color:rgba(244,63,94,.5)!important;margin-top:10px;}
.danger-btn:hover{background:rgba(244,63,94,.1)!important;}

/* ================================================================
   AIDE — REGLES DE CONTACT (schema, depuis le menu profil)
   ================================================================ */
.crules-backdrop{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.crules-backdrop[hidden]{display:none;}
.crules-modal{position:relative;width:100%;max-width:500px;max-height:90vh;overflow-y:auto;
  border-radius:20px;background:#0e0918;border:1px solid rgba(168,85,247,.28);padding:26px 26px 22px;
  box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .crules-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.crules-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:9px;
  border:1px solid rgba(168,85,247,.28);background:transparent;color:inherit;opacity:.7;cursor:none;
  display:flex;align-items:center;justify-content:center;transition:all .2s;}
.crules-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.crules-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.crules-modal h3{font-size:20px;font-weight:800;letter-spacing:-.3px;padding-right:34px;}
.crules-sub{font-size:13.5px;opacity:.72;margin-top:6px;line-height:1.5;}

.crules-schema{display:flex;flex-direction:column;gap:10px;margin:18px 0 6px;}
.cr-lane{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 15px;border-radius:14px;
  border:1px solid rgba(168,85,247,.2);background:rgba(168,85,247,.06);}
.cr-lane.cr-ok{border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.08);}
.cr-lane.cr-mix{border-color:rgba(245,158,11,.42);background:rgba(245,158,11,.09);}
.cr-from{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:15px;min-width:112px;}
.cr-ic{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;
  background:rgba(168,85,247,.18);font-size:15px;line-height:1;}
.cr-ok .cr-ic{background:rgba(34,197,94,.2);}
.cr-mix .cr-ic{background:rgba(245,158,11,.2);}
.cr-link{font-size:12.5px;opacity:.62;flex:none;}
.cr-target{display:flex;flex-direction:column;gap:3px;font-size:14px;}
.cr-target strong{color:#34d399;font-weight:800;}
.cr-yes{color:#34d399;font-weight:700;}
.cr-nope{color:#fb923c;font-weight:700;font-size:13px;}
body.light .cr-target strong,body.light .cr-yes{color:#15803d;}
body.light .cr-nope{color:#c2410c;}

.crules-notes{list-style:none;margin:16px 0 4px;display:flex;flex-direction:column;gap:9px;}
.crules-notes li{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;opacity:.92;}
.crn-ic{flex:none;font-size:15px;line-height:1.4;}
.crules-foot{margin-top:14px;font-size:12.5px;}
.crules-foot a{color:var(--violet);font-weight:600;}

/* ================================================================
   FICHE DETAILLEE D'UNE SOIREE
   ================================================================ */
.evd-backdrop{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.evd-backdrop[hidden]{display:none;}
.evd{width:100%;max-width:460px;max-height:90vh;overflow-y:auto;border-radius:20px;background:#0e0918;
  border:1px solid rgba(168,85,247,.28);box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;}
body.light .evd{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.evd-hero{position:relative;height:170px;border-radius:20px 20px 0 0;}
.evd-hero::after{content:'';position:absolute;inset:0;border-radius:20px 20px 0 0;
  background:linear-gradient(180deg,rgba(15,8,26,.05),rgba(15,8,26,.55));}
.evd-tag{position:absolute;top:14px;left:14px;z-index:1;font-size:11px;font-weight:600;text-transform:uppercase;
  letter-spacing:.6px;color:#fff;background:rgba(0,0,0,.45);padding:5px 12px;border-radius:999px;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);}
.evd-sponsor{position:absolute;top:14px;left:50%;transform:translateX(-50%);z-index:1;font-size:10px;font-weight:700;
  letter-spacing:.5px;text-transform:uppercase;color:#fff;background:linear-gradient(135deg,#f59e0b,#d97706);
  padding:4px 11px;border-radius:999px;}
.evd-sponsor[hidden]{display:none;}
.evd-close{position:absolute;top:12px;right:12px;z-index:2;width:34px;height:34px;border-radius:50%;border:none;
  background:rgba(0,0,0,.45);color:#fff;cursor:none;display:flex;align-items:center;justify-content:center;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .2s;}
.evd-close:hover{background:rgba(0,0,0,.65);}
.evd-close svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.evd-body{padding:20px 22px 22px;}
.evd-body h3{font-size:23px;font-weight:700;letter-spacing:-.5px;}
.evd-meta{font-size:14px;color:var(--violet);font-weight:600;margin-top:5px;}
.evd-desc{font-size:14px;line-height:1.65;opacity:.85;margin:14px 0 18px;}
.evd-cap{margin-bottom:18px;}
.evd-cap-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:7px;}
.evd-cap-label{font-weight:600;}
.evd-cap-left{opacity:.6;}
.evd-bar{height:8px;border-radius:999px;background:rgba(168,85,247,.16);overflow:hidden;}
.evd-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#a855f7,#7c3aed);transition:width .4s ease;}
.evd-parts{display:flex;align-items:center;gap:12px;margin-bottom:20px;}
.evd-avs{display:flex;}
.evd-av{width:34px;height:34px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;font-size:11px;font-weight:700;
  border:2px solid #0e0918;margin-left:-8px;}
.evd-av:first-child{margin-left:0;}
body.light .evd-av{border-color:#fff;}
.evd-parts-txt{font-size:13px;opacity:.7;}
.evd-join.line{color:#34d399;border-color:rgba(52,211,153,.5);}
/* --- créer une soirée (bouton + formulaire) --- */
.create-ev-btn{display:none;align-items:center;gap:7px;}
body.logged-in .create-ev-btn{display:inline-flex;}
.create-ev-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.ce-form{display:flex;flex-direction:column;}
.ce-form .modal-label{margin-top:12px;}
.ce-form .modal-label:first-child{margin-top:0;}
.ce-two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.ce-form textarea{width:100%;padding:11px 13px;border-radius:11px;resize:vertical;
  border:1px solid rgba(168,85,247,.25);background:transparent;color:inherit;font-family:inherit;font-size:14px;margin-top:4px;}
.ce-form textarea:focus{outline:none;border-color:var(--violet);}
.ce-form input[type="date"]{color-scheme:dark;}
body.light .ce-form input[type="date"]{color-scheme:light;}
/* ================================================================
   RECHERCHE DE SOIREES (toutes zones)
   ================================================================ */
.ev-search{position:relative;display:flex;align-items:center;gap:10px;max-width:460px;margin:0 0 18px;
  padding:10px 14px;border-radius:999px;border:1px solid rgba(168,85,247,.3);background:rgba(168,85,247,.06);
  transition:border-color .2s,background .2s;}
.ev-search:focus-within{border-color:var(--violet);background:rgba(168,85,247,.1);}
body.light .ev-search{background:rgba(124,58,237,.05);border-color:rgba(124,58,237,.2);}
.ev-search-ic{width:18px;height:18px;flex:none;stroke:var(--violet);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;}
.ev-search input{flex:1;min-width:0;border:none;background:transparent;color:inherit;font-family:inherit;font-size:14px;}
.ev-search input:focus{outline:none;}
.ev-search input::placeholder{opacity:.5;}
.ev-search-hint{flex:none;font-size:11.5px;opacity:.6;white-space:nowrap;}

/* pendant une recherche : seules les soirees correspondantes s'affichent,
   meme hors du departement du membre (le filtre departemental est ignore) */
.ev-search-hidden{display:none !important;}
#eventsGrid.ev-searching .ev:not(.ev-search-hidden){display:block !important;}

@media(max-width:860px){ .ev-search-hint{display:none;} }
/* ================================================================
   BOUTON FLOTTANT — créer une soirée
   ================================================================ */
.fab-create{display:none;position:fixed;right:26px;bottom:26px;z-index:60;
  width:58px;height:58px;border-radius:50%;border:none;cursor:none;
  background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff;
  align-items:center;justify-content:center;box-shadow:0 10px 28px rgba(124,58,237,.55);
  transition:transform .2s,box-shadow .2s;}
body.logged-in .fab-create{display:flex;}
.fab-create:hover{transform:translateY(-2px) scale(1.05);box-shadow:0 14px 34px rgba(124,58,237,.75);}
.fab-create svg{width:27px;height:27px;stroke:#fff;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;}
/* infobulle */
.fab-create::after{content:attr(data-label);position:absolute;right:calc(100% + 12px);top:50%;
  transform:translateY(-50%) translateX(6px);padding:7px 12px;border-radius:9px;white-space:nowrap;
  font-size:12.5px;font-weight:600;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);
  box-shadow:0 6px 16px rgba(124,58,237,.4);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;}
.fab-create:hover::after,.fab-create:focus-visible::after{opacity:1;transform:translateY(-50%) translateX(0);}
@media(max-width:860px){
  .fab-create{right:16px;bottom:calc(78px + env(safe-area-inset-bottom));width:52px;height:52px;}
  .fab-create svg{width:24px;height:24px;}
}
/* le bouton flottant ouvre un petit menu d'actions */
#fabToggle::after{display:none;}   /* pas d'infobulle (c'est un menu) */
.fab-plus{transition:transform .25s ease;}
.fab-create.open .fab-plus{transform:rotate(45deg);}
.fab-menu{display:flex;flex-direction:column;align-items:flex-end;gap:10px;
  position:fixed;right:26px;bottom:96px;z-index:61;}
.fab-menu[hidden]{display:none;}
.fab-action{display:inline-flex;align-items:center;gap:11px;padding:8px 16px 8px 8px;border-radius:999px;
  border:1px solid rgba(168,85,247,.28);background:#0e0918;color:inherit;font-family:inherit;
  font-size:13px;font-weight:600;cursor:none;white-space:nowrap;box-shadow:0 8px 24px rgba(0,0,0,.45);
  animation:fab-in .18s ease both;transition:transform .18s,border-color .18s;}
body.light .fab-action{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;box-shadow:0 8px 24px rgba(124,58,237,.18);}
.fab-action:hover{border-color:var(--violet);transform:translateY(-1px);}
.fab-ic{width:32px;height:32px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--pic,linear-gradient(135deg,#a855f7,#7c3aed));}
.fab-ic svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.fab-txt em{font-style:normal;opacity:.6;}
.fab-action.is-on .fab-ic{box-shadow:0 0 0 3px rgba(99,102,241,.4);}
@keyframes fab-in{from{opacity:0;transform:translateY(6px) scale(.96);}to{opacity:1;transform:none;}}
@media(max-width:860px){
  .fab-menu{right:16px;bottom:calc(140px + env(safe-area-inset-bottom));}
}
/* --- picto de profil (orientation) sur les fiches membres --- */
.profile-picto{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  padding:0;border-radius:6px;vertical-align:-6px;
  background:rgba(168,85,247,.18);color:var(--violet);}   /* couleur/fond redefinis par profil (inline) */
.profile-picto .ppic-svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;}
.profile-picto--sm{width:19px;height:19px;flex:none;vertical-align:middle;}
.profile-picto--sm .ppic-svg{width:14px;height:14px;stroke-width:1.9;}

/* ================================================================
   VUE CONNECTÉE : logo+nom en haut, rail de pictos à gauche,
   fil principal, soirées/membres en tiroirs sous le header
   ================================================================ */
@media(max-width:860px){:root{--headerh:66px;}}
@media(min-width:861px){:root{--railw:76px;}}      /* tablette : icône + mot dessous */
@media(min-width:1200px){:root{--railw:220px;}}    /* grand écran : icône + mot à côté */

/* ================================================================
   EN-TÊTE ÉTROIT : faire tenir « Connexion » et « Rejoindre »

   Sur un téléphone de 360 px, l'en-tête réclamait environ 470 px :
   logo 40 + nom du site 105 + bascule de thème 52 + deux boutons de
   ~100 chacun, plus les écarts et le rembourrage. Tout débordait.

   On ne supprime aucun des trois éléments. La bascule de thème est la
   SEULE du site : la masquer sur mobile retirerait la fonction à ceux
   qui n'ont pas d'autre moyen d'y accéder. On resserre donc, par
   paliers, au lieu de sacrifier.
   ================================================================ */
@media(max-width:860px){
  .top-actions{gap:10px;flex:none;}
  .logo-group{min-width:0;}
  header .btn{padding:8px 15px;font-size:12.5px;}
}

@media(max-width:560px){
  header{padding:12px 14px;}

  /* Le nom écrit disparaît, pas la marque : l'icône la porte, et le
     hero répète le logotype complet quelques pixels plus bas. */
  .brand-name{display:none;}
  .logo-mini.logo-icon{height:34px;}

  .top-actions{gap:8px;}
  header .btn{padding:7px 12px;font-size:12px;}

  /* Bascule de thème resserrée : 52 -> 44 px. */
  .switch{width:44px;height:24px;}
  .switch .knob{width:18px;height:18px;font-size:10px;}
  body.light .switch .knob{left:24px;}
}

/* Très petits écrans (iPhone SE et assimilés) : le libellé « Connexion »
   cède son cadre pour ne garder que son texte. « Rejoindre » reste plein,
   c'est l'action qu'on veut voir. */
@media(max-width:380px){
  header .btn.line{padding:7px 4px;border-color:transparent;background:none;}
  header .btn.solid{padding:7px 11px;}
  .top-actions{gap:6px;}
}

/* desktop (1024px et plus) : logo du header agrandi 46 -> 60px.
   le header grandit d'autant (18px de padding x2 + 60), d'ou --headerh 82 -> 96px.
   en dessous de 1024px (tablette et mobile) rien ne change. */
@media(min-width:1024px){
  :root{--headerh:96px;}
  .logo-mini{height:60px;}
}

/* --- rail latéral : uniquement des pictos (desktop/tablette) --- */
.app-rail{display:none;}
.rail-nav{display:flex;flex-direction:column;gap:4px;}
.rail-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  padding:8px 4px;border-radius:13px;border:none;background:transparent;color:inherit;font-family:inherit;text-decoration:none;
  opacity:1;cursor:none;transition:opacity .18s,color .18s,background .18s;}
.rail-item svg{width:22px;height:22px;stroke:var(--pic,currentColor);fill:none;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .18s;}
.rail-label{font-size:10.5px;font-weight:600;letter-spacing:.2px;opacity:.75;}
.rail-item:hover,.rail-item:focus-visible{opacity:1;background:rgba(168,85,247,.14);}
.rail-item:hover .rail-label,.rail-item:focus-visible .rail-label{opacity:1;}
.rail-item:hover svg,.rail-item:focus-visible svg{transform:scale(1.1);}
.rail-item.active{opacity:1;color:#fff;background:linear-gradient(135deg,#a855f7,#7c3aed);}
.rail-item.active .rail-label{opacity:1;}
.rail-item.active svg{stroke:#fff;}   /* picto en blanc sur l'onglet actif */
.rail-item .chat-badge{position:absolute;top:5px;right:8px;}
@media(min-width:1200px){
  .rail-item{flex-direction:row;justify-content:flex-start;gap:13px;padding:11px 14px;}
  .rail-item svg{flex:none;}
  .rail-label{font-size:14px;}
  .rail-item .chat-badge{top:50%;right:14px;transform:translateY(-50%);}
}
/* pas de trait/triangle : une infobulle-nom apparaît à droite au survol */
.rail-item::before,.rail-item::after{display:none;}   /* labels visibles : plus d'infobulle/de trait */

@media(min-width:861px){
  /* décale toute la page vers la droite ; le rail occupe la gouttière de gauche */
  /* header pleine largeur : on décale seulement le contenu (main/footer), pas le header */
  body.logged-in main,body.logged-in footer{padding-left:var(--railw);}
  body.logged-in .main-nav{display:none;}           /* la nav vit dans le rail ; le logo (wordmark = logo+nom) reste en haut */
  .rail-label{white-space:nowrap;}

  body.logged-in .app-rail{
    display:flex;flex-direction:column;
    position:fixed;top:0;left:0;bottom:0;width:var(--railw);z-index:30;
    padding:calc(var(--headerh) + 10px) 6px 14px;gap:6px;overflow:visible;
    background:rgba(10,7,18,.94);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
    border-right:1px solid rgba(168,85,247,.18);
  }
  body.light.logged-in .app-rail{background:rgba(250,248,254,.95);border-right-color:rgba(124,58,237,.16);}
}

/* --- le fil devient l'écran principal : on masque le marketing une fois connecté --- */
body.logged-in .hero,
body.logged-in .features{display:none;}

/* --- Pub verticale (skyscraper) le long du fil, à partir de la tablette --- */
body.logged-in .ad-slot{position:fixed;right:24px;top:calc(var(--headerh) + 24px);z-index:10;
  width:160px;max-width:160px;margin:0;padding:0;}
body.logged-in .ad-slot .ad-frame{min-height:600px;justify-content:center;}
@media(min-width:861px){body.logged-in main{padding-right:200px;}}   /* réserve la colonne de droite pour la pub */
@media(max-width:860px){body.logged-in .ad-slot{display:none;}}

/* --- Soirées : tiroir venant de la gauche, sous le header --- */
body.logged-in .events{
  position:fixed;top:var(--headerh);left:0;bottom:0;z-index:80;margin:0;
  width:min(760px,96vw);max-width:96vw;
  padding:20px 24px 48px;overflow-y:auto;overscroll-behavior:contain;
  background:#0e0918;border-right:1px solid rgba(168,85,247,.28);
  box-shadow:24px 0 60px rgba(0,0,0,.5);
  transform:translateX(-105%);transition:transform .32s cubic-bezier(.4,0,.2,1);
}
body.light.logged-in .events{background:#faf8fe;border-right-color:rgba(124,58,237,.18);}
body.logged-in.soiree-open .events{transform:translateX(0);}
body.logged-in .events .grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));}

.soiree-backdrop{position:fixed;inset:0;z-index:70;background:rgba(6,4,12,.55);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .3s ease;}
.soiree-backdrop[hidden]{display:none;}
body.logged-in.soiree-open .soiree-backdrop{opacity:1;}

.events-close{display:none;}
body.logged-in .events-close{display:flex;position:absolute;top:14px;right:16px;z-index:2;
  width:32px;height:32px;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.75;cursor:none;align-items:center;justify-content:center;}
body.logged-in .events-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}
.events-close svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;}

/* --- Membres : vue plein écran qui REMPLACE le fil (plus de tiroir) --- */
body.logged-in .members{display:none;}                 /* caché tant que la vue n'est pas active */
body.logged-in .members > .members-head,
body.logged-in #membersCount,
body.logged-in #membersGrid,
body.logged-in #membersMore,
body.logged-in .search-backdrop{display:none;}         /* ancienne grille de fond + fond de tiroir inutilisés */

body.logged-in.view-members .feed{display:none;}       /* le fil laisse la place aux membres */
body.logged-in.view-members .members{display:block;position:static;z-index:auto;
  max-width:1180px;margin:0 auto;padding:20px 40px 80px;}

/* le panneau de recherche s'affiche en flux normal dans la colonne principale */
body.logged-in.view-members .search-rail{position:static;transform:none;width:auto;max-width:none;
  height:auto;padding:0;background:transparent;border:none;box-shadow:none;overflow:visible;}
body.logged-in.view-members .search-panel .filters,
body.logged-in.view-members .search-results{overflow:visible;}
@media(max-width:860px){body.logged-in.view-members .members{padding:14px 16px 90px;}}

/* petites cartes dans le tiroir : 2 (mobile) · 3 (tablette) · 4 (desktop) */
.search-results .members-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
@media(min-width:861px){.search-results .members-grid{grid-template-columns:repeat(3,1fr);}}
@media(min-width:1200px){.search-results .members-grid{grid-template-columns:repeat(4,1fr);}}
.search-results .member-top{height:66px;}
.search-results .member-avatar{width:42px;height:42px;font-size:14px;}
.search-results .member-body{padding:9px 11px 3px;}
.search-results .member-name{font-size:13.5px;}
.search-results .member-meta{font-size:11.5px;}
.search-results .member-loc{font-size:11px;margin-top:4px;}
.search-results .member-active{display:none;}
.search-results .member-actions{padding:8px 11px 12px;gap:6px;}
.search-results .member-like,
.search-results .member-friend{width:32px;height:32px;border-radius:9px;}
.search-results .member-like svg,
.search-results .member-friend svg{width:16px;height:16px;}

/* ============================================================
   Onglets connectés (v2) : vues plein écran (priment, fin de fichier)
   ============================================================ */
/* Soirées : plus un tiroir, une vue en colonne */
body.logged-in .events{display:none;}
body.logged-in.view-soirees .events{display:block;position:relative;z-index:1;top:auto;left:auto;bottom:auto;
  width:auto;max-width:1180px;margin:0 auto;padding:20px 40px 90px;transform:none;
  background:transparent;border:none;box-shadow:none;overflow:visible;}
body.light.logged-in.view-soirees .events{background:transparent;}
@media(max-width:860px){body.logged-in.view-soirees .events{padding:14px 16px 90px;}}

/* la vue active masque le fil (membres déjà géré plus haut) */
body.logged-in.view-soirees .feed,
body.logged-in.view-messages .feed,
body.logged-in.view-orga .feed,
body.logged-in.view-profil .feed{display:none;}

/* bouton fermeture des soirées : seulement dans la vue */
body.logged-in .events-close{display:none;}
body.logged-in.view-soirees .events-close{display:flex;position:absolute;top:14px;right:16px;z-index:2;
  width:34px;height:34px;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.75;cursor:none;align-items:center;justify-content:center;}
body.logged-in.view-soirees .events-close:hover{opacity:1;color:var(--violet);background:rgba(168,85,247,.12);}

/* Messages : la messagerie s'affiche dans la colonne (plus une modale) */
body.logged-in.view-messages #chatOverlay{display:flex;position:static;inset:auto;z-index:1;
  padding:16px 40px 30px;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;}
body.logged-in.view-messages .chat-window{max-width:1180px;width:100%;height:calc(100vh - var(--headerh) - 70px);
  margin:0 auto;animation:none;}
@media(max-width:860px){
  body.logged-in.view-messages #chatOverlay{padding:0;}
  body.logged-in.view-messages .chat-window{height:calc(100vh - var(--headerh) - 66px);border-radius:0;}
}

/* Vues Orga & Profil */
.orga-view,.profil-view{display:none;}
body.logged-in.view-orga .orga-view,
body.logged-in.view-profil .profil-view{display:block;position:relative;z-index:1;
  max-width:820px;margin:0 auto;padding:22px 40px 90px;}
.view-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;}
.view-head h2{font-size:28px;font-weight:800;letter-spacing:-.4px;margin-bottom:6px;}
.view-head p{opacity:.65;font-size:14px;line-height:1.5;}
.orga-card,.profil-card{border:1px solid rgba(168,85,247,.22);border-radius:18px;padding:22px;background:rgba(168,85,247,.05);}
body.light .orga-card,body.light .profil-card{background:rgba(124,58,237,.04);border-color:rgba(124,58,237,.14);}
.orga-card>p{font-size:14.5px;line-height:1.65;margin-bottom:18px;}
.orga-actions,.profil-actions{display:flex;flex-wrap:wrap;gap:12px;}
/* l'avatar chevauche la couverture : la rangée est alignée en bas et
   l'avatar remonte de 40px, ce qui laisse le pseudo entièrement
   sous la couverture (contribution de l'avatar : 96-40 = 56px) */
.profil-hero{display:flex;align-items:flex-end;gap:16px;margin-bottom:20px;}
.profil-av{width:96px;height:96px;flex:none;border-radius:50%;background:linear-gradient(135deg,#a855f7,#7c3aed);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 0 0 5px var(--card-solid),0 0 24px 4px rgba(168,85,247,.32);}
.profil-av svg{width:44px;height:44px;stroke:#fff;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.profil-id{display:flex;flex-direction:column;gap:4px;min-width:0;}
.profil-name{font-size:20px;font-weight:800;letter-spacing:-.3px;}
.profil-sub{font-size:13px;opacity:.65;}
.profil-bio{margin-top:14px;font-size:14px;line-height:1.6;opacity:.85;white-space:pre-wrap;}
.profil-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;}

/* Pub (vue Fil uniquement) :
   >=1280 grand écran -> verticale, sticky (fixe) à droite ;
   768->1279 tablette/petit écran -> horizontale en haut, non sticky ;
   <768 -> masquée. */
body.logged-in .ad-slot{display:none;}
@media(min-width:768px){body.logged-in main{padding-right:0;}}
@media(min-width:768px) and (max-width:1279px){
  body.logged-in.view-feed .ad-slot{display:block;position:static;width:auto;max-width:680px;margin:0 auto 22px;padding:0;}
  body.logged-in.view-feed .ad-slot .ad-frame{min-height:90px;}
}
@media(min-width:1280px){
  body.logged-in.view-feed .ad-slot{display:block;position:fixed;right:24px;top:calc(var(--headerh) + 24px);z-index:10;
    width:160px;max-width:160px;margin:0;padding:0;}
  body.logged-in.view-feed .ad-slot .ad-frame{min-height:600px;justify-content:center;}
  body.logged-in.view-feed main{padding-right:200px;}
}

/* Croix de fermeture : simple, aucun effet au survol (pas de flèche) */
.view-close .ic-back{display:none;}
.view-close .ic-x{display:block;}
.view-close:hover,.view-close:focus-visible,
body.logged-in.view-soirees .events-close:hover{background:transparent !important;color:inherit !important;opacity:.75 !important;}
.view-close--inline{width:34px;height:34px;flex:none;border-radius:9px;border:1px solid rgba(168,85,247,.28);
  background:transparent;color:inherit;opacity:.75;cursor:none;display:flex;align-items:center;justify-content:center;}
.view-close--inline svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}

/* liste de cases à cocher (profils recherchés) */
.check-list{display:flex;flex-direction:column;gap:8px;}
.check-item{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:500;cursor:none;}
.check-item input{width:16px;height:16px;flex:none;accent-color:#a855f7;cursor:none;margin:0;}
.check-item:hover{color:var(--violet);}

/* switchs de filtre (Libre ce soir, avec photos, certifié, nouveaux) */
.switch-list{display:flex;flex-direction:column;gap:2px;}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0;font-size:13px;font-weight:500;cursor:none;}
.switch-row em{font-style:normal;opacity:.55;font-weight:600;}

/* ============================================================
   Photos : recadrage (cropper), avatars membres, avatar profil, flyer
   ============================================================ */
.cropper-backdrop{position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(6,4,12,.72);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);}
.cropper-modal{width:100%;max-width:380px;border-radius:20px;background:#0e0918;border:1px solid rgba(168,85,247,.28);
  padding:22px;box-shadow:0 30px 70px rgba(0,0,0,.55);animation:modal-in .22s ease both;text-align:center;}
body.light .cropper-modal{background:#fff;border-color:rgba(124,58,237,.2);color:#161320;}
.cropper-title{font-size:18px;font-weight:800;letter-spacing:-.3px;}
.cropper-hint{font-size:12.5px;opacity:.6;margin:6px 0 14px;}
.cropper-frame{position:relative;margin:0 auto;overflow:hidden;border-radius:12px;background:#000;
  touch-action:none;cursor:move;border:1px solid rgba(168,85,247,.3);}
.cropper-frame.is-round{border-radius:50%;}
.cropper-img{position:absolute;top:0;left:0;max-width:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;}
/* fond flouté qui comble les bandes quand l'image entière est conservée */
.cropper-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none;
  -webkit-filter:blur(16px);filter:blur(16px);transform:scale(1.25);opacity:.55;}
.cropper-frame.is-fit .cropper-bg{display:block;}
.cropper-zoom{display:flex;align-items:center;gap:10px;margin:14px 2px 4px;font-size:12px;opacity:.85;}
.cropper-zoom input{flex:1;accent-color:#a855f7;cursor:none;}
.cropper-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px;}

/* carte membre : photo pleine largeur */
.member-top--photo{background-size:cover;background-position:center;background-repeat:no-repeat;}
.search-results .member-top{height:150px;}

/* avatar header / fiche / profil : photo importée */
.avatar.has-photo{background-size:cover;background-position:center;}
.avatar.has-photo svg{display:none;}
.mprofile-av.has-photo{background-size:cover;background-position:center;}

/* édition de la photo de profil (vue Mon profil) */
/* remonte l'avatar dans la couverture ; z-index pour passer au-dessus */
.profil-av-wrap{position:relative;display:inline-flex;flex:none;cursor:none;
  margin-top:-40px;z-index:3;}
.profil-av-pick{position:relative;display:inline-flex;cursor:none;}
.profil-av.has-photo{background-size:cover;background-position:center;}
.profil-av.has-photo svg{display:none;}
.profil-av-cam{position:absolute;right:0;bottom:2px;width:30px;height:30px;border-radius:50%;
  background:linear-gradient(135deg,#a855f7,#7c3aed);border:3px solid var(--card-solid);
  display:flex;align-items:center;justify-content:center;transition:transform .18s;}
.profil-av-cam svg{width:15px;height:15px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.profil-av-wrap:hover .profil-av-cam{transform:scale(1.1);}

/* bouton « repositionner » : n'apparaît que si une photo est déjà en place */
.profil-av-move{position:absolute;left:0;bottom:2px;z-index:2;
  width:30px;height:30px;padding:0;border-radius:50%;cursor:none;
  background:#1a1428;border:3px solid var(--card-solid);
  display:flex;align-items:center;justify-content:center;transition:transform .18s;}
body.light .profil-av-move{background:#fff;}
.profil-av-move svg{width:14px;height:14px;stroke:#a855f7;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.profil-av-move:hover,.profil-av-move:focus-visible{transform:scale(1.14);}
/* l'attribut hidden doit l'emporter sur display:flex */
.profil-av-move[hidden]{display:none;}

/* ---- photo de couverture du profil (hero) ---- */
/* marge basse à 0 : c'est .profil-hero qui gère l'espacement, l'avatar
   devant pouvoir remonter dans la couverture */
.profil-cover{position:relative;overflow:hidden;
  margin:-22px -22px 0;border-radius:17px 17px 0 0;
  /* pas de min-height : le ratio doit rester exact, sinon background-size:cover
     rognerait à nouveau l'image alors qu'on la veut entière */
  aspect-ratio:3/1;max-height:260px;
  background:linear-gradient(135deg,rgba(168,85,247,.32),rgba(124,58,237,.12));
  border-bottom:1px solid rgba(168,85,247,.18);}
body.light .profil-cover{background:linear-gradient(135deg,rgba(124,58,237,.2),rgba(192,38,211,.08));
  border-bottom-color:rgba(124,58,237,.14);}
.profil-cover-img{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;}
/* toute la zone vide est cliquable (label lié à #coverInput) */
.profil-cover-empty{position:absolute;inset:0;padding:10px;cursor:none;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  font-size:13px;font-weight:600;letter-spacing:.2px;opacity:.72;text-align:center;
  transition:opacity .18s;}
.profil-cover-empty:hover{opacity:1;}
.profil-cover-empty svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;}
.profil-cover.has-photo .profil-cover-empty{display:none;}

/* barre d'outils flottante sur la couverture */
.pic-tools{position:absolute;top:10px;right:10px;z-index:2;display:flex;gap:8px;}
.pic-btn{width:32px;height:32px;flex:none;padding:0;border-radius:50%;cursor:none;
  border:1px solid rgba(255,255,255,.28);background:rgba(8,6,13,.55);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;transition:background .18s,transform .18s;}
.pic-btn:hover,.pic-btn:focus-visible{background:linear-gradient(135deg,#a855f7,#7c3aed);transform:scale(1.08);}
.pic-btn svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.pic-btn[hidden]{display:none;}

@media(max-width:860px){
  .profil-cover{margin:-22px -22px 0;}
  .pic-tools{top:8px;right:8px;gap:6px;}
  .pic-btn{width:30px;height:30px;}
  /* avatar plus compact : 80-32 = 48px de contribution dans la rangée */
  .profil-av{width:80px;height:80px;box-shadow:0 0 0 4px var(--card-solid),0 0 20px 3px rgba(168,85,247,.3);}
  .profil-av svg{width:36px;height:36px;}
  .profil-av-wrap{margin-top:-32px;}
  .profil-av-cam,.profil-av-move{width:27px;height:27px;border-width:3px;}
}

/* bouton « Recentrer » du recadrage : à gauche des actions */
.cropper-reset{margin-right:auto;}

/* flyer dans la création de soirée */
.modal-opt{font-weight:500;opacity:.55;font-size:12px;}
/* aperçu au format A4 portrait, comme le cadrage */
.ce-flyer{display:flex;align-items:center;justify-content:center;width:180px;aspect-ratio:210/297;margin:2px 0 4px;
  border-radius:12px;border:1.5px dashed rgba(168,85,247,.45);background:rgba(168,85,247,.05);
  cursor:none;overflow:hidden;color:inherit;}
.ce-flyer:hover{border-color:var(--violet);}
.ce-flyer-empty{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:600;opacity:.7;text-align:center;padding:8px;}
.ce-flyer-empty svg{width:22px;height:22px;stroke:var(--violet);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.ce-flyer-prev{width:100%;height:100%;object-fit:cover;display:block;}

/* carte soirée avec flyer portrait — A4, comme le cadrage */
.ev-banner--flyer{height:auto;aspect-ratio:210/297;}