/* Euphoria ID — coque produit inspirée de Euphoria CMS / eShop. */
:root {
  --mb-content-max: 92rem;
  --bid-cream: #fff9f1;
  --bid-paper: rgba(255,255,255,.72);
  --bid-line: rgba(0,113,138,.13);
  --bid-glow: rgba(185,201,206,.18);
  --bid-safe: env(safe-area-inset-bottom,0px);
}
html { background: var(--bid-cream); }
body.mb-app {
  color: var(--mb-color-text);
  background:
    radial-gradient(60rem 42rem at 96% -8%,rgba(0,113,138,.15),transparent 65%),
    radial-gradient(42rem 32rem at 22% 108%,rgba(185,201,206,.17),transparent 62%),
    linear-gradient(135deg,#fffdf9 0%,#f4f7f8 48%,#f4f7f8 100%);
}
body.mb-app::before { content:""; position:fixed; width:20rem; height:20rem; right:8%; top:4%; border-radius:50%; background:rgba(0,113,138,.08); filter:blur(4.5rem); pointer-events:none; }
.bid-app-shell { position:relative; z-index:1; }
.mb-sidebar {
  width:19rem; padding:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto;
  background:linear-gradient(165deg,rgba(3,31,53,.98),rgba(3,31,53,.98));
  border-right:1px solid rgba(255,255,255,.12); box-shadow:1.5rem 0 4rem rgba(3,31,53,.14);
}
.mb-sidebar__brand { min-height:8.6rem; padding:1.8rem 1.7rem; border-bottom:1px solid rgba(255,255,255,.11); background:linear-gradient(165deg,#031f35,#031f35); }
.mb-sidebar__brand .mb-brand__mark { width:3.7rem; height:3.7rem; border:0; border-radius:0; background:transparent; box-shadow:none; overflow:visible; }
.mb-sidebar__brand .mb-brand__mark img { width:3.45rem; height:3.1rem; object-fit:contain; filter:none; }
.mb-sidebar__brand .mb-brand__meta { color:#f4f7f8; opacity:1; }
.mb-nav { min-height:0; margin:0; padding:1.25rem 1.35rem; overflow-y:auto; }
.mb-nav__link { min-height:3.2rem; margin:.18rem 0; border:1px solid transparent; border-radius:.85rem; font-weight:600; }
.mb-nav__link > span { width:1.9rem; height:1.9rem; display:grid; place-items:center; border-radius:.6rem; color:#f4f7f8; background:rgba(255,255,255,.09); }
.mb-nav__link:hover,.mb-nav__link[aria-current="page"] { transform:translateX(.12rem); border-color:rgba(255,255,255,.12); background:linear-gradient(105deg,rgba(255,255,255,.14),rgba(255,255,255,.06)); box-shadow:0 .7rem 1.8rem rgba(3,31,53,.18); }
.mb-sidebar__footer { min-height:6.4rem; margin:0; padding:1.15rem 1.25rem; display:grid; grid-template-columns:auto minmax(0,1fr) 2.35rem; align-items:center; gap:.7rem; background:linear-gradient(0deg,#031f35 70%,rgba(3,31,53,.94)); }
.mb-sidebar__footer strong,.mb-sidebar__footer small { display:block; }
.mb-sidebar__footer .mb-grow { min-width:0; }
.mb-sidebar__footer strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mb-sidebar__footer small { color:rgba(255,255,255,.52); font-size:.65rem; }
.bid-version { display:block; margin-top:.18rem; color:rgba(255,255,255,.38); font-size:.58rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.mb-sidebar__footer form { width:2.35rem; margin:0; }
.bid-logout { width:2.35rem; height:2.35rem; padding:0; display:grid; place-items:center; border:1px solid rgba(255,255,255,.12); border-radius:.7rem; color:#fff; background:rgba(255,255,255,.1); box-shadow:none; cursor:pointer; font-size:1rem; line-height:1; }
.bid-logout:hover { color:#fff; background:rgba(255,255,255,.18); transform:none; }
.mb-shell { margin-left:19rem; }
.mb-topbar { min-height:6rem; padding:0 clamp(1.5rem,4vw,4rem); border-color:var(--bid-line); background:rgba(255,252,247,.72); }
.mb-topbar .mb-heading { margin-top:.28rem; font-size:1.35rem; }
.mb-container { padding:2.7rem clamp(1.5rem,4vw,4rem) 5rem; }
.mb-container > .mb-title:first-child { font-size:clamp(2.5rem,5vw,4.7rem); letter-spacing:-.045em; line-height:.96; margin-bottom:2rem; text-shadow:0 .9rem 2.5rem rgba(3,31,53,.07); }
.mb-card,.mb-panel,.bid-app,.mb-table-card {
  border-color:var(--bid-line); border-radius:1.55rem;
  background:linear-gradient(145deg,rgba(255,255,255,.84),rgba(255,255,255,.57));
  box-shadow:0 1.35rem 3.7rem rgba(3,31,53,.065),inset 0 1px 0 rgba(255,255,255,.98);
  backdrop-filter:blur(1.5rem) saturate(1.12);
}
.mb-card { padding:1.65rem; }
.mb-card:hover,.bid-app:hover { transform:translateY(-2px); box-shadow:0 1.8rem 4.5rem rgba(3,31,53,.1),0 0 2.5rem var(--bid-glow); }
.bid-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(16rem,1fr)); gap:1.1rem; }
.bid-app { padding:1.55rem; display:flex; flex-direction:column; align-items:flex-start; transition:transform .2s,box-shadow .2s; }
.bid-app .mb-muted { flex:1; }
.bid-app__link { margin-top:1rem; color:#fff; }
.bid-app__link:hover,.bid-app__link:focus { color:#fff; }
.bid-hero { padding:.4rem 0 2.4rem; }
.bid-profile { display:flex; align-items:center; gap:1.25rem; }
.bid-avatar { width:4.4rem; height:4.4rem; border:4px solid rgba(255,255,255,.85); border-radius:50%; object-fit:cover; background:var(--mb-color-primary-soft); box-shadow:0 .8rem 2rem rgba(3,31,53,.12); }
.bid-hero .mb-title { font-size:clamp(2.5rem,5vw,4.6rem); letter-spacing:-.045em; }
.mb-badge { border:1px solid rgba(0,113,138,.08); padding:.4rem .65rem; }
.mb-btn { border-radius:.82rem; }
.mb-btn--primary { border:0; background:linear-gradient(135deg,#00718a,#031f35); box-shadow:0 .75rem 1.8rem rgba(3,31,53,.2),inset 0 1px 0 rgba(255,255,255,.2); }
.mb-btn--primary:hover { background:linear-gradient(135deg,#00718a,#031f35); box-shadow:0 1rem 2.3rem rgba(3,31,53,.27); }
.mb-input,.mb-select,.mb-textarea { min-height:2.9rem; border-color:var(--bid-line); border-radius:.82rem; background:rgba(255,255,255,.76); box-shadow:inset 0 1px 0 #fff; }
.mb-table-card { overflow:hidden; }
.mb-table th { color:var(--mb-color-primary); background:rgba(244,247,248,.72); }
.mb-table td { border-color:rgba(0,113,138,.08); }
.bid-actions { display:flex; flex-wrap:wrap; gap:.7rem; margin-top:1.4rem; }
.bid-flash { margin-bottom:1rem; }
.mb-app code { overflow-wrap:anywhere; }
.mb-app form > label:not(.mb-check) { display:block; margin-top:1rem; font-weight:700; }
.mb-app form > input:not([type="hidden"]),.mb-app form > select,.mb-app form > textarea { margin-top:.4rem; }
.mb-app h2 { font-family:var(--mb-font-display); }

/* Authentification en deux volets, proche de l’eShop. */
.bid-auth { min-height:100vh; display:grid; grid-template-columns:minmax(22rem,.92fr) minmax(30rem,1.08fr); }
.bid-auth__brand { position:relative; padding:clamp(3rem,7vw,7rem); display:flex; align-items:flex-end; overflow:hidden; color:#fff; background:linear-gradient(145deg,#00718a,#031f35 72%,#031f35); }
.bid-auth__brand::before { content:""; position:absolute; width:34rem; height:34rem; left:-15rem; top:-13rem; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 5rem rgba(255,255,255,.025),0 0 0 10rem rgba(255,255,255,.018); }
.bid-auth__brand::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 80% 25%,rgba(185,201,206,.22),transparent 35%); }
.bid-auth__brand-inner { position:relative; z-index:1; max-width:35rem; }
.bid-brand-logo { width:6.5rem; height:5.2rem; margin-bottom:3.5rem; padding:1rem; border-radius:1.5rem; background:#fff; box-shadow:0 1.5rem 4rem rgba(3,31,53,.3); }
.bid-auth__brand .mb-eyebrow { color:#f4f7f8; }
.bid-auth__brand h2 { margin:.8rem 0 1.25rem; font:600 clamp(2.8rem,5vw,5.3rem)/.97 var(--mb-font-display); letter-spacing:-.045em; }
.bid-auth__brand p:not(.mb-eyebrow) { max-width:31rem; color:rgba(255,255,255,.68); font-size:1rem; }
.bid-trust { margin-top:3rem; display:flex; flex-wrap:wrap; gap:.65rem; }
.bid-trust span { padding:.55rem .8rem; border:1px solid rgba(255,255,255,.13); border-radius:99px; color:rgba(255,255,255,.76); background:rgba(255,255,255,.06); font-size:.68rem; font-weight:700; }
.bid-auth__form { padding:3rem; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.bid-auth__form > .mb-card { width:min(100%,31rem); margin:0; padding:clamp(1.7rem,4vw,3rem); }
.bid-auth__form .brand { display:none; }
.bid-auth__form .mb-title { font-size:clamp(2.2rem,4vw,3.5rem); }
.bid-auth__form .mb-btn--primary { width:100%; min-height:3rem; }
.bid-auth__legal { margin-top:1.4rem; color:var(--mb-color-muted); font-size:.64rem; letter-spacing:.08em; text-transform:uppercase; }
.bid-origin { margin:1.35rem 0 .8rem; padding:1rem; display:grid; grid-template-columns:2.6rem 1fr; gap:.85rem; border:1px solid rgba(0,113,138,.14); border-radius:1rem; background:linear-gradient(135deg,rgba(0,113,138,.07),rgba(255,255,255,.68)); }
.bid-origin__icon { width:2.6rem; height:2.6rem; display:grid; place-items:center; border-radius:.8rem; color:#fff; background:var(--mb-color-primary); font-weight:800; }
.bid-origin__from { display:block; margin-bottom:.18rem; color:var(--mb-color-primary); font-size:.67rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; overflow-wrap:anywhere; }
.bid-origin strong { display:block; font-family:var(--mb-font-display); font-size:1.15rem; }
.bid-origin p { margin:.3rem 0 0; color:var(--mb-color-muted); font-size:.82rem; line-height:1.45; }
.bid-origin__tools { margin:.75rem 0 1.2rem; color:var(--mb-color-muted); font-size:.78rem; line-height:1.45; }
.bid-field-head { margin-top:1rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.bid-field-head label { margin:0!important; }
.bid-field-head a { color:var(--mb-color-primary); font-size:.78rem; font-weight:700; }
.bid-remember { margin-top:1rem; display:flex; align-items:center; gap:.55rem; color:var(--mb-color-muted); font-size:.8rem; cursor:pointer; }
.bid-remember input { width:1.05rem!important; height:1.05rem; margin:0!important; accent-color:var(--mb-color-primary); }
.bid-mfa-card { margin-top:1.25rem; display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:1rem; }
.bid-mfa-card .mb-btn--primary, .bid-mfa-card .mb-btn--primary:hover, .bid-mfa-card .mb-btn--primary:focus { color:#fff; }
.bid-mfa-card h2, .bid-mfa-card p { margin-bottom:.3rem; }
.bid-steps { display:grid; gap:1.1rem; padding-left:1.35rem; }
.bid-steps li { padding-left:.35rem; }
.bid-steps small { display:block; margin-top:.45rem; color:var(--mb-color-muted); }
.bid-secret { display:block; margin-top:.65rem; padding:1rem; border:1px solid var(--mb-color-border); border-radius:.8rem; color:var(--mb-color-primary); background:#f4f7f8; font-size:1.05rem; font-weight:800; letter-spacing:.12em; overflow-wrap:anywhere; user-select:all; }
.bid-uri { display:block; margin-top:.6rem; padding:.75rem; overflow-wrap:anywhere; user-select:all; }
.bid-recovery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin:1.25rem 0; }
.bid-recovery code { padding:.7rem; border:1px solid var(--mb-color-border); border-radius:.65rem; text-align:center; background:#f4f7f8; font-weight:800; user-select:all; }
.bid-recovery-actions { display:flex; flex-wrap:wrap; gap:.75rem; }
.bid-recovery-actions .mb-btn--primary, .bid-recovery-actions .mb-btn--primary:hover, .bid-recovery-actions .mb-btn--primary:focus { color:#fff; }
@media (max-width:760px) { .bid-mfa-card { grid-template-columns:1fr; } .bid-recovery { grid-template-columns:1fr; } }

@media(max-width:65rem){.mb-sidebar{width:15rem}.mb-shell{margin-left:15rem}.mb-sidebar__brand{padding-inline:1.25rem}.bid-auth__brand{padding:3rem}.bid-auth__brand h2{font-size:3.5rem}}
@media(max-width:47.5rem){
  .mb-sidebar { position:fixed; inset:auto .65rem calc(.55rem + var(--bid-safe)); width:auto; height:4.7rem; padding:.5rem; display:block; border:1px solid rgba(255,255,255,.16); border-radius:1.5rem; overflow-x:auto; overflow-y:hidden; background:rgba(3,31,53,.9); backdrop-filter:blur(1.5rem); }
  .mb-sidebar__brand,.mb-sidebar__footer,.mb-nav__label { display:none; }
  .mb-nav { width:max-content; min-width:100%; height:100%; margin:0; padding:0; display:flex; align-items:center; justify-content:center; gap:.22rem; overflow:visible; }
  .mb-nav__link { width:3.55rem; min-height:3.55rem; margin:0; padding:0; display:grid; place-items:center; color:transparent; font-size:0; }
  .mb-nav__link > span { width:2.15rem; height:2.15rem; color:#fff; font-size:.8rem; }
  .mb-nav__link:hover,.mb-nav__link[aria-current="page"] { transform:none; }
  .mb-shell { margin-left:0; padding-bottom:6rem; }
  .mb-topbar { min-height:5rem; padding-inline:1rem; border:1px solid var(--bid-line); border-radius:1.3rem; margin:.55rem; }
  .mb-topbar__actions .mb-badge { display:none; }
  .mb-container { padding:1.5rem .95rem 3rem; }
  .mb-container > .mb-title:first-child { font-size:2.65rem; }
  .bid-grid { grid-template-columns:1fr; }
  .bid-auth { display:block; }
  .bid-auth__brand { min-height:18rem; padding:2rem 1.4rem; align-items:center; }
  .bid-brand-logo { width:4.2rem; height:3.7rem; margin-bottom:1.5rem; border-radius:1rem; }
  .bid-auth__brand h2 { max-width:22rem; font-size:2.65rem; }
  .bid-auth__brand p:not(.mb-eyebrow),.bid-trust { display:none; }
  .bid-auth__form { padding:1rem; margin-top:-1.8rem; position:relative; z-index:2; }
  .bid-auth__form > .mb-card { border-radius:1.4rem; }
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Expérience d'erreur Euphoria ID. */
.bid-error{--be-wine:#00718a;--be-deep:#031f35;position:relative;isolation:isolate;width:100%;min-height:100svh;margin:0;display:grid;place-items:center;overflow:hidden;padding:clamp(1rem,4vw,3rem);background:radial-gradient(circle at 78% 14%,rgba(185,201,206,.21),transparent 30%),radial-gradient(circle at 8% 88%,rgba(0,113,138,.14),transparent 35%),linear-gradient(135deg,#fffdf9,#f4f7f8 48%,#f4f7f8)}
.bid-error:before{content:"";position:absolute;z-index:-2;inset:0;background-image:linear-gradient(rgba(0,113,138,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(0,113,138,.025) 1px,transparent 1px);background-size:4rem 4rem;mask-image:radial-gradient(circle,#000,transparent 76%)}
.bid-error__aurora{position:absolute;z-index:-1;border-radius:50%;filter:blur(5rem);opacity:.42;animation:bid-error-drift 12s ease-in-out infinite alternate}
.bid-error__aurora--a{width:32rem;height:32rem;left:-10rem;top:-12rem;background:#00718a}
.bid-error__aurora--b{width:27rem;height:27rem;right:-6rem;bottom:-10rem;background:#b9c9ce;animation-delay:-6s;animation-direction:alternate-reverse}
.bid-error__orbit{position:absolute;z-index:-1;width:min(76vw,62rem);aspect-ratio:1;border:1px solid rgba(0,113,138,.1);border-radius:50%;animation:bid-error-orbit 24s linear infinite}
.bid-error__orbit:after{content:"";position:absolute;width:.65rem;height:.65rem;left:50%;top:-.36rem;border-radius:50%;background:var(--be-wine);box-shadow:0 0 0 .5rem rgba(0,113,138,.08),0 0 2rem rgba(0,113,138,.35)}
.bid-error__orbit--b{width:min(55vw,43rem);border-color:rgba(0,113,138,.07);animation-duration:18s;animation-direction:reverse}
.bid-error__monogram{position:absolute;z-index:-1;right:-.04em;bottom:-.3em;color:rgba(0,113,138,.035);font:600 min(70vw,58rem)/1 var(--mb-font-display);animation:bid-error-breathe 8s ease-in-out infinite}
.bid-error__card{position:relative;width:min(100%,41rem);padding:clamp(2rem,6vw,4.7rem);text-align:center;border:1px solid rgba(0,113,138,.12);border-radius:2rem;background:linear-gradient(145deg,rgba(255,255,255,.91),rgba(244,247,248,.7));box-shadow:0 3rem 8rem rgba(3,31,53,.15),inset 0 1px 0 #fff;backdrop-filter:blur(1.8rem) saturate(1.15);animation:bid-error-arrive .9s cubic-bezier(.2,.8,.2,1) both}
.bid-error__card:before{content:"";position:absolute;inset:.55rem;border:1px solid rgba(0,113,138,.055);border-radius:1.55rem;pointer-events:none}
.bid-error__logo{position:relative;width:6rem;height:6rem;margin:0 auto 2rem;display:grid;place-items:center;border-radius:1.65rem;background:linear-gradient(145deg,#00718a,var(--be-deep));box-shadow:0 1.4rem 3rem rgba(3,31,53,.28);animation:bid-error-logo 5s ease-in-out infinite}
.bid-error__logo>span{position:absolute;inset:-.7rem;border:1px solid rgba(0,113,138,.2);border-radius:2rem;animation:bid-error-halo 2.8s ease-out infinite}
.bid-error__logo img{position:relative;z-index:2;width:4.3rem;height:3.6rem;object-fit:contain;filter:none}
.bid-error .mb-eyebrow{margin:0 0 1rem;color:var(--be-wine);animation:bid-error-rise .7s .2s both}
.bid-error .mb-eyebrow i{display:inline-block;width:.42rem;height:.42rem;margin-right:.4rem;border-radius:50%;background:var(--be-wine);box-shadow:0 0 0 .3rem rgba(0,113,138,.08);animation:bid-error-pulse 1.8s ease-in-out infinite}
.bid-error h1{max-width:13ch;margin:.2rem auto 1rem;font:600 clamp(2.7rem,7vw,5.4rem)/.94 var(--mb-font-display);letter-spacing:-.05em;color:#031f35;animation:bid-error-rise .75s .3s both}
.bid-error__message{margin:0 auto;color:#526a7a;font-size:clamp(.96rem,2vw,1.12rem);line-height:1.65;animation:bid-error-rise .75s .4s both}
.bid-error__line{width:8rem;height:1px;margin:1.8rem auto;overflow:visible;background:rgba(0,113,138,.13)}
.bid-error__line i{display:block;width:2rem;height:1px;background:var(--be-wine);animation:bid-error-scan 3s ease-in-out infinite}
.bid-error__promise{max-width:29rem;margin:0 auto 1.5rem;color:#526a7a;font-size:.78rem;line-height:1.6;animation:bid-error-rise .75s .5s both}
.bid-error__action,.bid-error__action:link,.bid-error__action:visited,.bid-error__action span,.bid-error__action i{color:#fff!important}
.bid-error__action{width:100%;min-height:3.7rem;padding:.8rem 1rem .8rem 1.3rem;display:flex;align-items:center;justify-content:center;gap:1rem;border-radius:1rem;background:linear-gradient(120deg,#00718a,var(--be-wine) 48%,#031f35);background-size:200% 100%;box-shadow:0 1.1rem 2.4rem rgba(0,113,138,.25);font-weight:700;animation:bid-error-rise .75s .6s both,bid-error-shine 6s 2s ease-in-out infinite;transition:transform .25s,box-shadow .25s}
.bid-error__action i{width:2rem;height:2rem;display:grid;place-items:center;border-radius:.65rem;background:rgba(255,255,255,.13);font-style:normal;transition:transform .25s}
.bid-error__action:hover{color:#fff;transform:translateY(-3px);box-shadow:0 1.5rem 3rem rgba(0,113,138,.32)}
.bid-error__action:hover i{transform:translateX(.2rem)}
.bid-error__footer{margin:1.6rem 0 0;color:#526a7a;font-size:.58rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;animation:bid-error-rise .75s .7s both}
.bid-error__footer span{margin:0 .45rem;color:var(--be-wine)}
@keyframes bid-error-arrive{from{opacity:0;transform:translateY(1.8rem) scale(.97);filter:blur(.5rem)}to{opacity:1;transform:none;filter:none}}
@keyframes bid-error-rise{from{opacity:0;transform:translateY(1rem)}to{opacity:1;transform:none}}
@keyframes bid-error-logo{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-.5rem) rotate(1deg)}}
@keyframes bid-error-halo{0%{opacity:.7;transform:scale(.88)}75%,100%{opacity:0;transform:scale(1.35)}}
@keyframes bid-error-pulse{50%{opacity:.55;transform:scale(.78)}}
@keyframes bid-error-drift{to{transform:translate3d(3rem,2rem,0) scale(1.12)}}
@keyframes bid-error-orbit{to{transform:rotate(360deg)}}
@keyframes bid-error-breathe{50%{opacity:.65;transform:scale(1.025)}}
@keyframes bid-error-scan{0%,100%{transform:translateX(0)}50%{transform:translateX(6rem)}}
@keyframes bid-error-shine{0%,70%,100%{background-position:0 0}85%{background-position:100% 0}}
@media(max-width:42rem){.bid-error__card{padding:2rem 1.4rem;border-radius:1.5rem}.bid-error__card:before{border-radius:1.15rem}.bid-error__logo{width:5rem;height:5rem;margin-bottom:1.6rem}.bid-error__logo img{width:3.5rem}.bid-error__orbit{width:130vw}.bid-error h1{font-size:2.8rem}}
@media(prefers-reduced-motion:reduce){.bid-error *,.bid-error *:before,.bid-error *:after{animation:none!important;transition:none!important}}

/* ============================================================
   Euphoria ID — Boutons applications
   ============================================================ */

.mb-app-card .mb-btn,
.mb-app-card .mb-btn:visited,
.mb-app-card a.mb-btn,
.mb-app-card a.mb-btn:visited{
    color:#fff !important;
}

.mb-app-card .mb-btn *,
.mb-app-card a.mb-btn *{
    color:inherit !important;
}

.mb-app-card .mb-btn:hover,
.mb-app-card a.mb-btn:hover{
    color:#fff !important;
}


/* ============================================================
   MON ESPACE — Boutons applications
   ============================================================ */

.app .bid-app__link,
.app .bid-app__link:link,
.app .bid-app__link:visited{
    color:#fff !important;
    text-decoration:none !important;
}

.app .bid-app__link span{
    color:#fff !important;
}

.app .bid-app__link:hover,
.app .bid-app__link:focus,
.app .bid-app__link:active{
    color:#fff !important;
}

.app .bid-app__link:hover span,
.app .bid-app__link:focus span,
.app .bid-app__link:active span{
    color:#fff !important;
}

/* Euphoria ID — boutons applications */
.bid-app__link,
.bid-app__link:link,
.bid-app__link:visited,
.bid-app__link:hover,
.bid-app__link:focus,
.bid-app__link:active{
    color:#fff !important;
}

.bid-app__link span{
    color:#fff !important;
}

/* ============================================================
   Euphoria ID — MFA METHOD SELECTOR
   ============================================================ */

.bid-mfa-choice{
    width:min(520px,100%);
}

.bid-mfa-choice h1{
    margin-bottom:8px;
}

.bid-mfa-methods{
    margin-top:24px;
}


/* Méthode */

.bid-mfa-method{
    display:grid !important;
    grid-template-columns:46px minmax(0,1fr) 20px;
    align-items:center;

    gap:13px;

    width:100% !important;
    min-height:76px;

    box-sizing:border-box;

    margin:0 !important;
    padding:13px 15px !important;

    border:
        1px solid
        rgba(0,113,138,.11) !important;

    border-radius:16px !important;

    background:
        rgba(255,255,255,.94) !important;

    color:#526a7a !important;

    text-align:left !important;

    box-shadow:
        0 8px 26px
        rgba(3,31,53,.035);

    cursor:pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.bid-mfa-method:hover{
    border-color:
        rgba(0,113,138,.25) !important;

    box-shadow:
        0 10px 30px
        rgba(3,31,53,.06);

    transform:translateY(-1px);
}


/* Icône */

.bid-mfa-method__icon{
    display:flex;
    align-items:center;
    justify-content:center;

    width:46px;
    height:46px;

    border-radius:13px;

    background:
        rgba(0,113,138,.065);

    color:#00718a;

    font-size:20px;
}


/* Texte */

.bid-mfa-method__content{
    display:block;
    min-width:0;
}

.bid-mfa-method__content strong{
    display:block;

    margin-bottom:4px;

    color:#526a7a;

    font-size:14px;
    font-weight:750;
}

.bid-mfa-method__content small{
    display:block;

    color:#526a7a;

    font-size:11px;
    font-weight:450;
    line-height:1.4;
}

.bid-mfa-method__arrow{
    color:#526a7a;

    font-size:25px;
    font-weight:300;
}


/* Euphoria Key */

.bid-mfa-method--key{
    border-color:
        rgba(0,113,138,.18) !important;

    background:
        linear-gradient(
            135deg,
            rgba(0,113,138,.055),
            rgba(255,255,255,.96) 55%
        ) !important;
}


/* Séparateur */

.bid-mfa-separator{
    display:flex;
    align-items:center;

    gap:12px;

    margin:17px 0;

    color:#526a7a;

    font-size:10px;
    font-weight:700;

    text-transform:uppercase;
}

.bid-mfa-separator::before,
.bid-mfa-separator::after{
    content:"";

    height:1px;
    flex:1;

    background:
        rgba(3,31,53,.08);
}


/* OTP */

.bid-mfa-otp__form{
    margin-top:14px;
    padding:17px;

    border:
        1px solid
        rgba(0,113,138,.08);

    border-radius:15px;

    background:
        rgba(0,113,138,.025);
}

.bid-mfa-otp__form[hidden]{
    display:none !important;
}

.bid-mfa-otp__form input[name="code"]{
    text-align:center;

    font-size:22px !important;
    font-weight:750;

    letter-spacing:.18em;
}


/* Statut Key */

.bid-mfa-key-status{
    margin-top:12px;
    padding:11px 13px;

    border-radius:12px;

    background:
        rgba(30,133,78,.07);

    color:#26764b;

    font-size:11px;
    line-height:1.45;
}

.bid-mfa-key-status[hidden]{
    display:none !important;
}

.bid-mfa-key-status.is-error{
    background:
        rgba(0,113,138,.07);

    color:#00718a;
}


/* Annulation */

.bid-mfa-cancel{
    margin:
        22px
        0
        0;

    text-align:center;
}

.bid-mfa-cancel a{
    color:#526a7a;

    font-size:11px;
}


/* Mobile */

@media(max-width:600px){

    .bid-mfa-method{
        grid-template-columns:
            42px
            minmax(0,1fr)
            16px;

        min-height:72px;

        padding:12px !important;
    }

    .bid-mfa-method__icon{
        width:42px;
        height:42px;
    }
}

/* ============================================================
   Euphoria ID — MFA MOBILE FINAL
   ============================================================ */

/* Séparation nette entre le hero et le MFA */
.bid-origin + .mb-app,
.bid-origin + main,
.bid-origin + .mb-shell{
    margin-top:0 !important;
}

.bid-mfa-choice{
    width:100% !important;
    max-width:none !important;

    box-sizing:border-box;

    margin:0 !important;
    padding:42px 28px 34px !important;

    border:0 !important;
    border-radius:0 !important;

    background:
        linear-gradient(
            145deg,
            #f4f7f8 0%,
            #f4f7f8 48%,
            #f4f7f8 100%
        ) !important;

    box-shadow:none !important;
}


/* Le branding interne est déjà assuré par le hero */
.bid-mfa-choice > .brand{
    display:none !important;
}


/* DOUBLE AUTHENTIFICATION */
.bid-mfa-choice > .mb-eyebrow{
    display:block !important;

    margin:0 0 12px !important;

    color:#00718a !important;

    font-size:13px !important;
    font-weight:800 !important;

    line-height:1.2 !important;

    letter-spacing:.16em !important;
    text-transform:uppercase !important;
}


/* Titre */
.bid-mfa-choice > h1{
    margin:0 0 14px !important;

    color:#526a7a !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:44px !important;
    font-weight:500 !important;

    line-height:1.02 !important;

    letter-spacing:-.035em !important;
}


/* Description */
.bid-mfa-choice > h1 + .muted{
    max-width:590px;

    margin:0 0 32px !important;

    color:#526a7a !important;

    font-size:17px !important;
    line-height:1.55 !important;
}


/* ============================================================
   MÉTHODES
   ============================================================ */

.bid-mfa-methods{
    width:100%;

    margin:0 !important;
}


.bid-mfa-method{
    display:grid !important;

    grid-template-columns:
        58px
        minmax(0,1fr)
        20px !important;

    align-items:center !important;

    gap:16px !important;

    width:100% !important;
    min-height:108px !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:16px 20px !important;

    border:
        1px solid
        rgba(0,113,138,.14) !important;

    border-radius:23px !important;

    background:
        rgba(255,255,255,.92) !important;

    color:#526a7a !important;

    text-align:left !important;

    box-shadow:
        0 10px 30px
        rgba(3,31,53,.035) !important;

    cursor:pointer;

    -webkit-tap-highlight-color:transparent;
}


.bid-mfa-method:active{
    transform:scale(.99);
}


/* Icônes */
.bid-mfa-method__icon{
    display:flex !important;

    align-items:center;
    justify-content:center;

    width:58px !important;
    height:58px !important;

    border-radius:18px !important;

    background:
        rgba(0,113,138,.055) !important;

    color:#00718a !important;

    font-size:27px !important;
    font-weight:400 !important;
}


/* Texte */
.bid-mfa-method__content{
    display:block !important;
    min-width:0;
}


.bid-mfa-method__content strong{
    display:block !important;

    margin:0 0 5px !important;

    color:#526a7a !important;

    font-size:18px !important;
    font-weight:750 !important;

    line-height:1.2 !important;
}


.bid-mfa-method__content small{
    display:block !important;

    color:#526a7a !important;

    font-size:14px !important;
    font-weight:450 !important;

    line-height:1.4 !important;
}


.bid-mfa-method__arrow{
    color:#526a7a !important;

    font-size:28px !important;
    font-weight:300 !important;
}


/* ============================================================
   ÉTAT Euphoria Key
   ============================================================ */

.bid-mfa-key-status{
    position:relative;

    box-sizing:border-box;

    margin:16px 0 0 !important;

    padding:17px 18px 17px 66px !important;

    border-radius:20px !important;

    background:
        linear-gradient(
            135deg,
            rgba(235,244,231,.96),
            rgba(242,242,232,.92)
        ) !important;

    color:#23824d !important;

    font-size:15px !important;
    font-weight:600 !important;

    line-height:1.4 !important;
}


.bid-mfa-key-status::before{
    content:"";

    position:absolute;

    left:20px;
    top:50%;

    width:28px;
    height:28px;

    box-sizing:border-box;

    margin-top:-14px;

    border:
        4px solid
        rgba(50,139,77,.20);

    border-top-color:
        #388f52;

    border-radius:50%;

    animation:
        bid-mfa-spin
        .8s
        linear
        infinite;
}


.bid-mfa-key-status.is-error{
    background:
        rgba(0,113,138,.07) !important;

    color:#00718a !important;
}


.bid-mfa-key-status.is-error::before{
    display:none;
}


@keyframes bid-mfa-spin{
    to{
        transform:rotate(360deg);
    }
}


/* ============================================================
   SÉPARATEUR
   ============================================================ */

.bid-mfa-separator{
    display:flex !important;

    align-items:center;

    gap:18px;

    margin:27px 0 !important;

    color:#526a7a !important;

    font-size:13px !important;
    font-weight:700 !important;

    text-transform:uppercase;
}


.bid-mfa-separator::before,
.bid-mfa-separator::after{
    content:"";

    height:1px;
    flex:1;

    background:
        rgba(3,31,53,.13);
}


/* ============================================================
   OTP
   ============================================================ */

.bid-mfa-otp__form{
    margin-top:16px !important;
    padding:20px !important;

    border:
        1px solid
        rgba(0,113,138,.09) !important;

    border-radius:20px !important;

    background:
        rgba(255,255,255,.72) !important;
}


.bid-mfa-otp__form[hidden]{
    display:none !important;
}


.bid-mfa-otp__form input[name="code"]{
    text-align:center !important;

    font-size:22px !important;
    font-weight:750 !important;

    letter-spacing:.20em !important;
}


/* ============================================================
   ANNULER
   ============================================================ */

.bid-mfa-cancel{
    margin:34px 0 0 !important;

    text-align:center !important;
}


.bid-mfa-cancel a{
    color:#526a7a !important;

    font-size:14px !important;

    text-decoration:none !important;
}


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

@media(max-width:600px){

    /*
     * C'est cette marge qui empêche désormais
     * DOUBLE AUTHENTIFICATION de chevaucher le hero.
     */
    .bid-mfa-choice{
        padding:
            34px
            28px
            max(
                30px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    .bid-mfa-choice > .mb-eyebrow{
        margin-bottom:13px !important;

        font-size:12px !important;
    }


    .bid-mfa-choice > h1{
        margin-bottom:16px !important;

        font-size:
            clamp(
                42px,
                12vw,
                57px
            ) !important;

        line-height:.98 !important;
    }


    .bid-mfa-choice > h1 + .muted{
        margin-bottom:32px !important;

        font-size:17px !important;
    }


    .bid-mfa-method{
        grid-template-columns:
            58px
            minmax(0,1fr)
            16px !important;

        min-height:104px !important;

        padding:
            15px
            18px !important;

        border-radius:22px !important;
    }


    .bid-mfa-method__content strong{
        font-size:18px !important;
    }


    .bid-mfa-method__content small{
        font-size:14px !important;
    }


    .bid-mfa-key-status{
        min-height:70px;

        padding:
            15px
            16px
            15px
            64px !important;
    }
}


/* EUPHORIA PROFILE AVATAR LINK V1
   ============================================================ */

.bid-profile-avatar-link{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    flex:0 0 auto !important;

    width:auto;
    height:auto;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;
    border-radius:50% !important;

    outline:0;

    background:transparent !important;

    color:inherit !important;
    text-decoration:none !important;

    cursor:pointer !important;

    -webkit-tap-highlight-color:transparent;
}


/* Photo */

.bid-profile-avatar-link .mb-avatar{
    display:block !important;

    margin:0 !important;

    cursor:pointer !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}


/* Desktop hover */

@media(hover:hover){

    .bid-profile-avatar-link:hover .mb-avatar{
        transform:scale(1.045);
    }
}


/* Clavier */

.bid-profile-avatar-link:focus{
    outline:0 !important;
}

.bid-profile-avatar-link:focus-visible{
    outline:
        2px solid
        rgba(0,113,138,.40) !important;

    outline-offset:3px !important;
}


/* ============================================================
   SIDEBAR DESKTOP
   ============================================================ */

.mb-sidebar__footer
.bid-profile-avatar-link{
    flex:0 0 auto !important;
}


/* ============================================================
   TOPBAR
   ============================================================ */

.mb-topbar__actions
.bid-profile-avatar-link{
    flex:0 0 auto !important;
}


/* ============================================================
   SIDEBAR MOBILE
   ============================================================ */

#bid-mobile-nav
.bid-mobile-nav__user
.bid-profile-avatar-link{
    display:flex !important;

    width:58px !important;
    height:58px !important;

    min-width:58px !important;
    min-height:58px !important;

    align-items:center !important;
    justify-content:center !important;

    border-radius:50% !important;

    overflow:hidden !important;
}


#bid-mobile-nav
.bid-mobile-nav__user
.bid-profile-avatar-link
.mb-avatar{
    width:58px !important;
    height:58px !important;

    min-width:58px !important;
    min-height:58px !important;

    border-radius:50% !important;

    object-fit:cover !important;
}


/* Aucun changement de layout au tap */

#bid-mobile-nav
.bid-profile-avatar-link:active
.mb-avatar{
    transform:scale(.97);
}



/* ============================================================
   Euphoria ID — PROFILE PHOTO UI V2
   ============================================================ */

.bid-profile-photo{
    display:grid !important;
    grid-template-columns:88px minmax(0,1fr) !important;
    align-items:center !important;

    gap:18px !important;

    width:100% !important;

    box-sizing:border-box !important;

    margin:20px 0 22px !important;
    padding:17px !important;

    border:
        1px solid
        rgba(0,113,138,.09) !important;

    border-radius:17px !important;

    background:
        rgba(0,113,138,.022) !important;

    overflow:hidden !important;
}


/* Preview : verrouillage contre les règles globales */

.bid-profile-photo
.bid-profile-photo__preview{
    display:block !important;

    width:88px !important;
    height:88px !important;

    min-width:88px !important;
    max-width:88px !important;

    min-height:88px !important;
    max-height:88px !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    border-radius:50% !important;

    background:#f4f7f8 !important;
}


.bid-profile-photo
.bid-profile-photo__preview
#bid-profile-photo-preview{
    display:block !important;

    width:88px !important;
    height:88px !important;

    min-width:88px !important;
    max-width:88px !important;

    min-height:88px !important;
    max-height:88px !important;

    aspect-ratio:1 / 1 !important;

    margin:0 !important;
    padding:0 !important;

    border:
        3px solid
        #fff !important;

    border-radius:50% !important;

    object-fit:cover !important;
    object-position:center !important;

    box-sizing:border-box !important;

    background:#f4f7f8 !important;

    box-shadow:
        0 7px 20px
        rgba(3,31,53,.11) !important;
}


/* Contenu */

.bid-profile-photo__content{
    min-width:0 !important;

    margin:0 !important;
}


/*
 * Même rendu qu'un label normal du formulaire.
 */

.bid-profile-photo__title{
    display:block !important;

    margin:
        0
        0
        8px !important;

    padding:0 !important;

    color:#526a7a !important;

    font:inherit !important;

    font-size:13px !important;
    font-weight:700 !important;

    line-height:1.25 !important;

    letter-spacing:0 !important;

    text-transform:none !important;
}


.bid-profile-photo__content > .muted{
    max-width:480px !important;

    margin:
        0
        0
        12px !important;

    color:#526a7a !important;

    font-size:11px !important;
    line-height:1.5 !important;
}


/* Bouton */

#bid-profile-photo-select{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:0 !important;
    min-height:42px !important;

    margin:0 !important;

    padding:
        0
        15px !important;

    border-radius:12px !important;

    font-size:12px !important;
}


/* Message */

#bid-profile-photo-status{
    margin:
        11px
        0
        0 !important;

    padding:
        9px
        11px !important;

    border-radius:10px !important;

    font-size:11px !important;
}


/* Mobile */

@media(max-width:600px){

    .bid-profile-photo{
        grid-template-columns:
            72px
            minmax(0,1fr) !important;

        gap:14px !important;

        padding:14px !important;
    }

    .bid-profile-photo
    .bid-profile-photo__preview,
    .bid-profile-photo
    .bid-profile-photo__preview
    #bid-profile-photo-preview{
        width:72px !important;
        height:72px !important;

        min-width:72px !important;
        max-width:72px !important;

        min-height:72px !important;
        max-height:72px !important;
    }
}


/* ============================================================
   Euphoria ID — PROFILE PHOTO UI V2
   ============================================================ */

.bid-profile-photo{
    display:grid !important;
    grid-template-columns:88px minmax(0,1fr) !important;
    align-items:center !important;

    gap:18px !important;

    width:100% !important;

    box-sizing:border-box !important;

    margin:20px 0 22px !important;
    padding:17px !important;

    border:
        1px solid
        rgba(0,113,138,.09) !important;

    border-radius:17px !important;

    background:
        rgba(0,113,138,.022) !important;

    overflow:hidden !important;
}


/* Preview : verrouillage contre les règles globales */

.bid-profile-photo
.bid-profile-photo__preview{
    display:block !important;

    width:88px !important;
    height:88px !important;

    min-width:88px !important;
    max-width:88px !important;

    min-height:88px !important;
    max-height:88px !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    border-radius:50% !important;

    background:#f4f7f8 !important;
}


.bid-profile-photo
.bid-profile-photo__preview
#bid-profile-photo-preview{
    display:block !important;

    width:88px !important;
    height:88px !important;

    min-width:88px !important;
    max-width:88px !important;

    min-height:88px !important;
    max-height:88px !important;

    aspect-ratio:1 / 1 !important;

    margin:0 !important;
    padding:0 !important;

    border:
        3px solid
        #fff !important;

    border-radius:50% !important;

    object-fit:cover !important;
    object-position:center !important;

    box-sizing:border-box !important;

    background:#f4f7f8 !important;

    box-shadow:
        0 7px 20px
        rgba(3,31,53,.11) !important;
}


/* Contenu */

.bid-profile-photo__content{
    min-width:0 !important;

    margin:0 !important;
}


/*
 * Même rendu qu'un label normal du formulaire.
 */

.bid-profile-photo__title{
    display:block !important;

    margin:
        0
        0
        8px !important;

    padding:0 !important;

    color:#526a7a !important;

    font:inherit !important;

    font-size:13px !important;
    font-weight:700 !important;

    line-height:1.25 !important;

    letter-spacing:0 !important;

    text-transform:none !important;
}


.bid-profile-photo__content > .muted{
    max-width:480px !important;

    margin:
        0
        0
        12px !important;

    color:#526a7a !important;

    font-size:11px !important;
    line-height:1.5 !important;
}


/* Bouton */

#bid-profile-photo-select{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    min-width:0 !important;
    min-height:42px !important;

    margin:0 !important;

    padding:
        0
        15px !important;

    border-radius:12px !important;

    font-size:12px !important;
}


/* Message */

#bid-profile-photo-status{
    margin:
        11px
        0
        0 !important;

    padding:
        9px
        11px !important;

    border-radius:10px !important;

    font-size:11px !important;
}


/* Mobile */

@media(max-width:600px){

    .bid-profile-photo{
        grid-template-columns:
            72px
            minmax(0,1fr) !important;

        gap:14px !important;

        padding:14px !important;
    }

    .bid-profile-photo
    .bid-profile-photo__preview,
    .bid-profile-photo
    .bid-profile-photo__preview
    #bid-profile-photo-preview{
        width:72px !important;
        height:72px !important;

        min-width:72px !important;
        max-width:72px !important;

        min-height:72px !important;
        max-height:72px !important;
    }
}

/* ============================================================
   Euphoria ID — CROP MODAL VISIBILITY FIX V3
   ============================================================ */

/*
 * État fermé :
 * le modal est totalement retiré du rendu.
 * Cela empêche le canvas noir et le panel blanc
 * de créer de l'espace dans la page.
 */

.bid-photo-modal:not(.is-open){
    display:none !important;
}


/*
 * État ouvert uniquement.
 */

.bid-photo-modal.is-open{
    position:fixed !important;

    inset:0 !important;

    z-index:2147483000 !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:100vw !important;
    height:100dvh !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:24px !important;

    overflow:hidden !important;

    background:
        rgba(3,31,53,.58) !important;

    opacity:1 !important;
    visibility:visible !important;

    pointer-events:auto !important;

    backdrop-filter:blur(9px) !important;
    -webkit-backdrop-filter:blur(9px) !important;
}


/*
 * Le panel ne doit jamais participer au layout
 * de la page principale.
 */

.bid-photo-modal.is-open
.bid-photo-modal__panel{
    position:relative !important;

    display:grid !important;

    grid-template-rows:
        auto
        minmax(0,1fr)
        auto !important;

    width:min(600px,100%) !important;

    max-width:600px !important;

    max-height:
        calc(100dvh - 48px) !important;

    margin:0 !important;

    overflow:hidden !important;

    border-radius:24px !important;

    background:#fff !important;
}


/*
 * Canvas : uniquement dans son conteneur carré.
 */

.bid-photo-modal
.bid-photo-crop{
    position:relative !important;

    display:block !important;

    width:min(100%,470px) !important;
    height:auto !important;

    aspect-ratio:1 / 1 !important;

    margin:
        0
        auto !important;

    overflow:hidden !important;

    background:#526a7a !important;
}


.bid-photo-modal
.bid-photo-crop__canvas{
    position:absolute !important;

    inset:0 !important;

    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:100% !important;
    max-height:100% !important;

    margin:0 !important;
    padding:0 !important;
}


/*
 * Le guide reste superposé au canvas.
 */

.bid-photo-modal
.bid-photo-crop__guide{
    position:absolute !important;

    inset:0 !important;

    z-index:5 !important;

    width:auto !important;
    height:auto !important;

    pointer-events:none !important;
}


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

@media(max-width:760px){

    .bid-photo-modal.is-open{
        align-items:flex-end !important;

        padding:
            10px
            10px
            max(
                10px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    .bid-photo-modal.is-open
    .bid-photo-modal__panel{
        width:100% !important;

        max-width:none !important;

        max-height:
            calc(
                100dvh -
                20px
            ) !important;

        border-radius:
            22px
            22px
            16px
            16px !important;
    }
}



/* ============================================================
   Euphoria ID — CROP MODAL FINAL V4
   ============================================================ */


/* ------------------------------------------------------------
   Overlay
   ------------------------------------------------------------ */

body > .bid-photo-modal.is-open{
    position:fixed !important;

    inset:0 !important;

    z-index:2147483000 !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:100vw !important;
    height:100dvh !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:28px !important;

    overflow:hidden !important;

    background:
        rgba(3,31,53,.54) !important;

    backdrop-filter:
        blur(12px) !important;

    -webkit-backdrop-filter:
        blur(12px) !important;
}


body > .bid-photo-modal:not(.is-open){
    display:none !important;
}


/* ------------------------------------------------------------
   Panel
   ------------------------------------------------------------ */

body > .bid-photo-modal.is-open
> .bid-photo-modal__panel{
    position:relative !important;

    display:grid !important;

    grid-template-rows:
        auto
        minmax(0,1fr)
        auto !important;

    width:min(620px,100%) !important;

    height:auto !important;

    max-width:620px !important;

    max-height:
        min(
            860px,
            calc(100dvh - 56px)
        ) !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:0 !important;

    overflow:hidden !important;

    border:
        1px solid
        rgba(0,113,138,.09) !important;

    border-radius:26px !important;

    background:
        rgba(244,247,248,.99) !important;

    box-shadow:
        0 32px 100px
        rgba(3,31,53,.28) !important;
}


/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-modal__head{
    position:relative !important;

    z-index:20 !important;

    display:flex !important;

    align-items:center !important;
    justify-content:space-between !important;

    gap:20px !important;

    width:100% !important;

    box-sizing:border-box !important;

    margin:0 !important;

    padding:
        21px
        24px
        19px !important;

    border:0 !important;

    border-bottom:
        1px solid
        rgba(0,113,138,.08) !important;

    background:#fff !important;
}


body > .bid-photo-modal
.bid-photo-modal__head > div{
    min-width:0 !important;
}


body > .bid-photo-modal
.bid-photo-modal__head
.mb-eyebrow{
    display:block !important;

    margin:
        0
        0
        6px !important;

    padding:0 !important;

    color:#00718a !important;

    font-size:10px !important;
    font-weight:800 !important;

    line-height:1.2 !important;

    letter-spacing:.16em !important;

    text-transform:uppercase !important;
}


body > .bid-photo-modal
.bid-photo-modal__head h2{
    margin:0 !important;
    padding:0 !important;

    color:#526a7a !important;

    font-family:
        Georgia,
        "Times New Roman",
        serif !important;

    font-size:25px !important;
    font-weight:500 !important;

    line-height:1.08 !important;

    letter-spacing:-.025em !important;
}


/* ------------------------------------------------------------
   Croix
   ------------------------------------------------------------ */

body > .bid-photo-modal
button.bid-photo-modal__close{
    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:46px !important;
    height:46px !important;

    min-width:46px !important;
    min-height:46px !important;

    flex:0 0 46px !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:0 !important;

    border:
        1px solid
        rgba(0,113,138,.11) !important;

    border-radius:14px !important;

    outline:0 !important;

    background:
        rgba(0,113,138,.045) !important;

    color:#00718a !important;

    font-family:Arial,sans-serif !important;

    font-size:22px !important;
    font-weight:400 !important;

    line-height:1 !important;

    box-shadow:none !important;

    appearance:none !important;
    -webkit-appearance:none !important;

    cursor:pointer !important;
}


/* ------------------------------------------------------------
   Body
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-modal__body{
    display:block !important;

    min-height:0 !important;

    box-sizing:border-box !important;

    margin:0 !important;

    padding:
        20px
        24px
        22px !important;

    overflow-x:hidden !important;
    overflow-y:auto !important;

    background:
        linear-gradient(
            145deg,
            #f4f7f8,
            #f4f7f8
        ) !important;

    -webkit-overflow-scrolling:touch;
}


body > .bid-photo-modal
.bid-photo-modal__body > p.muted{
    margin:
        0
        0
        17px !important;

    padding:0 !important;

    color:#526a7a !important;

    font-size:12px !important;
    line-height:1.45 !important;

    text-align:center !important;
}


/* ------------------------------------------------------------
   Crop
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-crop{
    position:relative !important;

    display:block !important;

    width:
        min(
            100%,
            440px
        ) !important;

    height:auto !important;

    aspect-ratio:1 / 1 !important;

    box-sizing:border-box !important;

    margin:
        0
        auto !important;

    padding:0 !important;

    overflow:hidden !important;

    border:
        1px solid
        rgba(255,255,255,.20) !important;

    border-radius:22px !important;

    background:#526a7a !important;

    box-shadow:
        0 12px 34px
        rgba(3,31,53,.12) !important;

    touch-action:none !important;
}


/* ------------------------------------------------------------
   Canvas
   ------------------------------------------------------------ */

body > .bid-photo-modal
canvas.bid-photo-crop__canvas{
    position:absolute !important;

    inset:0 !important;

    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:none !important;
    max-height:none !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;

    border-radius:0 !important;

    background:transparent !important;

    box-shadow:none !important;

    cursor:grab !important;

    touch-action:none !important;
}


body > .bid-photo-modal
canvas.bid-photo-crop__canvas:active{
    cursor:grabbing !important;
}


/* ------------------------------------------------------------
   Guide
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-crop__guide{
    position:absolute !important;

    inset:0 !important;

    z-index:5 !important;

    display:block !important;

    width:auto !important;
    height:auto !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:0 !important;

    border:
        2px solid
        rgba(255,255,255,.90) !important;

    border-radius:21px !important;

    pointer-events:none !important;
}


body > .bid-photo-modal
.bid-photo-crop__guide::before{
    content:"" !important;

    position:absolute !important;

    left:10% !important;
    top:10% !important;

    width:80% !important;
    height:80% !important;

    box-sizing:border-box !important;

    border:
        1px solid
        rgba(255,255,255,.58) !important;

    border-radius:50% !important;
}


/* ------------------------------------------------------------
   Zoom
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-zoom{
    display:grid !important;

    grid-template-columns:
        24px
        minmax(0,1fr)
        24px !important;

    align-items:center !important;

    gap:12px !important;

    width:min(100%,440px) !important;

    box-sizing:border-box !important;

    margin:
        18px
        auto
        0 !important;

    padding:0 !important;
}


body > .bid-photo-modal
.bid-photo-zoom > span{
    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:24px !important;
    height:24px !important;

    margin:0 !important;
    padding:0 !important;

    color:#00718a !important;

    font-size:18px !important;
    font-weight:700 !important;
}


body > .bid-photo-modal
input.bid-photo-zoom__range{
    display:block !important;

    width:100% !important;
    height:26px !important;

    box-sizing:border-box !important;

    margin:0 !important;
    padding:0 !important;

    border:0 !important;

    outline:0 !important;

    background:transparent !important;

    box-shadow:none !important;

    accent-color:#00718a !important;

    appearance:auto !important;
    -webkit-appearance:auto !important;
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-modal__footer{
    position:relative !important;

    z-index:30 !important;

    display:flex !important;

    align-items:center !important;
    justify-content:flex-end !important;

    gap:11px !important;

    width:100% !important;

    min-height:76px !important;

    box-sizing:border-box !important;

    margin:0 !important;

    padding:
        14px
        24px !important;

    border:0 !important;

    border-top:
        1px solid
        rgba(0,113,138,.08) !important;

    background:#fff !important;

    box-shadow:
        0
        -8px
        24px
        rgba(3,31,53,.035) !important;
}


/* ------------------------------------------------------------
   Boutons footer
   ------------------------------------------------------------ */

body > .bid-photo-modal
.bid-photo-modal__footer
button{
    display:inline-flex !important;

    align-items:center !important;
    justify-content:center !important;

    width:auto !important;
    height:46px !important;

    min-height:46px !important;

    box-sizing:border-box !important;

    margin:0 !important;

    padding:
        0
        18px !important;

    border-radius:13px !important;

    outline:0 !important;

    font-family:inherit !important;

    font-size:12px !important;
    font-weight:700 !important;

    line-height:1 !important;

    appearance:none !important;
    -webkit-appearance:none !important;

    cursor:pointer !important;
}


body > .bid-photo-modal
button.bid-photo-cancel{
    min-width:110px !important;

    border:
        1px solid
        rgba(0,113,138,.12) !important;

    background:#fff !important;

    color:#526a7a !important;

    box-shadow:none !important;
}


body > .bid-photo-modal
button.bid-photo-save{
    min-width:180px !important;

    border:
        1px solid
        #00718a !important;

    background:
        linear-gradient(
            135deg,
            #00718a,
            #00718a
        ) !important;

    color:#fff !important;

    box-shadow:
        0
        8px
        22px
        rgba(0,113,138,.17) !important;
}


body > .bid-photo-modal
button.bid-photo-save:disabled{
    opacity:.55 !important;

    cursor:wait !important;
}


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

@media(max-width:700px){

    body > .bid-photo-modal.is-open{
        align-items:flex-end !important;

        padding:
            8px
            8px
            max(
                8px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    body > .bid-photo-modal.is-open
    > .bid-photo-modal__panel{
        width:100% !important;

        max-width:none !important;

        max-height:
            calc(
                100dvh -
                16px
            ) !important;

        border-radius:
            22px
            22px
            15px
            15px !important;
    }


    body > .bid-photo-modal
    .bid-photo-modal__head{
        padding:
            16px
            17px !important;
    }


    body > .bid-photo-modal
    .bid-photo-modal__head h2{
        font-size:21px !important;
    }


    body > .bid-photo-modal
    .bid-photo-modal__body{
        padding:
            16px
            14px
            18px !important;
    }


    body > .bid-photo-modal
    .bid-photo-crop{
        width:
            min(
                100%,
                420px
            ) !important;
    }


    body > .bid-photo-modal
    .bid-photo-modal__footer{
        display:grid !important;

        grid-template-columns:
            minmax(0,.8fr)
            minmax(0,1.2fr) !important;

        gap:9px !important;

        min-height:auto !important;

        padding:
            11px
            14px
            max(
                11px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    body > .bid-photo-modal
    .bid-photo-modal__footer
    button{
        width:100% !important;

        min-width:0 !important;

        padding:
            0
            10px !important;
    }
}

/* Security cleanup — replacement for legacy inline spacing */
.bid-card-spaced{
    margin-top:18px;
}

