/* MonACC — espace professionnel de prospection. */

/* ---------- Cadre de page ---------- */
.account-hero,
.account-section,
.operation-access{
  position:relative;
  max-width:100%;
  overflow:clip;
}

.account-hero *,
.account-section *,
.operation-access *{
  min-width:0;
}

.account-hero{
  isolation:isolate;
  padding:82px 0 74px;
  color:#fff;
  background:
    radial-gradient(circle at 89% 12%,rgba(255,233,61,.22) 0,rgba(255,233,61,.08) 16%,transparent 39%),
    radial-gradient(circle at 8% 108%,rgba(47,156,205,.3) 0,transparent 34%),
    linear-gradient(118deg,var(--blue-950) 0%,var(--blue-900) 54%,#155270 100%);
}

.account-hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  opacity:.22;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:58px 58px;
  mask-image:linear-gradient(90deg,transparent,black 52%,black);
}

.account-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-95px;
  bottom:-190px;
  width:410px;
  height:410px;
  border:1px solid rgba(255,233,61,.38);
  border-radius:50%;
  box-shadow:0 0 0 44px rgba(255,233,61,.035),0 0 0 92px rgba(255,233,61,.025);
}

.account-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(390px,.82fr);
  gap:clamp(48px,7vw,104px);
  align-items:end;
}

.account-hero .baseline{
  color:var(--yellow);
}

.account-hero h1{
  max-width:780px;
  color:#fff;
  font-size:clamp(42px,5.4vw,72px);
  line-height:.98;
  letter-spacing:-.05em;
}

.account-hero h1 em{
  color:var(--yellow);
  font-family:var(--font-serif-editorial);
  font-weight:400;
  font-style:italic;
  letter-spacing:-.02em;
}

.account-hero .lead{
  max-width:720px;
  margin:24px 0 0;
  color:#d6e6ee;
  line-height:1.65;
}

.account-hero-route{
  display:grid;
  grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:22px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(4,27,40,.32);
  box-shadow:0 20px 55px rgba(4,23,34,.2);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.account-hero-route span{
  display:grid;
  gap:9px;
  align-content:start;
  color:#e4eff4;
  font-size:11px;
  font-weight:800;
  line-height:1.35;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.account-hero-route b{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,233,61,.9);
  border-radius:50%;
  color:var(--yellow);
  font-family:var(--font-display);
  font-size:10px;
}

.account-hero-route i{
  height:1px;
  background:linear-gradient(90deg,rgba(255,233,61,.2),rgba(255,233,61,.85));
}

.account-section{
  padding:54px 0 86px;
  background:
    linear-gradient(180deg,#edf5f7 0,#f8fbfc 380px,#eef7fb 100%);
}

.account-section::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:320px;
  pointer-events:none;
  background:linear-gradient(110deg,rgba(26,133,184,.035),transparent 38%,rgba(128,192,48,.045));
}

.account-section>.wrap{
  position:relative;
}

[hidden]{
  display:none!important;
}

/* ---------- États généraux ---------- */
.account-loading,
.account-alert{
  width:min(720px,100%);
  margin:0 auto;
  padding:24px 28px;
  border:1px solid var(--line);
  border-left:5px solid var(--blue-600);
  background:#fff;
  box-shadow:var(--shadow);
  color:var(--blue-900);
  font-size:.95rem;
  font-weight:800;
}

.account-loading::before{
  content:"";
  display:inline-block;
  width:13px;
  height:13px;
  margin-right:12px;
  border:2px solid var(--blue-100);
  border-top-color:var(--blue-600);
  border-radius:50%;
  vertical-align:-2px;
  animation:account-spin .8s linear infinite;
}

.account-form-status{
  margin:15px 0 0;
  padding:11px 13px;
  border-left:4px solid var(--green-500);
  background:var(--green-soft);
  color:#315c18;
  font-size:.82rem;
  font-weight:800;
  line-height:1.5;
}

.account-form-status:empty{
  display:none;
}

.account-form-status.is-error,
.account-alert.is-error{
  border-left-color:var(--red);
  background:var(--red-soft);
  color:#8b321f;
}

.account-form-status.is-warning,
.account-alert.is-warning{
  border-left-color:var(--amber);
  background:var(--amber-soft);
  color:#74500c;
}

.account-form-status.is-success{
  border-left-color:var(--green-500);
  background:var(--green-soft);
  color:#315c18;
}

/* ---------- Accès au compte ---------- */
.account-auth-layout{
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(440px,1.08fr);
  gap:clamp(34px,6vw,78px);
  align-items:center;
}

.account-intro{
  padding:14px 0 14px clamp(0px,2vw,24px);
}

.account-intro h2{
  max-width:580px;
  margin-bottom:18px;
  font-size:clamp(30px,3.4vw,46px);
}

.account-intro>p:not(.kicker){
  max-width:610px;
  color:#3e5968;
  font-size:1.02rem;
}

.account-steps{
  position:relative;
  display:grid;
  gap:0;
  max-width:590px;
  margin-top:32px;
  list-style:none;
}

.account-steps::before{
  content:"";
  position:absolute;
  top:27px;
  bottom:27px;
  left:25px;
  width:1px;
  background:linear-gradient(var(--blue-600),var(--green-500));
}

.account-steps li{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:52px 1fr;
  gap:17px;
  align-items:center;
  padding:13px 0;
}

.account-steps li>b{
  display:grid;
  place-items:center;
  width:52px;
  height:52px;
  border:1px solid #bfd5df;
  border-radius:50%;
  background:#fff;
  box-shadow:0 7px 22px rgba(16,52,73,.1);
  color:var(--blue-700);
  font-family:var(--font-display);
  font-size:.82rem;
}

.account-steps span,
.account-steps strong,
.account-steps small{
  display:block;
}

.account-steps strong{
  color:var(--blue-900);
  font-size:.96rem;
}

.account-steps small{
  margin-top:3px;
  color:var(--muted);
  font-size:.8rem;
  font-weight:500;
  line-height:1.45;
}

.account-auth-card{
  position:relative;
  padding:clamp(28px,4vw,46px);
  border:1px solid #cfdee5;
  border-top:6px solid var(--yellow);
  border-radius:4px;
  background:#fff;
  box-shadow:0 28px 70px rgba(16,52,73,.16);
}

.account-auth-card::after{
  content:"Accès sécurisé";
  position:absolute;
  top:18px;
  right:22px;
  color:#718995;
  font-size:10px;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.account-form-step{
  margin:0 0 25px;
  color:var(--blue-900);
  font-family:var(--font-display);
  font-size:clamp(19px,2vw,24px);
  font-weight:800;
  line-height:1.25;
  letter-spacing:-.02em;
}

.account-fields{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:17px 15px;
}

.account-auth-card label,
.account-profile-card label,
.operation-key-card label{
  display:grid;
  gap:7px;
  margin:0;
  color:var(--blue-900);
  font-size:.78rem;
  font-weight:800;
  line-height:1.35;
}

.account-auth-card label small,
.account-profile-card label small{
  color:#718995;
  font-weight:600;
}

.account-auth-card input:not([type=checkbox]),
.account-profile-card input,
.operation-key-card input{
  display:block;
  width:100%;
  min-height:50px;
  padding:11px 13px;
  border:1px solid #adc3cd;
  border-radius:3px;
  background:#fff;
  color:var(--ink);
  font:600 .93rem/1.25 var(--font-sans);
  transition:border-color var(--dur-hover) var(--ease),box-shadow var(--dur-hover) var(--ease),background var(--dur-hover) var(--ease);
}

.account-auth-card input:not([type=checkbox]):hover,
.account-profile-card input:hover,
.operation-key-card input:hover{
  border-color:#7fa5b5;
}

.account-auth-card input:not([type=checkbox]):focus,
.account-profile-card input:focus,
.operation-key-card input:focus{
  outline:none;
  border-color:var(--blue-600);
  box-shadow:0 0 0 4px rgba(26,133,184,.14);
}

.account-profile-card input[readonly]{
  border-color:#d1dee3;
  background:#f2f6f7;
  color:#58717b;
  cursor:not-allowed;
}

.account-consent{
  display:grid!important;
  grid-template-columns:19px 1fr;
  gap:11px!important;
  align-items:start;
  margin:21px 0!important;
  color:#49616d!important;
  font-size:.76rem!important;
  font-weight:600!important;
  line-height:1.5!important;
}

.account-consent input{
  width:18px;
  height:18px;
  margin-top:1px;
  accent-color:var(--blue-700);
}

.account-consent a{
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
}

.account-auth-card form>.btn{
  width:100%;
}

.account-code-help{
  margin:-9px 0 20px;
  padding:12px 14px;
  border-left:4px solid var(--blue-600);
  background:var(--blue-50);
  color:#385461;
  font-size:.82rem;
}

#account-code{
  max-width:230px;
  margin-top:2px;
  font-family:var(--font-display);
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.26em;
  text-align:center;
}

.account-form-actions{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:24px;
}

.account-form-actions .btn{
  flex:1;
  margin:0;
  padding-left:18px;
  padding-right:18px;
}

/* ---------- Tableau de bord ---------- */
.account-dashboard-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:28px;
}

.account-dashboard-head h2{
  margin-bottom:9px;
  font-size:clamp(29px,3.5vw,46px);
}

.account-dashboard-head p:last-child{
  margin:0;
  color:var(--muted);
}

.account-state-pill{
  display:inline-flex;
  align-items:center;
  gap:9px;
  flex:none;
  min-height:38px;
  padding:8px 15px;
  border:1px solid #a5c875;
  border-radius:var(--radius-pill);
  background:var(--green-soft);
  color:#456d16;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.account-state-pill::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--green-500);
  box-shadow:0 0 0 4px rgba(128,192,48,.15);
}

.account-state-pill.is-pending,
.account-state-pill.is-warning{
  border-color:#dfbd76;
  background:var(--amber-soft);
  color:#7b560e;
}

.account-state-pill.is-pending::before,
.account-state-pill.is-warning::before{
  background:var(--amber);
  box-shadow:0 0 0 4px rgba(185,122,16,.13);
}

.account-state-pill.is-suspended,
.account-state-pill.is-error{
  border-color:#dfa996;
  background:var(--red-soft);
  color:#8b321f;
}

.account-state-pill.is-suspended::before,
.account-state-pill.is-error::before{
  background:var(--red);
  box-shadow:0 0 0 4px rgba(192,96,63,.13);
}

.account-portal-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,352px);
  gap:24px;
  align-items:start;
}

.account-main-column,
.account-side-column{
  display:grid;
  gap:24px;
}

.account-next-action{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:30px;
  align-items:center;
  overflow:hidden;
  padding:32px 34px;
  border-radius:4px;
  background:linear-gradient(118deg,var(--blue-950),var(--blue-800));
  box-shadow:0 21px 52px rgba(11,36,49,.2);
  color:#c9dce5;
}

.account-next-action::after{
  content:"";
  position:absolute;
  z-index:-1;
  right:-72px;
  bottom:-116px;
  width:250px;
  height:250px;
  border:48px solid rgba(255,233,61,.075);
  border-radius:50%;
}

.account-next-action h3{
  max-width:630px;
  margin:2px 0 10px;
  color:#fff;
  font-size:clamp(21px,2vw,28px);
}

.account-next-action p:last-child{
  max-width:650px;
  margin:0;
  color:#bfd3dd;
  font-size:.88rem;
}

.account-card-eyebrow{
  margin:0 0 7px;
  color:var(--blue-700);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.11em;
  line-height:1.4;
  text-transform:uppercase;
}

.account-next-action .account-card-eyebrow{
  color:var(--yellow);
}

.account-next-action .btn{
  position:relative;
  z-index:1;
  white-space:nowrap;
}

.account-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid #bfd0d7;
  border-left:1px solid #bfd0d7;
  background:#fff;
  box-shadow:0 14px 38px rgba(16,52,73,.08);
}

.account-status-grid article{
  position:relative;
  min-height:190px;
  padding:22px 20px 20px;
  border-right:1px solid #bfd0d7;
  border-bottom:1px solid #bfd0d7;
  background:#fff;
}

.account-status-grid article::after{
  content:"";
  position:absolute;
  right:0;
  bottom:0;
  left:0;
  height:3px;
  background:var(--green-500);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--ease);
}

.account-status-grid article:hover::after{
  transform:scaleX(1);
}

.account-status-grid article.is-pending::after,
#account-send-card::after{
  background:var(--yellow);
}

.account-status-grid article.is-suspended::after,
.account-status-grid article.is-error::after{
  background:var(--red);
}

.account-status-icon{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  margin-bottom:22px;
  border:1px solid #c2d6de;
  border-radius:50%;
  background:var(--blue-50);
  color:var(--blue-800);
  font-family:var(--font-display);
  font-size:.78rem;
  font-weight:800;
}

.account-status-grid small,
.account-status-grid strong{
  display:block;
}

.account-status-grid small{
  margin-bottom:5px;
  color:#718995;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.account-status-grid strong{
  overflow-wrap:anywhere;
  color:var(--blue-900);
  font-family:var(--font-display);
  font-size:.95rem;
  line-height:1.25;
}

.account-status-grid p{
  margin:9px 0 0;
  color:#5a727e;
  font-size:.7rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.account-card{
  border:1px solid #cbdbe2;
  border-radius:4px;
  background:#fff;
  box-shadow:0 14px 38px rgba(16,52,73,.08);
}

.account-card-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
}

.account-card-head h3{
  margin:0;
  font-size:clamp(19px,2vw,24px);
}

.account-card-head>a{
  flex:none;
  font-size:.74rem;
  font-weight:800;
}

.account-history-card{
  padding:27px 29px 10px;
}

.account-projects-card{
  padding:27px 29px;
  border-top:5px solid var(--yellow);
}

.account-projects-intro{
  margin:13px 0 0;
  color:#536c78;
  font-size:.82rem;
  line-height:1.55;
}

.account-projects{
  margin:22px 0 0;
  padding:0;
  list-style:none;
}

.account-projects>li{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  padding:22px 0;
  border-top:1px solid var(--line);
}

.account-projects>li:last-child{
  padding-bottom:0;
}

.account-projects h4{
  margin:0 0 8px;
  color:var(--blue-900);
  font-family:var(--font-display);
  font-size:1rem;
  line-height:1.35;
  overflow-wrap:anywhere;
}

.account-projects p{
  margin:5px 0;
  color:#536c78;
  font-size:.77rem;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.account-projects .account-project-counts{
  color:var(--blue-800);
  font-weight:800;
}

.account-projects time{
  display:block;
  margin-top:9px;
  color:#6b818b;
  font-size:.7rem;
}

.account-projects .btn{
  min-height:44px;
  padding:12px 18px;
  font-size:.75rem;
  text-align:center;
}

@media (max-width:780px){
  .account-projects-card{padding:23px 20px;}
  .account-projects>li{grid-template-columns:1fr;gap:14px;}
  .account-projects .btn{justify-self:start;}
}

.account-empty{
  margin-top:22px;
  padding:28px 20px;
  border-top:1px solid var(--line);
  color:#6b818b;
  font-size:.82rem;
  text-align:center;
}

.account-empty::before{
  content:"";
  display:block;
  width:30px;
  height:30px;
  margin:0 auto 12px;
  border:1px solid #b8ced7;
  border-radius:50%;
  background:radial-gradient(circle,var(--blue-600) 0 3px,transparent 4px);
  opacity:.7;
}

.account-history{
  margin:20px 0 0;
  padding:0;
  list-style:none;
}

.account-history>li{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  min-height:66px;
  padding:12px 4px;
  border-top:1px solid var(--line);
  color:#536c78;
  font-size:.74rem;
  line-height:1.4;
}

.account-history>li:first-child{
  border-top-color:#c6d7de;
}

.account-history>li>div{
  display:grid;
  gap:3px;
}

.account-history>li>div:last-child{
  justify-items:end;
  gap:6px;
}

.account-history-note{
  margin:0 -1px;
  padding:12px 4px 11px;
  border-top:1px solid var(--line);
  color:#718995;
  font-size:.66rem;
  line-height:1.45;
  text-align:right;
}

.account-history strong,
.account-history time,
.account-history small,
.account-history span{
  overflow-wrap:anywhere;
}

.account-history strong{
  color:var(--blue-900);
  font-size:.8rem;
}

.account-history time,
.account-history small{
  color:#6b818b;
  font-size:.7rem;
}

.account-history .history-status,
.account-history .account-history-status,
.account-history .account-history-state{
  padding:5px 9px;
  border-radius:999px;
  background:var(--green-soft);
  color:#456d16;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.account-history .is-pending,
.account-history .is-warning{
  background:var(--amber-soft);
  color:#7b560e;
}

.account-history .is-error,
.account-history .is-blocked,
.account-history .is-failed{
  background:var(--red-soft);
  color:#8b321f;
}

.account-history .is-sent{
  background:var(--green-soft);
  color:#456d16;
}

#account-send-card.is-active::after,
#account-send-card.is-ready::after{
  background:var(--green-500);
}

#account-send-card.is-suspended::after,
#account-send-card.is-error::after{
  background:var(--red);
}

.account-profile-card{
  display:grid;
  gap:16px;
  padding:25px;
  border-top:5px solid var(--blue-600);
}

.account-profile-card .account-card-head{
  margin-bottom:3px;
}

.account-profile-note{
  margin:1px 0 0;
  padding:11px 12px;
  border-left:3px solid var(--yellow);
  background:var(--yellow-soft);
  color:#645a28;
  font-size:.69rem;
  line-height:1.5;
}

.account-profile-card .btn{
  width:100%;
}

.account-profile-card .account-form-status{
  margin-top:0;
}

.account-help-card{
  position:relative;
  overflow:hidden;
  padding:24px 25px;
  background:linear-gradient(145deg,#fff,#f0f7f9);
}

.account-help-card::after{
  content:"?";
  position:absolute;
  right:-8px;
  bottom:-33px;
  color:rgba(26,133,184,.08);
  font-family:var(--font-display);
  font-size:130px;
  font-weight:800;
  line-height:1;
}

.account-help-card h3{
  margin-bottom:10px;
}

.account-help-card p:not(.account-card-eyebrow){
  position:relative;
  z-index:1;
  margin-bottom:12px;
  color:#536c78;
  font-size:.78rem;
}

.account-help-card a{
  position:relative;
  z-index:1;
  font-size:.82rem;
  font-weight:800;
}

.account-logout{
  justify-self:center;
  border:0;
  background:transparent;
  color:#607985;
  font:700 .76rem var(--font-sans);
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.account-logout:hover{
  color:var(--red);
}

/* ---------- Accès à une opération ---------- */
.operation-access{
  isolation:isolate;
  padding:70px 0;
  color:#d5e4eb;
  background:linear-gradient(115deg,var(--blue-950),#103d54 68%,#155270);
}

.operation-access::after{
  content:"";
  position:absolute;
  z-index:-1;
  top:-125px;
  right:8%;
  width:290px;
  height:290px;
  border:1px solid rgba(255,255,255,.1);
  transform:rotate(45deg);
}

.operation-access-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(430px,.82fr);
  gap:clamp(42px,7vw,94px);
  align-items:center;
}

.operation-access .baseline{
  color:var(--yellow);
}

.operation-access h2{
  max-width:610px;
  margin-bottom:16px;
  color:#fff;
}

.operation-access-grid>div>p:not(.baseline):not(.smallprint){
  max-width:650px;
  color:#c2d7e0;
}

.operation-access .smallprint{
  max-width:650px;
  margin-bottom:0;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.13);
  color:#91adba;
}

.operation-key-card{
  padding:28px;
  border:1px solid rgba(255,255,255,.18);
  border-top:5px solid var(--yellow);
  background:#fff;
  box-shadow:0 24px 60px rgba(4,23,34,.28);
}

.operation-key-card label{
  margin-bottom:9px;
}

.operation-key-line{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:9px;
}

.operation-key-line .btn{
  min-height:50px;
  margin:0;
  padding-left:20px;
  padding-right:20px;
  white-space:nowrap;
}

.operation-key-card>p{
  margin:13px 0 0;
  color:#718995;
  font-size:.69rem;
}

.operation-key-card>p a{
  font-weight:800;
}

/* ---------- Interactions accessibles ---------- */
.account-section .btn:disabled,
.account-section button:disabled,
.operation-access .btn:disabled,
.account-section .btn[aria-disabled="true"],
.operation-access .btn[aria-disabled="true"]{
  opacity:.56;
  cursor:not-allowed;
  filter:saturate(.55);
  box-shadow:none;
  transform:none;
}

.account-section [aria-busy="true"],
.operation-access [aria-busy="true"]{
  cursor:wait;
}

.account-section .btn[aria-busy="true"]::after,
.operation-access .btn[aria-busy="true"]::after{
  content:"";
  width:14px;
  height:14px;
  border:2px solid currentColor;
  border-right-color:transparent;
  border-radius:50%;
  animation:account-spin .72s linear infinite;
}

.account-section button:focus-visible,
.account-section input:focus-visible,
.operation-access button:focus-visible,
.operation-access input:focus-visible,
.operation-access a:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}

.account-section input::placeholder,
.operation-access input::placeholder{
  color:#8ba0aa;
  opacity:1;
}

@keyframes account-spin{
  to{transform:rotate(360deg)}
}

/* ---------- Tablette ---------- */
@media (max-width:1080px){
  .account-hero-grid{
    grid-template-columns:minmax(0,1fr) minmax(330px,.72fr);
    gap:42px;
  }

  .account-hero-route{
    grid-template-columns:1fr;
    gap:7px;
  }

  .account-hero-route span{
    grid-template-columns:34px 1fr;
    align-items:center;
  }

  .account-hero-route i{
    width:1px;
    height:14px;
    margin-left:17px;
    background:linear-gradient(rgba(255,233,61,.2),rgba(255,233,61,.85));
  }

  .account-portal-grid{
    grid-template-columns:minmax(0,1fr) minmax(280px,320px);
  }

  .account-status-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:900px){
  .account-hero{
    padding:66px 0 60px;
  }

  .account-hero-grid,
  .account-auth-layout,
  .account-portal-grid,
  .operation-access-grid{
    grid-template-columns:1fr;
  }

  .account-hero-grid{
    gap:38px;
  }

  .account-hero-route{
    max-width:620px;
    grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr);
  }

  .account-hero-route span{
    display:grid;
    grid-template-columns:1fr;
  }

  .account-hero-route i{
    width:auto;
    height:1px;
    margin:0;
    background:linear-gradient(90deg,rgba(255,233,61,.2),rgba(255,233,61,.85));
  }

  .account-auth-layout{
    gap:36px;
  }

  .account-intro{
    padding:0;
  }

  .account-intro>p:not(.kicker),
  .account-steps{
    max-width:720px;
  }

  .account-auth-card{
    max-width:720px;
  }

  .account-side-column{
    grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);
    align-items:start;
  }

  .account-logout{
    grid-column:1/-1;
  }

  .operation-key-card{
    max-width:650px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width:680px){
  .account-hero{
    padding:48px 0 44px;
  }

  .account-hero h1{
    font-size:clamp(38px,12vw,54px);
  }

  .account-hero .lead{
    margin-top:18px;
    font-size:.97rem;
  }

  .account-hero-route{
    grid-template-columns:1fr;
    max-width:100%;
    padding:18px;
  }

  .account-hero-route span{
    grid-template-columns:34px 1fr;
    align-items:center;
  }

  .account-hero-route i{
    width:1px;
    height:12px;
    margin-left:17px;
    background:linear-gradient(rgba(255,233,61,.2),rgba(255,233,61,.85));
  }

  .account-section{
    padding:38px 0 62px;
  }

  .account-loading,
  .account-alert{
    padding:19px 18px;
  }

  .account-intro h2{
    font-size:clamp(27px,9vw,37px);
  }

  .account-intro>p:not(.kicker){
    font-size:.94rem;
  }

  .account-steps{
    margin-top:22px;
  }

  .account-steps li{
    grid-template-columns:44px 1fr;
    gap:14px;
  }

  .account-steps li>b{
    width:44px;
    height:44px;
  }

  .account-steps::before{
    left:21px;
  }

  .account-auth-card{
    padding:27px 21px 24px;
  }

  .account-auth-card::after{
    position:static;
    display:block;
    margin:-8px 0 19px;
  }

  .account-fields,
  .account-side-column{
    grid-template-columns:1fr;
  }

  .account-dashboard-head{
    align-items:flex-start;
    flex-direction:column;
    gap:15px;
  }

  .account-dashboard-head h2{
    font-size:clamp(28px,9vw,38px);
  }

  .account-next-action{
    grid-template-columns:1fr;
    padding:27px 23px;
  }

  .account-next-action .btn{
    width:100%;
    white-space:normal;
    text-align:center;
  }

  .account-status-grid{
    grid-template-columns:1fr 1fr;
  }

  .account-status-grid article{
    min-height:176px;
    padding:18px 16px;
  }

  .account-status-icon{
    margin-bottom:17px;
  }

  .account-history-card{
    padding:23px 20px 8px;
  }

  .account-card-head{
    align-items:flex-start;
    flex-direction:column;
    gap:9px;
  }

  .account-card-head>a{
    align-self:flex-start;
  }

  .account-history>li{
    grid-template-columns:1fr auto;
    gap:5px 12px;
    padding:15px 3px;
  }

  .account-history>li>div:last-child{
    align-self:start;
  }

  .account-profile-card,
  .account-help-card{
    padding:23px 20px;
  }

  .account-logout{
    grid-column:auto;
  }

  .operation-access{
    padding:56px 0;
  }

  .operation-key-card{
    padding:23px 20px;
  }
}

@media (max-width:470px){
  .account-hero::after{
    display:none;
  }

  .account-hero-route span{
    font-size:10px;
  }

  .account-form-actions,
  .operation-key-line{
    grid-template-columns:1fr;
    flex-direction:column;
  }

  .account-form-actions .btn,
  .operation-key-line .btn{
    width:100%;
  }

  #account-code{
    max-width:100%;
  }

  .account-status-grid{
    grid-template-columns:1fr;
  }

  .account-status-grid article{
    min-height:auto;
    padding:17px 18px;
  }

  .account-status-icon{
    float:left;
    margin:0 13px 16px 0;
  }

  .account-status-grid p{
    clear:both;
  }

  .account-history>li{
    grid-template-columns:1fr;
  }

  .account-history>li>div:last-child{
    justify-items:start;
  }

  .operation-key-line{
    display:grid;
  }
}

/* ---------- Préférences système ---------- */
@media (prefers-reduced-motion:reduce){
  .account-loading::before,
  .account-section .btn[aria-busy="true"]::after,
  .operation-access .btn[aria-busy="true"]::after{
    animation:none;
  }

  .account-status-grid article::after{
    transition:none;
  }
}

@media (forced-colors:active){
  .account-hero-route,
  .account-auth-card,
  .account-card,
  .account-status-grid,
  .account-status-grid article,
  .operation-key-card{
    border:1px solid CanvasText;
  }

  .account-state-pill,
  .account-status-icon{
    border:1px solid CanvasText;
  }
}
