/* Euphoria Key — Premium UI */

.bid-key-page-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}

.bid-key-page-intro h1{
  margin:4px 0 8px;
  font-size:clamp(30px,5vw,46px);
  line-height:1.04;
  letter-spacing:-.035em;
}

.bid-key-page-lead{
  max-width:650px;
  margin:0;
  color:#526a7a;
  font-size:15px;
  line-height:1.65;
}

.bid-key-page-mark{
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  flex:0 0 64px;
  border:1px solid rgba(0,113,138,.13);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(0,113,138,.10),rgba(0,113,138,.025));
  color:#00718a;
  font-size:32px;
}

.bid-key-dashboard{
  display:grid;
  gap:20px;
}

/* Résumé sécurité */

.bid-key-summary{
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  overflow:hidden;
  padding:22px;
  border:1px solid rgba(0,113,138,.11);
  border-radius:20px;
  background:
    radial-gradient(circle at 95% 0,rgba(0,113,138,.10),transparent 35%),
    rgba(255,255,255,.78);
  box-shadow:0 14px 38px rgba(3,31,53,.045);
}

.bid-key-summary__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  flex:0 0 52px;
  border-radius:16px;
  background:#00718a;
  color:#fff;
  font-size:22px;
  box-shadow:0 8px 22px rgba(0,113,138,.18);
}

.bid-key-summary__copy{
  flex:1;
  min-width:0;
}

.bid-key-summary__copy h2{
  margin:3px 0 4px;
  font-size:20px;
}

.bid-key-summary__copy p{
  margin:0;
  color:#526a7a;
  font-size:13px;
  line-height:1.55;
}

.bid-key-summary__state{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(30,133,78,.08);
  color:#26764b;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.bid-key-summary__state i,
.bid-key-active i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}

.bid-key-section{
  padding:22px;
  border:1px solid rgba(3,31,53,.08);
  border-radius:20px;
  background:rgba(255,255,255,.78);
  box-shadow:0 10px 32px rgba(3,31,53,.035);
}

.bid-key-section__head{
  margin-bottom:16px;
}

.bid-key-section__head h2{
  margin:4px 0 0;
  font-size:20px;
}

.bid-key-devices{
  display:grid;
  gap:14px;
}

/* ============================================================
   AUTHENTIFICATEUR
   ============================================================ */

.bid-key-device{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid rgba(3,31,53,.08);
  border-radius:18px;
  background:linear-gradient(145deg,#fff,rgba(244,247,248,.88));
  box-shadow:0 8px 24px rgba(3,31,53,.035);
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

.bid-key-device:hover{
  border-color:rgba(0,113,138,.15);
  box-shadow:0 14px 35px rgba(3,31,53,.06);
  transform:translateY(-1px);
}

.bid-key-device::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:3px;
  height:100%;
  background:linear-gradient(#00718a,rgba(0,113,138,.22));
}

/* Header */

.bid-key-device__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.bid-key-device__identity{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}

.bid-key-device__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:14px;
  background:rgba(0,113,138,.075);
  color:#00718a;
  font-size:21px;
}

.bid-key-device__copy{
  min-width:0;
}

.bid-key-device__type{
  display:block;
  margin-bottom:2px;
  color:#00718a;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.bid-key-device__copy h3{
  margin:0;
  overflow:hidden;
  font-size:17px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.bid-key-device__copy p{
  margin:3px 0 0;
  color:#526a7a;
  font-size:12px;
}

/* Badge actif */

.bid-key-active{
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:999px;
  background:rgba(30,133,78,.075);
  color:#26764b;
  font-size:11px;
  font-weight:700;
}

.bid-key-active i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}

/* Informations */

.bid-key-device__facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:17px;
}

.bid-key-fact{
  min-width:0;
  padding:11px 12px;
  border-radius:12px;
  background:rgba(3,31,53,.035);
}

.bid-key-fact span{
  display:block;
  margin-bottom:4px;
  color:#526a7a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.bid-key-fact strong{
  display:block;
  overflow:hidden;
  color:#526a7a;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  text-overflow:ellipsis;
}

/* Footer */

.bid-key-device__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid rgba(3,31,53,.065);
}

.bid-key-protection{
  color:#526a7a;
  font-size:11px;
}

.bid-key-remove{
  appearance:none;
  padding:7px 10px;
  border:1px solid rgba(0,113,138,.12);
  border-radius:9px;
  background:rgba(0,113,138,.035);
  color:#00718a;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  transition:
    background .2s ease,
    border-color .2s ease;
}

.bid-key-remove:hover{
  border-color:rgba(0,113,138,.22);
  background:rgba(0,113,138,.075);
}

.bid-key-remove:disabled{
  opacity:.5;
  cursor:wait;
}

/* Aucun authentificateur */

.bid-key-zero{
  padding:34px 20px;
  border:1px dashed rgba(0,113,138,.16);
  border-radius:16px;
  text-align:center;
}

.bid-key-zero__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0 auto 12px;
  border-radius:16px;
  background:rgba(0,113,138,.07);
  color:#00718a;
  font-size:24px;
}

.bid-key-zero h3{
  margin:0 0 5px;
}

.bid-key-zero p{
  max-width:420px;
  margin:0 auto;
  color:#526a7a;
  font-size:13px;
}

/* ============================================================
   AJOUTER UNE Euphoria Key
   ============================================================ */

.bid-key-enroll{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:17px;
  padding:22px;
  border:1px solid rgba(0,113,138,.10);
  border-radius:20px;
  background:
    linear-gradient(
      145deg,
      rgba(0,113,138,.035),
      rgba(255,255,255,.88)
    );
}

.bid-key-enroll__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:16px;
  background:rgba(0,113,138,.08);
  color:#00718a;
  font-size:28px;
  font-weight:300;
}

.bid-key-enroll__content{
  max-width:720px;
}

.bid-key-enroll__content h2{
  margin:4px 0 6px;
  font-size:20px;
}

.bid-key-enroll__content > p{
  margin:0 0 17px;
  color:#526a7a;
  font-size:13px;
  line-height:1.55;
}

.bid-key-enroll__content label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
}

.bid-key-enroll__content .mb-input{
  box-sizing:border-box;
  width:100%;
  max-width:520px;
}

.bid-key-enroll__actions{
  margin-top:12px;
}

.bid-key-message{
  min-height:18px;
  margin:10px 0 0;
  color:#526a7a;
  font-size:11px;
}


/* ============================================================
   TABLETTE / MOBILE
   ============================================================ */

@media(max-width:720px){

  .bid-key-page-intro{
    align-items:flex-start;
    gap:14px;
    margin-bottom:18px;
  }

  .bid-key-page-intro h1{
    font-size:32px;
  }

  .bid-key-page-lead{
    font-size:13px;
    line-height:1.55;
  }

  .bid-key-page-mark{
    width:50px;
    height:50px;
    flex:0 0 50px;
    border-radius:15px;
    font-size:25px;
  }


  /* Résumé */

  .bid-key-summary{
    display:grid;
    grid-template-columns:46px minmax(0,1fr);
    gap:14px;
    padding:17px;
  }

  .bid-key-summary__icon{
    width:46px;
    height:46px;
    flex-basis:46px;
    border-radius:14px;
  }

  .bid-key-summary__copy h2{
    font-size:17px;
  }

  .bid-key-summary__copy p{
    font-size:12px;
  }

  .bid-key-summary__state{
    grid-column:2;
    justify-self:start;
    margin-top:-4px;
  }


  /* Section */

  .bid-key-section{
    padding:16px;
    border-radius:17px;
  }

  .bid-key-section__head{
    margin-bottom:13px;
  }

  .bid-key-section__head h2{
    font-size:18px;
  }


  /* Authentificateur */

  .bid-key-device{
    padding:15px;
    border-radius:16px;
  }

  .bid-key-device__top{
    gap:9px;
  }

  .bid-key-device__identity{
    gap:10px;
    flex:1;
    min-width:0;
  }

  .bid-key-device__icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:13px;
  }

  .bid-key-device__copy{
    min-width:0;
  }

  .bid-key-device__copy h3{
    max-width:190px;
    font-size:15px;
  }

  .bid-key-device__copy p{
    font-size:11px;
  }

  .bid-key-active{
    padding:5px 7px;
    font-size:10px;
  }


  /* Informations */

  .bid-key-device__facts{
    grid-template-columns:1fr;
    gap:6px;
    margin-top:14px;
  }

  .bid-key-fact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:9px 10px;
  }

  .bid-key-fact span{
    flex:0 0 auto;
    margin:0;
  }

  .bid-key-fact strong{
    text-align:right;
    white-space:normal;
  }


  /* Footer */

  .bid-key-device__footer{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
  }

  .bid-key-protection{
    line-height:1.45;
  }

  .bid-key-remove{
    width:100%;
    min-height:40px;
  }


  /* Ajout */

  .bid-key-enroll{
    grid-template-columns:1fr;
    gap:13px;
    padding:17px;
    border-radius:17px;
  }

  .bid-key-enroll__icon{
    width:46px;
    height:46px;
    border-radius:14px;
    font-size:25px;
  }

  .bid-key-enroll__content h2{
    font-size:18px;
  }

  .bid-key-enroll__content .mb-input{
    max-width:none;
  }

  .bid-key-enroll__actions .mb-btn{
    width:100%;
    min-height:44px;
  }
}


/* ============================================================
   PETIT IPHONE
   ============================================================ */

@media(max-width:390px){

  .bid-key-page-mark{
    display:none;
  }

  .bid-key-page-intro{
    display:block;
  }

  .bid-key-device__copy h3{
    max-width:150px;
  }

  .bid-key-active{
    font-size:9px;
  }

  .bid-key-summary{
    grid-template-columns:42px minmax(0,1fr);
  }

  .bid-key-summary__icon{
    width:42px;
    height:42px;
  }

  .bid-key-protection{
    font-size:10px;
  }
}

/* ============================================================
   Euphoria ID — MOBILE NAVIGATION
   ============================================================ */

.bid-mobile-menu,
.bid-mobile-nav{
  display:none;
}

@media(max-width:900px){

  .mb-sidebar{
    display:none !important;
  }

  .bid-app-shell,
  .mb-shell{
    width:100%;
    min-width:0;
  }

  .bid-mobile-menu{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;

    width:42px;
    height:42px;
    flex:0 0 42px;

    margin-right:12px;

    border:1px solid rgba(0,113,138,.10);
    border-radius:13px;

    background:rgba(0,113,138,.06);
    cursor:pointer;
  }

  .bid-mobile-menu span{
    display:block;
    width:17px;
    height:1.5px;
    border-radius:2px;
    background:#00718a;
  }

  .bid-mobile-nav{
    position:fixed;
    inset:0;
    z-index:10000;
  }

  .bid-mobile-nav.is-open{
    display:block;
  }

  .bid-mobile-nav__backdrop{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    border:0;
    background:rgba(3,31,53,.42);
    backdrop-filter:blur(5px);
  }

  .bid-mobile-nav__drawer{
    position:absolute;
    top:0;
    bottom:0;
    left:0;

    display:flex;
    flex-direction:column;

    width:min(86vw,340px);
    padding:20px 18px;

    overflow-y:auto;

    background:
      linear-gradient(180deg,#00718a 0%,#031f35 100%);

    color:#fff;

    box-shadow:20px 0 60px rgba(3,31,53,.22);

    animation:bid-mobile-drawer-in .22s ease-out;
  }

  .bid-mobile-nav__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:25px;
  }

  .bid-mobile-nav__head .mb-brand{
    color:#fff;
  }

  .bid-mobile-nav__close{
    width:40px;
    height:40px;
    flex:0 0 40px;

    border:1px solid rgba(255,255,255,.15);
    border-radius:12px;

    background:rgba(255,255,255,.08);
    color:#fff;

    font-size:26px;
    line-height:1;
  }

  .bid-mobile-nav .mb-nav{
    flex:1;
  }

  .bid-mobile-nav .mb-nav__label{
    color:rgba(255,255,255,.48);
  }

  .bid-mobile-nav .mb-nav__link{
    color:rgba(255,255,255,.88);
  }

  .bid-mobile-nav .mb-nav__link[aria-current="page"]{
    background:rgba(255,255,255,.12);
    color:#fff;
    border-color:rgba(255,255,255,.16);
  }

  .bid-mobile-nav__user{
    display:flex;
    align-items:center;
    gap:11px;

    margin-top:22px;
    padding-top:17px;

    border-top:1px solid rgba(255,255,255,.12);
  }

  .bid-mobile-nav__user div{
    display:flex;
    flex-direction:column;
  }

  .bid-mobile-nav__user small{
    color:rgba(255,255,255,.58);
  }

  body.bid-mobile-nav-open{
    overflow:hidden;
  }
}

@keyframes bid-mobile-drawer-in{
  from{transform:translateX(-100%);}
  to{transform:translateX(0);}
}
