/* ==========================================================================
   Coinhouse — Landing page commerciale
   Design system (vérifié contre design-brief/BRIEF.md)
   Stack : HTML/CSS/JS statique pur — mobile-first
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (self-hosted woff2)
   -------------------------------------------------------------------------- */
/* --- Sora (titres) --- */
@font-face { font-family:'Sora'; src:url('../fonts/Sora-Medium.woff2')   format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Sora'; src:url('../fonts/Sora-SemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Sora'; src:url('../fonts/Sora-ExtraBold.woff2')format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* --- DM Sans (corps) — famille de base --- */
@font-face { font-family:'dm-sans'; src:url('../fonts/DMSans-Light.woff2')    format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans'; src:url('../fonts/DMSans-Regular.woff2')  format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans'; src:url('../fonts/DMSans-Medium.woff2')   format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans'; src:url('../fonts/DMSans-SemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans'; src:url('../fonts/DMSans-Bold.woff2')     format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Accents de marque (stops du dégradé) */
  --cyan:        #03ffcf;
  --cyan-bright: #00ffff;
  --blue:        #4141ff;   /* bleu électrique signature */
  --purple:      #8700ff;
  --pink:        #ff00aa;
  --red:         #ff4b28;
  --green:       #00bb97;

  /* Neutres (la vraie base) */
  --darkblue:    #171717;   /* texte principal / surfaces sombres / hover CTA */
  --light:       #e9eef2;   /* fond de page */
  --black:       #000000;
  --white:       #ffffff;
  --gray:        #5e6873;    /* texte secondaire (AA sur fonds clairs ≥4.5:1) */
  --gray-soft:   #8e98a3;    /* gris décoratif marque (non-texte) */
  --border-gray: #c2cad2;
  --muted-bg:    #b1bdc7;
  --tint-violet: #f5f0ff;
  --tint-gray:   #f2f2f7;

  /* CTA — accent “urgence” brief (bandeau ambre + offre) */
  --amber:       #f59e0b;
  --cta-blue:    #3b7cff;   /* bleu CTA demandé dans le brief RTK */

  /* Dégradés signatures */
  --bg-gradient-button:  linear-gradient(71.67deg,#03ffcf -113.8%,#0ff -71.51%,#4141ff -29.23%,#8700ff 13.06%,#f0a 55.34%,#ff4b28 97.63%);
  --bg-blue-gradient:    linear-gradient(253.05deg,#03ffcf 9.96%,#0ff 50.95%,#4141ff 94.04%,#8700ff 136.08%,#f0a 178.13%,#ff4b28 220.17%);
  --bg-purple-gradient:  linear-gradient(95.83deg,#8700ff 10.04%,#f0a 100.77%);
  --bg-orange-gradient:  linear-gradient(95.83deg,#f0a 10.04%,#ff4b28 92.45%);
  --bg-business-gradient:linear-gradient(90deg,#4141ff,#0ff 28%,#03ffcf 60%,#00bb97 96.5%);

  /* Typo */
  --font-head: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'dm-sans', 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  /* Layout */
  --container:   1220px;
  --gutter:      1rem;
  --radius-card: 20px;
  --radius:      8px;
  --radius-sm:   4px;

  /* Hauteurs des barres sticky (servent aux offsets de scroll) */
  --banner-h:    0px;   /* mis à jour en JS = hauteur réelle du bandeau (peut wrapper) */
  --header-h:    64px;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--darkblue);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; margin: 0; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg, picture { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* --------------------------------------------------------------------------
   4. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 1220px) {
  .container { padding-inline: 2rem; }
}
.section { padding-block: 40px; }
@media (min-width: 768px) { .section { padding-block: 56px; } }
.section--tight { padding-block: 28px; }
.text-center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--purple);
  text-transform: none;
  margin-bottom: 14px;
}
.section-title { font-size: 30px; line-height: 1.08; margin-bottom: 16px; }
@media (min-width: 768px) { .section-title { font-size: 36px; } }
.section-intro { color: var(--gray); font-size: 17px; max-width: 640px; margin-bottom: 32px; }
.section-intro--center { margin-inline: auto; }

/* Mot-clé en dégradé (clip-text) */
.grad-text {
  background: var(--bg-purple-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text--full {
  background: var(--bg-gradient-button);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   5. Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background .2s ease, color .2s ease, transform .12s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { flex: none; }

/* Primaire — dégradé signature, hover -> #171717 */
.btn--primary {
  background: var(--bg-gradient-button);
  color: var(--white);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--primary:hover { background: var(--darkblue); }
.btn--primary .arrow path { stroke: #fff; }

/* Secondaire / inversé — blanc, hover -> dégradé */
.btn--secondary {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--border-gray);
}
.btn--secondary:hover { background: var(--bg-gradient-button); color: #fff; border-color: transparent; }
.btn--secondary:hover .arrow path { stroke: #fff; }

/* Outline / ghost */
.btn--outline {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--darkblue);
}
.btn--outline:hover { background: var(--darkblue); color: #fff; border-color: var(--darkblue); }
.btn--outline:hover .arrow path { stroke: #fff; }

.btn--lg { min-height: 56px; font-size: 18px; padding: 14px 24px; }
.btn--block { display: flex; width: 100%; }
@media (min-width: 768px) {
  .btn--lg { min-height: 60px; }
}

/* --------------------------------------------------------------------------
   6. Bandeau d'urgence (sticky, au-dessus du header)
   -------------------------------------------------------------------------- */
.urgency {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--amber);
  color: var(--darkblue);
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  padding: 7px 12px;
}
.urgency strong { font-weight: 700; }
.urgency .countdown { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
@media (min-width: 768px) { .urgency { font-size: 14.5px; line-height: 1.35; padding: 9px 16px; } }

/* --------------------------------------------------------------------------
   7. Header (sticky)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: var(--banner-h, 0px);
  z-index: 50;
  background: var(--light);
  border-bottom: 1px solid rgba(23,23,23,.08);
}
/* Quand le bandeau est présent, le header colle juste en dessous via JS qui pose --banner-h.
   Fallback CSS : le bandeau scrolle, le header reste collé en haut au moment où il l'atteint. */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 12px;
}
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo img { height: 26px; width: auto; }
@media (min-width: 768px) { .header__logo img { height: 30px; } }

.badge-mica {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0,187,151,.12);
  color: #0a7d65;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-mica .dot {
  width: 14px; height: 14px; flex: none;
  border-radius: 50%;
  background: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
}
.badge-mica .dot svg { width: 9px; height: 9px; }
.header__badge { display: none; }
@media (min-width: 900px) { .header__badge { display: inline-flex; } }

.header__cta { display: none; }
@media (min-width: 768px) { .header__cta { display: inline-flex; } }
/* CTA compact mobile dans le header */
.header__cta-mobile { display: inline-flex; }
@media (min-width: 768px) { .header__cta-mobile { display: none; } }
.header__cta-mobile.btn { min-height: 42px; font-size: 14px; padding: 9px 14px; gap: 8px; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--darkblue);
  color: var(--white);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(135,0,255,.35), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, rgba(65,65,255,.30), transparent 60%),
    #0a1324;
  z-index: 0;
}
.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .14;
  mix-blend-mode: screen;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 40px 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-block: 56px 64px; }
}
.hero__eyebrow { color: #c9b8ff; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.hero h1 {
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}
@media (min-width: 768px) { .hero h1 { font-size: 46px; } }
@media (min-width: 1024px){ .hero h1 { font-size: 54px; letter-spacing: -0.035em; } }
.hero__sub {
  color: #c5ccd6;
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.hero__sub strong { color: #fff; font-weight: 600; }

.reassure {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 28px;
}
@media (max-width: 560px) {
  .reassure li:nth-child(n + 4) { display: none; }
}
.reassure li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: #e7eaf0; font-weight: 500;
}
.reassure .ic { font-size: 16px; line-height: 1; }

.hero__legal {
  margin-top: 16px;
  font-size: 12px;
  color: #8e98a3;
  max-width: 520px;
}
.hero__legal a { text-decoration: underline; color: #aeb6c0; }

/* Visuel app à droite */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__phone {
  position: relative;
  z-index: 2;
  width: min(64%, 420px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}
@media (min-width: 1024px) { .hero__phone { width: min(86%, 420px); } }
.hero__coin {
  position: absolute;
  width: 120px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.4));
  opacity: .95;
}
.hero__coin--1 { top: 4%; right: 6%; width: 100px; }
.hero__coin--2 { bottom: 6%; left: 2%; width: 130px; }
@media (max-width: 1023px){
  .hero__coin--1 { right: 2%; width: 78px; }
  .hero__coin--2 { left: 0; width: 96px; }
}

/* Carte “offre” flottante */
.hero__offer {
  position: absolute;
  z-index: 3;
  right: -4px;
  bottom: 14%;
  background: #2d5fd0;
  color: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 18px 50px rgba(59,124,255,.45);
  max-width: 220px;
}
.hero__offer .small { font-size: 13px; font-weight: 600; color: #fff; }
.hero__offer .big { font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.05; margin-top: 2px; }
.nowrap { white-space: nowrap; }
@media (max-width: 1023px){ .hero__offer { position: static; margin: 18px auto 0; max-width: 280px; } }

/* --------------------------------------------------------------------------
   9. Cartes
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(231,234,240,.9);
  /* icône + titre sur la même ligne, paragraphe en dessous */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
}
.card__ic {
  font-size: 22px;
  display: inline-flex;
  width: 44px; height: 44px;
  flex: none;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--tint-violet);
}
.card h3 { font-size: 18px; line-height: 1.2; margin: 0; }
.card p { grid-column: 1 / -1; color: var(--gray); font-size: 15px; line-height: 1.5; margin: 0; }

/* Variante carte risque (fond sombre, brief §5) */
.card--risk {
  background: #1d232e;
  border: 1px solid rgba(231,234,240,.2);
  color: #fff;
}
.card--risk h3 { color: #fff; }
.card--risk p { color: #b6bdc7; }
.card--risk .card__ic { background: rgba(255,255,255,.08); }

/* --------------------------------------------------------------------------
   10. Section bonus
   -------------------------------------------------------------------------- */
.bonus__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 1024px) { .bonus__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

.bonus-card {
  background: var(--cta-blue);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  background-image: linear-gradient(135deg, #3b7cff, #4141ff);
}
.bonus-card .label { font-size: 16px; opacity: .92; }
.bonus-card .amount {
  font-family: var(--font-head); font-weight: 700;
  font-size: 46px; line-height: 1.04; margin: 8px 0 4px;
  text-wrap: balance;
}
@media (min-width: 768px) { .bonus-card .amount { font-size: 56px; } }
.bonus-card .sub { font-size: 14px; opacity: .85; }

/* Simulateur */
.simulator { background: var(--white); border-radius: var(--radius-card); padding: 24px; border: 1px solid rgba(231,234,240,.9); }
.simulator label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.input-money { position: relative; }
.input-money input {
  width: 100%;
  height: 64px;
  border: 1px solid var(--border-gray);
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 0 44px 0 16px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  color: var(--darkblue);
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
}
/* placeholder plus petit pour ne pas être tronqué par l'unité € */
.input-money input::placeholder { font-size: 16px; font-weight: 500; color: var(--gray); }
.input-money input::-webkit-outer-spin-button,
.input-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-money input[type=number] { -moz-appearance: textfield; }
.input-money .unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 700; color: var(--gray); pointer-events: none; }

.sim-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--tint-violet);
  font-size: 16px;
  line-height: 1.5;
}
.sim-result .amount {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}
/* Lien "Prenez un rendez-vous" inline dans le résultat : pas de marge ni de
   boîte flex qui casserait l'interligne du paragraphe. */
.sim-result .lead-link {
  display: inline;
  margin-top: 0;
  font-size: inherit;
}
.sim-note { margin-top: 12px; font-size: 12px; color: var(--gray); }
.sim-note a { color: inherit; text-decoration: underline; }
.sim-note a:hover { color: var(--purple); }

/* --------------------------------------------------------------------------
   11. Timeline
   -------------------------------------------------------------------------- */
.timeline { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.tl-node {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(231,234,240,.9);
  position: relative;
}
.tl-node .date {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  color: var(--darkblue);
  margin-bottom: 8px;
}
.tl-node .date .grad-text { font-size: inherit; }
.tl-node p { color: var(--gray); font-size: 14.5px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   12. Étapes (stepper)
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(231,234,240,.9);
  /* numéro + titre sur la même ligne, paragraphe en dessous */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  row-gap: 10px;
}
.step .num {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--bg-gradient-button);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.step h3 { font-size: 17px; line-height: 1.2; margin: 0; }
.step p { grid-column: 1 / -1; color: var(--gray); font-size: 14.5px; line-height: 1.5; margin: 0; }

.tech-note {
  background: #1d232e;
  color: #e7eaf0;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 24px;
}
.tech-note strong { color: #fff; }

/* --------------------------------------------------------------------------
   13. Contact HNWI
   -------------------------------------------------------------------------- */
.contact-block {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px 24px;
  border: 1px solid rgba(231,234,240,.9);
  text-align: center;
}
@media (min-width: 768px) { .contact-block { padding: 40px; } }
.contact-block .section-intro { margin-inline: auto; }
.contact-block .cta-row { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; justify-content: center; }
@media (min-width: 560px) { .contact-block .cta-row { flex-direction: row; } }

/* --------------------------------------------------------------------------
   14. Trustpilot / avis
   -------------------------------------------------------------------------- */
.tp-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.tp-stars { display: inline-flex; gap: 3px; }
.tp-stars svg { width: 22px; height: 22px; }
.tp-score { font-size: 15px; color: var(--gray); }
.tp-score strong { color: var(--darkblue); }

.reviews {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px){ .reviews { grid-template-columns: repeat(4, 1fr); } }
.review {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  border: 1px solid rgba(231,234,240,.9);
  display: flex; flex-direction: column; gap: 12px;
}
.review .tp-stars svg { width: 18px; height: 18px; }
.review p { font-size: 15px; line-height: 1.5; flex: 1; }
.review .who { font-weight: 600; font-size: 14px; }

/* --------------------------------------------------------------------------
   15. FAQ (accordion)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border-gray); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--darkblue);
}
.faq-q .chev { flex: none; transition: transform .25s ease; }
.faq-item[data-open="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a p { color: var(--gray); font-size: 15.5px; line-height: 1.6; padding: 0 4px 22px; }

/* --------------------------------------------------------------------------
   16. CTA final sombre
   -------------------------------------------------------------------------- */
.cta-dark {
  background: var(--darkblue);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-dark { padding: 56px 40px; } }
.cta-dark::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(135,0,255,.4), transparent 55%),
              radial-gradient(80% 120% at 0% 100%, rgba(255,75,40,.3), transparent 55%);
  z-index: 0;
}
.cta-dark > * { position: relative; z-index: 1; }
.cta-dark h2 { font-size: 28px; margin-bottom: 16px; }
@media (min-width: 768px) { .cta-dark h2 { font-size: 36px; } }
.cta-dark .cta-row { display: flex; flex-direction: column; gap: 12px; justify-content: center; margin-top: 8px; }
@media (min-width: 560px) { .cta-dark .cta-row { flex-direction: row; } }
.cta-dark .btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-dark .btn--outline:hover { background: #fff; color: var(--darkblue); border-color: #fff; }
.cta-dark .btn--outline .arrow path { stroke: #fff; }
.cta-dark .btn--outline:hover .arrow path { stroke: var(--darkblue); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--darkblue);
  color: #c5ccd6;
  padding-block: 48px 32px;
  margin-top: 48px;
}
.footer__logo img { height: 26px; margin-bottom: 20px; }
.footer__top { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.4fr 1fr; } }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.footer__legal-links a:hover { color: #fff; text-decoration: underline; }
.footer__social { display: flex; gap: 14px; margin-top: 8px; }
.footer__social a { width: 22px; height: 22px; opacity: .85; transition: opacity .2s; }
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 100%; height: 100%; }
.footer__legal { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; line-height: 1.6; color: #8e98a3; }
.footer__legal p + p { margin-top: 10px; }

/* --------------------------------------------------------------------------
   18. Barre CTA sticky mobile
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(23,23,23,.0);
  pointer-events: none;
  /* caché par défaut : le JS l'affiche dès qu'on quitte le hero (évite le flash au chargement) */
  opacity: 0;
  transform: translateY(120%);
}
.sticky-cta .btn {
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(65,65,255,.4);
}
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* CTA mobile du header masqué une fois le hero dépassé (piloté en JS).
   Le CTA desktop (.header__cta) reste toujours visible. */
.header__cta-mobile.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.header__cta-mobile { transition: opacity .2s ease, visibility .2s ease; }
/* padding bas pour ne pas masquer le footer sous la barre */
@media (max-width: 767px) { body { padding-bottom: 76px; } }

/* --------------------------------------------------------------------------
   19. Trust strip (logos partenaires)
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  text-align: center;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat .num { font-family: var(--font-head); font-weight: 600; font-size: 34px; line-height: 1; margin-bottom: 6px; }
@media (min-width: 768px) { .stat .num { font-size: 40px; } }
.stat .lbl { color: var(--gray); font-size: 15px; }

/* --------------------------------------------------------------------------
   20. Utilitaires divers
   -------------------------------------------------------------------------- */
.lead-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--purple);
  font-size: 15px; margin-top: 16px;
}
.lead-link:hover { text-decoration: underline; }
.legal-inline { font-size: 12px; color: var(--gray); margin-top: 12px; }
.legal-inline a { text-decoration: underline; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ==========================================================================
   21. VARIANTES COURTES & AGRESSIVES (v2 / v3)
   Additif : scopé sous body.v2 / body.v3 — n'affecte pas les pages canoniques.
   v2 = "urgence condensée" (compteur promu dans le hero)
   v3 = "offer-led" (le bonus est le hook ; simulateur haut de page)
   ========================================================================== */

/* — Rythme resserré : sections plus compactes sur les variantes courtes — */
.v2 .section, .v3 .section { padding-block: 40px; }
@media (min-width: 768px) { .v2 .section, .v3 .section { padding-block: 56px; } }
.v2 .section--tight, .v3 .section--tight { padding-block: 28px; }

/* Bandeau d'urgence renforcé (variantes) : un peu plus dense, fond plus chaud */
.v2 .urgency, .v3 .urgency {
  background: linear-gradient(90deg, #f59e0b, #ff7a00);
  color: #181203;
}

/* --------------------------------------------------------------------------
   21a. Compteur intégré au hero (v2)
   -------------------------------------------------------------------------- */
.hero-countdown {
  display: inline-flex;
  align-items: stretch;
  gap: 8px;
  margin: 4px 0 22px;
}
.hero-countdown .cd-cell {
  min-width: 62px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  text-align: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-countdown .cd-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-countdown .cd-lbl {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c9b8ff;
  font-weight: 600;
}
@media (max-width: 400px) {
  .hero-countdown .cd-cell { min-width: 54px; padding: 8px 6px 6px; }
  .hero-countdown .cd-num { font-size: 25px; }
}
.hero-countdown[hidden] { display: none; }
/* libellé "plus que X pour transférer" affiché au-dessus du compteur */
.hero-countdown-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #ffd9a0;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   21b. Hero "offer-led" (v3) : pastille bonus surdimensionnée dans la colonne copy
   -------------------------------------------------------------------------- */
.hero-bonus-flag {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 20px;
  padding: 14px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b7cff, #4141ff);
  box-shadow: 0 16px 40px rgba(59,124,255,.45);
}
.hero-bonus-flag .hb-small { font-size: 13px; font-weight: 600; color: #dce6ff; letter-spacing: .02em; }
.hero-bonus-flag .hb-big {
  font-family: var(--font-head); font-weight: 700;
  font-size: 30px; line-height: 1.04; color: #fff;
}
@media (min-width: 768px) { .hero-bonus-flag .hb-big { font-size: 36px; } }

/* --------------------------------------------------------------------------
   21c. Bande de confiance compacte (remplace why-Coinhouse + timeline)
   -------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .trust-strip { grid-template-columns: repeat(4, 1fr); } }
.trust-strip .ts-item {
  background: var(--white);
  border: 1px solid rgba(231,234,240,.9);
  border-radius: var(--radius-card);
  padding: 18px 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}
.trust-strip .ts-ic {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--tint-violet);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 21px;
}
.trust-strip .ts-title { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; line-height: 1.2; }
.trust-strip .ts-desc { grid-column: 1 / -1; }
.trust-strip .ts-desc { color: var(--gray); font-size: 13.5px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   21d. Sous-titre de section centré (variantes)
   -------------------------------------------------------------------------- */
.v2 .section-intro--center, .v3 .section-intro--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   22. Modale de sélection du montant de portefeuille
   -------------------------------------------------------------------------- */
html.tier-modal-open { overflow: hidden; }
.tier-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.tier-modal[hidden] { display: none; }
.tier-modal__overlay { position: absolute; inset: 0; background: rgba(23,23,23,.6); backdrop-filter: blur(2px); }
.tier-modal__dialog {
  position: relative; width: 100%; max-width: 440px; background: var(--white);
  border-radius: var(--radius-card); padding: 32px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: tier-pop .18s ease;
}
@keyframes tier-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.tier-modal__close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: flex;
  align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: var(--tint-gray); color: var(--darkblue); cursor: pointer;
}
.tier-modal__close:hover { background: var(--border-gray); }
.tier-modal__title { font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.25; color: var(--darkblue); margin: 0 36px 8px 0; }
.tier-modal__sub { color: var(--gray); font-size: 14.5px; line-height: 1.45; margin: 0 0 22px; }
.tier-modal__options { display: flex; flex-direction: column; gap: 10px; }
.tier-opt {
  width: 100%; text-align: left; padding: 15px 18px; border: 1px solid var(--border-gray);
  border-radius: var(--radius); background: var(--white); color: var(--darkblue);
  font-family: var(--font-body); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .05s ease;
}
.tier-opt:hover { border-color: var(--purple); background: var(--tint-violet); }
.tier-opt:active { transform: scale(.99); }
.tier-opt:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }

/* Vue rendez-vous (HubSpot Meetings) */
.tier-modal__dialog:has([data-tier-view="meeting"]:not([hidden])) { max-width: 720px; }
.tier-modal__view[hidden] { display: none; }
.tier-modal__back {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 10px 6px 8px;
  border: 0; border-radius: var(--radius); background: var(--tint-gray); color: var(--darkblue);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer;
}
.tier-modal__back:hover { background: var(--border-gray); }
.tier-modal__back:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.tier-modal__meet { min-height: 540px; }
.tier-modal__meet .meetings-iframe-container { min-height: 540px; }
.tier-modal__meet iframe { width: 100% !important; border: 0; }

/* Mobile : la modale occupe quasi tout l'écran et défile en interne */
@media (max-width: 600px) {
  .tier-modal { padding: 0; align-items: stretch; }
  .tier-modal__dialog,
  .tier-modal__dialog:has([data-tier-view="meeting"]:not([hidden])) {
    max-width: none; width: 100%; min-height: 100%; border-radius: 0;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch; animation: none;
  }
  .tier-modal__meet, .tier-modal__meet .meetings-iframe-container { min-height: 480px; }
}
