/* FullGPU — page de déploiement /deploy : étapes (serveur, installation, compte, paiement) et récapitulatif collant.
   Chargé seulement sur cette page ; reprend les jetons de site.css. Largeur du conteneur du site, comme l'en-tête. */

.dw { padding-block: clamp(24px, 3.2vw, 44px) clamp(56px, 6vw, 88px); background: linear-gradient(180deg, var(--soft) 0, #fff 420px); }

/* ---------- En-tête et progression ---------- */
.dw-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; margin-bottom: 22px; }
.dw-head__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 680; font-size: clamp(1.75rem, 1.35rem + 1.2vw, 2.375rem); line-height: 1.08; letter-spacing: -.025em; color: var(--ink); }
.dw-head__sub { max-width: 640px; margin-top: 8px; font-size: 1rem; line-height: 1.55; color: var(--muted); }
.dw-progress { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.dw-progress__btn {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px 0 8px; border: 0; border-radius: 10px;
  background: none; font: inherit; font-size: .875rem; font-weight: 600; color: var(--subtle); cursor: default;
}
.dw-progress__num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2);
  font-size: .75rem; font-weight: 700; color: var(--subtle);
}
.dw-progress__num .icon { width: 13px; height: 13px; }
.dw-progress__step.is-current .dw-progress__btn { background: var(--tint); color: var(--blue-700); }
.dw-progress__step.is-current .dw-progress__num { border-color: var(--blue); background: var(--blue); color: #fff; }
.dw-progress__step.is-done .dw-progress__btn { color: var(--ink); cursor: pointer; }
.dw-progress__step.is-done .dw-progress__btn:hover { background: var(--soft); }
.dw-progress__step.is-done .dw-progress__num { border-color: var(--green-dot); background: var(--green-dot); color: #fff; }

/* ---------- Grille ---------- */
.dw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
@media (min-width: 1480px) { .dw-grid { grid-template-columns: minmax(0, 1fr) 390px; gap: 32px; } }
.dw-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.dw-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid #F5C2BE; border-radius: 12px; background: #FEF3F2; color: var(--red); font-size: .9375rem; }
.dw-alert .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.dw-error { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; font-size: .875rem; color: var(--red); }
.dw-error .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; }

/* ---------- Étapes ---------- */
.dw-step { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.dw-step[hidden] { display: none; }
.dw-step__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
.dw-step__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-stretch: 108%; font-weight: 660; font-size: 1.3125rem; letter-spacing: -.012em; color: var(--ink); }
.dw-step__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); font-size: .875rem; font-weight: 700; color: #fff; }
.dw-step__link { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 600; }
.dw-step__link .icon { width: 14px; height: 14px; }
.dw-step__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dw-step__foot--back { justify-content: flex-start; }
.dw-step__note { display: flex; align-items: flex-start; gap: 8px; margin-right: auto; max-width: 520px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.dw-step__note .icon { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--green); }
.dw-step__foot .btn[hidden] { display: none; }

/* ---------- 1. Serveur ---------- */
.dw-tabs { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: var(--soft-2); }
.dw-tabs__tab {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 9px;
  background: none; font: inherit; font-size: .875rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.dw-tabs__tab span { font-family: var(--mono); font-size: .6875rem; font-weight: 500; color: var(--subtle); }
.dw-tabs__tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dw-list { display: grid; gap: 8px; }
.dw-list[hidden] { display: none; }
.dw-list__note { display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font-size: .875rem; line-height: 1.5; color: var(--text); }
.dw-list__note .icon { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--blue); }
.dw-opt { position: relative; display: block; cursor: pointer; }
.dw-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dw-opt__card {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.55fr) minmax(0, .95fr) minmax(128px, auto); align-items: center; gap: 6px 18px;
  padding: 13px 16px 13px 48px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.dw-opt__card::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.dw-opt:hover .dw-opt__card { border-color: var(--line-2); background: #FCFDFE; }
.dw-opt input:checked + .dw-opt__card { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(15, 85, 232, .12); }
.dw-opt input:checked + .dw-opt__card::before { border: 5.5px solid var(--blue); }
.dw-opt input:focus-visible + .dw-opt__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-opt__name { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.dw-opt__name strong { font-family: var(--font-display); font-stretch: 106%; font-weight: 650; font-size: 1rem; color: var(--ink); }
.dw-opt__name .badge { margin: 0; }
.dw-opt__arch { flex-basis: 100%; font-size: .75rem; color: var(--subtle); }
.dw-opt__specs { display: grid; gap: 1px; min-width: 0; font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.dw-opt__specs strong { font-weight: 620; color: var(--ink); }
.dw-opt__avail { display: grid; justify-items: start; gap: 3px; font-size: .75rem; }
.dw-opt__eta { color: var(--muted); }
.dw-opt__price { display: grid; justify-items: end; text-align: right; }
.dw-opt__amount { font-family: var(--font-display); font-stretch: 106%; font-weight: 680; font-size: 1.125rem; color: var(--ink); white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
.dw-opt__amount small { margin-left: 1px; font-family: var(--font); font-stretch: 100%; font-size: .75rem; font-weight: 500; color: var(--subtle); }
.dw-opt__amount--text { font-size: 1rem; }
.dw-opt__sub { font-size: .75rem; color: var(--subtle); white-space: nowrap; }

/* ---------- 2. Installation ---------- */
.dw-setup { display: grid; gap: 22px; }
.dw-setup[hidden] { display: none; }
.dw-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.dw-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; padding: 0; font-size: .9375rem; font-weight: 650; color: var(--ink); }
.dw-label__hint { font-size: .8125rem; font-weight: 450; color: var(--subtle); }
.dw-sublabel { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--text); }
.dw-os { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dw-os__opt { position: relative; display: block; cursor: pointer; }
.dw-os__opt[hidden] { display: none; }
.dw-os__opt input { position: absolute; opacity: 0; pointer-events: none; }
.dw-os__card { display: grid; gap: 3px; height: 100%; padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.dw-os__card::before { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; }
.dw-os__opt input:checked + .dw-os__card { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(15, 85, 232, .12); }
.dw-os__opt input:checked + .dw-os__card::before { border: 5px solid var(--blue); }
.dw-os__opt input:focus-visible + .dw-os__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-os__name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9375rem; font-weight: 640; color: var(--ink); }
.dw-os__tag { padding: 2px 7px; border-radius: 6px; background: var(--green-bg); font-size: .6875rem; font-weight: 650; color: var(--green); }
.dw-os__detail { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.dw-keys { display: grid; gap: 8px; margin-bottom: 12px; }
.dw-keys[hidden] { display: none; }
.dw-key { position: relative; display: block; cursor: pointer; }
.dw-key input { position: absolute; opacity: 0; pointer-events: none; }
.dw-key__card { display: flex; align-items: center; gap: 12px; padding: 11px 14px 11px 44px; border: 1px solid var(--line); border-radius: 12px; }
.dw-key__card::before { content: ""; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1.5px solid var(--line-2); border-radius: 5px; background: #fff; }
.dw-key input:checked + .dw-key__card { border-color: var(--blue); background: #F7F9FF; }
.dw-key input:checked + .dw-key__card::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.dw-key input:focus-visible + .dw-key__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-key__card > .icon { flex: none; width: 18px; height: 18px; color: var(--subtle); }
.dw-key__card > span { display: grid; min-width: 0; }
.dw-key__card strong { font-size: .875rem; color: var(--ink); }
.dw-key__fp { overflow: hidden; font-family: var(--mono); font-size: .6875rem; color: var(--subtle); text-overflow: ellipsis; white-space: nowrap; }
.dw-input {
  display: block; width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font: inherit; font-size: .9375rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.dw-input::placeholder { color: var(--placeholder); }
.dw-input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 85, 232, .14); }
.dw-input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.dw-input--mono { font-family: var(--mono); font-size: .8125rem; line-height: 1.6; }
textarea.dw-input { resize: vertical; min-height: 84px; }
.dw-help { margin-top: 8px; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.dw-help code { padding: 1px 5px; border-radius: 5px; background: var(--soft-2); font-family: var(--mono); font-size: .75rem; color: var(--ink); }
/* Logiciel préinstallé : ligne du choix courant, catalogue replié par défaut */
.dw-soft__current { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dw-soft__icon { flex: none; display: flex; }
.dw-soft__copy { display: grid; flex: 1; min-width: 0; gap: 1px; line-height: 1.4; }
.dw-soft__copy strong { font-size: .9375rem; font-weight: 640; color: var(--ink); }
.dw-soft__copy span { font-size: .8125rem; color: var(--muted); }
.dw-soft__toggle { flex: none; }
.dw-soft__toggle .chev { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.dw-soft__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dw-soft__panel { margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.dw-soft__panel[hidden] { display: none; }
.dw-soft__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dw-soft__filter {
  height: 34px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff;
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.dw-soft__filter:hover { border-color: #B6C1D0; }
.dw-soft__filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.dw-soft__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 8px; }
.dw-sw { position: relative; display: block; cursor: pointer; }
.dw-sw[hidden] { display: none; }
.dw-sw input { position: absolute; opacity: 0; pointer-events: none; }
.dw-sw__card {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; column-gap: 11px; row-gap: 2px; height: 100%;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.dw-sw:hover .dw-sw__card { border-color: var(--line-2); }
.dw-sw input:checked + .dw-sw__card { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(15, 85, 232, .12); }
.dw-sw input:focus-visible + .dw-sw__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-sw__logo { grid-row: 1 / span 3; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dw-sw__logo--glyph { display: grid; place-items: center; padding: 0; border-color: transparent; background: var(--tint); color: var(--blue); }
.dw-sw__logo--glyph .icon { width: 17px; height: 17px; }
.dw-soft__icon .dw-sw__logo { width: 38px; height: 38px; }
.dw-sw__name { align-self: center; font-size: .875rem; font-weight: 650; line-height: 1.3; color: var(--ink); }
.dw-sw__desc { font-size: .75rem; line-height: 1.45; color: var(--muted); }
.dw-sw__tag { justify-self: start; margin-top: 6px; padding: 2px 7px; border-radius: 6px; background: var(--soft-2); font-size: .6875rem; font-weight: 600; color: var(--muted); }
.dw-soft__panel .dw-help { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; }
.dw-soft__panel .dw-help .icon { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--green); }

/* Accès root : mot de passe (généré ou choisi) ou clé SSH */
.dw-access { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dw-acc-opt { position: relative; display: block; cursor: pointer; }
.dw-acc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dw-acc-opt__card {
  display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 13px 14px 13px 42px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.dw-acc-opt__card::before { content: ""; position: absolute; left: 14px; top: 22px; width: 16px; height: 16px; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; }
.dw-acc-opt:hover .dw-acc-opt__card { border-color: var(--line-2); }
.dw-acc-opt input:checked + .dw-acc-opt__card { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(15, 85, 232, .12); }
.dw-acc-opt input:checked + .dw-acc-opt__card::before { border: 5px solid var(--blue); }
.dw-acc-opt input:focus-visible + .dw-acc-opt__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-acc-opt__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--soft-2); color: var(--ink); }
.dw-acc-opt__icon .icon { width: 17px; height: 17px; }
.dw-acc-opt input:checked + .dw-acc-opt__card .dw-acc-opt__icon { background: var(--tint); color: var(--blue); }
.dw-acc-opt__text { display: grid; gap: 2px; min-width: 0; }
.dw-acc-opt__text strong { font-size: .9375rem; font-weight: 640; color: var(--ink); }
.dw-acc-opt__text span { font-size: .8125rem; line-height: 1.45; color: var(--muted); }
.dw-pass, .dw-ssh { margin-top: 14px; }
.dw-pass[hidden], .dw-ssh[hidden] { display: none; }
.dw-pass__field {
  display: flex; align-items: center; gap: 2px; max-width: 560px; padding: 4px 4px 4px 2px; border: 1px solid var(--line-2); border-radius: 10px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.dw-pass__field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15, 85, 232, .14); }
.dw-pass__field:has([aria-invalid="true"]) { border-color: var(--red); box-shadow: 0 0 0 3px rgba(180, 35, 24, .1); }
.dw-pass__field .dw-input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; box-shadow: none; font-size: .9688rem; letter-spacing: .02em; }
.dw-pass__field .dw-input:focus { box-shadow: none; }
.dw-pass__btn {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 8px; background: none;
  color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s;
}
.dw-pass__btn:hover { background: var(--soft-2); color: var(--ink); }
.dw-pass__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dw-pass__btn .icon { width: 17px; height: 17px; }
.dw-pass__btn.is-done { color: var(--green); }
.dw-pass__meter { max-width: 560px; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: var(--soft-2); }
.dw-pass__meter span { display: block; width: 0; height: 100%; border-radius: 4px; transition: width .25s var(--ease), background-color .25s; }
.dw-pass__meter[data-level="1"] span { width: 34%; background: var(--red); }
.dw-pass__meter[data-level="2"] span { width: 67%; background: var(--amber-dot); }
.dw-pass__meter[data-level="3"] span { width: 100%; background: var(--green-dot); }

.dw-more { border: 1px solid var(--line); border-radius: 12px; }
.dw-more summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: .9063rem; font-weight: 620; color: var(--ink); cursor: pointer; list-style: none; }
.dw-more summary::-webkit-details-marker { display: none; }
.dw-more summary .icon { width: 16px; height: 16px; color: var(--blue); transition: transform .2s; }
.dw-more[open] summary .icon { transform: rotate(45deg); }
.dw-more summary span { font-size: .75rem; font-weight: 500; color: var(--subtle); }
.dw-more__body { display: grid; gap: 16px; padding: 4px 14px 16px; }
.dw-more .dw-label { font-size: .875rem; margin-bottom: 7px; }

/* ---------- 3. Compte ---------- */
.dw-signed { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid #ABEFC6; border-radius: 14px; background: #F6FEF9; }
.dw-signed[hidden] { display: none; }
.dw-signed__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green-dot); color: #fff; }
.dw-signed__icon .icon { width: 18px; height: 18px; }
.dw-signed__copy { flex: 1; min-width: 200px; }
.dw-signed__title { font-size: .9375rem; color: var(--ink); }
.dw-signed__text { font-size: .8125rem; color: var(--muted); }
.dw-link { padding: 0; border: 0; background: none; font: inherit; font-size: .875rem; font-weight: 600; color: var(--blue); cursor: pointer; }
.dw-link:hover { text-decoration: underline; }
.dw-acc { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 20px 40px; align-items: start; }
.dw-acc[hidden] { display: none; }
.dw-acc__why { display: grid; gap: 16px; padding: 20px 22px; border-radius: 16px; background: var(--soft); }
.dw-acc__why li { display: flex; gap: 12px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.dw-acc__why .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.dw-acc__why strong { display: block; font-size: .9063rem; font-weight: 640; color: var(--ink); }
.dw-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 12px; background: var(--soft-2); }
.dw-auth__tabs[hidden] { display: none; }
.dw-auth__tab { height: 40px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: .875rem; font-weight: 620; color: var(--muted); cursor: pointer; }
.dw-auth__tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.dw-auth__note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .8125rem; color: var(--subtle); }
.dw-auth__note .icon { flex: none; width: 15px; height: 15px; }
.auth-views--compact .auth-view__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-views--compact .auth-view__lead { display: none; }
.auth-views--compact [data-view="login"] > .auth-switch, .auth-views--compact [data-view="register"] > .auth-switch { display: none; }
.auth-views--compact [data-view="forgot"] .auth-view__lead, .auth-views--compact [data-view="mfa"] .auth-view__lead { display: block; margin-bottom: 14px; }
.auth-views--compact .auth-view__icon { display: none; }

/* ---------- 4. Paiement ---------- */
.dw-review { display: grid; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.dw-review > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.dw-review > div:last-child { border-bottom: 0; }
.dw-review > div[hidden] { display: none; }
.dw-review dt { font-size: .8125rem; color: var(--subtle); }
.dw-review dd { margin: 0; min-width: 0; font-size: .9063rem; font-weight: 560; color: var(--ink); overflow-wrap: anywhere; }
.dw-pay { display: grid; gap: 16px; }
.dw-pay__lines { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: var(--soft); }
.dw-pay__lines[hidden], .dw-sum__trust[hidden] { display: none; }
.dw-pay__lines > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--text); }
.dw-pay__lines strong { font-family: var(--font-display); font-stretch: 106%; font-weight: 680; color: var(--ink); font-variant-numeric: lining-nums proportional-nums; }
.dw-pay__lines > div[hidden] { display: none; }
.dw-pay__short { padding-top: 8px; border-top: 1px dashed var(--line-2); }
.dw-pay__short strong { color: var(--blue-700); }
.dw-paymode { display: grid; gap: 14px; }
.dw-paymode[hidden] { display: none; }
.dw-topup__lead { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--blue-200); border-radius: 12px; background: var(--tint); font-size: .875rem; line-height: 1.55; color: var(--text); }
.dw-topup__lead .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.dw-amount { position: relative; max-width: 260px; }
.dw-amount > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1.125rem; font-weight: 600; color: var(--subtle); pointer-events: none; }
.dw-amount .dw-input { height: 50px; padding-left: 30px; font-family: var(--font-display); font-stretch: 106%; font-size: 1.25rem; font-weight: 650; font-variant-numeric: lining-nums tabular-nums; }
.dw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dw-chips:empty { display: none; }
.dw-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.dw-chip em { font-style: normal; font-weight: 650; color: var(--green); }
.dw-chip[aria-pressed="true"] { border-color: var(--blue); background: var(--tint); color: var(--blue-700); }
.dw-bonus { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.dw-bonus strong { color: var(--green); }
.dw-coins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.dw-coin { position: relative; display: block; cursor: pointer; }
.dw-coin input { position: absolute; opacity: 0; pointer-events: none; }
.dw-coin__card { display: flex; align-items: center; gap: 9px; height: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.dw-coin input:checked + .dw-coin__card { border-color: var(--blue); background: #F7F9FF; box-shadow: 0 0 0 3px rgba(15, 85, 232, .12); }
.dw-coin input:focus-visible + .dw-coin__card { outline: 2px solid var(--blue); outline-offset: 2px; }
.dw-coin__text { display: grid; min-width: 0; line-height: 1.25; }
.dw-coin__text strong { font-size: .875rem; color: var(--ink); }
.dw-coin__text span { overflow: hidden; font-size: .6875rem; color: var(--subtle); text-overflow: ellipsis; white-space: nowrap; }
.dw-fine { font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.dw-legal { padding-top: 12px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--subtle); }
.dw .btn .icon { width: 17px; height: 17px; }

/* ---------- Récapitulatif ---------- */
.dw-side { position: sticky; top: calc(var(--header-h) + 20px); }
.dw-sum { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.dw-sum__kicker { font-family: var(--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); }
.dw-sum__name { margin-top: 6px; font-family: var(--font-display); font-stretch: 108%; font-weight: 680; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.012em; color: var(--ink); text-wrap: balance; }
.dw-sum__specs { margin-top: 6px; font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.dw-sum__facts { display: grid; gap: 8px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--text); }
.dw-sum__facts li { display: flex; align-items: center; gap: 8px; }
.dw-sum__facts li[hidden] { display: none; }
.dw-sum__facts .icon { flex: none; width: 15px; height: 15px; color: var(--subtle); }
.dw-sum__facts .os-logo { width: 15px; height: 15px; }
.dw-sum__price { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.dw-sum__amount { font-family: var(--font-display); font-stretch: 110%; font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: lining-nums proportional-nums; }
.dw-sum__amount small { margin-left: 3px; font-family: var(--font); font-stretch: 100%; font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--subtle); }
.dw-sum__hour { margin-top: 6px; font-size: .8125rem; color: var(--subtle); }
.dw-sum__due { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding: 11px 13px; border-radius: 11px; background: var(--soft); font-size: .875rem; color: var(--text); }
.dw-sum__due strong { font-family: var(--font-display); font-stretch: 106%; font-weight: 680; font-size: 1rem; color: var(--ink); }
.dw-sum__trust { display: grid; gap: 8px; margin-top: 16px; font-size: .8125rem; color: var(--text); }
.dw-sum__trust li { display: flex; align-items: center; gap: 9px; }
.dw-sum__trust .icon { flex: none; width: 15px; height: 15px; color: var(--green); }
.dw-sum__pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--subtle); }
.dw-sum__coins { display: flex; gap: 6px; }

/* ---------- Barre mobile ---------- */
.dw-bar { display: none; }

@media (max-width: 1100px) {
  .dw-grid { grid-template-columns: minmax(0, 1fr); }
  .dw-side { display: none; }
  .dw-bar:not([hidden]) {
    position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 24px -14px rgba(10, 20, 40, .25);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .dw-bar__copy { display: grid; min-width: 0; line-height: 1.25; }
  .dw-bar__copy strong { overflow: hidden; font-size: .9375rem; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
  .dw-bar__copy span { font-size: .8125rem; color: var(--muted); }
  .dw-bar .btn { flex: none; }
  .dw:has(.dw-bar:not([hidden])) { padding-bottom: 120px; }
  /* La barre fixe ne masque pas la fin du pied de page */
  body:has(.dw-bar:not([hidden])) .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 1240px) {
  .dw-acc { grid-template-columns: minmax(0, 1fr); }
  .dw-acc__why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .dw-opt__card { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 14px 14px 14px 44px; }
  .dw-opt__card::before { top: 17px; margin-top: 0; left: 14px; }
  .dw-opt__specs { grid-column: 1 / -1; grid-row: 2; }
  .dw-opt__avail { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  .dw-opt__price { grid-column: 2; grid-row: 1; align-self: start; }
  .dw-coins { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .dw-head { align-items: flex-start; }
  .dw-progress { width: 100%; justify-content: space-between; }
  .dw-progress__btn { padding: 0 10px 0 6px; }
  .dw-progress__step:not(.is-current) .dw-progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dw-step { border-radius: 16px; }
  .dw-step__title { font-size: 1.1875rem; }
  .dw-step__foot { flex-direction: column-reverse; align-items: stretch; }
  .dw-step__foot .btn { width: 100%; justify-content: center; }
  .dw-step__note { margin: 0; }
  .dw-tabs { display: flex; width: 100%; }
  .dw-tabs__tab { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 0 10px; white-space: nowrap; }
  .dw-tabs__tab span { display: none; }
  .dw-os { grid-template-columns: minmax(0, 1fr); }
  .dw-access { grid-template-columns: minmax(0, 1fr); }
  .dw-soft__current { flex-wrap: wrap; }
  .dw-soft__copy { flex-basis: calc(100% - 52px); }
  .dw-soft__toggle { width: 100%; justify-content: center; }
  .dw-soft__panel { padding: 12px; }
  .dw-soft__grid { grid-template-columns: minmax(0, 1fr); }
  /* Familles sur une ligne qui défile (au lieu de trois lignes de pastilles) */
  .dw-soft__filters { flex-wrap: nowrap; margin: 0 -12px 12px; padding: 0 12px 2px; overflow-x: auto; scrollbar-width: none; }
  .dw-soft__filters::-webkit-scrollbar { display: none; }
  .dw-soft__filter { flex: none; }
  /* Mot de passe généré lisible en entier sur 360 px */
  .dw-pass__field .dw-input { padding: 8px 6px 8px 9px; font-size: .875rem; letter-spacing: 0; }
  .dw-pass__btn { width: 34px; height: 36px; }
  .dw-acc__why { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .dw-review > div { grid-template-columns: minmax(0, 1fr) auto; }
  .dw-review dt { grid-column: 1 / -1; }
  .dw-amount { max-width: none; }
}
@media (max-width: 420px) {
  .dw-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Trois onglets sur une ligne jusqu'à 320 px, quel que soit le rendu du texte (Safari compte plus large) */
  .dw-tabs__tab { padding: 0 6px; font-size: .8125rem; }
}
