/* =========================================================
   Prime-Xe — feuille de style partagée
   Thème : noir profond, titres or/beige, boutons dégradé bleu → cyan
   (calqué sur les captures d'écran fournies)
   ========================================================= */

/* ---------- 1. Jetons de design ---------- */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #161616;
  --line: #2a2a2a;
  --line-soft: #1e1e1e;
  --text: #ffffff;
  --muted: #d6d6d6;
  --dim: #9b9b9b;
  --gold-a: #ecdfc4;          /* haut du dégradé des titres */
  --gold-b: #b39a6a;          /* bas du dégradé des titres */
  --gold: #c9ab7a;            /* lien actif / icônes */
  --icon-bg: #3a3028;         /* pastilles d'icônes brunes */
  --blue: #0a8af3;
  --cyan: #46c8cf;
  --check: #1b8df0;
  --radius: 12px;
  --container: 1280px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --header-h: 104px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1160px; }
.section { padding: 110px 0; }
.section--tight { padding: 70px 0; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Titres dégradé or/beige */
.gold {
  background: linear-gradient(180deg, var(--gold-a) 0%, var(--gold-b) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-display { font-size: clamp(36px, 5.2vw, 62px); font-weight: 400; }
.h-section { font-size: clamp(30px, 4vw, 46px); font-weight: 400; line-height: 1.12; }
.h-split { font-size: clamp(24px, 2.6vw, 42px); font-weight: 500; line-height: 1.25; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 520px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Pastille "badge" au-dessus des titres */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #3b3b3b;
  border-radius: 999px;
  background: #0b0b0b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ---------- 3. Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px;
  border: 0; border-radius: 6px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff; font: 700 14px/1 var(--font);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(10, 138, 243, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 34px rgba(70, 200, 207, .35); }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn svg { width: 14px; height: 14px; }

/* Bouton contour blanc (cartes de comptes) */
.btn-outline {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 13px 18px;
  border: 1px solid #fff; border-radius: 7px;
  background: #000; color: #fff;
  font: 700 14px/1 var(--font);
  box-shadow: 0 6px 22px rgba(255, 255, 255, .14);
  transition: background .2s, color .2s;
}
.btn-outline { white-space: nowrap; }
.btn-outline:hover { background: #fff; color: #000; }
@media (max-width: 1100px) { .plan { padding-left: 28px; padding-right: 28px; } }

/* ---------- 4. En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, height .3s ease, backdrop-filter .3s;
}
.site-header.is-scrolled { background: rgba(0, 0, 0, .82); backdrop-filter: blur(10px); height: 84px; border-bottom: 1px solid var(--line-soft); }
.header-inner { width: 100%; padding: 0 32px; display: flex; align-items: center; justify-content: flex-start; gap: 20px; }
.header-inner .nav-pill { margin: 0 auto; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 30px; width: auto; }
.logo .logo-text { display: none; font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.logo.img-missing img { display: none; }
.logo.img-missing .logo-text { display: inline; }

.nav-pill {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(8, 8, 8, .35);
  backdrop-filter: blur(6px);
}
.nav-pill a { font-size: 17px; font-weight: 700; white-space: nowrap; transition: color .2s; }
.nav-pill a:hover, .nav-pill a.active { color: var(--gold); }
.nav-pill .mobile-only { display: none; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: rgba(0,0,0,.4); cursor: pointer; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; margin: 4px auto; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sélecteur de langue FR | ES (inséré par le build avant le bouton menu) */
.site-header .lang-switch {
  flex-shrink: 0;
  padding: 9px 14px; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  background: rgba(8, 8, 8, .35); backdrop-filter: blur(6px);
  font: 800 14px/1 var(--font); letter-spacing: .06em; color: #fff;
}
.site-header .lang-switch a { opacity: .7; padding: 2px 2px 4px; transition: color .2s, opacity .2s; }
.site-header .lang-switch a:hover, .site-header .lang-switch a:focus-visible { opacity: 1; color: var(--gold); }
.site-header .lang-switch a[aria-current="true"] { opacity: 1; color: var(--gold); border-bottom-color: var(--gold); }
.site-header .lang-switch__sep { opacity: .35; }
.legal-lang-note { border-left-color: var(--gold) !important; background: rgba(201, 171, 122, .08) !important; color: var(--muted); margin: 0 0 28px !important; font-size: 14px !important; }
.legal-lang-note a { color: var(--gold); }

/* ---------- 5. Héros ---------- */
.hero {
  position: relative;
  min-height: 820px;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  background-color: #050505;
  background-size: cover; background-position: center;
}
/* Photo réelle (images/hero-*.jpg) puis repli sur l'illustration SVG */
.hero--home {
  background-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.5) 60%, #000 100%),
    url("images/hero-home.jpg"), url("images/hero-chart.svg");
}
.hero--home .hero-content { max-width: 650px; margin: 0 auto; text-align: center; }
.hero--home h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 700; margin-bottom: 26px; }
.hero--home p { color: #e8e8e8; font-size: 17px; line-height: 1.75; margin-bottom: 26px; }

.page-hero {
  position: relative;
  min-height: 430px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--header-h) + 30px) 0 60px;
  background: #050505 url("images/hero-chart.svg") center right / cover no-repeat;
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, #000); }
.page-hero > * { position: relative; z-index: 1; }
/* Photo d'origine par page (images/hero-*.jpg), repli sur l'illustration SVG */
.page-hero--about    { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("images/hero-about.jpg"), url("images/hero-chart.svg"); }
.page-hero--accounts { background-image: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.35)), url("images/hero-accounts.jpg"), url("images/hero-chart.svg"); }
.page-hero--faq      { background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), url("images/hero-faq.jpg"), url("images/hero-about.jpg"), url("images/hero-chart.svg"); }
.page-hero--legal    { background-image: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), url("images/hero-legal.jpg"), url("images/hero-about.jpg"), url("images/hero-chart.svg"); }
.page-hero h1 { font-size: clamp(40px, 6vw, 74px); font-weight: 400; line-height: 1.08; }
.page-hero h1.h-legal { font-size: clamp(34px, 5vw, 58px); }
.breadcrumb { margin-top: 16px; color: var(--dim); font-size: 13px; }
.breadcrumb a:hover { color: var(--gold); }

.hero--contact {
  min-height: 630px; align-items: flex-end; padding-bottom: 36px;
  background-image: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.45) 100%),
    url("images/hero-contact.jpg"), url("images/hero-chart.svg");
}
.hero--contact h1 { font-size: clamp(38px, 5vw, 62px); font-weight: 400; line-height: 1.1; margin-bottom: 30px; }

/* ---------- 6. Bandeau TradingView ---------- */
.ticker { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #000; min-height: 46px; }
.tv-credit { display: block; text-align: center; font-size: 11px; color: var(--dim); padding: 4px 0 0; }
.tv-credit a { color: #2962ff; }

/* ---------- 7. Cartes "étapes" ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 40px; text-align: left; }
.step-card {
  background: var(--surface);
  border: 1px solid #252525;
  border-radius: 10px;
  padding: 30px 30px 34px;
  transition: border-color .25s, transform .25s;
}
.step-card:hover { border-color: #3d3a33; transform: translateY(-3px); }
.icon-dot {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--icon-bg); color: var(--gold);
  margin-bottom: 28px;
}
.icon-dot svg { width: 20px; height: 20px; }
.step-card h3 { font-size: 24px; margin-bottom: 18px; }
.step-card p { color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- 8. Sections scindées ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 44px; align-items: center; }
.split h2 { margin-bottom: 30px; }
.split p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 440px; }
.split .btn { margin-top: 30px; }
.split-media img { background: #111; border-radius: 12px; width: 100%; aspect-ratio: 435 / 361; object-fit: cover; }

/* Section "atouts" (tablette + 3 avantages) */
.perks { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 46px; align-items: center; }
.perks-media img { background: #111; width: 100%; aspect-ratio: 440 / 500; object-fit: cover; border-radius: 4px; }
.perks-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 36px 34px; }
.perk svg { width: 34px; height: 34px; color: var(--gold); margin-bottom: 18px; }
.perk h4 { font-size: 22px; font-weight: 700; margin-bottom: 14px; line-height: 1.3; }
.perk p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.perks-cta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.perks-cta strong { font-size: 16px; font-weight: 700; }

/* ---------- 9. Bandeau partenaires ---------- */
.partners { background: linear-gradient(180deg, #43c3d0 0%, #0b8af2 100%); padding: 22px 0 30px; text-align: center; }
.partners h5 { font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.partner-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 0 60px; }
.partner-row img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

.join-band { background: linear-gradient(180deg, #43c3d0 0%, #0b8af2 100%); padding: 40px 20px 34px; text-align: center; }
.join-band--img { background-image: url("images/join-band.jpg"), linear-gradient(180deg, #43c3d0 0%, #0b8af2 100%); background-size: cover; background-position: center; }
.join-band h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; max-width: 820px; margin: 0 auto 22px; line-height: 1.15; }

/* ---------- 10. Marchés ---------- */
.markets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 46px 30px; margin-top: 70px; align-items: start; text-align: left; }
.market-card {
  position: relative; overflow: hidden;
  padding: 30px 30px 36px;
  border-radius: 6px;
  border: 1px solid #262626;
  background: url("images/market-card.jpg") center / cover no-repeat,
              url("images/card-wave.svg") center / cover no-repeat,
              linear-gradient(150deg, #1b1b1b 0%, #0b0b0b 55%, #171717 100%);
  box-shadow: 12px 10px 0 -4px #101010, 12px 10px 0 -3px #1f1f1f;
  min-height: 300px;
  transition: transform .3s ease;
}
.market-card:hover { transform: translateY(-4px); }
.market-card .icon-dot { width: 46px; height: 46px; margin-bottom: 30px; }
.market-card h3 { font-size: 22px; margin-bottom: 16px; }
.market-card p { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* ---------- 11. Widgets de marché ---------- */
.widgets { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; margin-top: 60px; }
.widget-box { background: #fff; border-radius: 4px; overflow: hidden; min-height: 440px; }
.widget-box .tradingview-widget-container { height: 440px; }

/* ---------- 12. Support / chat ---------- */
.chat-media { display: flex; justify-content: center; }
.chat-media img { max-width: 340px; width: 100%; }

/* ---------- 13. Comptes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 50px 40px 42px;
  background: var(--surface);
  border: 1px solid #262626;
  border-radius: 16px;
}
.plan h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price { font-size: 13px; font-weight: 700; margin-top: 8px; }
.plan hr { border: 0; border-top: 1px solid #2c2c2c; margin: 22px 0 0; }
.plan hr + hr { margin-top: 38px; }
.plan ul { padding: 20px 0 18px; border-bottom: 1px solid #2c2c2c; }
.plan li { position: relative; padding-left: 24px; margin: 9px 0; font-size: 15px; line-height: 1.45; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan .btn-outline { margin-top: auto; }
.plan .plan-spacer { flex: 1; min-height: 60px; }
.plan--popular { border-color: #6b5a3c; background: linear-gradient(180deg, #17140f 0%, var(--surface) 40%); }
.plan .tag {
  position: absolute; top: 18px; right: 18px;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-size: 11px; font-weight: 700;
}

.compare-wrap { margin-top: 90px; }
.compare-wrap h2 { margin-bottom: 30px; }
.table-scroll { overflow-x: auto; border: 1px solid #262626; border-radius: 14px; }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 17px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid #222; }
.compare thead th { background: #0d0d0d; font-weight: 800; font-size: 15px; }
.compare thead th.is-popular { color: var(--gold); }
.compare tbody th { font-weight: 600; color: var(--muted); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td.is-popular { background: rgba(201, 171, 122, .06); }
.note { color: var(--dim); font-size: 16px; margin-top: 16px; }

/* ---------- 14. FAQ (accordéon) ---------- */
.faq-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 40px 0 50px; }
.faq-tab {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid #333; background: #0b0b0b; color: #fff;
  font: 700 13px var(--font); cursor: pointer; transition: all .2s;
}
.faq-tab.active, .faq-tab:hover { border-color: transparent; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.faq-group { margin-bottom: 50px; }
.faq-group h3 { font-size: 24px; margin-bottom: 18px; }
.faq-item { border: 1px solid #262626; border-radius: 10px; background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .25s; }
.faq-item.open { border-color: #4a4032; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 24px; background: none; border: 0; color: #fff; text-align: left;
  font: 700 16px/1.4 var(--font); cursor: pointer;
}
.faq-q .plus { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--icon-bg); color: var(--gold); display: grid; place-items: center; transition: transform .35s ease; }
.faq-q .plus svg { width: 14px; height: 14px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { height: 0; overflow: hidden; transition: height .38s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 17px; line-height: 1.75; }
.faq-a-inner p + p { margin-top: 10px; }

/* ---------- 15. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 70px; }
.contact-grid h2 { font-size: clamp(32px, 3.4vw, 46px); font-weight: 500; margin-bottom: 30px; }
.contact-grid .intro { color: var(--muted); font-size: 16px; line-height: 1.65; }
.contact-details { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; margin-top: 56px; font-size: 16px; }
.contact-details strong { display: block; font-size: 15px; margin-bottom: 14px; }
.contact-details p, .contact-details a { color: var(--muted); }
.contact-vault { margin-top: 70px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; margin-top: 56px; }
.form-grid .full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 16px 22px;
  background: #111; border: 1px solid #363636; border-radius: 7px;
  color: #fff; font: 14px var(--font);
  transition: border-color .2s;
}
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); outline: none; }
.field.invalid input, .field.invalid textarea { border-color: #e5484d; }
.field .err { display: none; color: #ff7b7f; font-size: 12px; margin-top: 6px; }
.field.invalid .err { display: block; }
.form-status { margin-top: 14px; font-size: 17px; color: #6fe3a5; min-height: 20px; }
.map-box { margin-top: 90px; border: 1px solid #262626; border-radius: 14px; overflow: hidden; height: 360px; background: #0d0d0d; }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* ---------- 16. Pages légales ---------- */
.legal { max-width: 860px; }
.legal h4 { font-size: 21px; font-weight: 700; margin: 38px 0 14px; }
.legal h4:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0; padding-left: 4px; }
.legal li { padding-left: 18px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal strong { color: #fff; }
.legal .updated { color: var(--dim); font-size: 13px; margin-bottom: 30px; }

/* ---------- 17. Pied de page ---------- */
.site-footer {
  position: relative; text-align: center;
  padding: 120px 0 40px;
  background: #000 url("images/footer-bg.jpg") center / cover no-repeat;
  background-image: url("images/footer-bg.jpg"), url("images/footer-waves.svg");
}
.footer-logo { display: inline-flex; margin-bottom: 40px; }
.footer-logo img { height: 50px; width: auto; }
.footer-logo .logo-text { display: none; font-weight: 800; font-size: 38px; }
.footer-logo.img-missing img { display: none; }
.footer-logo.img-missing .logo-text { display: inline; }
.footer-logo { max-width: 100%; }
.footer-logo img { max-width: 100%; object-fit: contain; }
.site-footer h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.12; max-width: 760px; margin: 0 auto 46px; }
.footer-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 44px; margin: 64px 0 50px; }
.footer-legal a { font-weight: 800; font-size: 15px; transition: color .2s; }
.footer-legal a:hover { color: var(--gold); }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; font-size: 15px; color: #e6e6e6; }
.footer-contact span { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 15px; height: 15px; color: #bdbdbd; }
.risk-warning {
  max-width: 1000px; margin: 50px auto 0;
  padding: 18px 22px;
  border: 1px solid #2b2b2b; border-radius: 10px;
  background: rgba(10, 10, 10, .85);
  color: #a9a9a9; font-size: 12px; line-height: 1.7; text-align: left;
}
.risk-warning strong { color: #fff; }
.copyright { margin-top: 36px; font-size: 12px; color: #dcdcdc; }

.to-top {
  position: fixed; right: 36px; bottom: 36px; z-index: 40;
  width: 46px; height: 46px; border-radius: 8px; border: 0;
  background: var(--cyan); color: #000; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 18. Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1440px) {
  .nav-pill { padding: 14px 34px; gap: 18px; }
  .nav-pill a { font-size: 16px; }
}
@media (max-width: 1320px) {
  :root { --header-h: 84px; }
  .burger { display: block; }
  .header-cta { display: none; }
  .header-inner .nav-pill { margin: 0; }
  .site-header .lang-switch { margin-left: auto; }
  .nav-pill {
    position: fixed; top: 84px; left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; border-radius: 18px;
    background: rgba(8, 8, 8, .97);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav-pill.open { opacity: 1; visibility: visible; transform: none; }
  .nav-pill a { padding: 14px 16px; border-bottom: 1px solid #1d1d1d; font-size: 16px; }
  .nav-pill .mobile-only { display: block; }
  .nav-pill .btn { justify-content: center; margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 1024px) {
  .markets { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .partner-row { padding: 0 20px; justify-content: center; }
}
@media (max-width: 820px) {
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; }
  .split, .perks, .contact-grid, .widgets { grid-template-columns: 1fr; }
  .split .split-media { order: -1; }
  .split.split--reverse .split-media { order: 0; }
  .contact-grid { gap: 50px; }
  .hero { min-height: 600px; }
}
@media (max-width: 600px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .logo img { height: 24px; }
  .site-header .lang-switch { padding: 8px 11px; font-size: 13px; }
  .markets, .plans, .perks-grid { grid-template-columns: 1fr; }
  .market-card { min-height: 0; }
  .form-grid, .contact-details { grid-template-columns: 1fr; }
  .perks-cta { flex-direction: column; align-items: flex-start; }
  .plan { padding: 40px 28px 34px; }
  .footer-legal { gap: 14px 24px; }
  .footer-contact { flex-direction: column; align-items: center; }
  .to-top { right: 18px; bottom: 18px; }
  .page-hero { min-height: 340px; }
}
