:root {
  --bg: #151020;
  --card: rgba(21, 16, 32, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.16);
  --rose: #ff69b4;
  --rose-hot: #ff1493;
  --gold: #fbbf24;
  --violet: #c4b5fd;
  --nav-h: 76px;
  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: #151020;
  background-image:
    radial-gradient(ellipse 140% 90% at 50% -18%, rgba(255, 105, 180, 0.34) 0%, transparent 52%),
    radial-gradient(ellipse 90% 70% at 100% 18%, rgba(0, 212, 255, 0.28) 0%, transparent 46%),
    radial-gradient(ellipse 80% 60% at 0% 80%, rgba(255, 20, 147, 0.18) 0%, transparent 48%),
    linear-gradient(180deg, #1a1525 0%, #151020 42%, #0f0d15 100%);
  background-attachment: fixed;
}
body > .site-head { flex: 0 0 auto; }
body > .wrap { flex: 1 0 auto; }
body > footer { flex: 0 0 auto; margin-top: auto; }

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { max-width: 100%; height: auto; display: block; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(21, 16, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; flex: none; }
.logo svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.nav-links a {
  color: #c5cad6;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.is-on {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.nav-links a.is-on { color: var(--cyan); }

/* Callers: web.py _page nav CTA → /theme.css. Schema: .nav-web-studio text button.
   User: « Finalement je n'aime pas ce bouton. on va juste Mettre "WebStudio". » */
.nav-links .btn.nav-web-studio,
.nav-web-studio {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  padding: 2px;
  border-radius: 999px;
  border: 0;
  background: #101018;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.nav-web-studio .neon-spin {
  position: absolute;
  inset: -55%;
  background: conic-gradient(from 0deg, transparent 0 78%, rgba(255, 105, 180, 0.15) 84%, #ff69b4 90%, #fff 93%, #ff69b4 96%, transparent 100%);
  animation: mhs-neon-spin 5.5s linear infinite;
  z-index: 0;
  opacity: 0.95;
}
.nav-web-studio .nav-web-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: #12121a;
}
.nav-web-studio .web-pink { color: #ff69b4; }
@keyframes mhs-neon-spin { to { transform: rotate(360deg); } }
.nav-links .btn.nav-web-studio:hover,
.nav-web-studio:hover {
  color: #fff;
  background: #101018;
  box-shadow: 0 0 22px rgba(255, 105, 180, 0.35);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .nav-web-studio .neon-spin,
  .mhsweb-launch .neon-spin { animation: none; }
}

/* Legacy soon pill (inert if cached HTML still references it). */
.nav-links .btn.nav-web-soon,
.nav-web-soon {
  display: none !important;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

h1, h2, h3 {
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 800;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
}
/* Accent titre : couleur unie (plus de dégradé cyan/blanc/rose). */
h1 span {
  color: var(--cyan);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}
h3 { margin: 0 0 8px; font-size: 1.2rem; }

.lead {
  max-width: 68ch;
  color: #b7c0d0;
  margin: 0 0 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { border-color: var(--cyan); color: #fff; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn.primary {
  background: var(--cyan);
  color: #041018;
  border-color: transparent;
  font-weight: 800;
}
.btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
}
.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Accueil — structure large, couleurs app */
.stage {
  width: 100vw;
  margin: -28px calc(50% - 50vw) 40px;
  padding: 56px max(20px, calc(50vw - 600px)) 0;
  background:
    linear-gradient(115deg, rgba(255, 105, 180, 0.22), rgba(0, 212, 255, 0.1) 48%, transparent 78%),
    #100d18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.stage-inner { width: min(1200px, 100%); margin: 0 auto; }
.brand-mark {
  margin: 0 0 12px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}
.stage h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  margin-bottom: 16px;
}
.stage-line {
  max-width: 40rem;
  margin: 0;
  color: #d5deec;
  font-size: 1.12rem;
  line-height: 1.55;
  font-weight: 500;
}

.chrome {
  margin: 36px auto 0;
  width: min(1200px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c0a12;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  line-height: 0;
}
.chrome img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.device-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: baseline;
  margin: 36px 0 8px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.device-rail strong {
  color: var(--text);
  font-weight: 700;
}

.section-head {
  margin: 56px 0 22px;
  max-width: 40rem;
}
.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 0 56px;
  align-items: center;
}
.rail-copy .access {
  display: inline-block;
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rail-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}
.rail-copy p {
  margin: 0;
  max-width: 36rem;
  color: #c5cedd;
}
.rail-shot {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  background: #0c0a12;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  line-height: 0;
}
.rail-shot img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
@media (min-width: 960px) {
  .rail {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
    gap: 36px;
  }
  .rail.is-flip { grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr); }
  .rail.is-flip .rail-shot { order: -1; }
}

.split-list {
  display: grid;
  gap: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--line);
}
.split-list article {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 800px) {
  .split-list article {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
}
.split-list h3 { margin: 0; }
.split-list p {
  margin: 0;
  color: #c5cedd;
  max-width: 54ch;
}

.edge-call {
  margin: 0 0 56px;
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 105, 180, 0.35);
  background: rgba(12, 10, 18, 0.5);
}
.edge-call h3 { margin: 0 0 8px; font-size: 1.5rem; }
.edge-call p {
  margin: 0;
  max-width: 52rem;
  color: #c5cedd;
}

.plan-strip {
  margin: 12px 0 48px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background:
    linear-gradient(120deg, rgba(0, 212, 255, 0.08), rgba(255, 105, 180, 0.06) 55%, rgba(12, 10, 18, 0.2));
}
.plan-strip h2 { max-width: 22ch; }
.plan-strip p {
  margin: 0 0 18px;
  max-width: 68ch;
  color: #d5deec;
}

.faq {
  display: grid;
  gap: 0;
  margin: 0 0 48px;
  border-top: 1px solid var(--line);
}
.faq article {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.faq h3 { margin: 0 0 6px; font-size: 1.1rem; }
.faq p {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border-radius: 22px;
  background: #0c0a12;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-band h2 { margin: 0 0 8px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: #c5cedd; }
.cta-band .hero-actions { margin-top: 0; }

/* Utilitaires pages (tarifs, compte, auth…) */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 22px 22px 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}
.card.featured {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.2), 0 20px 60px rgba(0, 212, 255, 0.08);
}
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041018;
  background: var(--cyan);
  border-radius: 999px;
  padding: 4px 8px;
}
/* Callers: /tarifs carte Freemium (web.py page_tarifs). User: badge rose 7 jours. */
.badge.badge-freemium {
  color: #2a0618;
  background: linear-gradient(135deg, #ff7ab8 0%, #ff4d9a 55%, #e11d74 100%);
  box-shadow: 0 6px 18px rgba(225, 29, 116, 0.35);
  max-width: 11rem;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}
.price-terms-note {
  margin: 14px 0 28px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.account-trial .renew-grid {
  margin-top: 8px;
}
.plan-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d5dbe8;
}
.plan-elite { color: var(--violet); }
.plan-premium { color: var(--cyan); }
.plan-freemium { color: #d5dbe8; }
.price {
  margin: 10px 0 4px;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}
.year { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.features { list-style: none; margin: 0 0 16px; padding: 0; }
.features li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: #c5cedd;
  font-size: 0.9rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 8px rgba(255, 105, 180, 0.7);
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.section-title {
  margin: 48px 0 18px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pack strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.pack span { color: var(--gold); font-weight: 700; }
.story-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 500;
}

.table-wrap {
  overflow: visible;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 10, 18, 0.55);
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}
th a {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
th a.is-on { color: var(--cyan); }
tr:hover td { background: rgba(255, 255, 255, 0.03); }
tr.is-on td { background: rgba(0, 212, 255, 0.06); }
.gold { color: var(--gold); font-weight: 750; }

.compare th, .compare td {
  padding: 16px 22px;
  vertical-align: middle;
  white-space: nowrap;
}
.compare th:first-child, .compare td:first-child {
  white-space: normal;
  min-width: 11rem;
  font-weight: 600;
  color: #e8eef8;
}
.compare th:not(:first-child), .compare td:not(:first-child) {
  min-width: 13.5rem;
  text-align: center;
}
.compare thead th {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f4f6fb;
  background: rgba(255, 255, 255, 0.04);
}
.compare thead th.col-premium,
.compare td.col-premium { background: rgba(0, 212, 255, 0.12); }
.compare thead th.col-premium { color: var(--cyan); }
.compare tr:hover td.col-premium { background: rgba(0, 212, 255, 0.18); }
.compare .yes { color: #7dffa8; }
.compare .no { color: #8b93a7; }

/* Callers: /tarifs .terms-compare. User: conditions commerciales sortent du cadre. */
.terms-compare {
  table-layout: fixed;
  width: 100%;
}
.terms-compare th,
.terms-compare td {
  white-space: normal;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.terms-compare th:not(:first-child),
.terms-compare td:not(:first-child) {
  min-width: 0;
  text-align: left;
}
.terms-compare th:nth-child(1),
.terms-compare td:nth-child(1) { width: 14%; }
.terms-compare th:nth-child(2),
.terms-compare td:nth-child(2) { width: 18%; }
.terms-compare th:nth-child(3),
.terms-compare td:nth-child(3) { width: 20%; }
.terms-compare th:nth-child(4),
.terms-compare td:nth-child(4) { width: 48%; }
.table-wrap:has(.terms-compare) {
  overflow-x: auto;
  max-width: 100%;
}

.panel { margin-top: 16px; }
label {
  display: block;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
input,
select {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 12px;
  appearance: none;
  -webkit-appearance: none;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
select {
  cursor: pointer;
  padding-right: 40px;
  background-color: rgba(0, 0, 0, 0.35);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
select option {
  background: #1a1525;
  color: var(--text);
}
.select-wrap { position: relative; }
.field-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
}
.field-row .field { min-width: 0; }
.field-password {
  position: relative;
  display: flex;
  align-items: center;
}
.field-password input { padding-right: 46px; }
.pwd-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
}
.pwd-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
  pointer-events: none;
}
.pwd-toggle:hover,
.pwd-toggle[aria-pressed="true"] {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}
.msg { min-height: 1.2em; color: var(--gold); font-size: 0.88rem; }
.msg a { color: var(--cyan); word-break: break-all; }
.msg.ok { color: #3dd68c; }
.pay-sim {
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
  color: var(--gold);
  border-radius: 12px;
  padding: 10px 12px;
}
.split { display: grid; grid-template-columns: 340px 1fr; gap: 16px; }
.hidden { display: none !important; }
.note { color: var(--muted); font-size: 0.85rem; margin-top: 8px; }

.legal { max-width: 760px; }
.legal h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.legal p, .legal li { color: #c5cedd; }
.legal ul { margin: 8px 0 0; padding-left: 18px; }

.auth-wrap { display: flex; justify-content: center; padding-top: 12px; }
.auth-card { width: min(480px, 100%); }
.auth-card h1 { font-size: 2rem; }
/* Modal e-mail non confirmé — page /connexion. Plan Auth i18n. */
.auth-modal {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 0;
  background: rgba(16, 14, 28, 0.96);
  color: inherit;
  max-width: min(440px, calc(100vw - 32px));
}
.auth-modal::backdrop { background: rgba(0,0,0,0.55); }
.auth-modal-card { margin: 0; padding: 22px 20px; }
.auth-modal-card h2 { margin: 0 0 10px; font-size: 1.25rem; }
.auth-modal-card p { margin: 0 0 12px; color: #b7c0d0; font-size: 0.95rem; }
.auth-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.auth-submit { width: 100%; margin-top: 16px; }
.auth-card .note a:not(.btn) { color: var(--cyan); }
.auth-card .note a.btn.primary,
.auth-actions .btn.primary {
  color: #041018;
}
.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
  color: transparent !important;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  border: 2px solid rgba(4, 16, 24, 0.25);
  border-top-color: #041018;
  animation: mh-spin 0.7s linear infinite;
}
.btn.primary.is-loading::after {
  border-color: rgba(4, 16, 24, 0.2);
  border-top-color: #041018;
}
@keyframes mh-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; border-top-color: transparent; opacity: 0.5; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dl-grid .dl-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
}
.dl-grid .dl-card .plan-name { margin: 0; }
.dl-grid .dl-card .btn { margin-top: auto; }

/* Page télécharger : hero + cartes OS (pictos génériques, pas logos MS/Apple). */
body.download .wrap {
  width: min(1100px, calc(100% - 32px));
  padding-top: 36px;
  padding-bottom: 64px;
}
body.download .dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px 36px;
  align-items: center;
  margin: 0 0 28px;
}
body.download .dl-hero-copy .lead {
  max-width: 36rem;
  margin-bottom: 0;
}
/* Callers: web.page_telecharger .dl-times. User: « Application téléchargée X fois » sous Install. */
body.download .dl-times {
  margin: 14px 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(232, 244, 255, 0.78);
}
body.download .lead a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.download .lead a:hover { color: #7ee9ff; }
body.download .dl-hero-visual {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0c0a12;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
body.download .dl-hero-visual video.hero-presentation {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #0c0a12;
  border-radius: 0;
}
body.download .dl-grid {
  margin-top: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.download .dl-card {
  padding: 22px 22px 20px;
  min-height: 168px;
}
body.download .dl-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.download .dl-os-icon {
  flex: none;
  color: var(--cyan);
  opacity: 0.92;
}
body.download .dl-card .plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
@media (max-width: 860px) {
  body.download .dl-hero {
    grid-template-columns: 1fr;
  }
  body.download .dl-hero-visual {
    order: -1;
    max-width: 100%;
  }
  body.download .dl-grid {
    grid-template-columns: 1fr;
  }
}

.account-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#who { margin: 0; }
#mail { margin: 6px 0 0; color: var(--muted); }
.account-status {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(180px, 1fr) minmax(200px, 1.2fr);
  gap: 28px 32px;
  align-items: center;
  margin: 0;
  padding: 28px 32px;
}
#plan {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: capitalize;
  line-height: 1.1;
}
#credits {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
#period { margin: 0; color: #d5deec; font-size: 1.05rem; }
/* Importers: web.py page_compte → theme.css. No data schema. User instruction: "go" */
.offer.is-current-plan {
  outline: 1px solid rgba(232, 168, 56, 0.45);
  opacity: 0.92;
}
.offer.is-current-plan [data-buy],
[data-buy].is-current-plan {
  cursor: default;
  opacity: 0.75;
}
/* Callers: web.py page_compte. User: réorganiser /compte, spacing Patreon. */
.account-renew { margin-top: 28px; padding: 22px 28px; }
.patreon-link-card {
  margin-top: 28px;
  padding: 18px 22px;
}
.patreon-link-card summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.patreon-link-card summary::-webkit-details-marker { display: none; }
.patreon-link-card[open] summary { margin-bottom: 12px; }
.patreon-link-card .btn { margin-top: 10px; }
.account #patreon-pay-note { margin: 20px 0 8px; }
.renew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}
.renew-grid p { margin: 0; }
#cancel-renewal { margin-top: 14px; }
.account-note {
  margin: 16px 0 0;
  max-width: 72ch;
  font-size: 0.88rem;
  color: var(--muted);
}
.account-note.pay-sim { color: var(--gold); }
.account-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
}
.offer h3.plan-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-transform: none;
}
.offer .price { margin: 10px 0 18px; }
.offer .btn { margin-top: auto; }
#buy-msg { min-height: 0; margin-top: 28px; }
#buy-msg:empty { display: none; margin: 0; }
#buy-msg:not(:empty) {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}
.account-cta { margin-top: 28px; }
.account-cta h2 { margin: 0 0 8px; }
.account-cta p { margin: 0 0 16px; color: #c5cedd; }

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px 28px 32px;
  color: #8b93a7;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
footer a { color: var(--cyan); }
.footer-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #a8b0c2;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.social-link svg {
  width: 16px;
  height: 16px;
  display: block;
}
.social-link:hover {
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.35);
}

@media (max-width: 860px) {
  .grid-3, .packs, .dl-grid, .account-plans, .account-status, .split {
    grid-template-columns: 1fr;
  }
  .nav {
    height: auto;
    min-height: var(--nav-h);
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  .nav-links { flex-wrap: wrap; }
  .table-wrap { overflow-x: auto; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .account-banner { align-items: flex-start; }
  .rail.is-flip .rail-shot { order: 0; }
  .stage {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Accueil — vidéo plein écran, bandeau, une idée par écran */
@keyframes home-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

body.home .site-head {
  position: sticky;
  top: 0;
  z-index: 30;
}

body.home .nav {
  position: relative;
  background: rgba(21, 16, 32, 0.9);
  border-bottom-color: transparent;
}

body.home .linkband {
  display: flex;
  justify-content: center;
  gap: 6px 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 12px 28px 14px;
  background: rgba(12, 10, 18, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

body.home .linkband a {
  flex: none;
  color: #d7deea;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

body.home .linkband a.linkband-web {
  color: #ff69b4;
  font-weight: 800;
}
.mhs-price-web {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 16px;
  width: 100%;
}
.mhs-price-web-copy { flex: 1; min-width: 0; }
.mhs-price-web-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.mhs-price-web .plan-name {
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 1.7rem;
  font-weight: 400;
  margin: 0 0 6px;
}
.mhs-price-web .price { margin: 0; }
.mhs-price-web .features { margin: 8px 0 0; }
.mhs-price-web .year { margin: 0; }
.wm-my { font-weight: 400; color: #fff; }
.wm-hap { font-weight: 800; color: #00d4ff; }
.wm-web { font-weight: 800; color: #ff69b4; margin-left: 0.12em; }
.wm-studio { font-weight: 800; color: #fff; margin-left: 0.12em; }
.kicker.mhs-brand {
  text-transform: none;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.mhsweb-go {
  font-size: 1.45rem;
  text-decoration: none;
}
.mhsweb-go:hover { text-decoration: underline; text-underline-offset: 5px; }
.mhs-price-web .btn .wm-my,
.mhs-price-web .btn .wm-hap,
.mhs-price-web .btn .wm-web { color: inherit; }
.nav-web-studio-plain { margin-left: 8px; background: transparent; }
.nav-web-studio-plain .mhs-hap { color: #00d4ff; }
.nav-web-studio-plain .mhs-studio { color: #fff; margin-left: 0; }
body.home .linkband a:hover {
  color: #fff;
  border-bottom-color: var(--cyan);
}

body.home a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

body.home .wrap {
  width: min(920px, calc(100vw - 48px));
  padding-top: 0;
  padding-bottom: 72px;
}

body.home .hero {
  position: relative;
  width: 100vw;
  height: calc(100svh - 128px);
  min-height: 560px;
  margin: 0 calc(50% - 50vw);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #100d18;
}

body.home .hero-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

body.home .hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 16, 32, 0.28) 0%, rgba(21, 16, 32, 0.22) 28%, rgba(21, 16, 32, 0.62) 58%, rgba(21, 16, 32, 0.94) 100%),
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(0, 212, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 10% 90%, rgba(255, 20, 147, 0.22), transparent 50%);
  pointer-events: none;
}

body.home .hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  padding: 0 0 64px;
  text-align: center;
  animation: home-rise 0.8s ease both;
}

body.home .hero h1 {
  max-width: 12em;
  margin: 0 auto 16px;
  font-size: clamp(2.8rem, 5.6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body.home .hero p {
  margin: 0 auto 28px;
  max-width: 26em;
  color: #e4ebf5;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}

body.home .hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 22px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

body.home .hero-actions .btn {
  flex: 0 1 auto;
  white-space: nowrap;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 0.98rem;
  line-height: 1.2;
  max-width: 100%;
}

body.home .hero-cta {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 1rem;
}

body.home .shot {
  width: 100vw;
  margin: 48px calc(50% - 50vw) 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #100d18;
  box-shadow: none;
  line-height: 0;
}

body.home .shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.home .beat {
  margin-top: 140px;
  text-align: center;
  scroll-margin-top: 148px;
}

body.home .beat h2,
body.home .close h2 {
  margin: 0 auto 18px;
  max-width: 14em;
  font-size: clamp(2.5rem, 5.2vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.042em;
}

body.home .say {
  margin: 0 auto;
  max-width: 34rem;
  color: #c5cedd;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 500;
}

body.home .beat .shot {
  margin-top: 44px;
}

body.home .device-list {
  list-style: none;
  margin: 52px auto 0;
  padding: 0;
  max-width: 680px;
  text-align: left;
}

body.home .device-list li {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) 1.4fr;
  gap: 28px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.home .device-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.home .device-list strong {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Lovense wordmark fallback (texte) — logo officiel prioritaire via .brand-logo. */
body.home .device-list strong.brand-lovense,
body.home h2.brand-lovense,
body.home a.brand-lovense {
  color: #ee137e;
  font-family: "Comfortaa", "Quicksand", "Nunito", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Logo officiel Lovense (Marketing/Lovense → /media/logo-lovense*.png).
   Callers: web.py _lovense_logo on home + /appareils. */
.brand-logo-link,
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo--nav {
  height: 18px;
  width: auto;
  max-width: 120px;
}
.brand-logo--card {
  height: 28px;
  width: auto;
  max-width: 160px;
}
.brand-logo--title {
  height: 36px;
  width: auto;
  max-width: min(280px, 70vw);
}
.brand-featured-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffd0e8;
  background: rgba(238, 19, 126, 0.18);
  border: 1px solid rgba(238, 19, 126, 0.45);
  white-space: nowrap;
}
body.home .device-list li.is-featured {
  align-items: flex-start;
}
body.home .devices-band a.devices-band-logo {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
}
body.home .pair-copy h2 .brand-logo-link,
body.home .pair-copy h2 .brand-logo-wrap {
  max-width: 100%;
}

/* Bannière Lovense entre réseaux et liens légaux (footer home). */
.footer-partner {
  flex: 1 1 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.footer-partner .device-aff-banner {
  margin: 0;
  display: block;
  max-width: min(420px, 100%);
}
.footer-partner .device-aff-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.footer-legal {
  flex: 0 1 auto;
}

body.home.page-devices .lead {
  max-width: 38rem;
  margin: 0 auto 36px;
  color: #c5cedd;
  font-size: 1.15rem;
  line-height: 1.45;
  text-align: center;
}

body.home.page-devices .kicker,
body.home.page-devices .wrap > h1,
body.home.page-devices main h1 {
  text-align: center;
}

body.home.page-devices .devices-band {
  justify-content: center;
  margin: 0 auto 48px;
}

body.home.page-devices .device-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
}

body.home.page-devices .device-how {
  margin: 0;
  color: #9aa6b8;
  font-size: 0.95rem;
  line-height: 1.4;
  max-width: 28rem;
}

body.home.page-devices .device-buy {
  flex: 0 0 auto;
  align-self: center;
  text-align: center;
}

body.home.page-devices .device-affiliate-banners {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 64px auto 0;
  max-width: 760px;
  padding: 0 12px;
}

body.home.page-devices .device-aff-banner {
  display: block;
  max-width: 100%;
  line-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.home.page-devices .device-aff-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

body.home.page-devices .device-aff-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 728px;
}

body.home.page-devices .device-affiliate-note {
  max-width: 40rem;
  margin: 28px auto 0;
  text-align: center;
  color: #8b93a7;
  font-size: 0.85rem;
  line-height: 1.45;
}

body.home.page-devices .devices-close {
  margin-top: 96px;
  text-align: center;
  padding-bottom: 48px;
}

/* Appareils : ratio naturel du média + coins arrondis (overflow hidden pour clipper le haut). */
body.home.page-devices .glass-media {
  overflow: hidden;
  border-radius: 18px;
  line-height: 0;
  background: #0c0a12;
}

body.home.page-devices .glass-media img,
body.home.page-devices .glass-media video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #0c0a12;
  border-radius: 0;
}

/* Capture téléphone / UI portrait (ex. Intiface) : box étroite, pas d’étirement landscape. */
body.home.page-devices .glass-media.glass-media--portrait {
  max-width: min(100%, 320px);
  width: 100%;
  justify-self: center;
  overflow: hidden;
}

body.home.page-devices .glass-media.glass-media--portrait img,
body.home.page-devices .glass-media.glass-media--portrait video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

body.home.page-devices .glass-media .clip-label {
  line-height: 1.2;
}

body.home .device-list span {
  color: #b7c0d0;
  font-size: 1.08rem;
}

body.home .price-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 56px;
  margin: 64px auto 0;
  max-width: 1000px;
  text-align: left;
}

body.home .price-list article {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

body.home .price-list h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.home .price-list .sum {
  margin: 10px 0 12px;
  font-size: clamp(2.7rem, 4.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.95;
}

body.home .price-list .detail {
  margin: 0;
  max-width: 24ch;
  color: #b7c0d0;
  font-size: 1.02rem;
  line-height: 1.45;
}

body.home .price-list article:last-child {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.home .pack-lines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  margin: 16px 0 10px;
  padding: 0;
}

body.home .pack-lines li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 1.2rem;
}

body.home .pack-lines li span:first-child { color: #c5cedd; }
body.home .pack-lines li span:last-child { font-weight: 700; }

body.home .pay-note { margin-top: 40px; }
body.home .more { margin: 22px 0 0; font-size: 1.05rem; }
body.home .more a { color: var(--cyan); font-weight: 600; }

body.home .faq {
  max-width: 760px;
  margin: 48px auto 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body.home .faq article {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: none;
  box-shadow: none;
}

body.home .faq h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.home .faq p {
  margin: 10px 0 0;
  max-width: 58ch;
  color: #b7c0d0;
  font-size: 1.05rem;
}

body.home .close {
  margin-top: 148px;
  text-align: center;
}

body.home .close p {
  margin: 0 auto 32px;
  max-width: 28em;
  color: #c5cedd;
  font-size: 1.18rem;
}

@media (max-width: 800px) {
  body.home .wrap { width: min(920px, calc(100vw - 28px)); }
  body.home .linkband { justify-content: flex-start; padding-left: 16px; padding-right: 16px; }
  body.home .hero { height: 78svh; min-height: 480px; }
  body.home .hero h1 { font-size: 2.35rem; }
  body.home .hero p { font-size: 1.05rem; }
  body.home .hero-copy { padding-bottom: 36px; }
  body.home .beat,
  body.home .close { margin-top: 88px; }
  body.home .beat h2,
  body.home .close h2 { font-size: 2.2rem; }
  body.home .say { font-size: 1.05rem; }
  body.home .shot { margin-top: 28px; }
  body.home .price-list { grid-template-columns: 1fr; gap: 36px; }
  body.home .device-list li { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  body.home .pack-lines { flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hero-copy { animation: none; }
  .script-bar svg { animation: none; }
}

body.home .wrap {
  width: min(1120px, calc(100vw - 40px));
}

body.home .hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 28px 0 8px;
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) 1.22fr;
  grid-template-areas:
    "copy stage"
    "script script";
  gap: 18px 32px;
  align-items: center;
  overflow: visible;
  background: transparent;
}

body.home .hero-copy {
  grid-area: copy;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

body.home .hero h1 {
  margin: 0 0 14px;
  max-width: 11em;
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  text-align: left;
}

body.home .hero p {
  margin: 0;
  max-width: 22em;
  text-align: left;
  font-size: 1.12rem;
}

body.home .hero-actions { justify-content: flex-start; }

@media (max-width: 720px) {
  body.home .hero-actions .btn {
    padding: 11px 16px;
    font-size: 0.95rem;
  }
}

.hero-stage { grid-area: stage; }

.hero-products {
  grid-area: stage;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.hero-product {
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}
.hero-product h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
body.home .hero-product p {
  margin: 0 0 14px;
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #b7c0d0;
  text-align: left;
}
.hero-product .web-pink { color: #ff69b4; }
.hero-product-desktop {
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.14), rgba(255, 255, 255, 0.03) 55%);
}
.hero-product-web {
  background: linear-gradient(160deg, rgba(255, 105, 180, 0.2), rgba(255, 255, 255, 0.03) 58%);
}
a.hero-web-btn {
  background: #ff4d9a;
  color: #1a0610;
  border: 0;
  font-weight: 800;
}
a.hero-web-btn:hover { filter: brightness(1.06); }
body.home .hero-discover { margin-top: 18px; }
body.home .hero-discover a {
  color: #9aa3b5;
  font-weight: 600;
  text-decoration: none;
}
body.home .hero-discover a:hover { color: #fff; }

/* Home: vidéo présentation (enchaînement captures) à la place du carrousel d’images. */
body.home .hero-stage video.hero-presentation {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #0c0a12;
}

/* Home pairs / hero : ne pas rogner captures — box suit le média (comme /appareils). */
body.home .glass-media {
  overflow: hidden;
  line-height: 0;
  background: #0c0a12;
}

body.home .glass-media img,
body.home .glass-media video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #0c0a12;
}

/* Portrait (Edge Cam, etc.) : box étroite centrée. */
body.home .glass-media.glass-media--portrait {
  max-width: min(100%, 320px);
  width: 100%;
  justify-self: center;
}

body.home .glass-media.glass-media--portrait img,
body.home .glass-media.glass-media--portrait video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}

.hero-slides {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0c0a12;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero-slide.is-on { opacity: 1; }

.script-bar {
  grid-area: script;
  position: relative;
  height: 74px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.28)),
    #120e1c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 32px rgba(0, 0, 0, 0.32);
}

.script-bar svg {
  width: 200%;
  height: 100%;
  display: block;
  animation: script-run 16s linear infinite;
}

.script-bar path {
  fill: none;
  stroke: url(#scriptStroke);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.script-playhead {
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px #fff;
}

@keyframes script-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.glass-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.glass-media img,
.glass-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: #0c0a12;
}

.clip-label {
  margin: 0;
  padding: 8px 14px 11px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d5deea;
}

body.home .pair {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  margin: 22px 0;
  padding: 16px;
  border-radius: 24px;
  text-align: left;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 105, 180, 0.05) 42%, rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

body.home .pair.flip .glass-media { order: -1; }

body.home .pair h2 {
  margin: 0 0 12px;
  max-width: 12em;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  text-align: left;
}

body.home .pair .say {
  margin: 0;
  max-width: 38rem;
  text-align: left;
  font-size: 1.05rem;
}

body.home .pair .pair-quote {
  margin: 14px 0 0;
  max-width: 38rem;
  text-align: left;
  font-size: 1.02rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

body.home .pair .pair-quote em {
  font-style: italic;
  font-weight: 400;
}

body.home .beat.devices {
  margin-top: 42px;
  text-align: left;
}

body.home .beat.devices h2,
body.home .beat.devices .say {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

body.home .device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: none;
  margin-top: 22px;
}

body.home .device-list li {
  display: block;
  padding: 16px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.22);
}

body.home .device-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

body.home .device-list strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
body.home .device-list span { display: block; font-size: 0.95rem; }

.more-block {
  margin: 36px 0;
  text-align: left;
}

.more-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.more-grid article {
  padding: 16px 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.more-grid p {
  margin: 0;
  color: #b7c0d0;
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  body.home .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "stage" "script";
    height: auto;
    min-height: 0;
  }
  body.home .hero h1 { font-size: 2.1rem; }
  body.home .pair { grid-template-columns: 1fr; }
  body.home .pair.flip .glass-media { order: 0; }
}


/* Broadcasts / nouveautés (admin managed) */
.site-broadcast {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.1);
  color: #e8ecf4;
  font-size: 0.95rem;
}
.site-broadcast.sev-warning { border-color: rgba(251,191,36,0.45); background: rgba(251,191,36,0.1); }
.site-broadcast.sev-critical { border-color: rgba(255,92,122,0.5); background: rgba(255,92,122,0.12); }
.site-broadcast.sev-success { border-color: rgba(61,214,140,0.45); background: rgba(61,214,140,0.1); }
.site-broadcast a { color: var(--cyan); margin-left: 8px; text-decoration: underline; }
.news-block { margin: 48px 0 24px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.news-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(21,16,32,0.72);
}
.news-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.news-card p { margin: 0 0 12px; color: #b7c0d0; font-size: 0.92rem; }
.news-card .news-media {
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}
.news-card .news-media img,
.news-card .news-media video {
  display: block;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}


/* Affiliation */
.affiliate-card { margin: 1.25rem 0 1.75rem; }
.affiliate-link-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0.75rem 0; }
.affiliate-link-row input {
  flex: 1 1 220px; min-width: 0; padding: 0.65rem 0.8rem;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35); color: var(--text, #eee); font-size: 0.9rem;
}
.affiliate-stats {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; list-style: none;
  padding: 0; margin: 0.75rem 0 0.5rem; font-size: 0.9rem; color: var(--muted, #9aa);
}
.affiliate-stats strong { color: var(--cyan, #5ee); display: block; font-size: 1.15rem; }
.affiliate-schedule { margin-top: 0.75rem; font-size: 0.88rem; color: var(--muted, #9aa); }
.affiliate-schedule ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.ref-toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 80; max-width: min(92vw, 420px); padding: 0.75rem 1.1rem;
  border-radius: 12px; background: rgba(12, 24, 36, 0.95);
  border: 1px solid rgba(94, 220, 238, 0.35); color: #dff; font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.ref-toast.is-on { opacity: 1; }

/* Language switcher — top-right in nav */
.lang-switch { position: relative; margin-left: 4px; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #e8eaf0; font: inherit; font-size: 0.85rem; cursor: pointer;
}
.lang-switch-btn:hover { background: rgba(0,212,255,0.1); border-color: rgba(0,212,255,0.35); }
.lang-switch-code { font-weight: 700; letter-spacing: 0.04em; }
.lang-switch-caret { opacity: 0.7; font-size: 0.75rem; }
.lang-switch-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 148px; padding: 6px;
  border-radius: 12px;
  background: #15101f;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  z-index: 40;
}
.lang-switch-menu[hidden] { display: none !important; }
.lang-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 8px;
  color: #c5cad6 !important; background: transparent !important;
  font-size: 0.88rem;
}
.lang-opt:hover { color: #fff !important; background: rgba(255,255,255,0.06) !important; }
.lang-opt.is-on { color: var(--cyan) !important; }

/* Privacy / cookies — 2026-10-22
   Callers: inscription (auth.comms), cookies banner.
   User: « c'est mal affiché » — checkbox héritait width:100% des inputs. */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: checkbox;
}
.check-row input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px var(--cyan-dim);
  border-color: var(--cyan);
}
.check-row span {
  flex: 1 1 auto;
  min-width: 0;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
/* Honeypot anti-bot — hors écran, pas display:none (certains bots le détectent). */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.turnstile-wrap {
  margin: 12px 0 4px;
  min-height: 65px;
}
.privacy-card .privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.privacy-card .delete-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.btn.danger,
.btn.ghost.danger {
  border-color: rgba(255, 90, 120, 0.45);
  color: #ff8aa3;
}
.btn.primary.danger {
  background: linear-gradient(115deg, #ff5a78, #ff8aa3);
  color: #1a0410;
  border: none;
}
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(18, 16, 28, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
  color: #c5cedd;
  font-size: 0.9rem;
  line-height: 1.45;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}


/* Callers: web.page_telecharger .dl-smart. User: SmartScreen note sans captures Windows. */
body.download .dl-smart {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px 28px;
  align-items: start;
  margin: 28px 0 8px;
  padding: 22px 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(18, 28, 44, 0.95), rgba(12, 16, 26, 0.92));
}
body.download .dl-smart-copy h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.download .dl-smart-lead {
  margin: 0 0 16px;
  max-width: 40rem;
  color: rgba(232, 244, 255, 0.78);
  line-height: 1.55;
  font-size: 0.95rem;
}
body.download .dl-smart-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
body.download .dl-smart-steps li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
body.download .dl-smart-steps strong {
  font-size: 0.92rem;
  color: #e8f4ff;
}
body.download .dl-smart-steps span {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(232, 244, 255, 0.72);
}
body.download .dl-smart-sub {
  margin: 4px 0 10px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
body.download .dl-smart-copy .dl-smart-steps + .dl-smart-sub {
  margin-top: 18px;
}
body.download .smart-edge {
  margin: 0 0 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #f7f8fa;
  color: #1a2332;
  padding: 14px 16px 12px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}
body.download .smart-edge-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
body.download .smart-edge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dd6b20;
  flex: 0 0 auto;
}
body.download .smart-edge-name {
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
body.download .smart-edge-body {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #3d4a5c;
}
body.download .smart-edge-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
body.download .smart-edge-second {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px dashed rgba(45, 55, 72, 0.18);
}
body.download .dl-smart-mock .smart-dialog {
  margin-top: 14px;
}
body.download .dl-smart-alt,
body.download .dl-smart-mac {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(232, 244, 255, 0.7);
}
body.download .dl-smart-alt strong,
body.download .dl-smart-mac strong {
  color: var(--cyan);
  font-weight: 700;
}
body.download .dl-smart-mock {
  margin: 0;
}
body.download .smart-dialog {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #f3f6fb;
  color: #1a2332;
  padding: 0 0 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
body.download .smart-dialog-bar {
  height: 8px;
  background: linear-gradient(90deg, #2b6cb0, #4299e1);
}
body.download .smart-dialog-icon {
  width: 36px;
  height: 36px;
  margin: 16px 18px 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: #dd6b20;
}
body.download .smart-dialog-title {
  margin: 0 18px 8px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
body.download .smart-dialog-body {
  margin: 0 18px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #3d4a5c;
}
body.download .smart-dialog-more {
  margin: 0 18px 14px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #2b6cb0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.download .smart-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px;
}
body.download .smart-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
body.download .smart-chip.ghost {
  color: #2b6cb0;
  background: transparent;
}
body.download .smart-chip.primary {
  color: #fff;
  background: #2b6cb0;
}
body.download .dl-smart-caption {
  margin: 10px 2px 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(232, 244, 255, 0.55);
}

/* Callers: page_myhapstim_web. API: none. Schema: none.
   User: « deux beaux boutons… tableau… captures ». */
.mhsweb-open {
  margin: 22px 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b5;
}
.mhsweb-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin: 0 0 8px;
}
.mhsweb-go {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
.mhsweb-go-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b5;
}
.mhsweb-go-name {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.mhsweb-go-web .mhsweb-go-name { color: #ff4d9a; }
.mhsweb-go-studio .mhsweb-go-name { color: #fff; font-size: 1.25rem; font-weight: 700; }
.mhsweb-go:hover .mhsweb-go-name { text-decoration: underline; text-underline-offset: 5px; }
.mhsweb .mhs-my { color: #fff; }
.mhsweb .mhs-hap { color: #00d4ff; }
.mhsweb .web-pink { color: #ff69b4; }
.mhsweb-launch .mhs-my { color: #fff; font-weight: 500; }
.mhsweb-launch .mhs-hap { color: #00d4ff; }
.mhsweb-launch .web-pink { color: #ff69b4; }
.mhsweb-launch .mhs-studio { color: #fff; }
.mhsweb-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.offer-web h3 { color: #ff69b4; }
.mhsweb-note { color: var(--muted); max-width: 68ch; }
.mhsweb-block { margin-top: 36px; }
.mhsweb-block h2 { margin-bottom: 8px; }
.mhsweb-shot { margin: 16px 0 0; }
.mhsweb-shot-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 105, 180, 0.45);
  background:
    radial-gradient(600px 180px at 20% 0%, rgba(122, 215, 255, 0.12), transparent 60%),
    rgba(12, 10, 18, 0.65);
  color: #ff69b4;
  font-weight: 700;
}
.mhsweb-shot figcaption { margin-top: 8px; color: var(--muted); font-size: 0.88rem; }
.mhsweb-warn {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 105, 180, 0.45);
  background: rgba(255, 105, 180, 0.08);
  font-weight: 650;
}
.mhsweb td, .mhsweb th { white-space: normal; }
.mhsweb .mhsweb-price { color: #ff69b4; }
@media (max-width: 860px) {
  body.download .dl-smart {
    grid-template-columns: 1fr;
  }
}
