/* Doua account workspace: prepaid plans, usage and payment history. */
body:has(#customer:not([hidden])) { background: #f7f9f8; }
body:has(#customer:not([hidden])) #compte { padding-block: clamp(1.4rem, 3vw, 2.8rem) 4rem; }
.account-main:has(#customer:not([hidden])) { min-inline-size: 0; }
.customer-hub { gap: clamp(1rem, 3vw, 2rem); }
.account-shortcuts {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.account-shortcuts a { font-weight: 690; }
.account-shortcuts .account-tools { margin-block-start: .7rem; }
.dashboard-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.dashboard-section > h1:focus:not(:focus-visible),
.account-page-heading h1:focus:not(:focus-visible) { outline: none; }
.account-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-block-end: clamp(1.4rem, 3vw, 2rem);
}
.account-page-heading h1 {
  margin: 0;
  font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.055em;
}
.account-page-heading p { margin: .35rem 0 0; color: var(--theme-muted); }
.account-page-heading > .button { white-space: nowrap; }
.account-overview-heading { align-items: baseline; }
.account-overview-heading h1 { width: auto; }
.account-welcome {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--theme-text);
}
.account-welcome h2 {
  margin: 0;
  font-size: clamp(1.85rem, 1.45rem + 1.6vw, 2.7rem);
  line-height: 1.12;
}
.account-welcome > p { max-inline-size: none; margin: .35rem 0 0; color: var(--theme-muted); }
.account-overview:has(#account-no-pass:not([hidden])) .account-overview-heading { display: none; }
.account-offer-group { margin-block-start: clamp(1.8rem, 3vw, 2.4rem); }
.account-offer-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; margin-block-end: .9rem; }
.account-offer-heading h2 { margin: 0; font-size: 1.25rem; }
.account-offer-heading p { margin: 0; color: var(--theme-muted); font-size: .86rem; }
.account-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.account-offer-code .account-offer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-offer {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  padding: 1.2rem;
  border: 1px solid #dce6e1;
  border-radius: 1rem;
  background: #fff;
}
.account-offer-recommended { border-color: var(--theme-brand); box-shadow: inset 0 0 0 1px var(--theme-brand); }
.account-offer-eyebrow { margin: 0 0 .45rem; color: var(--theme-brand); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.account-offer h3 { margin: 0; font-size: 1.03rem; }
.account-offer-purpose { min-block-size: 2.5rem; margin: .25rem 0 0; color: var(--theme-muted); font-size: .82rem; line-height: 1.4; }
.account-offer-price { margin: .7rem 0 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 830; letter-spacing: -.06em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.account-offer-price small { font-size: .78rem; font-weight: 750; letter-spacing: 0; }
.account-offer-details { flex: 1; margin: .35rem 0 1rem; color: var(--theme-muted); font-size: .86rem; }
.account-offer-bonus { display: block; margin-block-start: .25rem; color: var(--theme-brand); font-size: .76rem; font-weight: 750; }
.account-offer-current { background: #f5f8f6; }
.account-offer-action { inline-size: 100%; min-block-size: 2.8rem; }
.account-offer:not(.account-offer-recommended) .account-offer-action { border: 1px solid var(--theme-brand); background: #fff; color: var(--theme-brand); }
.account-offer:not(.account-offer-recommended) .account-offer-action:is(:hover,:focus-visible) { background: var(--theme-brand-subtle); }
.account-offers-note { margin: 1rem 0 0; color: var(--theme-muted); font-size: .86rem; }
.usage-wallet-select { display: grid; gap: .25rem; color: var(--theme-muted); font-size: .8rem; font-weight: 750; }
.usage-wallet-select select { min-block-size: 2.7rem; min-inline-size: min(100%, 15rem); padding: .5rem .75rem; border: 1px solid var(--theme-border); border-radius: .55rem; background: #fff; color: var(--theme-text); font: inherit; font-size: 1rem; }
.usage-balance {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(13rem, .65fr);
  gap: 1.6rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.1rem;
  background: linear-gradient(115deg, #0b3e35 0%, #10483c 70%, #1b6350 100%);
  color: #fff;
}
.usage-balance-label { margin: 0; color: #c9e6d5; font-size: .76rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.usage-balance-value { margin: .35rem 0; font-size: clamp(2rem, 1.45rem + 2.4vw, 3rem); font-weight: 850; letter-spacing: -.07em; line-height: 1.13; font-variant-numeric: tabular-nums; }
.usage-balance-note { margin: 0; color: #dbefe5; font-size: .9rem; }
.usage-balance progress { display: block; inline-size: 100%; block-size: .48rem; margin-block-start: 1.25rem; border: 0; border-radius: 1rem; overflow: hidden; background: #ffffff55; accent-color: #c9e6d5; }
.usage-balance progress::-webkit-progress-bar { background: #ffffff55; }
.usage-balance progress::-webkit-progress-value { background: #c9e6d5; }
.usage-balance progress::-moz-progress-bar { background: #c9e6d5; }
.usage-balance-side { display: grid; gap: .25rem; border-inline-start: 1px solid #ffffff44; padding-inline-start: 1.6rem; }
.usage-balance-side span { color: #d3e7dd; font-size: .83rem; }
.usage-balance-side strong { font-size: 1.06rem; }
.usage-metrics, .payment-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-block-start: .8rem; }
.usage-metric, .payment-metric { padding: 1rem 1.2rem; border: 1px solid #dce6e1; border-radius: 1rem; background: #fff; }
.usage-metric p, .payment-metric p { margin: 0; color: var(--theme-muted); font-size: .8rem; font-weight: 720; }
.usage-metric strong, .payment-metric strong { display: block; margin-block: .2rem; font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.usage-metric small, .payment-metric small { color: var(--theme-muted); font-size: .78rem; }
.usage-analyses { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .75fr); gap: 1rem; margin-block-start: 1.8rem; padding-block-start: 1.8rem; border-block-start: 1px solid var(--theme-border); }
.usage-chart, .usage-models { min-inline-size: 0; padding: 1.25rem; border: 1px solid var(--theme-border); border-radius: 1rem; background: #fff; }
.usage-chart .account-section-heading, .usage-models .account-section-heading { align-items: flex-start; }
.account-section-heading span, .account-section-heading p { color: var(--theme-muted); font-size: .8rem; font-weight: 500; }
.account-section-heading p { margin: .2rem 0 0; }
.usage-periods { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem; }
.usage-periods button { min-block-size: 2.35rem; padding: .3rem .6rem; border: 1px solid var(--theme-border); border-radius: .5rem; background: #fff; color: var(--theme-muted); font-size: .76rem; }
.usage-periods button[aria-pressed="true"] { border-color: var(--theme-brand); background: var(--theme-brand); color: #fff; }
.usage-chart-bars { display: grid; grid-template-columns: repeat(var(--points, 7), minmax(0, 1fr)); align-items: end; gap: clamp(.1rem, .5vw, .45rem); min-block-size: 11rem; margin-block-start: 1.2rem; border-block-end: 1px solid var(--theme-border); }
.usage-chart-day { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; min-inline-size: 0; block-size: 11rem; }
.usage-chart-bar { display: block; block-size: var(--usage-height); max-block-size: calc(100% - 1.4rem); min-block-size: .18rem; border-radius: .25rem .25rem 0 0; background: var(--theme-brand); }
.usage-chart-day time { min-block-size: 1.3rem; padding-block-start: .25rem; color: var(--theme-muted); font-size: .62rem; text-align: center; white-space: nowrap; }
.usage-model-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .5rem; padding-block: .8rem; border-block-start: 1px solid var(--theme-border); }
.usage-model-row:first-child { border-block-start: 0; }
.usage-model-row strong { display: block; font-size: .9rem; }
.usage-model-row span { color: var(--theme-muted); font-size: .77rem; }
.usage-model-row b { font-size: .9rem; font-variant-numeric: tabular-nums; }
.usage-model-track { grid-column: 1 / -1; display: block; block-size: .32rem; margin-block-start: .35rem; border-radius: 1rem; background: #edf2ef; }
.usage-model-track i { display: block; block-size: 100%; border-radius: inherit; background: var(--theme-brand); }
.usage-history, .payment-history { margin-block-start: 1.8rem; padding-block-start: 1.8rem; border-block-start: 1px solid var(--theme-border); }
.usage-history-scroll { max-block-size: min(34rem, 72vh); overflow: auto; container-type: inline-size; border: 1px solid var(--theme-border); border-radius: 1rem; background: #fff; }
.usage-history-scroll:focus-visible { outline: 2px solid var(--theme-brand); outline-offset: 3px; }
.usage-history-table { inline-size: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.usage-history-table thead { position: sticky; inset-block-start: 0; z-index: 1; }
.usage-history-table :is(th, td) { padding: .8rem 1rem; text-align: start; }
.usage-history-table thead th { background: #f9fbfa; color: var(--theme-muted); font-size: .73rem; font-weight: 650; }
.usage-history-table tbody :is(th, td) { border-block-start: 1px solid var(--theme-border); }
.usage-history-table .usage-history-day { background: #f9fbfa; white-space: nowrap; vertical-align: top; font-weight: 600; }
.usage-history-table .usage-history-model { overflow-wrap: anywhere; font-weight: 600; }
.usage-history-table :is(td, th):nth-last-child(-n+2) { text-align: end; font-variant-numeric: tabular-nums; }
.usage-history-table td:last-child { white-space: nowrap; font-weight: 700; }
@container (max-width: 34rem) {
  .usage-history-table :is(th, td) { padding: .7rem .45rem; }
  .usage-history-table .usage-history-day { white-space: normal; }
}
.usage-legacy-section { margin-block-start: 1.5rem; }
.payment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: 0; }
.payment-history .account-section-heading { margin-block-end: .9rem; }
.payment-list { border: 1px solid var(--theme-border); border-radius: 1rem; background: #fff; overflow: clip; }
.payment-entry + .payment-entry { border-block-start: 1px solid var(--theme-border); }
.payment-entry-header { display: grid; grid-template-columns: 2.7rem minmax(0, 1fr) minmax(6rem, auto) auto auto; align-items: center; gap: .7rem 1rem; padding: 1rem 1.2rem; }
.payment-entry-icon { display: grid; place-items: center; inline-size: 2.55rem; block-size: 2.55rem; border-radius: .6rem; background: var(--theme-brand-subtle); color: var(--theme-brand); font-weight: 850; }
.payment-entry-identity h3 { margin: 0; font-size: .93rem; }
.payment-entry-identity small { display: block; color: var(--theme-muted); font-size: .77rem; }
.payment-entry-price { font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payment-entry-toggle { min-block-size: 2.5rem; padding: .25rem .4rem; border: 0; background: transparent; color: var(--theme-brand); font-size: .86rem; text-decoration: underline; }
.payment-entry-toggle:hover { background: transparent; color: var(--theme-brand-hover); }
.payment-entry-details { padding: 0 1.2rem 1.2rem 4.9rem; }
.payment-order-content > h4, .payment-order-content > .badge { display: none; }
.payment-order-content > .order-summary { max-inline-size: 38rem; }
.payment-order-content p { max-inline-size: 55rem; }
.payment-entry .badge { white-space: nowrap; }
.checkout-unavailable { padding: .85rem 1rem; border: 1px solid #b9c9c0; border-radius: .65rem; background: var(--theme-brand-subtle); color: var(--theme-brand); }
.checkout-existing-note { margin: 1rem 0 0; padding-block-start: .8rem; border-block-start: 1px solid #ffffff44; color: #d3e7dd; font-size: .83rem; }
.checkout .checkout-grid { grid-template-areas: "method summary"; grid-template-columns: minmax(0, 1fr) minmax(15rem, 21rem); gap: 1.5rem; }
.checkout .checkout-method { grid-area: method; }
.checkout .checkout-summary { grid-area: summary; background: #102e27; border-color: #102e27; }
.checkout-steps { padding: 0; list-style: none; }
.checkout-steps li { display: inline-flex; gap: .35rem; align-items: center; }
.checkout-steps li + li::before { content: "→"; margin-inline-end: .5rem; color: var(--theme-muted); font-weight: 400; }
.checkout-steps [aria-current] { text-decoration: none; }
.checkout-providers span { border-inline-start: 0; border-radius: .6rem; background: #f7fbf9; }
.checkout-method { border-color: var(--theme-border); }
#checkout-submit { min-block-size: 3.2rem; }
@media (max-width: 70rem) { .account-offer-code .account-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 55rem) {
  .usage-analyses { grid-template-columns: 1fr; }
  .payment-entry-header { grid-template-columns: 2.7rem minmax(0, 1fr) auto; }
  .payment-entry-header .badge { grid-column: 3; grid-row: 1; }
  .payment-entry-price { grid-column: 2; grid-row: 2; }
  .payment-entry-toggle { grid-column: 3; grid-row: 2; }
}
@media (max-width: 48rem) {
  .account-shortcuts { border: 0; padding: 0; background: transparent; }
  .usage-balance { grid-template-columns: 1fr; }
  .usage-balance-side { border-inline-start: 0; border-block-start: 1px solid #ffffff44; padding-inline-start: 0; padding-block-start: .8rem; }
  .usage-metrics, .payment-metrics { grid-template-columns: 1fr; }
  .account-offer-grid, .account-offer-code .account-offer-grid { grid-template-columns: 1fr; }
  .account-offer-purpose { min-block-size: 0; }
  .checkout .checkout-grid { grid-template-areas: "method" "summary"; grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .account-page-heading { align-items: flex-start; }
  .account-page-heading > .button { min-block-size: 2.65rem; }
  .usage-periods { justify-content: flex-start; }
  .usage-chart .account-section-heading { flex-direction: column; align-items: start; }
  .payment-entry-header { grid-template-columns: 2.7rem minmax(0, 1fr) auto; gap: .3rem .55rem; padding: .85rem; }
  .payment-entry-identity small { overflow-wrap: anywhere; }
  .payment-entry-price { white-space: normal; }
  .payment-entry-details { padding: 0 .85rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .account-offer, .payment-entry, .usage-chart-bar { transition: none; animation: none; }
}
body:has(#customer:not([hidden])) .doua-footer :is(.doua-footer-brand, [aria-label="Produit"]) { display: none; }
body:has(#customer:not([hidden])) .doua-footer .doua-footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  padding-block: .65rem;
}
body:has(#customer:not([hidden])) .doua-footer-group {
  display: flex;
  flex-wrap: wrap;
  gap: .1rem 1rem;
  border: 0;
  padding: 0;
}
body:has(#customer:not([hidden])) .doua-footer-group p { display: none; }
.account-language-control {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .55rem;
  margin-block-end: .75rem;
  font-size: .85rem;
}
.account-language-control select {
  width: auto;
  min-block-size: 2rem;
  margin: 0;
  padding: .25rem .4rem;
}
.account-language-control:has(select[hidden]) { display: none; }

body:has(#customer:not([hidden])) {background:#f8faf9}
body:has(#customer:not([hidden])) .masthead {background:white;border-bottom:1px solid #dfe6e2}
body:has(#customer:not([hidden])) .masthead nav a:not(#admin-link):not(.nav-account) {display:none}
body:has(#customer:not([hidden])) #compte {width:min(calc(100% - 3rem),1380px);max-width:1380px;margin:auto}
body:has(#customer:not([hidden])) .account-language-control {margin-block:0 .9rem}
body:has(#customer:not([hidden])) .doua-footer {display:none}
.customer-hub {align-items:start}
.customer-hub .account-shortcuts {background:#fff;border:1px solid #dbe5e0;border-radius:1.15rem;padding:.8rem}
.customer-hub .account-shortcuts a[aria-current="page"] {background:#e8f2ed;border-inline-start:3px solid #0b3e35;font-weight:750;color:#0b3e35;text-decoration:none}
.customer-hub .account-shortcuts .account-nav-label {display:block;color:#54655c;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;padding:.4rem .8rem}
.customer-hub .account-shortcuts a {border-inline-start:3px solid transparent;text-decoration:none}
.customer-hub .dashboard-section {min-width:0}
.customer-hub .account-weekly,.customer-hub .payment-history {background:#fff;border:1px solid #dbe5e0;border-radius:1rem}
.account-shortcuts a:focus-visible {outline:2px solid #0b3e35;outline-offset:2px}
@media(min-width:850px){
.customer-hub:not([data-view="checkout"]) {grid-template-columns:14rem minmax(0,1fr);gap:clamp(2rem,4vw,4rem);min-height:68vh}
.customer-hub .account-shortcuts {position:sticky;top:6rem;display:flex;flex-direction:column;align-items:stretch}
.customer-hub .account-shortcuts .account-tools {margin-block-start:1rem;padding-block-start:.8rem;border-top:1px solid #dbe5e0}
}
@media(max-width:849px){
body:has(#customer:not([hidden])) #compte {width:calc(100% - 2rem)}
.customer-hub .account-shortcuts {display:flex;flex-wrap:wrap;gap:.18rem;padding:.5rem}
.customer-hub .account-shortcuts .account-nav-label {display:none}
.customer-hub .account-shortcuts a {font-size:.84rem;padding-inline:.55rem}
.customer-hub .account-shortcuts .account-tools {margin:0}
.customer-hub .account-shortcuts .account-tools button {font-size:.8rem}
}

@media(max-width:849px){
  body:has(#customer:not([hidden])) .masthead .header-inner {display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap}
  body:has(#customer:not([hidden])) .masthead .nav-account {display:none}
  .customer-hub:not([data-view="checkout"]) {display:grid;grid-template-columns:minmax(0,1fr)}
  .customer-hub .account-shortcuts {display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;padding:.5rem .75rem}
  .customer-hub .account-shortcuts a {display:none}
  .customer-hub .account-shortcuts .account-mobile-sections {display:block;width:auto;max-width:65%;margin:0;border:0;background:#fff;color:#0b3e35;font:inherit;font-weight:650}
  .customer-hub .account-shortcuts .account-tools button {border:0;background:transparent}
}
@media(min-width:850px){.account-mobile-sections{display:none}}
.account-receipt summary {font-size:.77rem;cursor:pointer;color:#285d50}
.account-receipt code {user-select:all;overflow-wrap:anywhere;font-size:.75rem}

.payment-history > .account-section-heading { padding-inline:clamp(1rem,2vw,1.5rem); }
@media(min-width:650px) and (max-width:849px) {
  .account-offer-grid,.account-offer-code .account-offer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

#referral-panel.dashboard-section { padding:0; border:0; background:transparent; border-radius:0; }
#referral-panel .account-page-heading { margin:0 0 1.5rem; }
#referral-panel .account-page-heading h1 { font-size:clamp(2rem,4vw,3rem); margin:0; }
#referral-panel .account-page-heading p { margin:.4rem 0 0; }
.referral-invitation { background:#fff; border:1px solid #dfe5e1; border-radius:1.15rem; overflow:hidden; }
.referral-invitation h2, .referral-activity h2 { font-size:1.25rem; letter-spacing:-.025em; margin:0; }
.referral-share { padding:clamp(1rem, 3vw, 1.75rem); }
.referral-share label { display:block; font-size:.85rem; font-weight:650; margin:.9rem 0 .4rem; }
.referral-share-row { display:flex; flex-wrap:wrap; gap:.55rem; }
#referral-panel #referral-link { box-sizing:border-box; flex:1 1 16rem; width:auto; min-width:0; margin:0; padding:.7rem .8rem; min-height:2.75rem; background:#f6f7f6; color:#202622; border:1px solid #d7dfda; border-radius:.6rem; font:inherit; font-size:.85rem; text-overflow:ellipsis; }
#referral-panel #referral-copy { flex:0 0 auto; margin:0; min-height:2.75rem; }
#referral-panel :is(input,button):focus-visible { outline:2px solid #0b3e35; outline-offset:2px; }
.referral-share #referral-status { margin:.5rem 0 0; min-height:1.25em; font-size:.85rem; }
.referral-rewards { margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid #dfe5e1; background:#f7f8f7; }
.referral-rewards > div { padding:clamp(.8rem, 2.5vw, 1.5rem); }
.referral-rewards > div + div { border-inline-start:1px solid #dfe5e1; }
.referral-rewards dt { font-size:.85rem; font-weight:650; }
.referral-rewards dd { margin:0; }
.referral-rewards strong { display:block; color:#181e1a; font-size:clamp(1.7rem, 4vw, 2.4rem); line-height:1.25; letter-spacing:-.045em; }
.referral-rewards span, .referral-terms { color:#46544d; font-size:.85rem; line-height:1.5; }
.referral-terms { margin:.7rem 0 0; }
.referral-activity { margin-top:1.8rem; }
.referral-metrics { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%, 10rem),1fr)); gap:.65rem; margin:.7rem 0 0; }
.referral-metrics > div { display:flex; flex-direction:column; gap:.45rem; padding:.85rem 1rem; background:#fff; border:1px solid #dfe5e1; border-radius:.8rem; }
.referral-metrics dt { font-size:.8rem; color:#46544d; }
.referral-metrics dd { margin:0; font-size:1.5rem; font-weight:700; font-variant-numeric:tabular-nums; }

@media(max-width:540px){#referral-panel #referral-copy{flex:1 0 100%}.referral-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
