/* ═══════════════════════════════════════════════════════════════
   StreamLoaders — style.css
   ═══════════════════════════════════════════════════════════════ */

/* POLICIES */

/* vietnamese */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/bricolage_grotesque_vietnamese.woff2) format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/bricolage_grotesque_latin_ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/bricolage_grotesque_latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/instrument_sans_latin_ext.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/instrument_sans_latin.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ─── Reset ────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ─── Tokens ───────────────────────────────────────────────────── */
:root {
  --font-sans:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display:
    "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-mono:
    ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas,
    monospace;

  --bg: #f6f5f1;
  --surface: #ffffff;
  --bg-2: #efede7;
  --bg-3: #e4e1d9;
  --text: #17171a;
  --text-dim: #4b4a52;
  --text-muted: #6e6c75;
  --border: #e2dfd7;
  --border-2: #cfcbc1;
  --accent: #7b5ff5;
  --accent-ink: #5a40d0;
  --accent-soft: #eeeafe;
  --success: #1e7f49;
  --success-soft: #e2f1e7;
  --error: #c42b3a;
  --error-soft: #f9e2e4;
  --header-bg: rgba(246, 245, 241, 0.86);
  --shadow-sm: 0 1px 2px rgba(23, 23, 26, 0.06);
  --shadow-md:
    0 1px 2px rgba(23, 23, 26, 0.05), 0 12px 32px -16px rgba(23, 23, 26, 0.2);
  --shadow-lg:
    0 2px 6px rgba(23, 23, 26, 0.06), 0 32px 64px -24px rgba(23, 23, 26, 0.32);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --container: 1120px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #212125;
  --surface: #2a2a2f;
  --bg-2: #313137;
  --bg-3: #3c3c43;
  --text: #f1f0ec;
  --text-dim: #c4c2c9;
  --text-muted: #9d9ba6;
  --border: #38383f;
  --border-2: #4a4a53;
  --accent: #8f7af8;
  --accent-ink: #b5a7ff;
  --accent-soft: rgba(143, 122, 248, 0.18);
  --success: #52c487;
  --success-soft: rgba(82, 196, 135, 0.13);
  --error: #f2646f;
  --error-soft: rgba(242, 100, 111, 0.13);
  --header-bg: rgba(33, 33, 37, 0.86);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:
    0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px -16px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 32px 72px -20px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #212125;
    --surface: #2a2a2f;
    --bg-2: #313137;
    --bg-3: #3c3c43;
    --text: #f1f0ec;
    --text-dim: #c4c2c9;
    --text-muted: #9d9ba6;
    --border: #38383f;
    --border-2: #4a4a53;
    --accent: #8f7af8;
    --accent-ink: #b5a7ff;
    --accent-soft: rgba(143, 122, 248, 0.18);
    --success: #52c487;
    --success-soft: rgba(82, 196, 135, 0.13);
    --error: #f2646f;
    --error-soft: rgba(242, 100, 111, 0.13);
    --header-bg: rgba(33, 33, 37, 0.86);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md:
      0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 36px -16px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 32px 72px -20px rgba(0, 0, 0, 0.75);
    color-scheme: dark;
  }
}

/* ─── Base ─────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--accent-soft);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a {
  color: inherit;
}

@media (max-width: 768px) {
  .url-widget input,
  .field-input,
  .subtitle-lang-select,
  .trim-field input,
  #premCountryPicker {
    font-size: 16px;
  }
}

/* ─── Marque ───────────────────────────────────────────────────── */
.brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}

/* ─── Navigation ───────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  transition:
    color 0.15s,
    background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-icon-btn {
  height: 36px;
  min-width: 36px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-icon-btn:hover {
  background: var(--bg-2);
  color: var(--text);
}
.nav-icon-btn svg {
  width: 17px;
  height: 17px;
}
.nav-cta {
  height: 36px;
  padding: 0 16px;
  margin-inline-start: 6px;
  display: inline-flex;
  align-items: center;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}
.nav-cta:hover {
  opacity: 0.86;
}
.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-inline-start: 6px;
  padding: 0 12px 0 4px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
  max-width: 220px;
}
.nav-user-chip:hover {
  border-color: var(--text-muted);
}
.nav-user-chip #navEmail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.plan-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 520px) {
  .nav-inner {
    padding: 0 16px;
    gap: 12px;
  }
  .nav-icon-btn .lang-ico {
    display: none;
  }
  .nav-cta {
    padding: 0 13px;
  }
  .nav-user-chip #navEmail {
    display: none;
  }
}
@media (max-width: 360px) {
  .nav-logo .nav-wordmark {
    display: none;
  }
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 88px;
  text-align: center;
}
.hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hero-title span {
  display: block;
}
.hero-title .hl-2 {
  color: var(--text-muted);
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}
@media (max-width: 640px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero-inner {
    padding: 0 18px;
  }
}

/* ─── Champ URL ────────────────────────────────────────────────── */
.url-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  padding: 7px 7px 7px 16px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.url-widget:focus-within {
  border-color: var(--text-muted);
  box-shadow:
    var(--shadow-md),
    0 0 0 4px var(--accent-soft);
}
.url-ico {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.url-widget input {
  flex: 1;
  min-width: 0;
  height: 44px;
  background: none;
  border: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
}
.url-widget input::placeholder {
  color: var(--text-muted);
}
.btn-analyze {
  height: 44px;
  padding: 0 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-analyze:hover:not(:disabled) {
  opacity: 0.86;
}
.btn-analyze:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-analyze svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 520px) {
  .url-widget {
    flex-wrap: wrap;
    padding: 8px 8px 8px 14px;
  }
  .url-widget input {
    flex-basis: calc(100% - 40px);
  }
  .btn-analyze {
    width: 100%;
  }
}

.site-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.site-chips-label {
  font-weight: 500;
}
.site-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--text-dim);
}
.site-chip svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.site-chip.more {
  color: var(--text-muted);
}
.url-disclaimer {
  max-width: 520px;
  margin: 16px auto 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Messages d'état ──────────────────────────────────────────── */
#status-area {
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
}
.status-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.2s ease;
}
.status-msg svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
}
.status-info {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-dim);
}
.status-success {
  background: var(--success-soft);
  color: var(--success);
}
.status-error {
  background: var(--error-soft);
  color: var(--error);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Fiche vidéo ──────────────────────────────────────────────── */
.video-card {
  display: none;
  max-width: 640px;
  margin: 16px auto 0;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
}
.video-card.show {
  display: block;
}
.vc-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.video-thumb-wrap {
  position: relative;
  width: 184px;
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
}
.video-thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.video-thumb-placeholder svg {
  width: 28px;
  height: 28px;
}
.thumb-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.vc-head-info {
  flex: 1;
  min-width: 0;
}
.vc-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
}
.meta-chip svg {
  width: 13px;
  height: 13px;
}
.video-card-body {
  padding: 16px;
}
@media (max-width: 560px) {
  .vc-head {
    flex-direction: column;
  }
  .video-thumb-wrap {
    width: 100%;
  }
}

/* Formats */
.fmt-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.fmt-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
@media (max-width: 520px) {
  .fmt-presets {
    grid-template-columns: 1fr;
  }
}
.fmt-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  padding-inline-end: 40px;
  text-align: start;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.fmt-card:hover {
  border-color: var(--text-muted);
}
.fmt-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.fmt-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  margin-top: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border-2);
  background: var(--surface);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
.fmt-card.sel {
  border-color: var(--accent);
  background: var(--surface);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.fmt-card.sel::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.fmt-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  color: var(--text-dim);
  transition:
    color 0.15s,
    background 0.15s;
}
.fmt-icon svg {
  width: 17px;
  height: 17px;
}
.fmt-card.sel .fmt-icon {
  background: var(--surface);
  color: var(--accent-ink);
}
.fmt-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.fmt-t {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.fmt-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.fmt-badge-prem {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--accent-ink);
  border: 1px solid currentColor;
  padding: 0 6px;
  border-radius: 999px;
}
.fmt-card.locked {
  background: var(--bg-2);
  border-style: dashed;
}
.fmt-card.locked .fmt-icon {
  background: var(--surface);
}

/* Options : sous-titres et découpage */
.subtitle-opts,
.trim-opts {
  display: block;
  margin: 0 0 10px;
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.subtitle-toggle,
.trim-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}
.subtitle-toggle input,
.trim-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.subtitle-switch,
.trim-switch {
  position: relative;
  width: 34px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--bg-3);
  transition: background 0.15s;
}
.subtitle-switch::after,
.trim-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.subtitle-toggle input:checked + .subtitle-switch,
.trim-toggle input:checked + .trim-switch {
  background: var(--accent);
}
.subtitle-toggle input:checked + .subtitle-switch::after,
.trim-toggle input:checked + .trim-switch::after {
  transform: translateX(14px);
}
.subtitle-toggle input:focus-visible + .subtitle-switch,
.trim-toggle input:focus-visible + .trim-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.subtitle-toggle-label,
.trim-toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.subtitle-lang-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.subtitle-lang-label,
.trim-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
}
.subtitle-lang-select,
.trim-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.subtitle-lang-select {
  cursor: pointer;
}
.subtitle-lang-select:focus,
.trim-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.subtitle-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.trim-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.trim-toggle.locked {
  cursor: not-allowed;
  opacity: 0.55;
}
.trim-trials-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-2);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.trim-trials-badge.limit-reached {
  color: var(--error);
  background: var(--error-soft);
}
.trim-fields-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    margin-top 0.25s ease;
}
.trim-fields-wrap.open {
  max-height: 140px;
  opacity: 1;
  margin-top: 12px;
}
.trim-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 480px) {
  .trim-fields-wrap {
    grid-template-columns: 1fr;
  }
  .trim-fields-wrap.open {
    max-height: 220px;
  }
}

/* Actions & progression */
.action-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-dl {
  flex: 1;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-dl:hover:not(:disabled) {
  opacity: 0.86;
}
.btn-dl:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-dl svg {
  width: 17px;
  height: 17px;
}
.btn-watch {
  height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-watch:hover {
  background: var(--bg-2);
}
.btn-watch svg {
  width: 15px;
  height: 15px;
}
#simBtn {
  border-style: dashed;
}

.progress-wrap {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.progress-wrap.show {
  display: block;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.progress-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}
.progress-track {
  height: 6px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.progress-details > div {
  display: flex;
  gap: 14px;
}

/* ─── Sections ─────────────────────────────────────────────────── */
.section {
  padding: 104px 0;
  border-top: 1px solid var(--border);
}
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 72px;
  align-items: end;
  margin-bottom: 56px;
}
.sec-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.sec-title span {
  display: block;
}
.sec-title .hl-2 {
  color: var(--text-muted);
}
.sec-sub {
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 480px;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  .sec-head {
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }
  .section-inner {
    padding: 0 18px;
  }
}

/* Fonctionnalités */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.feat-card {
  padding: 28px 0 32px;
  border-top: 1px solid var(--border);
}
.feat-icon {
  width: 22px;
  height: 22px;
  color: var(--text);
  margin-bottom: 20px;
}
.feat-icon svg {
  width: 22px;
  height: 22px;
}
.feat-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.feat-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 36ch;
}
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}

/* Étapes */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 32px;
}
.step-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 34ch;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .step-num {
    margin-bottom: 16px;
  }
}

/* Tarifs */
.is-premium #pricing,
.is-premium a[href="#pricing"] {
  display: none;
}
.pricing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr);
  gap: 36px 56px;
  align-items: start;
}
.pricing-intro .sec-title {
  font-size: clamp(28px, 3.1vw, 38px);
}
.pricing-intro .sec-sub {
  margin-top: 16px;
  font-size: 15.5px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px) {
  .pricing-layout {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    max-width: 680px;
  }
}
@media (max-width: 620px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.price-badge {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.price-num {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 7px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  white-space: nowrap;
}
.price-unit {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}
.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 18px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text-dim);
}
.price-features li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}
.plan-card .btn-price {
  margin-top: auto;
}
.price-card .btn-price {
  min-height: 42px;
  font-size: 14.5px;
}
.price-card.pro {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.price-card.pro .price-unit,
.price-card.pro .price-period,
.price-card.pro .price-features li {
  color: var(--bg);
  opacity: 0.78;
}
.price-card.pro .price-features {
  border-top-color: rgba(127, 127, 127, 0.28);
}
.price-card.pro .price-features li svg {
  color: var(--accent);
}
.btn-price {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    opacity 0.15s,
    background 0.15s;
}
.btn-price.outline {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-price.outline:hover {
  background: var(--bg-2);
}
.btn-price.filled {
  background: var(--bg);
  color: var(--text);
}
.btn-price.filled:hover {
  opacity: 0.9;
}
.btn-price.btn-sm {
  min-height: 38px;
  font-size: 13.5px;
}
.btn-price.danger {
  color: var(--error);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 40px 80px;
  align-items: start;
}
.faq-layout .sec-sub {
  margin-top: 16px;
}
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-inline-end: 4px;
  border-right: 1.6px solid var(--text-muted);
  border-bottom: 1.6px solid var(--text-muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq-item p {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 64ch;
}
@media (max-width: 860px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

/* ─── Pied de page ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: 35px 28px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 34ch;
  margin: 16px 0 20px;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.social-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  color: var(--text-dim);
  transition:
    color 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.social-icon-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--surface);
}
.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.footer-col h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  width: fit-content;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    padding: 48px 18px 24px;
  }
}

/* ─── Motifs flottants en arrière-plan ─────────────────────────── */
.bg-motifs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-motifs-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  will-change: transform;
}
.motif {
  position: absolute;
  width: var(--s, 80px);
  height: auto;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.24;
  filter: blur(1.2px);
  animation: motifFloat var(--d, 10s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.motif.far {
  opacity: 0.15;
  filter: blur(3px);
}
@keyframes motifFloat {
  from {
    transform: translateY(0) rotate(var(--r, 0deg)) scale(1);
  }
  to {
    transform: translateY(-26px) rotate(calc(var(--r, 0deg) + 10deg))
      scale(1.05);
  }
}
[data-theme="dark"] .motif {
  opacity: 0.3;
}
[data-theme="dark"] .motif.far {
  opacity: 0.19;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .motif {
    opacity: 0.3;
  }
  :root:not([data-theme="light"]) .motif.far {
    opacity: 0.19;
  }
}
@media (max-width: 720px) {
  .motif {
    width: calc(var(--s, 80px) * 0.62);
    opacity: 0.16;
  }
  .motif.far {
    opacity: 0.11;
  }
  .motif.m-hide {
    display: none;
  }
  [data-theme="dark"] .motif {
    opacity: 0.22;
  }
  [data-theme="dark"] .motif.far {
    opacity: 0.15;
  }
}
@media (max-width: 720px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .motif {
    opacity: 0.22;
  }
  :root:not([data-theme="light"]) .motif.far {
    opacity: 0.15;
  }
}

/* ─── Apparition au défilement ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ─── Indicateur de chargement ─────────────────────────────────── */
.spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0.8;
  animation: rot 0.7s linear infinite;
}
@keyframes rot {
  to {
    transform: rotate(360deg);
  }
}

/* ─── Fenêtres (connexion, Premium, compte) ────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 15, 14, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform 0.2s;
}
.modal-backdrop.open .modal {
  transform: none;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  cursor: pointer;
}
.modal-close:hover {
  background: var(--bg-2);
  color: var(--text);
}
.modal-close svg {
  width: 16px;
  height: 16px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 6px;
  padding-right: 36px;
}
.modal-sub {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

/* ─── Page d'arrivée depuis Telegram ─────────────────────────── */
.telegram-offer-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: var(--bg);
}
.telegram-offer-shell {
  width: min(100%, 680px);
}
.telegram-offer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}
.telegram-offer-brand img {
  border-radius: 12px;
}
.telegram-offer-card {
  padding: clamp(28px, 6vw, 52px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.telegram-offer-icon,
.telegram-offer-result-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}
.telegram-offer-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.telegram-offer-card h1 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.08;
}
.telegram-offer-card > p:not(.telegram-offer-kicker) {
  margin: 0 auto 28px;
  color: var(--text-dim);
  font-size: 16px;
}
.telegram-ad-slot {
  min-height: 22px;
  margin: 18px auto;
  overflow: hidden;
}
.telegram-offer-home {
  display: inline-flex;
  width: auto;
  margin-top: 12px;
  padding-inline: 24px;
  text-decoration: none;
}
.telegram-offer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 15, 14, .58);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.telegram-offer-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.telegram-offer-modal {
  width: min(100%, 430px);
  padding: 34px 28px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.telegram-offer-result-icon.success {
  background: #16835d;
}
.telegram-offer-result-icon.error {
  background: #b94a48;
}
.telegram-offer-modal h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 26px;
}
.telegram-offer-modal p:not(.telegram-offer-kicker) {
  margin: 0 0 24px;
  color: var(--text-dim);
  line-height: 1.55;
}
.telegram-offer-modal .btn-submit {
  width: 100%;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 20px;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.auth-tab {
  height: 36px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.field-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Champ mot de passe avec bouton œil */
.pwd-field {
  position: relative;
}
.pwd-field .field-input {
  padding-inline-end: 46px;
}
.pwd-toggle {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
}
.pwd-toggle:hover {
  color: var(--text);
}
.pwd-toggle svg {
  width: 18px;
  height: 18px;
}
.pwd-toggle .eye-off {
  display: none;
}
.pwd-toggle[aria-pressed="true"] .eye-on {
  display: none;
}
.pwd-toggle[aria-pressed="true"] .eye-off {
  display: block;
}

.btn-submit {
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-submit:hover {
  opacity: 0.86;
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.auth-error {
  display: none;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--error);
}
.auth-success {
  display: none;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--success);
}
.link-btn {
  margin-inline-start: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Premium */
.prem-modal-header {
  margin-bottom: 20px;
}
.prem-kicker {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-ink);
  margin-bottom: 8px;
}
.prem-price-tag {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.prem-price-tag .fcfa {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
}
.prem-price-tag .approx {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.prem-price-sub {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
}
.prem-geo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
#premGeoIndicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#premGeoFlag img {
  border-radius: 2px;
}
#premGeoFixBtn {
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#premCountryPicker {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
}

/* Choix durée Premium */
.plan-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding-top: 10px;
}
.plan-switcher button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 12px 4px 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}
.plan-switcher button:hover {
  border-color: var(--text-muted);
}
.plan-switcher button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--surface);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
.plan-name {
  font-size: 14.5px;
  font-weight: 600;
}
.plan-permonth {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
}
.plan-permonth span {
  white-space: nowrap;
}
.plan-save {
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
}
.plan-flag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  background: #5a40d0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Avantages Premium */
.prem-benefits-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.prem-benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.prem-check-icon {
  display: flex;
  flex-shrink: 0;
  color: var(--success);
}
.prem-check-icon svg {
  width: 16px;
  height: 16px;
}

/* Bloc invité / connecté */
.prem-guest-box {
  padding: 14px;
  margin-bottom: 16px;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.prem-guest-txt {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.prem-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-prem-register,
.btn-prem-login {
  flex: 1 1 130px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.btn-prem-register {
  background: var(--text);
  color: var(--bg);
  border: none;
  font-weight: 600;
}
.btn-prem-login {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-2);
  font-weight: 500;
}
.prem-logged-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-dim);
}
.prem-logged-box strong {
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
.prem-ready {
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

/* Case CGV */
.prem-cgv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.prem-cgv-check input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--text);
  cursor: pointer;
}
.prem-cgv-check a {
  color: var(--text);
  text-underline-offset: 2px;
}

/* Bouton payer + réassurance */
.btn-prem-pay {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-prem-pay:hover:not(:disabled) {
  opacity: 0.88;
}
.btn-prem-pay:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-prem-pay svg {
  width: 18px;
  height: 18px;
}
.prem-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.prem-security-badge svg {
  width: 14px;
  height: 14px;
}

/* Profil */
.profile-info {
  margin-bottom: 20px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.profile-row:first-child {
  border-top: 1px solid var(--border);
}
.profile-row > span:first-child {
  color: var(--text-muted);
}
.profile-row > span:last-child {
  font-weight: 600;
  color: var(--text);
  text-align: end;
  word-break: break-all;
}
.profile-since {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Box clé API */
.api-box {
  display: none;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.api-box-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.api-box p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.api-box p a {
  color: var(--text);
}
.api-key {
  display: block;
  word-break: break-all;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
}
.btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.btn-row:last-child {
  margin-bottom: 0;
}
.btn-row .btn-price {
  flex: 1;
}
.api-note {
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
}

/* ─── Réduction des animations ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .motif {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   StreamLoaders — PWA uniquement : bannière d'installation + modale iOS.
   Aligné sur les tokens et la typographie de style.css.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Bannière d'installation (Android / Chrome) ──────────────── */

#adsterra-display-728x90 {
  min-height: 90px;
}
@media (max-width: 760px) {
  #adsterra-display-728x90 {
    display: none;
  }
}
@media (max-width: 720px) {
  .motif {
    filter: none;
    animation: none;
  }
}

.pwa-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translate(-50%, 140%);
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 24px), 480px);
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.pwa-banner.show {
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.pwa-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pwa-banner-text strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.pwa-banner-text span {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.3;
}
.pwa-btn-install {
  height: 36px;
  padding: 0 16px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.pwa-btn-install:hover {
  opacity: 0.86;
}
.pwa-btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  font-family: inherit;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  transition:
    background 0.15s,
    color 0.15s;
}
.pwa-btn-close:hover {
  background: var(--bg-2);
  color: var(--text);
}
@media (max-width: 480px) {
  .pwa-banner-text span {
    display: none;
  } /* on ne garde que le titre sur petit écran */
}

/* ─── Modale d'installation iOS ───────────────────────────────── */
.pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(15, 15, 14, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pwa-modal.show {
  opacity: 1;
  pointer-events: all;
}
.pwa-modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pwa-modal.show .pwa-modal-card {
  transform: translateY(0);
}
.pwa-ios-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 0 auto 16px;
}
.pwa-modal-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}
.pwa-modal-card p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.pwa-modal-card ol {
  text-align: start;
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  padding-inline-start: 22px;
  margin-bottom: 22px;
}
.pwa-modal-card ol li {
  padding-inline-start: 4px;
}
.pwa-modal-card ol strong {
  font-weight: 600;
  color: var(--text);
}
.pwa-modal-card ol svg {
  vertical-align: middle;
  margin: 0 3px;
  color: var(--accent-ink);
}
.pwa-btn-close-ios {
  width: 100%;
  height: 46px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pwa-btn-close-ios:hover {
  opacity: 0.86;
}

/* ─── RTL (arabe) : garder les numéros de liste bien alignés ─── */
[dir="rtl"] .pwa-modal-card ol {
  padding-inline-start: 0;
  padding-inline-end: 22px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════════
   StreamLoaders — BUILD GENERIQUE : styles communs aux pages plateformes (FAQ, CGU, etc.)
   ═══════════════════════════════════════════════════════════════ */

/* Pages plateformes */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb span:not(:last-child) {
  display: block;
  margin-top: 6px;
  padding-inline-start: 4px;
}

.prose-title {
  margin-bottom: 24px;
}
.prose {
  max-width: 720px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.75;
}
.prose p {
  margin-bottom: 16px;
}
.prose ul {
  padding-inline-start: 22px;
}
.prose li {
  margin-bottom: 10px;
}

.feat-title a {
  text-decoration: none;
}
.feat-title a:hover {
  text-decoration: underline;
}
