/* LMS — profil personnel public, parité visuelle avec la boutique.
   Route profil uniquement, comptes SANS abonnement boutique.
   Ne modifie ni la boutique premium, ni les actions interactives. */

html body.route-profil.page-shell{overflow-x:clip!important}
html body.route-profil.page-shell>main.public-profile-page.personal-cover-profile{
  box-sizing:border-box!important;
  display:block!important;
  position:relative!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:0!important;height:auto!important;
  margin:0!important;padding:0 0 clamp(40px,5vw,80px)!important;
  overflow:visible!important;background:var(--bg)!important;color:var(--text)!important;
}
/* Avatar et informations sur la même trame de 2 colonnes que la boutique.
   La zone des actions reste pleine largeur sous l'identité. */
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header{
  position:relative!important;z-index:10!important;display:grid!important;
  box-sizing:border-box!important;align-items:start!important;
  grid-template-columns:112px minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto!important;
  gap:5px 28px!important;
  width:min(1160px,calc(100% - 40px))!important;max-width:1160px!important;
  min-width:0!important;min-height:0!important;
  margin:0 auto 40px!important;padding:25px 0 0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;text-align:left!important;overflow:visible!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-avatar{
  grid-column:1!important;grid-row:1 / span 3!important;
  justify-self:start!important;align-self:start!important;
  position:relative!important;z-index:11!important;
  box-sizing:border-box!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  width:112px!important;height:112px!important;min-width:112px!important;max-width:112px!important;
  margin:0!important;padding:0!important;
  border:4px solid #d95156!important;border-radius:50%!important;
  box-shadow:0 0 0 4px var(--bg)!important;
  background:var(--surface)!important;color:var(--text)!important;
  overflow:visible!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-avatar.is-online{
  border-color:#20b56b!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-avatar>img{
  display:block!important;width:100%!important;height:100%!important;
  border-radius:50%!important;object-fit:cover!important;overflow:hidden!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-info{
  display:contents!important;min-width:0!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-title{
  grid-column:2!important;grid-row:1!important;align-self:center!important;
  display:block!important;width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;text-align:left!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-title h1{
  margin:0!important;padding:0!important;color:var(--text)!important;
  font-size:clamp(24px,2.6vw,36px)!important;font-weight:700!important;
  line-height:1.2!important;letter-spacing:-.035em!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
}
/* Statistiques sur une seule ligne souple, sans carte grise. */
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats{
  grid-column:2!important;grid-row:2!important;align-self:start!important;
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:wrap!important;gap:5px 9px!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;text-align:left!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats>:is(a,span){
  display:inline-flex!important;flex-direction:row!important;
  align-items:baseline!important;justify-content:flex-start!important;
  gap:4px!important;flex:0 0 auto!important;
  min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;
  color:var(--text)!important;text-decoration:none!important;
  font-size:12px!important;font-weight:500!important;line-height:1.5!important;
  white-space:nowrap!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats>:not(:last-child)::after{
  content:"·";margin-left:5px;color:var(--muted);font-weight:400;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats strong{
  display:inline!important;flex:0 0 auto!important;
  margin:0!important;padding:0!important;
  font-size:12px!important;font-weight:700!important;line-height:1.5!important;
  color:var(--text)!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats>a:is(:hover,:focus-visible){
  color:var(--accent-text)!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-bio{
  grid-column:2!important;grid-row:3!important;align-self:start!important;
  display:block!important;min-width:0!important;max-width:720px!important;
  margin:0!important;padding:2px 0 0!important;color:var(--muted)!important;
  font-size:13px!important;line-height:1.55!important;overflow-wrap:anywhere!important;
}
/* Suivre / Message / actions : garder les formulaires, URLs et protections existants. */
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions{
  grid-column:1/-1!important;grid-row:4!important;align-self:start!important;
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  gap:9px!important;width:100%!important;max-width:570px!important;min-width:0!important;
  margin:22px 0 0!important;padding:0!important;overflow:visible!important;
  position:relative!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>:is(form,a,button){
  flex:1 1 150px!important;min-width:0!important;margin:0!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions :is(.profile-action-primary,.profile-action-secondary,.profile-premium-action){
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:45px!important;margin:0!important;padding:9px 14px!important;
  border-radius:11px!important;font-size:13px!important;font-weight:600!important;line-height:1.2!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>.profile-more{
  position:relative!important;flex:0 0 45px!important;min-width:45px!important;
  width:45px!important;height:45px!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>.profile-more>summary{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:45px!important;height:45px!important;min-height:45px!important;border-radius:11px!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>.profile-more>div{
  position:absolute!important;top:calc(100% + 7px)!important;right:0!important;left:auto!important;
  z-index:50!important;
}
/* Contenu conservé sous l'en-tête avec une largeur cohérente avec la boutique. */
html body.route-profil.page-shell>main.personal-cover-profile> :is(.public-profile-toolbar,.profile-offers-list,.profile-public-edit){
  box-sizing:border-box!important;
  width:min(1160px,calc(100% - 40px))!important;max-width:1160px!important;
  min-width:0!important;margin-left:auto!important;margin-right:auto!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-toolbar{
  margin-top:0!important;margin-bottom:18px!important;padding-bottom:13px!important;
  border-bottom:1px solid var(--line)!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.profile-offers-list{
  padding:0!important;overflow:visible!important;
}
@media(max-width:640px){
  html body.route-profil.page-shell>main.public-profile-page.personal-cover-profile{
    padding:0 0 86px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header{
    grid-template-columns:84px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
    gap:4px 20px!important;
    width:calc(100% - 32px)!important;max-width:none!important;
    margin:0 auto 35px!important;padding:22px 0 0!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-avatar{
    width:84px!important;height:84px!important;min-width:84px!important;max-width:84px!important;
    margin:0!important;border-width:3px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-title{
    grid-column:2!important;grid-row:1!important;align-self:center!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-title h1{
    font-size:clamp(21px,5.8vw,29px)!important;line-height:1.15!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats{
    grid-column:2!important;grid-row:2!important;margin:0!important;padding:0!important;
    gap:3px 7px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats>:is(a,span),
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats strong{
    font-size:12px!important;line-height:1.4!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-stats>:not(:last-child)::after{
    margin-left:3px;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-bio{
    grid-column:2!important;grid-row:3!important;
    font-size:12px!important;line-height:1.5!important;
    margin:0!important;padding:3px 0 0!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions{
    grid-column:1/-1!important;grid-row:4!important;
    flex-wrap:nowrap!important;max-width:none!important;
    margin:20px 0 0!important;gap:7px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>:is(form,a,button){
    flex:1 1 0!important;min-width:0!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>:is(form,a,button) :is(span,svg){
    max-width:100%!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions :is(.profile-action-primary,.profile-action-secondary,.profile-premium-action){
    font-size:12px!important;padding:8px!important;min-height:44px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions>.profile-more{
    flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:44px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile :is(.public-profile-toolbar,.profile-offers-list,.profile-public-edit){
    width:calc(100% - 32px)!important;max-width:none!important;
  }
}
@media(max-width:370px){
  html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header{
    grid-template-columns:74px minmax(0,1fr)!important;column-gap:13px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header>.public-profile-avatar{
    width:74px!important;height:74px!important;min-width:74px!important;max-width:74px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-title h1{
    font-size:21px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body.route-profil.page-shell>main.personal-cover-profile :is(a,button,summary){transition:none!important}
}

/* BASIC_PROFILE_COMPACT_V3: eliminate obsolete vertical reserves around content. */
html body.route-profil.page-shell>main.public-profile-page.personal-cover-profile{
 min-height:0!important;padding-bottom:24px!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header{
 min-height:0!important;height:auto!important;margin-bottom:12px!important;padding-top:16px!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-toolbar{
 margin-top:0!important;margin-bottom:10px!important;padding:0 0 10px!important;
 min-height:0!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-toolbar h2{
 margin:0!important;line-height:1.25!important;
}
html body.route-profil.page-shell>main.personal-cover-profile> :is(.profile-offers-list,.premium-offers-list){
 min-height:0!important;margin-top:0!important;margin-bottom:0!important;padding-bottom:0!important;
}
html body.route-profil.page-shell>main.personal-cover-profile>.profile-offers-list .explore-grid{
 margin-top:0!important;margin-bottom:0!important;align-items:start!important;
}
@media(max-width:640px){
 html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header{
  margin-bottom:11px!important;padding-top:12px!important;
 }
 html body.route-profil.page-shell>main.public-profile-page.personal-cover-profile{
  padding-bottom:22px!important;
 }
}

/* Owner shortcuts remain visible; visitor controls use a separate dropdown. */
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 flex-wrap:wrap!important;gap:7px!important;min-width:0!important;max-width:100%!important;
 flex:1 1 auto!important;margin:0!important;padding:0!important;
}
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links>form{
 display:flex!important;margin:0!important;padding:0!important;
}
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links :is(a,button){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 gap:6px!important;min-height:38px!important;height:auto!important;
 width:auto!important;min-width:0!important;padding:8px 11px!important;
 border:1px solid var(--line)!important;border-radius:9px!important;
 background:transparent!important;background-image:none!important;
 color:var(--text)!important;text-decoration:none!important;
 box-shadow:none!important;transform:none!important;
 font:inherit!important;font-size:12px!important;font-weight:500!important;
 line-height:1.3!important;cursor:pointer!important;
}
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links :is(a,button):is(:hover,:focus-visible){
 color:var(--accent)!important;border-color:var(--accent)!important;
 background:transparent!important;
}
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links svg{
 width:15px!important;height:15px!important;flex:0 0 15px!important;
 stroke:currentColor!important;
}
html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links .profile-menu-danger{
 color:var(--accent)!important;
}
@media(max-width:640px){
 html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links{
  width:100%!important;gap:6px!important;flex:1 1 100%!important;
 }
 html body.route-profil.page-shell .public-profile-header .profile-direct-actions.profile-owner-links :is(a,button){
  font-size:11px!important;min-height:36px!important;padding:7px 9px!important;
 }
}

/* PUBLIC_PROFILE_VISITOR_ACTIONS_V1
 * Suivre | Message | Actions in three isolated cells; no inline reporting
 * or blocking buttons until the disclosure is explicitly opened.
 * All selectors are restricted to a non-shop public profile.
 */
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  justify-content:start!important;
  gap:8px!important;
  width:100%!important;
  max-width:570px!important;
  min-width:0!important;
  overflow:visible!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions>:is(form,a,details){
  box-sizing:border-box!important;
  display:block!important;
  grid-column:auto!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  flex:none!important;
  align-self:stretch!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions>.profile-visitor-more{
  position:relative!important;
  height:auto!important;
  min-height:44px!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions :is(.profile-follow-action,.profile-message-action,.profile-actions-trigger){
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
  min-width:0!important;
  margin:0!important;
  padding:8px 7px!important;
  border-radius:10px!important;
  white-space:nowrap!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1.2!important;
  text-decoration:none!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-actions-trigger{
  list-style:none!important;
  border:1px solid var(--line)!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  cursor:pointer!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-actions-trigger::-webkit-details-marker{
  display:none!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-actions-chevron{
  display:block;
  flex:0 0 6px;
  width:6px;height:6px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-more[open] .profile-actions-chevron{
  transform:translateY(2px) rotate(225deg);
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions>.profile-visitor-more:not([open])>.profile-visitor-menu{
  display:none!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions>.profile-visitor-more[open]>.profile-visitor-menu{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  position:absolute!important;
  top:calc(100% + 7px)!important;
  left:auto!important;
  right:0!important;
  z-index:100!important;
  gap:3px!important;
  width:min(240px,calc(100vw - 32px))!important;
  min-width:0!important;
  padding:6px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:var(--surface)!important;
  box-shadow:0 14px 30px #0003!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu>form{
  display:block!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu :is(button){
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  width:100%!important;
  min-height:44px!important;
  height:auto!important;
  padding:10px 12px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:8px!important;
  color:var(--text)!important;
  font-size:13px!important;
  font-weight:400!important;
  line-height:1.25!important;
  text-align:left!important;
  transform:none!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu button:hover,
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu button:focus-visible{
  background:color-mix(in srgb,var(--accent) 9%,var(--surface))!important;
  color:var(--accent-text)!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu .profile-menu-danger{
  color:var(--accent-text)!important;
}
html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions .profile-visitor-menu svg{
  width:17px!important;
  height:17px!important;
  flex:0 0 17px!important;
}
@media(max-width:640px){
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    max-width:none!important;
    gap:6px!important;
    margin-top:14px!important;
  }
  html body.route-profil.page-shell>main.personal-cover-profile .public-profile-actions.profile-visitor-actions :is(.profile-follow-action,.profile-message-action,.profile-actions-trigger){
    font-size:11px!important;
    padding:8px 5px!important;
    min-height:44px!important;
  }
}

/* PROFILE_VISITOR_IOS_ACTION_DISMISS_V2
   Keep the active visitor dropdown above following content without creating
   a full-screen invisible touch layer. The JS click state handles Safari. */
html body.route-profil.page-shell>main.personal-cover-profile>.public-profile-header:has(.profile-visitor-more[open]){
  position:relative!important;
  z-index:145!important;
  overflow:visible!important;
}
html body.route-profil.page-shell>main.personal-cover-profile
.public-profile-actions.profile-visitor-actions>.profile-visitor-more[open]{
  position:relative!important;
  z-index:146!important;
}
html body.route-profil.page-shell>main.personal-cover-profile
.public-profile-actions.profile-visitor-actions>.profile-visitor-more>summary{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}
html body.route-profil.page-shell>main.personal-cover-profile
.public-profile-actions.profile-visitor-actions>.profile-visitor-more[open]>.profile-visitor-menu{
  max-height:min(55dvh,330px)!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
