/* ===== Variables (noir & blanc) ===== */
:root {
  --bg: #000;
  --text: #f5f5f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.22);
  --gutter: 40px;
  --header-h: 112px;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;
  --font-logo: "Titillium Web", "Arial Black", sans-serif;
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

/* Ligne du haut */
.header-line {
  position: absolute;
  top: 10px;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    var(--line) 12%,
    var(--line) 88%,
    rgba(255, 255, 255, 0.06)
  );
}

.header-line::before,
.header-line::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}

.header-line::before { left: 0; }
.header-line::after { right: 0; }

.header-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: calc(max(var(--progress, 0), 0.05) * 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), #fff);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  /* glisse d'une étape à l'autre au lieu de sauter */
  transition: width 1s cubic-bezier(0.7, 0, 0.2, 1);
}

/* Tête lumineuse au bout de la barre */
.header-line-progress::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -20px;
  width: 40px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  filter: blur(1.5px);
}

/* Grille 3 colonnes : gauche / logo / droite */
.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  padding-top: 10px;
}

.header-left {
  justify-self: start;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Bouton son ON / OFF */
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 0;
  border: 0;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.status:hover {
  opacity: 0.75;
}

.status:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 6px;
}

.status-label {
  min-width: 2.3em;
  text-align: left;
}

.status-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
}

/* Petit égaliseur qui bouge quand le son est activé */
.status-bars i {
  width: 3px;
  height: 12px;
  border-radius: 1px;
  background: #fff;
  transform: scaleY(0.4);
  animation: bar-eq 0.9s ease-in-out infinite alternate;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.status-bars i:nth-child(1) { animation-duration: 0.8s; }
.status-bars i:nth-child(2) { animation-duration: 0.6s; animation-delay: 0.2s; }
.status-bars i:nth-child(3) { animation-duration: 0.95s; animation-delay: 0.1s; }
.status-bars i:nth-child(4) { animation-duration: 0.7s; animation-delay: 0.3s; }

@keyframes bar-eq {
  from { transform: scaleY(0.3); }
  to   { transform: scaleY(1); }
}

.status[aria-pressed="false"] .status-bars i {
  animation: none;
  transform: scaleY(0.25);
  opacity: 0.45;
}

/* ===== Logo : sceau + texte ===== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seal {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.seal-edge {
  fill: #fff;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s ease;
}

.seal-check {
  fill: none;
  stroke: #000;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand:hover .seal-edge {
  transform: rotate(30deg);
}

/* Texte du logo */
.logo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-logo);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.82;
  color: #fff;
  transform: skewX(-12deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

.logo-top {
  font-size: 34px;
  letter-spacing: 0.5px;
}

.logo-bottom {
  font-size: 16.5px;
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.brand:hover .logo {
  transform: skewX(-12deg) translateY(-2px);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.35), 0 2px 12px rgba(0, 0, 0, 0.7);
}

/* ===== Boutons ===== */
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  height: 52px;
  padding: 0 26px;
  border-radius: 6px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.35);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-login:hover {
  box-shadow: 0 0 32px rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

.btn-login:active {
  transform: translateY(0);
}

.brand:focus-visible,
.icon-btn:focus-visible,
.btn-login:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ===== Contenu ===== */
.content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px var(--gutter);
}

/* ===== Compte Discord (connecté) ===== */
.user-wrap {
  position: relative;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  max-width: 240px;
  padding: 0 18px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.user-chip:hover,
.user-wrap.is-open .user-chip {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.user-chip:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.user-chip-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  background: #5865f2;
  object-fit: cover;
}

.user-chip-avatar {
  width: 40px;
  height: 40px;
}

.user-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Menu du compte */
.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  width: 280px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(88, 101, 242, 0.22), transparent 70%),
    rgba(14, 14, 18, 0.94);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 0.9, 0.24, 1), visibility 0s linear 0.3s;
}

.user-wrap.is-open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.user-menu {
  width: 250px;
}

.user-menu-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-menu-label {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.user-menu-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: #a5b4fc;
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.user-menu-item--logout:hover,
.user-menu-item--logout:focus-visible {
  background: rgba(255, 90, 90, 0.12);
  color: #ffb4b4;
}

/* ===== Fenêtre de connexion ===== */
.login-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.login-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.login-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 44px 32px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(88, 101, 242, 0.25), transparent 70%),
    linear-gradient(180deg, rgba(28, 28, 34, 0.96), rgba(10, 10, 14, 0.96));
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.login-modal.is-open .login-panel {
  transform: none;
}

.login-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.login-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.login-seal {
  width: 56px;
  height: 56px;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.35));
}

.login-seal .seal-edge {
  fill: #fff;
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
}

.login-seal .seal-check {
  fill: none;
  stroke: #000;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-title {
  margin-top: 18px;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
}

.login-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  margin-top: 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-discord {
  border: 0;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(88, 101, 242, 0.8);
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 12px 36px -10px rgba(88, 101, 242, 1);
}

.btn-discord:focus-visible,
.login-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.login-note {
  margin-top: 14px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
}

.login-message {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 90, 90, 0.12);
  color: #ffb3b3;
  font-size: 13.5px;
  line-height: 1.45;
}

/* ===== Fenêtres Appareils / Paramètres ===== */
.app-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.app-text {
  margin: 10px 0 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

/* Liste des appareils */
.device-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  list-style: none;
}

.device-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.device-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.18);
  color: #c9cdfb;
}

.device-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.device-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 600;
}

.device-udid {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
}

.device-delete {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.device-delete:hover,
.device-delete:focus-visible {
  background: rgba(255, 90, 90, 0.14);
  color: #ff9a9a;
  outline: none;
}

.device-empty {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-size: 13.5px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Formulaire */
.device-form {
  display: grid;
  gap: 12px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#deviceUdid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.field input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.field input:focus {
  outline: none;
  border-color: #5865f2;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.3);
}

.field-error {
  font-size: 13px;
  line-height: 1.45;
  color: #ffb3b3;
}

.btn-primary,
.btn-outline {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
  margin-top: 4px;
  border: 0;
  background: #fff;
  color: #000;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.45);
}

.btn-outline {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(255, 90, 90, 0.5);
  background: rgba(255, 90, 90, 0.1);
  color: #ffb4b4;
}

.btn-primary:focus-visible,
.btn-outline:focus-visible,
.switch:focus-visible,
.udid-help summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.udid-help {
  margin-top: 18px;
  font-size: 13.5px;
}

.udid-help summary {
  color: #c9cdfb;
  cursor: pointer;
}

.udid-help p {
  margin-top: 8px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* Paramètres */
.settings-list {
  margin-top: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setting-name {
  font-size: 15px;
  font-weight: 600;
}

.setting-desc {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Interrupteur */
.switch {
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background 0.25s ease;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.switch[aria-checked="true"] {
  background: #5865f2;
}

.switch[aria-checked="true"] span {
  transform: translateX(18px);
}

/* =========================================================
   PAGE /settings
   ========================================================= */
html.page-scroll,
html.page-scroll body {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

/* Header en verre dépoli dès qu'on fait défiler la page */
html.page-scroll .site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

html.page-scroll .site-header.is-scrolled {
  background: rgba(6, 6, 9, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.settings-page {
  min-height: 100vh;
  padding: calc(var(--header-h) + clamp(24px, 4vh, 48px)) var(--gutter) 96px;
  background:
    radial-gradient(ellipse 55% 35% at 50% 0%, rgba(88, 101, 242, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 45%, #171717 0%, #090909 55%, #000 85%);
  background-attachment: fixed;
}

.settings-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.back-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.settings-hero {
  margin: 14px 0 12px;
}

.settings-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.88;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.settings-sub {
  margin-top: 14px;
  font-size: clamp(15px, 1vw, 17px);
  color: rgba(255, 255, 255, 0.55);
}

/* Cartes */
.settings-card {
  position: relative;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(180deg, rgba(24, 24, 30, 0.88), rgba(10, 10, 14, 0.88));
  box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.settings-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.settings-card-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.settings-card-head .settings-card-title {
  margin-bottom: 0;
}

.settings-card-text {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* Pas connecté */
.settings-login {
  text-align: center;
  padding-top: 32px;
}

.settings-login-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(88, 101, 242, 0.18);
  color: #c9cdfb;
  box-shadow: 0 0 40px -8px rgba(88, 101, 242, 0.8);
}

.settings-login-title {
  margin: 16px 0 8px;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 30px;
  text-transform: uppercase;
  transform: skewX(-12deg);
}

.settings-login .btn-discord {
  margin-top: 0;
}

/* Profil */
.profile-card {
  background:
    radial-gradient(ellipse 80% 90% at 0% 0%, rgba(88, 101, 242, 0.22), transparent 65%),
    linear-gradient(180deg, rgba(24, 24, 30, 0.9), rgba(10, 10, 14, 0.9));
}

.profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #5865f2;
  box-shadow: 0 0 0 3px rgba(10, 10, 14, 1), 0 0 0 5px rgba(255, 255, 255, 0.14), 0 10px 30px -8px rgba(88, 101, 242, 0.7);
}

.profile-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 0 3px #0e0e13;
}

.profile-id {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.profile-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.55);
}

.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}

.profile-row-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.profile-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.profile-row-value {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.copy-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.copy-btn .check-icon,
.copy-btn.is-copied .copy-icon {
  display: none;
}

.copy-btn.is-copied .check-icon {
  display: block;
}

.copy-btn.is-copied {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.profile-card .btn-outline {
  margin-top: 14px;
}

/* Préférences */
.settings-card .settings-list {
  margin-top: 0;
}

.settings-card .setting-row {
  gap: 14px;
  padding: 16px 0;
}

.settings-card .setting-row:first-child {
  padding-top: 0;
}

.settings-card .setting-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-card .setting-text {
  flex: 1;
  min-width: 0;
}

.setting-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.settings-card .setting-name {
  font-size: 15.5px;
}

.settings-card .setting-desc {
  font-size: 13px;
}

/* Appareils */
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.2);
  color: #c9cdfb;
  font-size: 12.5px;
  font-weight: 600;
}

.devices-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  list-style: none;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}

.preview-more {
  padding-left: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1600px) {
  .settings-wrap {
    max-width: 760px;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .settings-page {
    padding-top: calc(var(--header-h) + 16px);
  }

  .settings-card {
    border-radius: 18px;
  }

  .profile {
    gap: 14px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
  }

  .profile-row {
    margin-top: 18px;
  }

  .copy-text {
    display: none;
  }

  .copy-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

/* =========================================================
   PAGE /manage
   ========================================================= */
/* Lien qui ressemble à un bouton */
.btn-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.demo-banner {
  padding: 12px 16px;
  border: 1px dashed rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  font-size: 13.5px;
}

.manage-note {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

/* Petit bouton texte (ex : "Nouvelle clé") */
.link-btn {
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: #fff;
}

.link-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

.manage-error {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.12);
  color: #ffb3b3;
  font-size: 13.5px;
}

.status-pill,
.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-pill {
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.api-pill {
  background: rgba(88, 101, 242, 0.2);
  color: #c9cdfb;
}

/* Mes certificats */
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.cert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, rgba(255, 255, 255, 0.06));
  border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(0, 0, 0, 0.2) 60%);
}

.cert-row-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 12px var(--c);
}

.cert-row-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.cert-row-plan {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.cert-row-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.cert-empty-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.cert-empty .settings-card-text {
  margin-bottom: 16px;
}

/* Forfaits proposés */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, 0.08));
  border-radius: 16px;
  background:
    radial-gradient(ellipse 90% 80% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    rgba(0, 0, 0, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -18px color-mix(in srgb, var(--c) 80%, transparent);
}

.plan-name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.plan-price {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
}

.plan-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.plan-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 12px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.plan-pay:hover {
  box-shadow: 0 0 24px color-mix(in srgb, var(--c) 70%, transparent);
}

.plan-pay:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.plan-pay:focus-visible,
.plan-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.plan-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  color: #c9cdfb;
}

.plan-more:hover {
  color: #fff;
}

/* Appareils : nom + UDID côte à côte sur grand écran */
.device-form-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}

/* Revendeur */
.reseller-card {
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(88, 101, 242, 0.2), transparent 65%),
    linear-gradient(180deg, rgba(24, 24, 30, 0.9), rgba(10, 10, 14, 0.9));
}

.reseller-title {
  margin-bottom: 8px;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.reseller-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
  list-style: none;
}

.reseller-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
}

.reseller-perks svg {
  flex-shrink: 0;
  padding: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.3);
  color: #fff;
}

.reseller-buy {
  display: flex;
  align-items: center;
  gap: 18px;
}

.reseller-price {
  flex-shrink: 0;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  transform: skewX(-12deg);
}

.reseller-buy .btn-primary {
  margin-top: 0;
}

/* L'offre revendeur : gros chiffre + texte */
.reseller-deal,
.reseller-credits {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, rgba(88, 101, 242, 0.35), transparent 70%),
    rgba(0, 0, 0, 0.25);
}

.deal-num {
  flex-shrink: 0;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.85;
  color: #fff;
  text-shadow: 0 0 30px rgba(88, 101, 242, 0.9);
  transform: skewX(-12deg);
}

.deal-num--sm {
  font-size: 40px;
}

.deal-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deal-text strong {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.deal-text span {
  font-size: 13.5px;
  color: #c9cdfb;
}

/* Clé d'API */
.api-key {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
}

.api-key-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: #e0e7ff;
}

.reseller-active .btn-primary {
  margin-top: 18px;
}

@media (max-width: 640px) {
  .plan-grid,
  .device-form-row {
    grid-template-columns: 1fr;
  }

  .reseller-buy {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .api-key {
    flex-wrap: wrap;
  }

  .api-key-value {
    flex-basis: 100%;
    padding: 6px 0;
  }
}

/* =========================================================
   PAGES À ONGLETS (/manage, /settings) : un seul écran
   ========================================================= */
.app-page {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--header-h) var(--gutter) 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 75% 50%, rgba(88, 101, 242, 0.16), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 45%, #171717 0%, #090909 55%, #000 85%);
}

.app-layout {
  --pad-y: clamp(14px, 3vh, 40px);
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(32px, 6vw, 110px);
  width: min(1200px, 100%);
  height: 100%;
  padding: var(--pad-y) 0;
}

/* Gauche */
.app-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.app-side .settings-title {
  margin-top: 10px;
  font-size: clamp(40px, 4.1vw, 76px); /* tient dans la colonne, même "PARAMÈTRES" */
  white-space: nowrap;
}

.app-side .settings-sub {
  margin-top: 4px;
}

.app-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: clamp(10px, 3vh, 30px);
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.app-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.app-tab[aria-selected="true"] {
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.2), rgba(255, 255, 255, 0.03));
  box-shadow: inset 3px 0 0 #5865f2;
  color: #fff;
}

.app-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.app-tab-num {
  width: 26px;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 15px;
  opacity: 0.6;
  transform: skewX(-12deg);
}

.app-tab-label {
  flex: 1;
  font-size: clamp(16px, 1.15vw, 19px);
  font-weight: 600;
}

.app-hint {
  margin-top: 6px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Droite : les panneaux sont superposés, un seul visible */
.app-stage {
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.app-stage > * {
  grid-area: 1 / 1;
}

.app-panel {
  max-height: calc(100svh - var(--header-h) - 2 * var(--pad-y));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(46px) scale(0.98);
  transition:
    opacity 0.45s ease,
    transform 0.65s cubic-bezier(0.22, 0.9, 0.24, 1),
    visibility 0s linear 0.65s;
}

.app-panel.is-past {
  transform: translateY(-46px) scale(0.98);
}

.app-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition:
    opacity 0.45s ease 0.08s,
    transform 0.65s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.panel-title {
  margin: 4px 0 16px;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.reseller-card .api-pill,
.reseller-card .status-pill {
  margin-bottom: 12px;
}

.manage-link {
  margin-top: 12px;
}

.app-login {
  align-self: center;
}

/* Écran peu haut : on resserre */
@media (max-height: 760px) and (min-width: 761px) {
  .app-side .settings-sub,
  .app-hint {
    display: none;
  }

  .app-tab {
    padding: 11px 14px;
  }

  .plan-card {
    padding: 12px 14px;
  }

  .plan-pay {
    height: 36px;
    margin-top: 8px;
  }

  .reseller-deal {
    padding: 10px 14px;
    margin-bottom: 12px;
  }

  .deal-num {
    font-size: 46px;
  }

  .reseller-perks {
    gap: 7px;
    margin-bottom: 16px;
  }
}

/* =========================================================
   RETOUR AU DÉBUT : empilement → centre → éventail
   ========================================================= */
/* 1. Dans la gamme, les cartes glissent sur celle du début et s'empilent */
.lineup.is-stacking .lineup-card {
  transform: translateX(var(--to, 0px)) translateZ(var(--tz, 0px)) rotateY(-24deg) rotateZ(var(--rz, 0deg));
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
}

/* 2. Dans le carrousel, les cartes commencent en pile au centre */
.hero-stage.no-anim .cert {
  transition: none !important;
}

.hero-stage.is-stacked .cert {
  transform: translateZ(calc(var(--abs) * -4px)) rotateZ(calc(var(--o) * 3deg));
  filter: brightness(calc(1 - var(--abs) * 0.1));
}

/* Le nom, le slider et les flèches réapparaissent après l'éventail */
.hero-info,
.hero-controls {
  transition: opacity 0.5s ease 0.2s;
}

.hero.is-regrouping .hero-info,
.hero.is-regrouping .hero-controls,
.hero.is-regrouping .hero-scroll,
.hero.is-regrouping .hero-arrow {
  opacity: 0;
  transition: none;
}

/* =========================================================
   CHARGEMENT (accueil) : le logo se remplit du bas vers le haut
   --p = pourcentage chargé (mis à jour par loader.js)
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 45% 40% at 50% 50%, rgba(88, 101, 242, 0.1), transparent 70%),
    #000;
  transition: opacity 0.7s ease 0.1s, visibility 0s linear 0.8s;
}

html:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  --p: 0;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1), filter 0.8s ease;
}

/* Sortie : le logo grandit légèrement et se floute pendant le fondu */
html:not(.is-loading) .loader-mark {
  transform: scale(1.12);
  filter: blur(6px);
}

.loader-layer {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 24px);
}

/* Logo éteint (gris) */
.loader-layer--dim {
  opacity: 0.13;
}

/* Logo allumé : visible jusqu'à --p %, avec un bord doux */
.loader-layer--fill {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to top, #000 calc(var(--p) * 1.16% - 14%), transparent calc(var(--p) * 1.16% + 2%));
  mask-image: linear-gradient(to top, #000 calc(var(--p) * 1.16% - 14%), transparent calc(var(--p) * 1.16% + 2%));
}

.loader-seal {
  flex-shrink: 0;
  width: clamp(54px, 6vw, 88px);
  height: clamp(54px, 6vw, 88px);
  overflow: visible;
}

.loader-layer--fill .loader-seal {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.4));
}

.loader-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-logo);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
  color: #fff;
  transform: skewX(-12deg);
}

.loader-logo-top {
  font-size: clamp(54px, 6.6vw, 100px);
  letter-spacing: 0.01em;
}

.loader-logo-bottom {
  margin-top: 0.08em;
  font-size: clamp(26px, 3.2vw, 48.5px);
  letter-spacing: 0.035em;
}

/* Pourcentage espacé, en bas */
.loader-pct {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 9vh, 96px);
  padding-left: 0.6em; /* compense l'espacement pour rester centré */
  transform: translateX(-50%);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.6em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
}

/* ===== Arrivée des cartes après le chargement ===== */
/* Point de départ : hors de l'écran, à gauche */
.hero-stage.is-intro .cert {
  opacity: 0;
  transform:
    translateX(calc(-50vw - var(--card-w)))
    translateZ(-240px)
    rotateY(38deg)
    rotateZ(-8deg);
}

/* Le nom, le slider, les flèches et les coins arrivent après les cartes */
.hero.is-entering .hero-info,
.hero.is-entering .hero-controls,
.hero.is-entering .hero-scroll {
  animation: hero-rise 0.8s cubic-bezier(0.22, 0.9, 0.24, 1) 0.9s both;
}

.hero.is-entering .hero-arrow,
.hero.is-entering .hero-corner {
  animation: hero-fade 0.7s ease 1.1s both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

/* Le haut de page descend pendant que les cartes arrivent */
html.is-loading .site-header {
  opacity: 0;
  translate: 0 -16px;
}

.site-header {
  transition: opacity 0.7s ease 0.35s, translate 0.8s cubic-bezier(0.22, 0.9, 0.24, 1) 0.35s;
}

/* =========================================================
   PARTNER DASHBOARD (/partner/dashboard/) : même style que /manage
   ========================================================= */
/* Titre plus long que "Gestion" : un peu plus petit pour tenir sur une ligne */
.app-side .settings-title.partner-title {
  font-size: clamp(30px, 3.4vw, 56px);
}

/* Accès réservé : on cache les onglets et les blocs */
.partner-page.is-locked .app-tabs,
.partner-page.is-locked .app-hint,
.partner-page.is-locked .app-panel {
  display: none !important;
}

.partner-page:not(.is-locked) #partnerLocked {
  display: none !important;
}

.partner-locked .btn-primary {
  margin-top: 4px;
}

/* Petits titres (comme les titres de cartes) */
.partner-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.partner-docs {
  margin-top: 14px;
}

/* Certificats offerts restants : le bloc de /manage + une barre */
/* Solde revendeur : montant en euros, un peu plus petit que le compteur */
.partner-balance .deal-num {
  font-size: clamp(28px, 2.6vw, 38px);
  white-space: nowrap;
}

.reseller-balance {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.reseller-balance strong {
  color: #fff;
}

.partner-credits {
  flex-wrap: wrap;
  gap: 14px 16px;
}

.partner-credits .deal-text {
  flex: 1;
  min-width: 0;
}

.partner-bar {
  flex-basis: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.partner-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5865f2, #a855f7);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.8);
  transition: width 1s cubic-bezier(0.22, 0.9, 0.24, 1);
}

/* Ventes */
.partner-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.partner-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 90% 120% at 0% 0%, rgba(88, 101, 242, 0.24), transparent 70%),
    rgba(0, 0, 0, 0.25);
}

.partner-stat-value {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 0.9;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(88, 101, 242, 0.8);
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.partner-stat .partner-label {
  margin: 0;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.partner-sale {
  padding: 11px 14px 11px 16px;
}

.partner-sale .cert-row-plan,
.partner-price-plan .cert-row-plan {
  font-size: 18px;
}

.partner-sale-date {
  flex-shrink: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* Tarifs */
.partner-pricing {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
}

.partner-pricing-head,
.partner-price-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}

.partner-pricing-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}

.partner-pricing ul {
  list-style: none;
}

.partner-price-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%);
  font-size: 15px;
}

.partner-price-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.partner-price-plan .cert-row-dot {
  width: 10px;
  height: 10px;
}

.partner-price-public {
  color: rgba(255, 255, 255, 0.6);
}

.partner-price-yours {
  font-weight: 600;
  color: #c9cdfb;
}

@media (min-width: 1100px) {
  .app-side .settings-title.partner-title {
    font-size: clamp(44px, 3.4vw, 64px);
  }
}

@media (min-width: 1100px) and (max-height: 820px) {
  .app-side .settings-title.partner-title {
    font-size: 44px;
  }
}

@media (max-width: 760px) {
  .app-side .settings-title.partner-title {
    font-size: 30px;
  }

  .partner-stat {
    padding: 12px 10px;
  }

  .partner-stat-value {
    font-size: 24px;
  }
}

/* =========================================================
   COMMANDE (/order) : reçu + appareil, même style que /manage
   --c = couleur du forfait commandé
   ========================================================= */
.order-page {
  --c: #5865f2;
}

/* Aucune commande : on cache les onglets et les blocs */
.order-page.is-empty .app-tabs,
.order-page.is-empty .app-hint,
.order-page.is-empty .app-panel {
  display: none !important;
}

.order-page:not(.is-empty) #orderEmpty {
  display: none !important;
}

/* Paiement en cours (ouverture de Stripe, vérification au retour) */
.order-wait {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--c, #5865f2);
  animation: cert-spin 0.9s linear infinite;
}

/* Trait lumineux en haut des deux blocs */
.order-receipt::before,
.order-device::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c), #5865f2, transparent);
  box-shadow: 0 0 18px var(--c);
}

/* ---------- 01 Reçu ---------- */
.receipt-head {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.receipt-seal {
  width: 30px;
  height: 30px;
  margin-bottom: 2px;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
}

.receipt-brand {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
}

.receipt-brand-sub,
.receipt-label,
.receipt-row dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

/* Numéro de commande : un ticket en pointillés */
.receipt-number {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 14px 16px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 60% 130% at 50% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 75%),
    rgba(0, 0, 0, 0.22);
}

.receipt-num {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(36px, 3vw, 48px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 0 26px var(--c);
  transform: skewX(-12deg);
}

/* Forfait + badge */
.receipt-plan {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.receipt-plan-name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.receipt-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 4px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--c) 60%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 20%, transparent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.receipt-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
  margin-bottom: 14px;
  list-style: none;
}

.receipt-perks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.75);
}

.receipt-perks svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--c);
  filter: drop-shadow(0 0 6px var(--c));
}

/* Lignes du reçu */
.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.receipt-row dd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14.5px;
  text-align: right;
}

.receipt-account img {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.receipt-account span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: #c9cdfb;
}

.receipt-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5865f2;
  box-shadow: 0 0 8px #5865f2;
}

.receipt-status.is-waiting {
  color: #fde68a;
}

.receipt-status.is-waiting::before {
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
  animation: status-pulse 1.6s ease-in-out infinite;
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

.receipt-total {
  margin-top: 2px;
  padding-top: 12px;
  border-top-style: dashed;
  border-top-color: rgba(255, 255, 255, 0.16);
}

.receipt-total dd {
  gap: 10px;
}

.receipt-total s {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.receipt-total dd span {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 32px;
  line-height: 0.9;
  text-shadow: 0 0 22px var(--c);
  transform: skewX(-12deg);
}

.receipt-next {
  margin-top: 14px;
}

/* ---------- 02 Appareil ---------- */
.order-info {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 120% at 0% 50%, rgba(88, 101, 242, 0.2), transparent 70%),
    rgba(0, 0, 0, 0.25);
  box-shadow: inset 3px 0 0 #5865f2;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.order-info strong {
  font-weight: 600;
  color: #fff;
}

.order-info ul {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-left: 18px;
}

.order-info li::marker {
  color: #5865f2;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-field {
  position: relative;
}

#orderUdid {
  padding-right: 46px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* UDID valide : coche verte dans le champ */
.order-field-ok {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
  font-style: normal;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.order-field-ok svg {
  width: 13px;
  height: 13px;
}

.order-field.is-valid .order-field-ok {
  opacity: 1;
  transform: none;
}

.order-field.is-valid input {
  border-color: rgba(74, 222, 128, 0.55);
}

.order-field.is-invalid input {
  border-color: rgba(255, 90, 90, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15);
}

.order-help {
  margin-top: 0;
}

/* Case "j'ai bien copié-collé" */
.order-confirm {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.order-confirm input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.order-confirm-box {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.order-confirm-box svg {
  width: 13px;
  height: 13px;
}

.order-confirm input:checked + .order-confirm-box {
  border-color: #5865f2;
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 14px rgba(88, 101, 242, 0.7);
}

.order-confirm input:focus-visible + .order-confirm-box {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.order-confirm:has(input:checked) {
  border-color: rgba(88, 101, 242, 0.5);
  background: rgba(88, 101, 242, 0.1);
}

.order-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.order-submit:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  cursor: not-allowed;
}

/* Appareil enregistré */
.order-done {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 6px;
  text-align: center;
}

.order-done-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(74, 222, 128, 0.14);
  color: #86efac;
  box-shadow: 0 0 40px -6px rgba(74, 222, 128, 0.6);
  animation: done-pop 0.6s cubic-bezier(0.22, 1.4, 0.36, 1);
}

.order-done-icon svg {
  width: 28px;
  height: 28px;
}

@keyframes done-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
}

.order-done-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
  transform: skewX(-12deg);
}

.order-done-udid {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 13px;
  word-break: break-all;
}

.order-done .settings-card-text {
  margin: 4px 0 6px;
}

/* Certificat : en cours / prêt / échec */
.order-done-icon svg {
  display: none;
}

.order-done[data-state="active"] .icon-ok,
.order-done[data-state="missing"] .icon-ok,
.order-done[data-state="failed"] .icon-fail,
.order-done[data-state="revoked"] .icon-fail,
.order-done[data-state="pending"] .icon-wait,
.order-done[data-state="unknown"] .icon-wait {
  display: block;
}

.order-done[data-state="pending"] .order-done-icon,
.order-done[data-state="unknown"] .order-done-icon,
.order-done[data-state="missing"] .order-done-icon {
  background: rgba(88, 101, 242, 0.16);
  color: #c9cdfb;
  box-shadow: 0 0 40px -6px rgba(88, 101, 242, 0.7);
}

.order-done .icon-wait {
  animation: cert-spin 1s linear infinite;
}

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

.order-done[data-state="failed"] .order-done-icon,
.order-done[data-state="revoked"] .order-done-icon {
  background: rgba(255, 90, 90, 0.14);
  color: #ffb3b3;
  box-shadow: 0 0 40px -6px rgba(255, 90, 90, 0.6);
}

.order-files {
  display: grid;
  gap: 10px;
  width: 100%;
}

.order-downloads {
  display: grid;
  gap: 8px;
}

.order-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.order-dl small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.55;
}

.order-dl-secondary {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.order-dl-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.order-dl-secondary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.order-password {
  text-align: left;
}

.order-password-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
  .order-password {
    flex-wrap: nowrap;
  }

  .order-password .api-key-value {
    flex-basis: auto;
    padding: 0;
  }
}

/* Bouton occupé (création, téléchargement) */
.order-submit.is-busy,
.order-dl.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.order-submit.is-busy svg,
.order-dl.is-busy svg {
  animation: status-pulse 0.9s ease-in-out infinite;
}

.order-submit-error {
  text-align: center;
}

/* Erreur affichée : les rappels (déjà confirmés par la case) laissent la place */
.order-device:has(#orderSubmitError:not([hidden])) .order-info ul {
  display: none;
}

.order-done .order-submit-error {
  max-width: 420px;
}

/* Reçu : statut du certificat */
.receipt-status.is-ok {
  color: #86efac;
}

.receipt-status.is-ok::before {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.receipt-status.is-bad {
  color: #ffb3b3;
}

.receipt-status.is-bad::before {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

/* /manage : certificat en échec ou révoqué */
.status-pill.is-bad {
  background: rgba(255, 90, 90, 0.12);
  color: #ffb3b3;
}

.status-pill.is-bad::before {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

/* Partner Dashboard : accès revendeur tout juste activé */
.demo-banner.is-success {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
  color: #bbf7d0;
}

/* /manage : commande en préparation */
.status-pill.is-pending {
  background: rgba(250, 204, 21, 0.12);
  color: #fde68a;
}

.status-pill.is-pending::before {
  background: #facc15;
  box-shadow: 0 0 8px #facc15;
}

.cert-row-link {
  color: #c9cdfb;
  text-decoration: none;
}

.cert-row-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* PC : reçu et appareil côte à côte, pas trop larges */
@media (min-width: 1100px) {
  .order-page .app-layout {
    width: min(1180px, 100%);
  }

  .receipt-next {
    display: none;
  }
}

/* PC peu haut (laptop) : on resserre */
@media (min-width: 1100px) and (max-height: 820px) {
  .receipt-head {
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .receipt-seal {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .receipt-brand-sub {
    display: none;
  }

  .receipt-number {
    margin: 12px 0;
    padding: 10px 16px 12px;
  }

  .receipt-num {
    font-size: 36px;
  }

  .receipt-row {
    min-height: 36px;
    padding: 5px 0;
  }

  .order-info {
    padding: 12px 14px;
    font-size: 13.5px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .receipt-head {
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }

  .receipt-seal {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .receipt-brand {
    font-size: 19px;
  }

  .receipt-brand-sub {
    display: none;
  }

  .receipt-number {
    margin: 12px 0;
    padding: 10px 12px 12px;
  }

  .receipt-num {
    font-size: 34px;
  }

  .receipt-plan-name {
    font-size: 22px;
  }

  .receipt-perks {
    grid-template-columns: 1fr;
    gap: 5px;
    margin-bottom: 10px;
  }

  .receipt-perks li {
    font-size: 13px;
  }

  .receipt-row {
    min-height: 36px;
    padding: 5px 0;
  }

  .receipt-row dd {
    font-size: 13.5px;
  }

  .receipt-total dd span {
    font-size: 28px;
  }

  .order-info {
    margin-bottom: 12px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .order-info ul {
    margin-top: 8px;
  }

  .order-device .panel-title {
    margin-bottom: 10px;
  }

  .order-form {
    gap: 8px;
  }

  .order-confirm {
    padding: 10px 12px;
    font-size: 12.5px;
    line-height: 1.45;
  }
}

/* =========================================================
   PC (écran large) : tous les blocs côte à côte, sans onglets
   ========================================================= */
@media (min-width: 1100px) {
  .app-page {
    place-items: stretch;
    grid-template-rows: minmax(0, 1fr); /* jamais plus haut que l'écran */
  }

  .app-layout {
    min-height: 0; /* un bloc trop long défile à l'intérieur (ex : beaucoup de certificats) */
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, auto); /* les blocs prennent la hauteur de leur contenu */
    align-content: center;
    align-items: stretch;
    gap: clamp(16px, 3vh, 34px);
    width: min(1560px, 100%);
    margin: 0 auto;
    padding: clamp(16px, 3.5vh, 44px) 0 clamp(20px, 4vh, 48px);
  }

  /* Retour + titre + phrase sur une seule ligne */
  .app-side {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px 26px;
  }

  .app-side .back-link {
    align-self: center;
  }

  .app-side .settings-title {
    margin: 0;
    font-size: clamp(44px, 4vw, 76px);
  }

  .app-side .settings-sub {
    margin: 0 0 6px;
  }

  .app-tabs,
  .app-hint {
    display: none;
  }

  .app-stage {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: clamp(14px, 1.4vw, 24px);
    align-items: stretch;
    height: auto;
  }

  .app-stage > * {
    grid-area: auto;
  }

  /* Tous les blocs visibles en même temps */
  .app-panel,
  .app-panel.is-past {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    max-height: none;
    min-height: 0;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
  }

  /* Arrivée par un lien (ex : #devices) : le bloc s'allume un instant */
  .app-panel.is-flash {
    border-color: rgba(88, 101, 242, 0.8);
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.6), 0 0 70px -12px rgba(88, 101, 242, 0.9);
  }

  .app-login {
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    width: min(520px, 100%);
  }

  /* Colonnes plus étroites : champs l'un sous l'autre */
  .device-form-row {
    grid-template-columns: 1fr;
  }

  .demo-banner {
    align-self: center;
    margin: 0 0 4px auto;
  }
}

/* PC peu haut (laptop) : on resserre les blocs */
@media (min-width: 1100px) and (max-height: 820px) {
  .app-side .settings-sub {
    display: none;
  }

  .app-side .settings-title {
    font-size: 48px;
  }

  .panel-title {
    margin-bottom: 10px;
    font-size: 26px;
  }

  .settings-card {
    padding: 18px 20px;
  }

  .settings-card-text {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .cert-empty .settings-card-text {
    margin-bottom: 10px;
  }

  .plan-card {
    padding: 10px 12px;
  }

  .plan-name {
    font-size: 18px;
  }

  .plan-price {
    margin-top: 4px;
    font-size: 16px;
  }

  .plan-pay {
    height: 32px;
    margin-top: 8px;
  }

  .plan-more {
    margin-top: 10px;
  }

  .field input {
    height: 40px;
  }

  .device-form {
    gap: 8px;
  }

  .device-list {
    margin-bottom: 12px;
  }

  .udid-help {
    margin-top: 12px;
  }

  .reseller-deal,
  .reseller-credits {
    padding: 10px 14px;
    margin-bottom: 10px;
  }

  .deal-num {
    font-size: 44px;
  }

  .reseller-perks {
    gap: 6px;
    margin-bottom: 14px;
  }

  .reseller-price {
    font-size: 34px;
  }
}

/* Mobile : titre + onglets en haut, panneau en dessous */
@media (max-width: 760px) {
  .app-page {
    display: block;
  }

  .app-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .app-side {
    gap: 6px;
  }

  .app-side .back-link {
    padding: 6px 12px 6px 8px;
    font-size: 12.5px;
  }

  .app-side .settings-title {
    margin-top: 6px;
    font-size: 40px;
  }

  .app-side .settings-sub,
  .app-hint {
    display: none;
  }

  .app-tabs {
    flex-direction: row;
    gap: 6px;
    margin-top: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Les onglets se partagent la largeur, sans compteur */
  .app-tab {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    width: auto;
    gap: 8px;
    padding: 10px 6px;
  }

  .app-tab .count-badge {
    display: none;
  }

  .app-tab[aria-selected="true"] {
    box-shadow: inset 0 -2px 0 #5865f2;
  }

  .app-tab-num {
    display: none;
  }

  .app-tab-label {
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
    text-align: center;
  }

  .app-stage {
    flex: 1;
    align-items: start;
  }

  .app-panel {
    max-height: 100%;
  }

  .demo-banner {
    padding: 8px 12px;
    font-size: 12px;
  }

  /* Forfaits : 2 colonnes compactes pour tenir à l'écran */
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .plan-card {
    padding: 12px;
  }

  .plan-name {
    font-size: 17px;
  }

  .plan-price {
    margin-top: 6px;
    font-size: 16px;
  }

  .plan-note {
    font-size: 10.5px;
  }

  .plan-pay {
    height: 34px;
    margin-top: 8px;
    font-size: 13px;
  }
}

/* Animations réduites (choisi dans les paramètres) */
html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 88px;
  }

  /* Sur mobile : son | logo | boutons */
  .header-inner {
    grid-template-columns: auto auto minmax(0, 1fr);
    column-gap: 8px;
  }

  .status {
    padding: 10px 6px 10px 0;
  }

  .status-label {
    display: none;
  }

  .brand {
    justify-self: start;
    gap: 9px;
  }

  .seal {
    width: 32px;
    height: 32px;
  }

  .logo-top {
    font-size: 25px;
  }

  .logo-bottom {
    font-size: 12px;
  }

  .header-right {
    gap: 6px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .btn-login {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  /* Mobile : juste l'avatar */
  .user-chip {
    height: 40px;
    padding: 0 3px;
  }

  .user-chip-avatar {
    width: 32px;
    height: 32px;
  }

  .user-chip-name {
    display: none;
  }

  .user-menu {
    width: min(280px, calc(100vw - 32px));
  }
}

/* Grand écran : header plus grand */
@media (min-width: 1600px) {
  :root {
    --gutter: 64px;
    --header-h: 132px;
  }

  .status { font-size: 17px; }
  .seal { width: 54px; height: 54px; }
  .brand { gap: 15px; }
  .logo-top { font-size: 42px; }
  .logo-bottom { font-size: 20.5px; }
  .icon-btn svg { width: 26px; height: 26px; }

  .btn-login {
    height: 58px;
    padding: 0 32px;
    font-size: 16px;
  }

  .user-chip {
    height: 58px;
    font-size: 16px;
  }

  .user-chip-avatar {
    width: 46px;
    height: 46px;
  }

}

/* Moins d'animations si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  .status-bars i {
    animation: none;
  }
}

/* =========================================================
   EXPÉRIENCE PLEIN ÉCRAN
   La page ne défile pas : chaque scroll / Espace / swipe
   fait passer à l'étape suivante (voir script.js).
   ========================================================= */
@property --glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #8b5cf6;
}

@property --dc {
  syntax: "<color>";
  inherits: true;
  initial-value: #8b5cf6;
}

html,
body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.experience {
  --glow: #8b5cf6;
  --dc: #8b5cf6;
  --ease: cubic-bezier(0.7, 0, 0.2, 1);
  --card-h: min(74vh, 36vw, 800px); /* taille de la grande carte */
  --card-w: calc(var(--card-h) * 0.74);
  --tilt: -10deg;
  --card-y: 0px;

  position: fixed;
  inset: 0;
  overflow: hidden;
  overflow: clip;
  touch-action: none;
  transition: --glow 0.8s ease, --dc 0.8s ease;
}

/* ----- Fonds ----- */
.bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.bg--hero {
  background: radial-gradient(ellipse 75% 65% at 50% 45%, #282828 0%, #111 45%, #000 80%);
}

.bg--detail {
  background:
    radial-gradient(ellipse 60% 50% at 55% 100%, color-mix(in srgb, var(--dc) 45%, transparent), transparent 70%),
    linear-gradient(180deg, #000 0%, color-mix(in srgb, var(--dc) 14%, #000) 40%, color-mix(in srgb, var(--dc) 38%, #0b0b0f) 100%);
}

.bg--statement {
  background: radial-gradient(ellipse 65% 55% at 50% 50%, color-mix(in srgb, var(--dc) 55%, #120c04) 0%, color-mix(in srgb, var(--dc) 20%, #000) 55%, #000 100%);
}

.bg--lineup {
  background: radial-gradient(ellipse 80% 45% at 55% 72%, #4a4a4a 0%, #1c1c1c 45%, #000 80%);
}

.experience[data-phase="hero"] .bg--hero,
.experience:is([data-phase="intro"], [data-phase="back"], [data-phase="feature"]) .bg--detail,
.experience[data-phase="statement"] .bg--statement,
.experience[data-phase="lineup"] .bg--lineup {
  opacity: 1;
}

/* ----- Calques (une étape = un calque visible) ----- */
.layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 1s var(--ease);
}

.experience[data-phase="hero"] .hero,
.experience:is([data-phase="intro"], [data-phase="back"], [data-phase="feature"]) .detail,
.experience[data-phase="statement"] .statement,
.experience[data-phase="lineup"] .lineup {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Coins décoratifs (sous le header) */
.hero-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid var(--line);
}
.hero-corner--tl { top: calc(var(--header-h) + 8px); left: var(--gutter);  border-top-width: 1px;    border-left-width: 1px; }
.hero-corner--tr { top: calc(var(--header-h) + 8px); right: var(--gutter); border-top-width: 1px;    border-right-width: 1px; }
.hero-corner--bl { bottom: 24px; left: var(--gutter);  border-bottom-width: 1px; border-left-width: 1px; }
.hero-corner--br { bottom: 24px; right: var(--gutter); border-bottom-width: 1px; border-right-width: 1px; }

/* =========================================================
   1. CARROUSEL
   ========================================================= */
.hero {
  --card-h: clamp(260px, 46vh, 620px);
  --card-w: calc(var(--card-h) * 0.74);
  --spacing: calc(var(--card-w) * 1.3);
  --depth: 150px;

  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--header-h) + clamp(8px, 2.2vh, 36px)) var(--gutter) clamp(24px, 3vh, 44px);
  transform: scale(1.35); /* quand on quitte le carrousel, on "plonge" dedans */
  transform-origin: 50% 42%;
}

/* Lueur colorée en bas */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24vh;
  width: min(1500px, 120vw);
  height: 48vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--glow) 60%, transparent) 0%, transparent 65%);
  filter: blur(24px);
  opacity: 0.65;
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  /* flèche centrée dans l'espace entre la carte du milieu et ses voisines */
  --arrow-gap: max(4px, calc(var(--card-w) * 0.12 - 26px));
}

.hero-stage {
  position: relative;
  width: 100%;
  height: calc(var(--card-h) + 80px);
  perspective: 1600px;
  transform-style: preserve-3d;
  user-select: none;
}

/* ===== Carte certificat ===== */
.cert {
  --o: 0;
  --abs: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform:
    translateX(calc(var(--o) * var(--spacing)))
    translateY(calc(var(--abs) * var(--abs) * 6px))
    translateZ(calc(var(--abs) * var(--depth) * -1))
    rotateY(calc(var(--o) * -14deg))
    rotateZ(calc(var(--o) * 5deg));
  filter: brightness(calc(1 - var(--abs) * 0.16)) saturate(calc(1 - var(--abs) * 0.15));
  transition:
    transform 0.8s cubic-bezier(0.22, 0.9, 0.24, 1),
    filter 0.8s ease,
    opacity 0.8s ease;
}

.cert.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.cert.no-anim {
  transition: opacity 0.8s ease, filter 0.8s ease;
}

/* Pendant le zoom, la carte du milieu laisse sa place à la grande carte */
.hero.is-zoomed .cert.is-active {
  opacity: 0;
  transition: none;
}

.cert:focus-visible {
  outline: none;
}
.cert:focus-visible .cert-card {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Flottement doux */
.cert-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: cert-float 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.3s);
}

@keyframes cert-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-2.5%) rotate(1deg); }
}

/* Dans la carte : 1em = 1 % de la largeur de la carte */
.cert-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 7.5em;
  overflow: hidden;
  text-align: left;
  font-size: calc(var(--card-w) / 100);
  border-radius: 7em;
  border: 1px solid color-mix(in srgb, var(--c) 55%, rgba(255, 255, 255, 0.1));
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--c) 60%, #0a0a0f) 0%,
    color-mix(in srgb, var(--c) 20%, #0a0a0f) 48%,
    #07070a 100%
  );
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.8s ease;
}

/* Motif guilloché */
.cert-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 115% -5%, transparent 0 3em, rgba(255, 255, 255, 0.08) 3em 3.4em),
    repeating-radial-gradient(circle at -15% 105%, transparent 0 3em, rgba(255, 255, 255, 0.05) 3em 3.4em);
  pointer-events: none;
}

/* Reflet holographique */
.cert-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-70%);
  pointer-events: none;
}

.cert.is-active .cert-card {
  box-shadow:
    0 40px 90px -24px rgba(0, 0, 0, 0.95),
    0 0 90px -14px color-mix(in srgb, var(--c) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.cert.is-active .cert-card::after,
.main-card .cert-card::after {
  animation: cert-sheen 5s ease-in-out infinite;
}

@keyframes cert-sheen {
  0%, 45% { transform: translateX(-70%); }
  100%    { transform: translateX(70%); }
}

.cert-card > span {
  position: relative;
  z-index: 1;
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  font-size: 4em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
}

.cert-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cert-brand svg {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  overflow: visible;
}
.cert-brand polygon { fill: #fff; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.cert-brand path { fill: none; stroke: #000; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.cert-no {
  color: rgba(255, 255, 255, 0.55);
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: 3em;
}

.cert-label {
  font-size: 4.2em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: color-mix(in srgb, var(--c) 55%, #fff);
}

.cert-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 15.5em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  transform: skewX(-12deg);
  transform-origin: left bottom;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.cert-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.cert-barcode {
  width: 36em;
  height: 11em;
  opacity: 0.7;
  background: repeating-linear-gradient(
    90deg,
    #fff 0 0.9em, transparent 0.9em 1.8em,
    #fff 1.8em 2.2em, transparent 2.2em 3.5em,
    #fff 3.5em 4.8em, transparent 4.8em 5.7em,
    #fff 5.7em 6.1em, transparent 6.1em 7.4em
  );
}

.cert-holo {
  position: relative;
  display: grid;
  place-items: center;
  width: 20em;
  height: 20em;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 0 8em color-mix(in srgb, var(--c) 60%, transparent);
}

.cert-holo::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(#ff9ad5, #9ab8ff, #7dfbd6, #fff39a, #ff9ad5);
  animation: holo-spin 6s linear infinite;
}

.cert-holo::after {
  content: "";
  position: absolute;
  inset: 2.2em;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
}

.cert-holo svg {
  position: relative;
  z-index: 1;
  width: 8em;
  height: 8em;
}

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

/* ===== Flèches en points ===== */
.hero-arrow,
.detail-next {
  position: absolute;
  top: 50%;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.25s ease, opacity 0.5s ease;
}

.hero-arrow--prev { right: calc(50% + var(--card-w) / 2 + var(--arrow-gap)); }
.hero-arrow--next { left: calc(50% + var(--card-w) / 2 + var(--arrow-gap)); }

.hero-arrow--prev:hover { transform: translate(-5px, -50%); }
.hero-arrow--next:hover,
.detail-next:hover { transform: translate(5px, -50%); }

.hero-arrow svg,
.detail-next svg {
  display: block;
  height: clamp(36px, 4.6vh, 60px);
  width: auto;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.hero-arrow--next svg,
.detail-next svg {
  transform: scaleX(-1);
}

.dot {
  fill: currentColor;
  opacity: var(--base);
  animation: dot-wave 2.4s ease-in-out infinite;
}

.dot--out { --base: 0.28; animation-delay: 0s; }
.dot--mid { --base: 0.55; animation-delay: 0.15s; }
.dot--tip { --base: 1;    animation-delay: 0.3s; }

@keyframes dot-wave {
  0%, 60%, 100% { opacity: var(--base); }
  30%           { opacity: 1; }
}

.hero-arrow:hover .dot,
.detail-next:hover .dot {
  opacity: 1;
  animation: none;
}

.hero-arrow:focus-visible,
.detail-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Nom du certificat actif */
.hero-info {
  position: relative;
  z-index: 1;
  margin-top: -16px;
  text-align: center;
}

.hero-name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(42px, 4.2vw, 104px);
  line-height: 0.9;
  text-transform: uppercase;
  transform: skewX(-12deg);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-name.pop {
  animation: name-pop 0.6s cubic-bezier(0.22, 0.9, 0.24, 1);
}

@keyframes name-pop {
  from { opacity: 0; transform: skewX(-12deg) translateY(14px); }
  to   { opacity: 1; transform: skewX(-12deg) translateY(0); }
}

.hero-meta {
  margin-top: 0.9em;
  font-size: clamp(12px, 0.8vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Slider dégradé */
.hero-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: clamp(280px, 38vw, 900px);
  max-width: 100%;
  margin-top: clamp(20px, 3.4vh, 44px);
}

/* Slider sur mesure */
.hero-controls {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

.slider {
  --pct: 50%;
  position: relative;
  height: 28px;
}

/* Le vrai curseur, invisible mais utilisable (souris, doigt, clavier) */
.hero-range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.slider-track,
.slider-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  background: var(--track, #fff);
  pointer-events: none;
}

.slider-track {
  opacity: 0.22;
}

/* Partie allumée jusqu'au certificat choisi */
.slider-fill {
  clip-path: inset(0 calc(100% - var(--pct)) 0 0 round 999px);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--glow) 70%, transparent));
  transition: clip-path 0.7s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.slider-ticks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.slider-tick {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a2a2e;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.slider-tick.is-passed {
  background: var(--c);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.6), 0 0 10px var(--c);
}

/* Curseur : glisse d'un certificat à l'autre */
.slider-thumb {
  position: absolute;
  top: 50%;
  left: var(--pct);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--glow) 35%, transparent),
    0 0 22px color-mix(in srgb, var(--glow) 90%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    left 0.7s cubic-bezier(0.22, 0.9, 0.24, 1),
    box-shadow 0.4s ease,
    transform 0.2s ease;
}

.slider:hover .slider-thumb {
  transform: translate(-50%, -50%) scale(1.12);
}

.hero-range:focus-visible ~ .slider-thumb {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

/* Noms sous le slider */
.slider-labels {
  position: relative;
  height: 18px;
}

.slider-label {
  position: absolute;
  top: 0;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.38);
  font-family: inherit;
  font-size: clamp(10.5px, 0.7vw, 13px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  transition: color 0.3s ease;
}

.slider-label:first-child {
  transform: translateX(-14%);
}

.slider-label:last-child {
  transform: translateX(-86%);
}

.slider-label:hover {
  color: rgba(255, 255, 255, 0.75);
}

.slider-label.is-active {
  color: #fff;
}

.slider-label:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Indication de scroll */
.hero-scroll,
.detail-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, 0.8vw, 15px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-muted);
}

.hero-scroll {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px 0 0;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.5s ease 0.2s;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-scroll::after,
.detail-hint::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, #fff, transparent);
  background-size: 100% 200%;
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  from { background-position: 0 100%; }
  to   { background-position: 0 -100%; }
}

/* =========================================================
   2. DÉTAIL
   ========================================================= */
.detail {
  z-index: 6;
  transform: scale(0.94);
}

/* En partant vers les étapes suivantes, le texte remonte */
.experience:is([data-phase="statement"], [data-phase="lineup"]) .detail {
  transform: translateY(-6vh);
}

.detail-letters {
  position: absolute;
  left: calc(var(--gutter) + 4vw);
  right: calc(var(--gutter) + 4vw);
  display: flex;
  justify-content: space-between;
  font-size: clamp(12px, 0.9vw, 17px);
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
  pointer-events: none;
}
.detail-letters--top    { top: 20%; }
.detail-letters--bottom { bottom: 18%; }

/* Grille : texte | emplacement de la carte | avantages */
.detail-grid {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--card-w) minmax(0, 1fr);
  align-items: center;
  padding: 0 var(--gutter);
}

.detail-slot {
  position: relative;
  height: var(--card-h);
}

.detail-next {
  left: calc(100% + clamp(30px, 5vw, 120px));
}

/* ----- Texte à gauche ----- */
.detail-text {
  position: relative;
  justify-self: start;
  max-width: 640px;
  padding-left: clamp(0px, 5vw, 140px);
}

.detail-panels {
  display: grid;
}

.detail-intro,
.detail-feature {
  grid-area: 1 / 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.detail-feature {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.experience[data-phase="feature"] .detail-intro {
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
}

.experience[data-phase="feature"] .detail-feature {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.detail-name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(46px, 5.4vw, 124px);
  line-height: 0.88;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.detail-desc {
  position: relative;
  max-width: 34ch;
  margin-top: clamp(20px, 3vh, 36px);
  padding: 16px 20px;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.detail-desc::before,
.detail-desc::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0 solid rgba(255, 255, 255, 0.7);
}
.detail-desc::before { top: 0;    left: 0;  border-top-width: 1px;    border-left-width: 1px; }
.detail-desc::after  { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Avantage : étiquette + titre + texte */
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-size: clamp(11px, 0.75vw, 14px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-tag-icon {
  width: 1.5em;
  height: 1.5em;
  border-radius: 3px;
  background: var(--dc);
  box-shadow: 0 0 12px var(--dc);
}

/* Étiquette rouge pour "non inclus" / limites */
.detail-feature.is-warn .feature-tag-icon {
  background: #ff5a5a;
  box-shadow: 0 0 12px #ff5a5a;
}

.feature-title {
  margin-top: clamp(14px, 2vh, 24px);
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(38px, 4.2vw, 96px);
  line-height: 0.9;
  text-transform: uppercase;
  transform: skewX(-12deg);
  transform-origin: left bottom;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.feature-text {
  max-width: 36ch;
  margin-top: clamp(14px, 2vh, 24px);
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.detail-feature.is-step .feature-tag,
.detail-feature.is-step .feature-title,
.detail-feature.is-step .feature-text {
  animation: feature-in 0.55s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}
.detail-feature.is-step .feature-title { animation-delay: 0.05s; }
.detail-feature.is-step .feature-text  { animation-delay: 0.1s; }

@keyframes feature-in {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

/* Bouton Payer : visible dès que la carte est retournée */
.detail-buy {
  margin-top: clamp(22px, 3.4vh, 40px);
}

.btn-pay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: clamp(50px, 5.4vh, 62px);
  padding: 0 clamp(26px, 2vw, 38px);
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: clamp(15px, 1vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.35), 0 0 70px -10px var(--dc);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}

.btn-pay svg {
  transition: transform 0.2s ease;
}

.experience:is([data-phase="back"], [data-phase="feature"]) .btn-pay {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.btn-pay:hover {
  box-shadow: 0 0 44px rgba(255, 255, 255, 0.55), 0 0 90px -10px var(--dc);
}

.btn-pay:hover svg {
  transform: translateX(4px);
}

.btn-pay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* Bouton bloqué (ex : Starter "Indisponible pour l'instant") */
.btn-pay.is-disabled,
.btn-pay.is-disabled:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  cursor: not-allowed;
  animation: none;
}

.btn-pay.is-disabled svg {
  display: none;
}

/* Connexion requise */
.pay-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.experience:is([data-phase="back"], [data-phase="feature"]) .pay-note {
  opacity: 1;
}

/* Juste après la connexion : le bouton pulse */
.btn-pay.is-ready {
  animation: pay-ready 1.4s ease-in-out 3;
}

@keyframes pay-ready {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.35), 0 0 70px -10px var(--dc); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18), 0 0 60px rgba(255, 255, 255, 0.6), 0 0 90px -6px var(--dc); }
}

/* ----- Cercles des avantages ----- */
.detail-features {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3vh, 34px);
}

.feature-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 3.6vw, 76px);
  aspect-ratio: 1;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(15px, 1.05vw, 22px);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.feature-dot span {
  transform: skewX(-12deg);
}

.feature-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + clamp(9px, 1.5vh, 17px));
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translateX(-50%);
}

.feature-dot:last-child::after {
  display: none;
}

.feature-dot:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.feature-dot.is-active {
  border-color: #fff;
  background: color-mix(in srgb, var(--dc) 30%, rgba(0, 0, 0, 0.35));
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 0 28px -2px var(--dc);
  color: #fff;
  transform: scale(1.08);
}

.feature-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Indication en bas (seulement avant le retournement) */
.detail-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
}

.experience:not([data-phase="intro"]) .detail-hint {
  opacity: 0;
}

/* Changement de certificat : léger fondu */
.detail.is-swapping .detail-panels {
  animation: detail-swap 0.5s ease;
}

@keyframes detail-swap {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   LA GRANDE CARTE (partagée par le détail et le grand texte)
   ========================================================= */
.main-card {
  --ry: 0deg; /* rotation recto / verso, réglée par script.js */
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transition: transform 1s var(--ease), opacity 0.6s ease;
}

/* Détail : grande carte inclinée */
.experience:is([data-phase="intro"], [data-phase="back"], [data-phase="feature"]) .main-card {
  opacity: 1;
  transform: translateY(var(--card-y)) rotateZ(var(--tilt));
}

/* Grand texte : la carte revient au centre, de face */
.experience[data-phase="statement"] .main-card {
  opacity: 1;
  transform: rotateZ(8deg) scale(0.82);
}

/* Gamme : la carte s'efface */
.experience[data-phase="lineup"] .main-card {
  opacity: 0;
  transform: translateY(30vh) scale(0.6);
}

.main-card.is-swapping {
  animation: detail-swap 0.5s ease;
}

.flip-float {
  width: 100%;
  height: 100%;
  perspective: 2000px;
  animation: cert-float 7s ease-in-out infinite;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry));
  transition: transform 1s var(--ease);
}

.flip-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-back {
  transform: rotateY(180deg);
  visibility: hidden;
}

/* Seule la face tournée vers nous est affichée (classe posée par script.js) */
.main-card.show-back .flip-back {
  visibility: visible;
}

.main-card.show-back .flip-front {
  visibility: hidden;
}

.main-card .cert-card {
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.95),
    0 0 120px -20px color-mix(in srgb, var(--c) 75%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Verso */
.cert-back {
  background: linear-gradient(
    200deg,
    color-mix(in srgb, var(--c) 55%, #0a0a0f) 0%,
    color-mix(in srgb, var(--c) 18%, #0a0a0f) 50%,
    #07070a 100%
  );
}

.cert-back-body {
  display: flex;
  flex-direction: column;
  gap: 2.4em;
}

.cert-back-title {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 8em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

.cert-features {
  display: flex;
  flex-direction: column;
  gap: 1.7em;
  margin-top: 0.8em;
}

.cert-feature {
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-size: 3.7em;
  font-weight: 500;
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Ligne "non inclus" */
.cert-feature.is-warn {
  color: rgba(255, 196, 196, 0.85);
}

.cert-feature.is-warn .cert-feature-icon {
  background: rgba(255, 82, 82, 0.3);
  color: #ff8f8f;
}

.cert-back.has-active .cert-feature {
  opacity: 0.35;
}

.cert-back.has-active .cert-feature.is-active {
  opacity: 1;
  transform: translateX(0.4em);
}

.cert-feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, 0.1));
  color: #fff;
  transition: box-shadow 0.4s ease;
}

.cert-feature.is-active .cert-feature-icon {
  box-shadow: 0 0 0 0.25em rgba(255, 255, 255, 0.25), 0 0 1em var(--c);
}

.cert-feature-icon svg {
  width: 62%;
  height: 62%;
}

.cert-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 3.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.cert-price {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.cert-price-label {
  font-size: 3.8em;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.cert-price-note {
  font-size: 3.3em;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
}

.cert-price-value {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 12em;
  line-height: 0.9;
  white-space: nowrap;
  transform: skewX(-12deg);
  transform-origin: left bottom;
}

/* =========================================================
   3. GRAND TEXTE
   ========================================================= */
.statement {
  z-index: 3; /* derrière la grande carte */
  display: grid;
  place-items: center;
  transform: scale(0.82);
}

.statement-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: clamp(84px, 17vw, 380px);
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.92;
  transform: skewX(-12deg);
}

.statement-text span {
  display: block;
  background: linear-gradient(180deg, color-mix(in srgb, var(--dc) 35%, #fff) 0%, color-mix(in srgb, var(--dc) 65%, #fff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.9s var(--ease), opacity 0.6s ease;
}

/* Vers la gamme : « 100% » part à gauche, « DIGITAL » à droite */
.experience[data-phase="lineup"] .statement-text span:first-child {
  transform: translateX(-38vw);
  opacity: 0;
}

.experience[data-phase="lineup"] .statement-text span:last-child {
  transform: translateX(38vw);
  opacity: 0;
}

/* =========================================================
   4. LA GAMME
   ========================================================= */
.lineup {
  --card-w: clamp(130px, 12.5vw, 270px);
  --card-h: calc(var(--card-w) / 0.74);
  z-index: 7;
  transform: none;
}

/* Distribution des cartes à l'arrivée sur la gamme */
.lineup.is-dealing .lineup-card {
  animation: deal-in 0.75s cubic-bezier(0.22, 0.9, 0.24, 1) both;
}

/* La carte qui « atterrit » apparaît pile quand la grande carte arrive */
.lineup.is-dealing .lineup-card.is-landing {
  animation: land-in 0.2s ease 0.72s both;
}

.lineup-card.is-departing {
  opacity: 0 !important;
  animation: none !important;
}

@keyframes deal-in {
  from { opacity: 0; translate: 0 90px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes land-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lineup-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.lineup-row {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--card-w) * 0.22);
  transform-style: preserve-3d;
  transform: translateY(8vh) rotateX(12deg) rotateY(34deg);
}

.lineup-card {
  --lift: 0px;
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform: rotateY(-24deg) translateY(var(--lift));
  transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.24, 1);
}

.lineup-card .cert-card {
  box-shadow:
    0 40px 60px -30px rgba(0, 0, 0, 0.95),
    0 0 50px -20px color-mix(in srgb, var(--c) 70%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.lineup-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.75), transparent 70%);
  filter: blur(4px);
  transition: opacity 0.4s ease;
}

.lineup-card:hover,
.lineup-card:focus-visible {
  --lift: -26px;
  outline: none;
}

.lineup-card:hover::after,
.lineup-card:focus-visible::after {
  opacity: 0.5;
}

.lineup-card:focus-visible .cert-card {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* =========================================================
   ÉCRANS PEU HAUTS / MOBILE
   ========================================================= */
@media (max-height: 760px) and (min-width: 641px) {
  .hero-scroll {
    display: none;
  }
}

@media (max-width: 640px) {
  .experience {
    --card-h: min(34svh, 290px);
    --tilt: -6deg;
    --card-y: -20svh; /* la carte en haut, le texte en dessous */
  }

  .hero {
    --card-h: clamp(230px, 40vh, 330px);
    --spacing: calc(var(--card-w) * 0.62);
    --depth: 120px;
  }

  .hero-controls {
    width: 100%;
  }

  .slider-label {
    display: none;
  }

  .slider-label.is-active {
    display: block;
  }

  .hero-corner,
  .detail-letters,
  .detail-next,
  .feature-dot::after {
    display: none;
  }

  /* Détail : le texte sous la carte */
  .detail-grid {
    grid-template-columns: 1fr;
    align-content: end;
    justify-items: center;
    gap: 14px;
    padding: 0 16px 6svh;
    text-align: center;
  }

  .detail-slot {
    display: none;
  }

  .detail-text {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
  }

  .detail-intro,
  .detail-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .detail-name {
    font-size: 40px;
    transform-origin: center bottom;
  }

  .detail-desc {
    margin-top: 10px;
    padding: 10px 14px;
    font-size: 14.5px;
  }

  .feature-title {
    font-size: 32px;
    transform-origin: center bottom;
  }

  .feature-text {
    margin-top: 10px;
    font-size: 14.5px;
  }

  .detail-buy {
    margin-top: 12px;
  }

  .pay-note {
    justify-content: center;
    margin-top: 10px;
  }

  .detail-features {
    justify-self: center;
    flex-direction: row;
    gap: 14px;
  }

  .feature-dot {
    width: 38px;
    font-size: 13px;
  }

  .detail-hint {
    display: none;
  }

  /* Grand texte : « 100% » au-dessus de la carte, « DIGITAL » en dessous */
  .statement-text {
    font-size: 23vw;
    gap: 34svh;
  }

  .lineup {
    --card-w: 86px;
  }

  .lineup-row {
    gap: calc(var(--card-w) * 0.16);
    transform: translateY(6vh) rotateX(12deg) rotateY(36deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-float,
  .flip-float,
  .cert-holo::before,
  .cert.is-active .cert-card::after,
  .main-card .cert-card::after,
  .hero-scroll::after,
  .detail-hint::after,
  .hero-name.pop,
  .dot,
  .detail-feature.is-step .feature-tag,
  .detail-feature.is-step .feature-title,
  .detail-feature.is-step .feature-text {
    animation: none;
  }
}
