/* ══════════════════════════════════════════════════════════════════════════
   PROFIL — refonte Leg Day des sections avant les réglages.
   Surface bleu profond pour l’identité, platinum pour la photo et le relevé,
   surfaces neutres pour les documents. Aucune bordure, aucun verre.
   ══════════════════════════════════════════════════════════════════════════ */
#view-profil .profile-legday-header{
  align-items:center;
  margin-bottom:20px;
}
#view-profil .profile-legday-header .vx-page-title{
  font-size:clamp(24px,2.4vw,30px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1;
}
#view-profil .profile-legday-hero{
  display:flex;
  align-items:center;
  gap:20px;
  padding:26px;
  margin-bottom:18px;
  border:0;
  border-radius:32px;
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  box-shadow:0 20px 40px -24px rgba(2,5,16,.78), inset 0 1px 0 rgba(255,255,255,.14);
  overflow:hidden;
}
#view-profil .profile-legday-avatar{
  flex:0 0 88px;
  width:88px;
  height:88px;
  padding:0;
  border:0;
  border-radius:50%;
  overflow:hidden;
  background-color:#5FA8D8 !important;
  background-image:none !important;
  color:#0A0D1E !important;
  font:800 24px/1 var(--f-sans);
  box-shadow:0 12px 24px -12px rgba(2,5,16,.8), inset 0 1px 0 rgba(255,255,255,.24);
}
#view-profil .profile-legday-avatar.has-profile-photo{
  background-color:#5FA8D8 !important;
  background-image:none !important;
}
#view-profil .profile-legday-avatar .profile-avatar-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
#view-profil .profile-legday-identity{
  min-width:0;
  flex:1 1 auto;
}
#view-profil .profile-legday-kicker{
  color:rgba(255,255,255,.66);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
}
#view-profil .profile-legday-name{
  margin-top:8px;
  color:#fff !important;
  font:800 clamp(23px,2.4vw,29px)/1.04 var(--f-sans);
  letter-spacing:-.045em;
  overflow-wrap:anywhere;
}
#view-profil .profile-legday-email{
  margin-top:5px;
  color:rgba(255,255,255,.78) !important;
  font:500 12.5px/1.4 var(--f-sans);
  overflow-wrap:anywhere;
}
#view-profil .profile-legday-verify{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:10px;
  color:rgba(255,255,255,.82);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.12em;
  text-transform:uppercase;
}
#view-profil .profile-legday-verify svg{
  flex:none;
  color:#B8E0B9;
}

/* ── Photo de profil : platinum, actions pleines ───────────────────────── */
#view-profil .profile-legday-photo{
  padding:24px;
  margin-bottom:18px;
  border:0;
  border-radius:32px;
  background:linear-gradient(158deg,#E5E3DA 0%,#DCDAD0 55%,#CFCCC0 100%);
  box-shadow:0 20px 36px -24px rgba(2,5,16,.55), inset 0 1px 0 rgba(255,255,255,.5);
  color:#0A0D1E;
}
#view-profil .profile-legday-photo-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
#view-profil .profile-legday-photo .profile-legday-kicker{
  color:rgba(10,13,30,.55);
}
#view-profil .profile-legday-photo-title{
  margin:6px 0 0;
  color:#0A0D1E;
  font:800 clamp(21px,2vw,25px)/1.04 var(--f-sans);
  letter-spacing:-.04em;
}
#view-profil .profile-legday-photo-sub{
  max-width:54ch;
  margin:7px 0 0;
  color:rgba(10,13,30,.66);
  font:500 12.5px/1.45 var(--f-sans);
}
#view-profil .profile-avatar-state{
  flex:none;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:rgba(10,13,30,.55);
  font:700 10px/1.2 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;
}
#view-profil .profile-avatar-state[data-kind="sync"]{ color:#2F6E41; }
#view-profil .profile-avatar-state[data-kind="pending"]{ color:#2A5B84; }
#view-profil .profile-avatar-state[data-kind="refresh"],
#view-profil .profile-avatar-state[data-kind="unavailable"]{ color:#8E3B36; }
#view-profil .profile-legday-filepick{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:52px;
  margin-top:18px;
  padding:0 16px;
  border:0;
  border-radius:20px;
  background:rgba(10,13,30,.065);
  color:#0A0D1E;
  font:600 13px/1.2 var(--f-sans);
  cursor:pointer;
  transition:background .18s ease, transform .18s ease;
}
#view-profil .profile-legday-filepick:hover{ background:rgba(10,13,30,.1); }
#view-profil .profile-legday-filepick:active{ transform:scale(.99); }
#view-profil .profile-legday-filepick svg{ flex:none; color:#2A5B84; }
#view-profil .profile-legday-filepick span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#view-profil .profile-legday-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:12px;
}
#view-profil .profile-legday-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
  min-height:48px;
  padding:0 14px;
  border:0;
  border-radius:20px;
  font:700 13px/1.1 var(--f-sans);
  letter-spacing:-.01em;
  cursor:pointer;
  transition:transform .16s ease, filter .16s ease;
}
#view-profil .profile-legday-btn:active{ transform:scale(.98); }
#view-profil .profile-legday-btn:disabled{ opacity:.55; cursor:wait; }
#view-profil .profile-legday-btn.is-primary{
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  box-shadow:0 14px 26px -16px rgba(2,5,16,.78), inset 0 1px 0 rgba(255,255,255,.16);
}
#view-profil .profile-legday-btn.is-secondary{
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%);
  color:#fff;
  box-shadow:0 14px 26px -16px rgba(2,5,16,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
#view-profil .profile-legday-btn.is-danger{
  background:linear-gradient(158deg,#A04841 0%,#8E3B36 55%,#73302C 100%);
  color:#fff;
  box-shadow:0 14px 26px -16px rgba(2,5,16,.7), inset 0 1px 0 rgba(255,255,255,.1);
}
#view-profil .profile-legday-btn:hover{ filter:brightness(1.06); }

/* ── Documents : surface neutre, socle bleu ───────────────────────────── */
#view-profil .profile-legday-surface{
  padding:20px;
  margin-bottom:18px;
  border:0;
  border-radius:24px;
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%);
  box-shadow:0 20px 36px -24px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.07);
  color:#fff;
}
#view-profil .profile-legday-doc-empty{
  display:flex;
  align-items:center;
  gap:16px;
}
#view-profil .profile-legday-socle{
  display:grid;
  place-items:center;
  flex:0 0 52px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:#5FA8D8;
  color:#0A0D1E;
  box-shadow:0 10px 20px -10px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.22);
}
#view-profil .profile-legday-doc-title{
  color:#fff;
  font:800 17px/1.1 var(--f-sans);
  letter-spacing:-.025em;
}
#view-profil .profile-legday-doc-sub{
  max-width:54ch;
  margin-top:5px;
  color:rgba(255,255,255,.68);
  font:500 12.5px/1.4 var(--f-sans);
}
#view-profil .wallet-documents-toggle{
  width:100%;
  padding:0;
  border:0;
  background:none;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
#view-profil .wallet-documents-toggle .wd-icon{
  flex:0 0 52px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:#5FA8D8;
  color:#0A0D1E;
  box-shadow:0 10px 20px -10px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.22);
}
#view-profil .wallet-documents-toggle .wd-title{ color:#fff; font:800 17px/1.1 var(--f-sans); letter-spacing:-.025em; }
#view-profil .wallet-documents-toggle .wd-sub{ color:rgba(255,255,255,.68); font:500 12px/1.4 var(--f-sans); }
#view-profil .wallet-documents-toggle .wd-chevron{ color:rgba(255,255,255,.72); }
#view-profil .wallet-documents-items{ border-top:1px solid rgba(255,255,255,.1); }
#view-profil .wallet-documents-items .switch-row{ color:#fff; }
#view-profil .wallet-documents-items .switch-row .switch-name{ color:#fff; }
#view-profil .wallet-documents-items .switch-row .switch-sub{ color:rgba(255,255,255,.64); }
#view-profil .wallet-documents-items .switch-row .switch-ic{
  background:#5FA8D8 !important;
  color:#0A0D1E !important;
  border-radius:50%;
}

/* ── Relevé : platinum, papier conservé ────────────────────────────────── */
#view-profil .profile-legday-statement{
  padding:24px;
  margin-bottom:24px;
  border:0;
  border-radius:44px;
  background:linear-gradient(158deg,#E5E3DA 0%,#DCDAD0 55%,#CFCCC0 100%);
  box-shadow:0 24px 42px -26px rgba(2,5,16,.6), inset 0 1px 0 rgba(255,255,255,.55);
  color:#0A0D1E;
  overflow:hidden;
}
#view-profil .profile-legday-statement .statement-kicker{
  color:rgba(10,13,30,.55);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.14em;
  text-transform:uppercase;
}
#view-profil .profile-legday-statement .statement-title{
  margin:7px 0 0;
  color:#0A0D1E;
  font:800 clamp(26px,2.6vw,32px)/1.04 var(--f-sans);
  letter-spacing:-.045em;
}
#view-profil .profile-legday-statement .statement-subtitle{
  max-width:58ch;
  margin:7px 0 0;
  color:rgba(10,13,30,.66);
  font:500 12.5px/1.5 var(--f-sans);
}
#view-profil .profile-legday-statement .statement-status{
  flex:none;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2F6E41;
  font:700 10px/1.2 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;
}
#view-profil .profile-legday-statement .statement-head-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  flex:none;
}
#view-profil .profile-legday-statement .statement-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:0 13px;
  border:0;
  border-radius:999px;
  background:rgba(10,13,30,.075);
  color:#0A0D1E;
  font:700 10px/1 var(--f-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4);
  transition:background .2s ease,transform .2s ease;
}
#view-profil .profile-legday-statement .statement-toggle:hover{ background:rgba(10,13,30,.12); }
#view-profil .profile-legday-statement .statement-toggle:active{ transform:scale(.98); }
#view-profil .profile-legday-statement .statement-toggle svg{ transition:transform .28s cubic-bezier(.23,1,.32,1); }
#view-profil .profile-legday-statement.is-collapsed .statement-toggle svg{ transform:rotate(180deg); }
#view-profil .profile-legday-statement .statement-body{
  display:grid;
  grid-template-rows:1fr;
  transition:grid-template-rows .38s cubic-bezier(.23,1,.32,1);
}
#view-profil .profile-legday-statement .statement-body-inner{
  min-height:0;
  overflow:hidden;
}
#view-profil .profile-legday-statement.is-collapsed .statement-body{ grid-template-rows:0fr; }
#view-profil .profile-legday-statement .statement-collapse-foot{
  display:flex;
  justify-content:center;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(10,13,30,.12);
}
#view-profil .profile-legday-statement .statement-collapse-bottom{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:44px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:rgba(10,13,30,.68);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
#view-profil .profile-legday-statement .statement-collapse-bottom:hover{ background:rgba(10,13,30,.075); color:#0A0D1E; }
#view-profil .profile-legday-statement.is-collapsed .statement-collapse-foot{ display:none; }
#view-profil .profile-legday-statement .statement-toggle:focus-visible,
#view-profil .profile-legday-statement .statement-collapse-bottom:focus-visible{
  outline:3px solid #356E9C;
  outline-offset:2px;
}
#view-profil .profile-legday-statement .statement-period-form{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:10px;
  align-items:end;
  margin-top:20px;
  padding-top:0;
  border-top:0;
}
#view-profil .profile-legday-statement .statement-period-form label{
  display:grid;
  gap:7px;
  color:rgba(10,13,30,.55);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}
#view-profil .profile-legday-statement .statement-period-form input{
  width:100%;
  min-width:0;
  height:48px;
  padding:0 14px;
  border:0;
  border-radius:20px;
  background:rgba(10,13,30,.065) !important;
  color:#0A0D1E !important;
  color-scheme:light;
  font:600 12px var(--f-mono);
  box-shadow:none !important;
}
#view-profil .profile-legday-statement .statement-period-form input:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(42,91,132,.18);
}
#view-profil .profile-legday-statement .statement-action{
  min-height:48px;
  padding:0 18px;
  border-radius:20px;
  white-space:nowrap;
}
#view-profil .profile-legday-statement .statement-currency{
  margin-top:16px;
}
#view-profil .profile-legday-statement .statement-currency-lbl{
  color:rgba(10,13,30,.55);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}
#view-profil .profile-legday-statement .statement-cur{
  min-height:42px;
  padding:0 14px;
  border:0;
  border-radius:20px;
  background:rgba(10,13,30,.065);
  color:#0A0D1E;
  font:700 11.5px/1 var(--f-sans);
  box-shadow:none;
}
#view-profil .profile-legday-statement .statement-cur:hover{ border:0; background:rgba(10,13,30,.1); }
#view-profil .profile-legday-statement .statement-cur.is-active{
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  box-shadow:0 12px 22px -14px rgba(2,5,16,.7), inset 0 1px 0 rgba(255,255,255,.14);
}
#view-profil .profile-legday-statement .statement-currency-note{
  color:rgba(10,13,30,.55);
  font:500 11px/1.5 var(--f-sans);
}
#view-profil .profile-legday-statement .statement-output{ margin-top:18px; }
#view-profil .profile-legday-statement .statement-empty{
  border:0;
  border-radius:20px;
  background:rgba(10,13,30,.065);
  color:rgba(10,13,30,.6);
  box-shadow:none;
}
#view-profil .profile-legday-statement .statement-empty-icon{
  background:#2A5B84;
  color:#fff;
}

/* ── Recadrage : modale platinum, scène navy ───────────────────────────── */
.profile-crop-mask{
  position:fixed;
  inset:0;
  z-index:13000;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(6,8,20,.74);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.profile-crop-mask[hidden]{ display:none !important; }
.profile-crop-dialog{
  width:min(520px,100%);
  max-height:calc(100dvh - 32px);
  overflow:auto;
  padding:24px;
  border-radius:32px;
  background:linear-gradient(158deg,#E5E3DA 0%,#DCDAD0 55%,#CFCCC0 100%);
  color:#0A0D1E;
  box-shadow:0 28px 60px -28px rgba(2,5,16,.85), inset 0 1px 0 rgba(255,255,255,.55);
}
.profile-crop-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.profile-crop-head .profile-legday-kicker{ color:rgba(10,13,30,.55); }
.profile-crop-head h2{
  margin:6px 0 0;
  color:#0A0D1E;
  font:800 26px/1.04 var(--f-sans);
  letter-spacing:-.045em;
}
.profile-crop-close{
  display:grid;
  place-items:center;
  flex:none;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(10,13,30,.07);
  color:#0A0D1E;
  cursor:pointer;
}
.profile-crop-stage{
  position:relative;
  width:min(100%,320px);
  aspect-ratio:1;
  margin:20px auto 0;
  overflow:hidden;
  border-radius:24px;
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 18px 32px -22px rgba(2,5,16,.8);
  cursor:grab;
  touch-action:none;
}
.profile-crop-stage:active{ cursor:grabbing; }
.profile-crop-stage img{
  position:absolute;
  left:50%;
  top:50%;
  max-width:none;
  transform-origin:center;
  user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}
.profile-crop-grid{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255,255,255,.18) calc(33.333% - .5px), rgba(255,255,255,.18) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.18) calc(66.666% - .5px), rgba(255,255,255,.18) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255,255,255,.18) calc(33.333% - .5px), rgba(255,255,255,.18) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.18) calc(66.666% - .5px), rgba(255,255,255,.18) calc(66.666% + .5px), transparent calc(66.666% + .5px));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);
  border-radius:inherit;
}
.profile-crop-zoom-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin-top:16px;
}
.profile-crop-zoom-row label{
  color:rgba(10,13,30,.55);
  font:700 10px/1 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}
.profile-crop-zoom-row input[type="range"]{
  width:100%;
  accent-color:#2A5B84;
}
.profile-crop-zoom-row span{
  min-width:42px;
  color:#0A0D1E;
  font:700 11px var(--f-mono);
  text-align:right;
}
.profile-crop-actions{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:10px;
  margin-top:18px;
}
.profile-crop-actions .profile-legday-btn{ width:100%; }
/* La modale est déplacée dans <body> : ses boutons ne sont plus sous #view-profil. */
.profile-crop-dialog .profile-legday-kicker{
  color:rgba(10,13,30,.55) !important;
  font:700 10px/1 var(--f-mono);
  letter-spacing:.16em;
  text-transform:uppercase;
}
.profile-crop-dialog .profile-legday-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:48px;
  padding:0 14px;
  border:0;
  border-radius:20px;
  font:700 13px/1.1 var(--f-sans);
  cursor:pointer;
}
.profile-crop-dialog .profile-legday-btn.is-primary{
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%) !important;
  color:#fff !important;
  box-shadow:0 14px 26px -16px rgba(2,5,16,.78), inset 0 1px 0 rgba(255,255,255,.16);
}
.profile-crop-dialog .profile-legday-btn.is-secondary{
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%) !important;
  color:#fff !important;
  box-shadow:0 14px 26px -16px rgba(2,5,16,.7), inset 0 1px 0 rgba(255,255,255,.08);
}
body.profile-crop-open{ overflow:hidden; }

@media (max-width:640px){
  #view-profil .profile-legday-hero{ gap:16px; padding:22px; border-radius:28px; }
  #view-profil .profile-legday-avatar{ flex-basis:72px !important; width:72px !important; height:72px !important; font-size:20px; }
  #view-profil .profile-legday-photo,
  #view-profil .profile-legday-statement{ padding:20px; border-radius:28px; }
  #view-profil .profile-legday-photo-head{ gap:10px; }
  #view-profil .profile-legday-actions{ grid-template-columns:1fr 1fr; }
  #view-profil .profile-legday-actions .is-danger{ grid-column:1 / -1; }
  #view-profil .profile-legday-statement .statement-head-actions{ justify-content:space-between; margin-top:12px; width:100%; }
  #view-profil .profile-legday-statement .statement-toggle{ min-height:44px; }
  #view-profil .profile-legday-statement .statement-period-form{ grid-template-columns:1fr 1fr; }
  #view-profil .profile-legday-statement .statement-action{ grid-column:1 / -1; width:100%; }
  .profile-crop-dialog{ padding:20px; border-radius:28px; }
  .profile-crop-actions{ grid-template-columns:1fr 1fr; }
  .profile-crop-actions .is-primary{ grid-column:1 / -1; grid-row:1; }
}
@media (max-width:420px){
  #view-profil .profile-legday-hero{ align-items:flex-start; padding:20px; }
  #view-profil .profile-legday-avatar{ flex-basis:64px !important; width:64px !important; height:64px !important; font-size:18px; }
  #view-profil .profile-legday-photo,
  #view-profil .profile-legday-statement{ padding:18px; }
  #view-profil .profile-legday-actions{ grid-template-columns:1fr 1fr; }
  #view-profil .profile-legday-actions .is-danger{ grid-column:1 / -1; }
  #view-profil .profile-legday-statement .statement-head-actions{ gap:8px; }
  #view-profil .profile-legday-statement .statement-period-form{ grid-template-columns:1fr; }
  .profile-crop-mask{ padding:12px; }
  .profile-crop-dialog{ padding:18px; border-radius:24px; }
  .profile-crop-actions{ grid-template-columns:1fr; }
  .profile-crop-actions .is-primary{ grid-column:auto; grid-row:auto; }
}
@media (max-width:370px){
  #view-profil .profile-legday-photo-head{ display:block; }
  #view-profil .profile-avatar-state{ display:inline-block; margin-top:8px; }
}
@media (prefers-reduced-motion:reduce){
  #view-profil .profile-legday-filepick,
  #view-profil .profile-legday-btn,
  #view-profil .profile-legday-statement .statement-body,
  #view-profil .profile-legday-statement .statement-toggle,
  #view-profil .profile-legday-statement .statement-toggle svg,
  .profile-crop-stage img{ transition:none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   COFFRE DOCUMENTAIRE + RELEVÉ — surfaces de lecture, matière Leg Day.
   ══════════════════════════════════════════════════════════════════════════ */
#view-profil .profile-legday-vault{
  padding:24px;
  margin-bottom:18px;
  border:0;
  border-radius:32px;
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%);
  box-shadow:0 20px 36px -24px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.07);
  color:#fff;
}
#view-profil .profile-legday-vault-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
#view-profil .profile-legday-vault .profile-legday-kicker{ color:rgba(255,255,255,.58); }
#view-profil .profile-legday-vault-title{
  margin-top:7px;
  color:#fff;
  font:800 clamp(24px,2.4vw,30px)/1.04 var(--f-sans);
  letter-spacing:-.045em;
}
#view-profil .profile-legday-vault-state{
  flex:none;
  color:#8FD6A0;
  font:700 10px/1.2 var(--f-mono);
  letter-spacing:.12em;
  text-transform:uppercase;
}
#view-profil .profile-legday-vault-empty{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  align-items:center;
  gap:22px;
  margin-top:20px;
}
#view-profil .profile-legday-vault-art{
  position:relative;
  width:112px;
  height:96px;
}
#view-profil .vault-sheet{
  position:absolute;
  left:50%;
  top:50%;
  width:62px;
  height:78px;
  border-radius:10px;
  box-shadow:0 14px 24px -14px rgba(2,5,16,.9), inset 0 1px 0 rgba(255,255,255,.5);
}
#view-profil .vault-sheet-back{
  background:linear-gradient(158deg,#DCDAD0,#CFCCC0);
  transform:translate(-50%,-50%) translateX(-17px) rotate(-13deg);
  opacity:.72;
}
#view-profil .vault-sheet-mid{
  background:linear-gradient(158deg,#E5E3DA,#DCDAD0);
  transform:translate(-50%,-50%) translateX(17px) rotate(9deg);
  opacity:.88;
}
#view-profil .vault-sheet-front{
  display:grid;
  place-items:center;
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  transform:translate(-50%,-50%);
  box-shadow:0 18px 28px -14px rgba(2,5,16,.95), inset 0 1px 0 rgba(255,255,255,.18);
}
#view-profil .vault-sheet-front svg{ opacity:.92; }
#view-profil .profile-legday-vault-copy{ min-width:0; }
#view-profil .profile-legday-vault-empty-title{
  color:#fff;
  font:800 18px/1.08 var(--f-sans);
  letter-spacing:-.03em;
}
#view-profil .profile-legday-vault-empty-sub{
  max-width:58ch;
  margin-top:7px;
  color:rgba(255,255,255,.68);
  font:500 12.5px/1.5 var(--f-sans);
}
#view-profil .profile-legday-vault-toggle{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  margin-top:18px;
  padding:14px 0 0;
  border:0;
  border-top:1px solid rgba(255,255,255,.1);
  background:none;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
#view-profil .profile-legday-vault-toggle .profile-legday-socle{
  flex:0 0 44px;
  width:44px;
  height:44px;
}
#view-profil .profile-legday-vault-toggle-copy{ display:flex; flex-direction:column; flex:1; min-width:0; }
#view-profil .profile-legday-vault-toggle-title{
  color:#fff;
  font:800 15px/1.1 var(--f-sans);
  letter-spacing:-.02em;
}
#view-profil .profile-legday-vault-toggle-sub{
  margin-top:4px;
  color:rgba(255,255,255,.64);
  font:500 11.5px/1.35 var(--f-sans);
}
#view-profil .profile-legday-vault-chevron{
  flex:none;
  color:rgba(255,255,255,.72);
  transition:transform .2s ease;
}
#view-profil .profile-legday-vault-toggle.open .profile-legday-vault-chevron{ transform:rotate(90deg); }
#view-profil .profile-legday-vault-items{
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.1);
}
#view-profil .profile-legday-vault-items[hidden]{ display:none; }
#view-profil .profile-legday-doc-row{
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  padding:14px 0;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:none;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
#view-profil .profile-legday-doc-row:last-child{ border-bottom:0; }
#view-profil .profile-legday-doc-row .profile-legday-socle{
  flex:0 0 42px;
  width:42px;
  height:42px;
}
#view-profil .profile-legday-doc-copy{ display:flex; flex-direction:column; flex:1; min-width:0; }
#view-profil .profile-legday-doc-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  color:#fff;
  font:700 13.5px/1.2 var(--f-sans);
}
#view-profil .profile-legday-doc-meta{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.58);
  font:500 11.5px/1.35 var(--f-sans);
  overflow-wrap:anywhere;
}
#view-profil .profile-legday-doc-note{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,.7);
  font:500 11.5px/1.35 var(--f-sans);
}
#view-profil .profile-legday-doc-badge{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  padding:0 8px;
  border-radius:999px;
  background:#5FA8D8;
  color:#0A0D1E;
  font:700 9.5px/1 var(--f-mono);
  letter-spacing:.03em;
}
#view-profil .profile-legday-doc-badge.is-pending{ background:#E6B34E; }
#view-profil .profile-legday-doc-badge.is-validated{ background:#8FD6A0; }
#view-profil .profile-legday-doc-badge.is-rejected{ background:#EF5A67; color:#fff; }
#view-profil .profile-legday-doc-badge.is-new{ background:#8EA9FF; }
#view-profil .profile-legday-doc-download{
  flex:none;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
}

/* Relevé : résumé, raccourcis, aperçu papier */
#view-profil .profile-legday-statement .statement-summary{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:13px 14px;
  border-radius:20px;
  background:rgba(10,13,30,.06);
}
#view-profil .statement-summary-ic{
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  box-shadow:0 10px 18px -12px rgba(2,5,16,.7);
}
#view-profil .statement-summary-kicker{
  display:block;
  color:rgba(10,13,30,.55);
  font:700 9.5px/1 var(--f-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
}
#view-profil .statement-summary-title{
  display:block;
  margin-top:5px;
  color:#0A0D1E;
  font:800 13px/1.2 var(--f-sans);
  letter-spacing:-.015em;
}
#view-profil .statement-summary-chip{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(42,91,132,.12);
  color:#2A5B84;
  font:700 9.5px/1 var(--f-mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
#view-profil .statement-quick{
  display:flex;
  gap:8px;
  margin-top:12px;
  overflow-x:auto;
  padding-bottom:2px;
  scrollbar-width:none;
}
#view-profil .statement-quick::-webkit-scrollbar{ display:none; }
#view-profil .statement-quick-btn{
  flex:none;
  min-height:40px;
  padding:0 14px;
  border:0;
  border-radius:999px;
  background:rgba(10,13,30,.065);
  color:#0A0D1E;
  font:700 11.5px/1 var(--f-sans);
  cursor:pointer;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}
#view-profil .statement-quick-btn:hover{ background:rgba(10,13,30,.1); }
#view-profil .statement-quick-btn:active{ transform:scale(.98); }
#view-profil .statement-quick-btn.is-active{
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  box-shadow:0 10px 18px -12px rgba(2,5,16,.7);
}
#view-profil .profile-legday-statement .statement-period-form{ margin-top:14px; }
#view-profil .statement-empty--preview{
  display:grid;
  grid-template-columns:170px minmax(0,1fr);
  align-items:center;
  gap:20px;
  padding:0;
  background:transparent;
  box-shadow:none;
}
#view-profil .statement-preview{
  position:relative;
  width:170px;
  min-height:126px;
  padding:12px;
  border-radius:14px;
  background:linear-gradient(158deg,#F0EEE6 0%,#E5E3DA 55%,#D8D5CA 100%);
  color:#0A0D1E;
  box-shadow:0 18px 28px -18px rgba(2,5,16,.55), inset 0 1px 0 rgba(255,255,255,.6);
  transform:rotate(-2deg);
  overflow:hidden;
}
#view-profil .statement-preview::before{
  content:"";
  position:absolute;
  top:8px;
  left:50%;
  width:34px;
  height:3px;
  margin-left:-17px;
  border-radius:999px;
  background:rgba(10,13,30,.14);
}
#view-profil .statement-preview-head{
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding-top:6px;
  font:800 8px/1 var(--f-mono);
  letter-spacing:.1em;
  color:rgba(10,13,30,.55);
}
#view-profil .statement-preview-balance{
  margin-top:15px;
  font:800 24px/1 var(--f-sans);
  letter-spacing:-.05em;
  color:#0A0D1E;
}
#view-profil .statement-preview-lines{
  display:grid;
  gap:6px;
  margin-top:14px;
}
#view-profil .statement-preview-lines i{
  display:block;
  height:4px;
  border-radius:999px;
  background:rgba(10,13,30,.12);
}
#view-profil .statement-preview-lines i:nth-child(2){ width:78%; }
#view-profil .statement-preview-lines i:nth-child(3){ width:92%; }
#view-profil .statement-preview-lines i:nth-child(4){ width:64%; }
#view-profil .statement-preview-foot{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
}
#view-profil .statement-preview-foot span{
  display:block;
  width:42px;
  height:3px;
  border-radius:999px;
  background:rgba(10,13,30,.1);
}
#view-profil .statement-empty-copy strong{
  display:block;
  color:#0A0D1E;
  font:800 15px/1.15 var(--f-sans);
  letter-spacing:-.02em;
}
#view-profil .statement-empty-copy span{
  display:block;
  max-width:44ch;
  margin-top:5px;
  color:rgba(10,13,30,.62);
  font:500 12px/1.45 var(--f-sans);
}
@media (max-width:640px){
  #view-profil .profile-legday-vault{ padding:20px; border-radius:28px; }
  #view-profil .profile-legday-vault-empty{ grid-template-columns:92px minmax(0,1fr); gap:16px; }
  #view-profil .profile-legday-vault-art{ width:92px; height:86px; }
  #view-profil .vault-sheet{ width:52px; height:66px; }
  #view-profil .statement-empty--preview{ grid-template-columns:1fr; gap:14px; }
  #view-profil .statement-preview{ width:170px; margin:0 auto; }
  #view-profil .statement-empty-copy{ text-align:center; }
  #view-profil .statement-empty-copy span{ margin-left:auto; margin-right:auto; }
}
@media (max-width:420px){
  #view-profil .profile-legday-vault{ padding:18px; }
  #view-profil .profile-legday-vault-empty{ grid-template-columns:1fr; text-align:left; }
  #view-profil .profile-legday-vault-art{ margin:0 auto; }
  #view-profil .statement-summary-chip{ margin-left:0; }
  #view-profil .statement-quick{ margin-right:-18px; padding-right:18px; }
}
@media (prefers-reduced-motion:reduce){
  #view-profil .statement-quick-btn{ transition:none !important; }
}

/* Le bouton Discussion reste global, mais s'efface sur le Profil pour ne pas
   recouvrir les surfaces de lecture (coffre, relevé, statut). */
#vtx-chat-fab.is-profile-hidden{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
  transform:translateY(8px) !important;
}

@media (max-width:380px){
  #view-profil .statement-quick{
    flex-wrap:wrap;
    overflow:visible;
    margin-right:0;
    padding-right:0;
  }
  #view-profil .statement-quick-btn{ flex:1 1 auto; }
}


/* ══════════════════════════════════════════════════════════════════════════
   SÉCURITÉ DU COMPTE + SESSION ACTIVE — deux surfaces signatures.
   ══════════════════════════════════════════════════════════════════════════ */
#view-profil .profile-legday-security-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:14px;
  margin:0 0 24px;
}
#view-profil .profile-legday-security-score,
#view-profil .profile-legday-session-card{
  min-width:0;
  border:0;
  border-radius:32px;
  padding:22px;
  overflow:hidden;
  box-shadow:0 22px 40px -26px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.08);
}
#view-profil .profile-legday-security-score{
  display:flex;
  flex-direction:column;
  min-height:292px;
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
}
#view-profil .profile-legday-session-card{
  display:flex;
  flex-direction:column;
  min-height:292px;
  background:linear-gradient(158deg,#E5E3DA 0%,#DCDAD0 55%,#CFCCC0 100%);
  color:#0A0D1E;
}
#view-profil .pls-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
#view-profil .pls-kicker{
  color:rgba(255,255,255,.62);
  font:700 9.5px/1.2 var(--f-mono);
  letter-spacing:.13em;
  text-transform:uppercase;
}
#view-profil .pls-kicker.dark{ color:rgba(10,13,30,.55); }
#view-profil .pls-level{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(143,214,160,.16);
  color:#C8E8B4;
  font:700 9px/1 var(--f-mono);
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}
#view-profil .pls-gauge-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  margin-top:18px;
}
#view-profil .pls-gauge{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 132px;
  width:132px;
  height:132px;
  border-radius:50%;
  isolation:isolate;
  filter:drop-shadow(0 14px 22px rgba(2,5,16,.28));
}
#view-profil .pls-gauge svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  transform:none !important;
}
#view-profil .pls-gauge-ticks{
  fill:none;
  stroke:rgba(255,255,255,.25);
  stroke-width:2;
  stroke-dasharray:1 7.2;
  stroke-linecap:round;
}
#view-profil .pls-gauge-rail{
  fill:none;
  stroke:rgba(255,255,255,.13);
  stroke-width:7;
}
#view-profil .pls-gauge-arc{
  fill:none;
  stroke:url(#plsGaugeArc);
  stroke-width:7;
  stroke-linecap:round;
  stroke-dasharray:326.7;
  stroke-dashoffset:26.1;
  animation:plsGaugeSweep 1.55s cubic-bezier(.22,.8,.24,1) both;
}
#view-profil .pls-gauge-inner{
  fill:url(#plsGaugeCore);
  stroke:rgba(255,255,255,.16);
  stroke-width:1;
}
#view-profil .pls-gauge-core{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  width:84px;
  height:84px;
  border-radius:50%;
  background:linear-gradient(158deg,rgba(255,255,255,.07),rgba(255,255,255,0));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
#view-profil .pls-gauge-value{
  color:#fff;
  font:800 23px/1 var(--f-sans);
  letter-spacing:-.055em;
  text-shadow:0 3px 12px rgba(2,5,16,.36);
}
#view-profil .pls-gauge-label{
  color:rgba(255,255,255,.58);
  font:700 6.5px/1 var(--f-mono);
  letter-spacing:.18em;
  text-transform:uppercase;
}
#view-profil .pls-orbit{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}
#view-profil .pls-orbit i{
  position:absolute;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#97CE5E;
  box-shadow:0 0 0 4px rgba(151,206,94,.13),0 0 14px rgba(151,206,94,.55);
}
#view-profil .pls-orbit i:nth-child(1){ top:0; left:50%; transform:translate(-50%,-50%); }
#view-profil .pls-orbit i:nth-child(2){ top:50%; right:0; transform:translate(50%,-50%); background:#8EAAFF; box-shadow:0 0 0 4px rgba(142,170,255,.13),0 0 14px rgba(142,170,255,.55); }
#view-profil .pls-orbit i:nth-child(3){ bottom:12%; left:8%; background:#5FA8D8; box-shadow:0 0 0 4px rgba(95,168,216,.14),0 0 14px rgba(95,168,216,.5); }
@keyframes plsGaugeSweep{
  from{ stroke-dashoffset:326.7; }
  to{ stroke-dashoffset:26.1; }
}
@media (prefers-reduced-motion:reduce){
  #view-profil .pls-gauge-arc{ animation:none; }
}
#view-profil .pls-gauge-copy{ min-width:0; }
#view-profil .pls-gauge-copy h3{
  margin:0;
  color:#fff;
  font:800 clamp(22px,2.2vw,27px)/1.03 var(--f-sans);
  letter-spacing:-.045em;
}
#view-profil .pls-gauge-copy p{
  max-width:26ch;
  margin:7px 0 0;
  color:rgba(255,255,255,.68);
  font:500 11px/1.4 var(--f-sans);
}
#view-profil .pls-pillars{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:auto;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.12);
}
#view-profil .pls-pillar{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:9px 8px;
  border-radius:16px;
  background:rgba(255,255,255,.075);
}
#view-profil .pls-pillar-ic{
  display:grid;
  place-items:center;
  flex:0 0 26px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:rgba(255,255,255,.13);
  color:#C8E8B4;
}
#view-profil .pls-pillar b,
#view-profil .pls-pillar small{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#view-profil .pls-pillar b{
  color:#fff;
  font:700 10px/1.15 var(--f-sans);
}
#view-profil .pls-pillar small{
  margin-top:2px;
  color:rgba(255,255,255,.56);
  font:500 9px/1.15 var(--f-sans);
}
#view-profil .pls-live{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  background:rgba(95,176,62,.13);
  color:#3E7D28;
  font:700 9px/1 var(--f-mono);
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}
#view-profil .pls-live i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#5FB03E;
  box-shadow:0 0 0 3px rgba(95,176,62,.14);
}
#view-profil .profile-legday-session-card h3{
  margin:16px 0 0;
  color:#0A0D1E;
  font:800 clamp(23px,2.3vw,29px)/1.02 var(--f-sans);
  letter-spacing:-.045em;
}
#view-profil .pls-session-device{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:16px;
  padding:11px 12px;
  border-radius:18px;
  background:rgba(10,13,30,.065);
}
#view-profil .pls-device-ic{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:50%;
  background:linear-gradient(158deg,#356E9C 0%,#2A5B84 55%,#22496A 100%);
  color:#fff;
  box-shadow:0 8px 16px -10px rgba(2,5,16,.7);
}
#view-profil .pls-device-copy{
  display:flex;
  flex-direction:column;
  min-width:0;
}
#view-profil .pls-device-copy b{
  color:#0A0D1E;
  font:800 12.5px/1.15 var(--f-sans);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#view-profil .pls-device-copy small{
  margin-top:3px;
  color:rgba(10,13,30,.55);
  font:500 10.5px/1.2 var(--f-sans);
}
#view-profil .pls-session-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:14px;
}
#view-profil .pls-session-meta span{
  display:block;
  color:rgba(10,13,30,.52);
  font:700 8.5px/1 var(--f-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
#view-profil .pls-session-meta strong{
  display:block;
  margin-top:4px;
  color:#0A0D1E;
  font:800 12px/1.2 var(--f-sans);
}
#view-profil .pls-manage{
  width:100%;
  min-height:44px;
  margin-top:auto;
  padding-top:0;
  padding-bottom:0;
  font-size:12px;
}
#view-profil .profile-legday-action-list{
  padding:5px 16px;
  margin-bottom:8px;
  border-radius:28px;
  background:linear-gradient(158deg,#2E3140 0%,#24262F 55%,#1C1E25 100%);
  box-shadow:0 20px 36px -24px rgba(2,5,16,.72), inset 0 1px 0 rgba(255,255,255,.07);
}
#view-profil .profile-legday-action-row{
  display:flex;
  align-items:center;
  gap:13px;
  width:100%;
  min-height:66px;
  padding:11px 0;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:none;
  color:#fff;
  text-align:left;
  cursor:pointer;
}
#view-profil .profile-legday-action-row:last-child{ border-bottom:0; }
#view-profil .profile-legday-action-row .profile-legday-socle{
  flex:0 0 44px;
  width:44px;
  height:44px;
}
#view-profil .profile-legday-socle.is-slate{
  background:#8A91B8;
  color:#fff;
}
#view-profil .pls-action-copy{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}
#view-profil .pls-action-copy b{
  color:#fff;
  font:700 13.5px/1.15 var(--f-sans);
}
#view-profil .pls-action-copy small{
  margin-top:3px;
  color:rgba(255,255,255,.6);
  font:500 11px/1.3 var(--f-sans);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#view-profil .pls-action-chevron{
  flex:none;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  color:rgba(255,255,255,.42);
}
@media (max-width:760px){
  #view-profil .profile-legday-security-grid{ grid-template-columns:1fr; }
  #view-profil .profile-legday-security-score,
  #view-profil .profile-legday-session-card{ min-height:0; }
  #view-profil .pls-manage{ margin-top:16px; }
}
@media (max-width:420px){
  #view-profil .profile-legday-security-score,
  #view-profil .profile-legday-session-card{ padding:18px; border-radius:28px; }
  #view-profil .pls-pillars{ gap:6px; }
  #view-profil .pls-pillar{ padding:8px 6px; gap:6px; }
  #view-profil .pls-pillar-ic{ flex-basis:24px; width:24px; height:24px; }
  #view-profil .pls-pillar b{ font-size:9.5px; }
  #view-profil .pls-pillar small{ font-size:8.5px; }
  #view-profil .profile-legday-action-list{ padding:4px 14px; border-radius:24px; }
}

#view-profil .profile-legday-socle.is-green{
  background:#5FB03E;
  color:#fff;
}
#view-profil .profile-legday-socle.is-danger{
  background:#EF5A67;
  color:#fff;
}
#view-profil .profile-legday-action-row.is-static{ cursor:default; }
#view-profil .profile-legday-action-row.is-danger .pls-action-copy b{ color:#FFB4B8; }
#view-profil .pls-action-value{
  margin-left:auto;
  flex:none;
  color:rgba(255,255,255,.72);
  font:700 12px/1 var(--f-sans);
}
#view-profil .profile-legday-action-row .toggle{
  flex:none;
  margin-left:auto;
}

#view-profil .profile-legday-action-row.is-danger#profile-logout-row{
  background:transparent !important;
}

@media (max-width:420px){
  #view-profil .pls-gauge{ flex-basis:112px; width:112px; height:112px; }
  #view-profil .pls-gauge-core{ width:72px; height:72px; }
  #view-profil .pls-gauge-value{ font-size:21px; }
  #view-profil .pls-gauge-label{ font-size:6px; }
  #view-profil .pls-gauge-wrap{ gap:13px; }
}

/* ============================================================================
   Raccourcis du Profil — famille dédiée au Support technique.
   Elle se place sous les cartes « Protection active » et « Appareil connecté »,
   juste avant la famille Sécurité. Une seule tuile pleine largeur.
   ============================================================================ */
#view-profil .profile-legday-shortcuts-label{
  margin-top:26px;
  margin-bottom:12px;
}
#view-profil .profile-legday-shortcuts-list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0;
  margin-bottom:0;
}
#view-profil .profile-legday-shortcut{
  position:relative;
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
  width:100%;
  min-height:112px;
  padding:24px;
  border:0;
  border-radius:32px;
  background:linear-gradient(158deg,#9B423B 0%,#833A34 55%,#6D2E2A 100%);
  color:#fff;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  box-shadow:0 20px 40px -24px rgba(2,5,16,.78), inset 0 1px 0 rgba(255,255,255,.14);
  transition:transform .18s ease, box-shadow .18s ease;
}
#view-profil .profile-legday-shortcut::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 88% 0%,rgba(255,214,160,.16),transparent 34%);
}
#view-profil .profile-legday-shortcut:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 46px -24px rgba(2,5,16,.86), inset 0 1px 0 rgba(255,255,255,.18);
}
#view-profil .profile-legday-shortcut:active{ transform:scale(.99); }
#view-profil .profile-legday-shortcut:focus-visible{
  outline:3px solid rgba(240,181,106,.8);
  outline-offset:3px;
}
#view-profil .profile-legday-shortcut-socle{
  flex:0 0 62px;
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(158deg,#F3BE78 0%,#E39A48 55%,#C98735 100%);
  color:#261306;
  box-shadow:0 12px 22px -12px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.42);
}
#view-profil .profile-legday-shortcut-copy{
  display:block;
  min-width:0;
  flex:1 1 auto;
}
#view-profil .profile-legday-shortcut-copy b{
  display:block;
  color:#fff;
  font:800 18px/1.1 var(--f-sans);
  letter-spacing:-.035em;
  overflow-wrap:anywhere;
}
#view-profil .profile-legday-shortcut-copy small{
  display:block;
  margin-top:7px;
  color:rgba(255,255,255,.74);
  font:500 11.5px/1.45 var(--f-sans);
  overflow-wrap:anywhere;
}
#view-profil .profile-legday-shortcut-chevron{
  position:relative;
  z-index:1;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:rgba(255,255,255,.74);
}
#view-profil .profile-legday-shortcut .unread-dot{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
}
@media (max-width:640px){
  #view-profil .profile-legday-shortcuts-label{ margin-top:22px; }
  #view-profil .profile-legday-shortcut{
    padding:20px;
    border-radius:28px;
  }
  #view-profil .profile-legday-shortcut-socle{
    flex-basis:54px;
    width:54px;
    height:54px;
  }
  #view-profil .profile-legday-shortcut-copy b{ font-size:17px; }
  #view-profil .profile-legday-shortcut-copy small{ font-size:11px; }
}
