/*
 * Télécharger l'aide support /remote-support/ — généré par
 * scripts/generate-remote-support.mjs. Page de téléchargement sur un seul
 * écran : le body occupe la hauteur de la fenêtre et le contenu est centré
 * sous le header, sans footer ni défilement sur desktop.
 * Charge après legal-hub.css (badge, boutons, accent, sr-only, icônes).
 * Typographie : tokens --cb-* de styles.css.
 */
body.remote-support-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Header : même rendu que la page d'accueil (index.html, story-cinematic.css) —
 * barre transparente sur fond sombre, wordmark clair, liens 16/500, sélecteur
 * de langue sombre et CTA bleu clair. Mise en page responsive : styles.css. */
.remote-support-header {
  flex: none;
  height: var(--cb-topbar-h);
  color: #d7e0f5;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.remote-support-header .site-header__inner {
  width: 100%;
  padding-inline: 48px;
  gap: 34px 30px;
}
.remote-support-header .brand { justify-self: center; }
.remote-support-header .site-nav {
  gap: 33.6px;
  min-height: 48px;
  color: rgba(226, 235, 250, .92);
  font-size: 16px;
  font-weight: 500;
}
.remote-support-header .site-nav a {
  padding: 12px 2px;
  border-radius: 7px;
  transition: color .2s ease;
}
.remote-support-header .site-nav a:hover,
.remote-support-header .site-nav a[aria-expanded="true"] { color: #fff; }
.remote-support-header .site-nav svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.remote-support-header .site-nav a[aria-expanded="true"] svg { transform: rotate(180deg); }
.remote-support-header .header-actions { gap: 20px; }
.remote-support-header .language-select::after { border-color: rgba(234, 241, 252, .9); }
.remote-support-header .language-select select {
  width: auto;
  min-width: 68px;
  height: 46px;
  padding: 0 28px 0 14px;
  border: 1px solid rgba(148, 178, 213, .3);
  border-radius: 8px;
  color: rgba(234, 241, 252, .94);
  background: rgba(6, 14, 28, .48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 18px rgba(7, 8, 63, .06);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
}
.remote-support-header .language-select select option { color: #081325; background-color: #f4f8ff; }
.remote-support-header .login-link {
  margin-left: 10px;
  white-space: nowrap;
  color: rgba(226, 235, 250, .92);
  font-size: 16px;
  font-weight: 500;
}
.remote-support-header .login-link:hover { color: #fff; }
.remote-support-header .header-cta {
  min-width: 204px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: #071018;
  background: #b9dcfb;
  box-shadow: 0 7px 24px rgba(76, 153, 218, .17);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.016em;
}
.remote-support-header .header-cta:hover { filter: brightness(1.06); }
.remote-support-header :where(a, button, select):focus-visible {
  outline: 2px solid #9edcff;
  outline-offset: 3px;
}
.remote-support-header .menu-toggle {
  color: #fff;
  border-color: rgba(165, 216, 255, .28);
  background: rgba(255, 255, 255, .06);
}
.remote-support-header .menu-toggle span { background: #a5d8ff; }

@media (min-width: 1121px) {
  .remote-support-header .site-header__inner { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 1500px) {
  .remote-support-header .site-header__inner { padding-inline: 32px; }
  .remote-support-header .site-nav { gap: 26px; }
}
@media (max-width: 1120px) {
  .remote-support-header { height: auto; }
  .remote-support-header .site-header__inner { padding-inline: 20px; }
  .remote-support-header .brand { justify-self: start; }
  .remote-support-header .site-nav.is-open a { padding: 12px 14px; background: rgba(255, 255, 255, .06); color: #fff; }
}

.remote-support {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 1;
  place-items: center;
  padding: clamp(12px, 3vh, 40px) 0 clamp(20px, 4vh, 48px);
}
.legal-hub-page main.remote-support { display: grid; }
.remote-support::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 166, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 166, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0, transparent 64%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0, transparent 64%);
}

.legal-hub-page .remote-support svg { fill: currentColor; stroke: none; }

.remote-support__panel {
  width: min(calc(100% - 48px), 1000px);
  text-align: center;
}
.remote-support__panel .legal-hub-badge { margin-bottom: clamp(14px, 2.4vh, 24px); }
.remote-support h1 {
  margin: 0;
  color: var(--cb-display-ink-dark);
  font-family: var(--cb-display-font);
  font-size: clamp(40px, min(4.4vw, 7.2vh), 68px);
  font-weight: var(--cb-display-weight);
  letter-spacing: var(--cb-display-tracking);
  line-height: 1.08;
}
.remote-support__lead {
  max-width: 640px;
  margin: clamp(12px, 2vh, 20px) auto 0;
  color: var(--cb-lead-ink-dark);
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: var(--cb-lead-weight);
  letter-spacing: var(--cb-lead-tracking);
  line-height: 1.55;
}

/* Cartes de téléchargement */
.remote-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(24px, 4.4vh, 48px);
  text-align: left;
}
.remote-support-card {
  --tone: #567eff;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vh, 32px);
  border: 1px solid var(--lh-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--tone) 16%, transparent), transparent 58%),
    var(--lh-surface);
}
.remote-support-card--teamviewer { --tone: #0e8ee9; border-color: rgba(86, 126, 255, .38); }
.remote-support-card--anydesk { --tone: #ef443b; }
.remote-support-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.remote-support-card__logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--tone) 34%, transparent);
}
.remote-support .remote-support-card__logo svg { width: 100%; height: 100%; }
/* TeamViewer : le glyphe est l'icône d'app complète (carré bleu, cercle évidé). */
.remote-support-card--teamviewer .remote-support-card__logo { background: #fff; color: #0e8ee9; }
/* AnyDesk : glyphe blanc sur la tuile rouge de la marque. */
.remote-support-card--anydesk .remote-support-card__logo { background: #ef443b; color: #fff; }
.remote-support .remote-support-card--anydesk .remote-support-card__logo svg { width: 64%; height: 64%; }
.remote-support-card__tag {
  padding: 6px 12px;
  border: 1px solid var(--lh-border);
  border-radius: 999px;
  color: var(--lh-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.remote-support-card--teamviewer .remote-support-card__tag {
  border-color: rgba(103, 224, 185, .4);
  background: rgba(103, 224, 185, .1);
  color: #67e0b9;
}
.remote-support-card h2 {
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  color: var(--lh-strong);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.remote-support-card p {
  flex: 1;
  margin: 8px 0 0;
  color: var(--lh-text);
  font-size: 16px;
  line-height: 1.55;
}
.remote-support-card__cta {
  width: 100%;
  margin-top: clamp(18px, 2.6vh, 28px);
}

/* Étapes */
.remote-support-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  margin: clamp(20px, 3.4vh, 36px) 0 0;
  padding: 0;
  color: var(--lh-strong);
  font-size: 16px;
  line-height: 1.3;
  list-style: none;
}
.remote-support-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.remote-support-steps__index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 166, 255, .32);
  border-radius: 50%;
  color: #8fb0ff;
  font-size: 14px;
  font-weight: 600;
}

/* Sécurité et aide */
.remote-support__foot {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: clamp(20px, 3.4vh, 36px);
  padding-top: clamp(16px, 2.4vh, 24px);
  border-top: 1px solid var(--lh-border);
  font-size: 15px;
  line-height: 1.45;
}
.remote-support-warning {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--lh-text);
}
.remote-support-warning svg { width: 20px; height: 20px; flex: none; color: #ffc45c; }
.remote-support-help { margin: 0; color: var(--lh-text); }
.remote-support-help a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8fb0ff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.remote-support-help a:hover { color: #fff; }
.remote-support-help svg { width: 16px; height: 16px; transition: transform .2s ease; }
.remote-support-help a:hover svg { transform: translateX(3px); }

@media (prefers-reduced-motion: no-preference) {
  .remote-support__panel > * { animation: legal-hub-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .remote-support__panel > :nth-child(2) { animation-delay: .05s; }
  .remote-support__panel > :nth-child(3) { animation-delay: .1s; }
  .remote-support__panel > :nth-child(4) { animation-delay: .15s; }
  .remote-support__panel > :nth-child(n + 5) { animation-delay: .2s; }
}
@media (prefers-reduced-motion: reduce) {
  .remote-support-help svg { transition: none; }
  .remote-support-help a:hover svg { transform: none; }
}

/* Écrans bas (laptops 768px) : on resserre le rythme vertical pour rester sans défilement. */
@media (min-width: 721px) and (max-height: 820px) {
  .remote-support { padding: 8px 0 16px; }
  .remote-support__panel .legal-hub-badge { margin-bottom: 12px; }
  .remote-support__lead { margin-top: 10px; }
  .remote-support-grid { margin-top: 22px; }
  .remote-support-card { padding: 20px 24px 22px; }
  .remote-support-card__logo { width: 44px; height: 44px; border-radius: 10px; }
  .remote-support-card h2 { margin-top: 14px; }
  .remote-support-card__cta { margin-top: 16px; }
  .remote-support-steps { margin-top: 18px; }
  .remote-support__foot { margin-top: 16px; padding-top: 14px; gap: 4px; }
}

@media (max-width: 720px) {
  .remote-support__panel { width: calc(100% - 40px); }
  .remote-support-grid { grid-template-columns: 1fr; gap: 14px; }
  .remote-support-card h2 { font-size: 22px; }
  .remote-support-steps { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .remote-support__foot { justify-items: start; text-align: left; }
  .remote-support-warning { align-items: flex-start; }
}
