/* ===== MODALE COMPTE (Bottom sheet mobile) ===== */

:root{
  /* hauteur tabbar : adapte si tu as déjà une variable */
  --ro-tabbar-h: var(--ro-size-80);
  --ro-account-z: 850; /* IMPORTANT: < tabbar si tabbar est au-dessus */
  /* + marge pour éviter le thumb central */
    --ro-tabbar-clearance: calc(var(--ro-tabbar-h) + var(--ro-space-24));
    
}

/* container */
.ro-modal__account[hidden]{ display:none; }

.ro-modal__account{
  position: fixed;
  inset: 0;
  z-index: var(--ro-account-z);
}

/* backdrop */
.ro-modal__accountBackdrop{
  position: absolute;
  inset: 0;
  transition: opacity 220ms ease;
  background: color-mix(in srgb, var(--ro-dolphing-600) 50%, transparent);
}

/* panel */
.ro-modal__accountPanel{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  background: var(--ro-bg-0);
  border: 1px solid var(--ro--border-infos);
  border-radius: var(--ro-radius-16) var(--ro-radius-16) 0 0;

  /* sous la tabbar */
  padding: var(--ro-space-12) var(--ro-space-12) calc(var(--ro-space-12) + var(--ro-tabbar-h));

  max-height: 80vh;
  overflow: auto;

  /* animation */
  transform: translateY(110%);
  transition: transform 360ms cubic-bezier(.22, .61, .36, 1);

  /* shadow proche de ton style */
  box-shadow: 0 -10px 30px rgba(0,0,0,.18);
  will-change: transform;
}

/* ouvert */
.ro-modal__account.is-open .ro-modal__accountPanel{
  transform: translateY(0);
}

/* handle */
.ro-modal__accountHandle{
  width: var(--ro-size-56);
  height: var(--ro-size-6);
  border-radius: 999px;
  background: var(--ro-neutral-200);
  margin: var(--ro-space-4) auto var(--ro-space-10);
  cursor: grab;
  touch-action: none; /* nécessaire pour drag */
}

.ro-modal__accountHandle:active{
  width: var(--ro-size-56);
  height: var(--ro-size-6);
  border-radius: 999px;
  background: var(--ro-neutral-200);
  margin: var(--ro-space-4) auto var(--ro-space-10);
  cursor: grabbing;
  touch-action: none; /* nécessaire pour drag */
}

/* header */
.ro-modal__accountHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: var(--ro-space-10);
}

.ro-modal__accountTitle{
  margin: 0;
  font-size: var(--ro-font-size-md);
  font-family: var(--ro-font-heading);
}

/* body */
.ro-modal__accountBody{
  display:grid;
  gap: var(--ro-space-8);
  margin-top: var(--ro-space-12);
  padding-bottom: var(--ro-space-32);
}

.ro-modal__accountItem{
  display:flex;
  align-items:center;
  gap: var(--ro-space-10);
  width: 100%;

  padding: var(--ro-space-12);
  border-radius: var(--ro-radius-12);

  background: var(--ro-bg-0);
  border: 1px solid var(--ro--border-dolphing);

  color: var(--ro-text-900);
  text-decoration:none;
}

.ro-modal__accountItem:hover{
  background: var(--ro-neutral-10);
}

.ro-modal__accountSep{
  height: 1px;
  background: var(--ro-neutral-150);
  margin: var(--ro-space-8) 0;
}

/* Desktop: on désactive la sheet */
@media (min-width: 900px){
  .ro-modal__account{ display:none; }
}


