/* ==========================================================================
   Coinhouse — couche d'alignement sur www.coinhouse.com
   --------------------------------------------------------------------------
   Chargée APRÈS styles.css. Recale les valeurs de base et les composants sur
   le site www tel qu'il est en ligne (relevé du 18/11/2026 sur /fr et
   /fr/achat-vente, desktop 1440 px et mobile 390 px).

   Chargée par toutes les pages Coinhouse du sous-domaine, juste après
   styles.css. Les feuilles de campagne (Black Friday) se chargent après elle.
   Exception : les pages Tilvest ne la chargent pas (design system Tilvest
   propre : styles.css + tilvest.css). À terme, elle sera fusionnée dans
   styles.css.

   Règles d'usage : voir CLAUDE.md à la racine du repo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Police DM Sans 36pt (celle de www pour titres de cartes et paragraphes)
   -------------------------------------------------------------------------- */
@font-face { font-family:'dm-sans-36'; src:url('../fonts/DMSans-Light.woff2')        format('woff2'); font-weight:300; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans-36'; src:url('../fonts/DMSans36pt-Regular.woff2')  format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans-36'; src:url('../fonts/DMSans36pt-Medium.woff2')   format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans-36'; src:url('../fonts/DMSans36pt-SemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'dm-sans-36'; src:url('../fonts/DMSans36pt-Bold.woff2')     format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* --------------------------------------------------------------------------
   2. Valeurs de base (mesurées sur www)
   -------------------------------------------------------------------------- */
:root {
  --font-body:    'dm-sans-36', 'dm-sans', 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  --text:         #171717;               /* titres, texte fort */
  --text-muted:   #75808b;               /* paragraphes www */
  --text-lead:    #5e6872;               /* chapô sous le H1 */
  --line:         rgba(23,23,23,.15);    /* filets de séparation www */

  /* www : quasiment tout est à 4px */
  --radius-card:  4px;
  --radius:       4px;
  --radius-sm:    4px;

  /* ombre douce des cartes www (xl:shadow-[0_4px_100px_0_#75808B33]) */
  --shadow-soft:  0 4px 100px rgba(117,128,139,.2);

  /* dégradé des mots-clés de titre (violet → rose → orange) */
  --bg-purple-gradient: linear-gradient(95.83deg,#8700ff 10.04%,#f0a 51.24%,#ff4b28 92.45%);

  --header-h:     72px;
}
@media (min-width: 1024px) { :root { --header-h: 88px; } }

body { color: var(--text); }

/* --------------------------------------------------------------------------
   3. Typographie
   H1 36 → 64 px, H2 32 → 48 px, interligne 1, Sora 600, sans tracking négatif.
   Titres de cartes en DM Sans 36pt Medium. Paragraphes en Light, gris.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { letter-spacing: 0; line-height: 1; }

.section-title { font-size: 32px; line-height: 1; margin-bottom: 20px; }
@media (min-width: 768px)  { .section-title { font-size: 40px; } }
@media (min-width: 1024px) { .section-title { font-size: 48px; margin-bottom: 24px; } }

.section-intro {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  max-width: 680px;
  margin-bottom: 40px;
}
@media (min-width: 1024px) { .section-intro { font-size: 20px; margin-bottom: 48px; } }

.grad-text { background: var(--bg-purple-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Titre de bloc façon www (h3 de cartes) */
.ds-h3 { font-family: var(--font-body); font-weight: 500; font-size: 24px; line-height: 1.1; }
@media (min-width: 1024px) { .ds-h3 { font-size: 28px; } }

/* --------------------------------------------------------------------------
   4. Rythme vertical — www respire beaucoup plus (56 → 96 px)
   -------------------------------------------------------------------------- */
.section, .v2 .section { padding-block: 48px; }
@media (min-width: 768px)  { .section, .v2 .section { padding-block: 64px; } }
@media (min-width: 1024px) { .section, .v2 .section { padding-block: 80px; } }
.section--tight, .v2 .section--tight { padding-block: 32px; }
@media (min-width: 1024px) { .section--tight, .v2 .section--tight { padding-block: 48px; } }

/* --------------------------------------------------------------------------
   4b. Fonds de section alternés (comme la homepage www)
   Chaque section porte UNE de ces classes, en alternant gris / blanc, avec au
   plus une section dégradée par page, réservée au moment fort (offre, bonus).
   - .section--gray     : fond de page #e9eef2 (cartes blanches)
   - .section--white    : blanc (les cartes passent en gris clair)
   - .section--gradient : dégradé marque (texte blanc, cartes blanches)
   -------------------------------------------------------------------------- */
.section--gray  { background: var(--light); }
.section--white { background: var(--white); }

/* Sur fond blanc, les cartes blanches deviennent grises pour rester visibles */
.section--white :is(.card, .tl-node, .step, .review, .help-card, .simulator) { background: var(--light); box-shadow: none; }
.section--white .input-money input { background: var(--white); }
.section--white :is(.card__ic, .help-card__list .ts-ic) { background: var(--white); }

/* Dégradé : même visuel que le bloc « Découvrez nos solutions » de www */
.section--gradient {
  position: relative;
  color: #fff;
  background: #6f5bff url('../img/illustrations/site-bg-gradient-simulator.webp') center / cover no-repeat;
}
.section--gradient :is(.section-title, .section-intro) { color: #fff; }
/* …mais le contenu des cartes blanches garde le texte noir */
.section--gradient :is(.simulator, .card, .step, .review, .help-card, .tl-node) { color: var(--text); }
.section--gradient .grad-text { background: none; color: #fff; -webkit-text-fill-color: #fff; }
/* Sur le dégradé : uniquement des éléments CLAIRS (jamais de bloc ni de bouton noir, trop lourd).
   Le CTA de conversion passe en blanc, texte noir. */
.section--gradient :is(.bonus-card, .simulator, .card, .step, .review, .help-card, .tl-node) { background: var(--white); box-shadow: var(--shadow-soft); }
.section--gradient .btn--primary { background: var(--white); color: var(--black); }
.section--gradient .btn--primary .arrow path { stroke: var(--black); }
.section--gradient .btn--primary:hover { background: var(--darkblue); color: #fff; }
.section--gradient .btn--primary:hover .arrow path { stroke: #fff; }

/* --------------------------------------------------------------------------
   5. Boutons
   Base www : DM Sans Light, 18 → 20 px, coins 4px, flèche ↗.
   - .btn--primary  : dégradé signature. Tous les CTA de conversion (transfert…).
   - .btn--outline  : contour noir. Réservé aux CTA secondaires.
   - .btn--dark     : aplat noir (CTA du header www « Téléchargez l'app »).
   -------------------------------------------------------------------------- */
.btn {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.1;
  min-height: 56px;
  padding: 12px 20px;
  gap: 16px;
  border-radius: 4px;
}
@media (min-width: 1024px) { .btn { font-size: 20px; min-height: 60px; } }
.btn--lg { font-size: 18px; min-height: 60px; padding: 14px 24px; }
@media (min-width: 1024px) { .btn--lg { font-size: 22px; min-height: 64px; } }

.btn--primary { -webkit-backdrop-filter: none; backdrop-filter: none; }

.btn--outline { background: rgba(255,255,255,.01); border: 1px solid var(--black); color: var(--black); }
.btn--outline .arrow path { stroke: var(--black); }
.btn--outline:hover { background: var(--darkblue); color: #fff; border-color: var(--darkblue); }

.btn--dark { background: var(--black); color: #fff; border: 1px solid var(--black); }
.btn--dark .arrow path { stroke: #fff; }
.btn--dark:hover { background: var(--bg-gradient-button); border-color: transparent; }

/* --------------------------------------------------------------------------
   6. Header — transparent sur fond clair, CTA noir comme www
   -------------------------------------------------------------------------- */
.header { background: var(--light); border-bottom: 0; }
.header__logo img { height: 24px; }
@media (min-width: 768px) { .header__logo img { height: 28px; } }
.header__cta.btn, .header__cta-mobile.btn { min-height: 44px; font-size: 16px; padding: 10px 16px; gap: 10px; }
@media (min-width: 1024px) { .header__cta.btn { min-height: 50px; font-size: 18px; } }

/* --------------------------------------------------------------------------
   6b. Bandeau d'urgence — variantes
   Par défaut (.urgency, styles.css) : dégradé violet → bleu, texte blanc.
   .urgency--black : aplat noir, accroche en dégradé rose → orange, reste en
   blanc. Pour les campagnes « dark » (Black Friday…), avec un hero sombre.
   Usage : <div class="urgency urgency--black"><strong>Accroche</strong> suite.</div>
   -------------------------------------------------------------------------- */
.urgency.urgency--black { background: #000; color: var(--white); }
.urgency--black strong {
  background: var(--bg-orange-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.urgency--black a { color: inherit; }

/* --------------------------------------------------------------------------
   7. Hero clair (fond #e9eef2 + voile de soie www, texte noir)
   -------------------------------------------------------------------------- */
.hero { background: var(--light); color: var(--text); }
.hero__bg { background: var(--light); }
.hero__bg img { opacity: 1; mix-blend-mode: normal; }
.hero__inner { padding-block: 32px 56px; }
/* Grille 1.05fr / .95fr de styles.css conservée : le visuel garde sa largeur. */
@media (min-width: 1024px) { .hero__inner { padding-block: 64px 96px; } }

.hero h1 { font-size: 36px; line-height: 1; letter-spacing: 0; margin-bottom: 20px; }
@media (min-width: 768px)  { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 48px; letter-spacing: 0; margin-bottom: 24px; } }
@media (min-width: 1280px) { .hero h1 { font-size: 52px; } }

.hero__lead { color: var(--text-lead); font-weight: 300; font-size: 18px; line-height: 1.2; margin-bottom: 28px; max-width: 520px; }
@media (min-width: 1024px) { .hero__lead { font-size: 24px; } }

.reassure { gap: 10px 24px; margin-bottom: 32px; }
@media (min-width: 768px) { .reassure { display: grid; grid-template-columns: repeat(2, max-content); } }
.reassure li { color: var(--text); font-weight: 400; font-size: 15px; }
@media (min-width: 1024px) { .reassure li { font-size: 16px; } }
.reassure .ic { display: inline-flex; width: 18px; height: 18px; flex: none; color: var(--green); }
.reassure .ic svg { width: 100%; height: 100%; }

.hero__legal { color: var(--text-muted); }
.hero__legal a { color: var(--text-muted); }

.hero__phone { filter: drop-shadow(0 30px 60px rgba(117,128,139,.35)); }
.hero__coin { filter: drop-shadow(0 12px 30px rgba(117,128,139,.35)); }

/* Visuel du hero : téléphone + pièces dans la grille d'origine de styles.css
   (validé le 18/11/2026). Seule la carte « offre » change : carte blanche www,
   montant en dégradé (préférée à la carte bleue). */
.hero__offer {
  background: var(--white);
  color: var(--text);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 561px) { .hero__offer { padding: 20px 24px; } }
.hero__offer .small { color: var(--text-muted); font-weight: 400; }
.hero__offer .big { background: var(--bg-purple-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------
   8. Cartes — blanches, coins 4px, sans bordure (comme www)
   -------------------------------------------------------------------------- */
.card, .tl-node, .step, .review, .help-card, .simulator, .contact-block {
  border: 0;
  border-radius: 4px;
  background: var(--white);
}
.card p, .tl-node p, .step p, .help-card p { color: var(--text-muted); }

/* Pastilles d'icône : ligne noire sur fond clair, plus d'emoji */
.card__ic, .trust-strip .ts-ic, .help-card__list .ts-ic {
  background: var(--light);
  border-radius: 4px;
  color: var(--text);
}
.card__ic svg, .ts-ic svg { width: 22px; height: 22px; }

/* Numéros (étapes, options) : chiffre Sora en dégradé, sans pastille */
.step .num, .help-card__head .num {
  width: auto; height: auto;
  justify-self: start;
  background: none;
  border-radius: 0;
  font-size: 32px; line-height: 1;
  background-image: var(--bg-purple-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step { grid-template-columns: 1fr; align-content: start; padding: 24px; row-gap: 12px; }
.step h3, .help-card h3, .tl-node h3 { font-family: var(--font-body); font-weight: 500; font-size: 20px; line-height: 1.15; }
@media (min-width: 1024px) { .step h3, .help-card h3 { font-size: 22px; } }
.help-card__eyebrow { color: var(--text-muted); font-weight: 500; }

/* --------------------------------------------------------------------------
   9. Bande de confiance — version éditoriale www (filets, pas de boîtes)
   -------------------------------------------------------------------------- */
.trust-strip { gap: 0 32px; }
.trust-strip .ts-item {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0;
}
@media (min-width: 980px) { .trust-strip .ts-item { border-bottom: 1px solid var(--line); } }
.trust-strip .ts-ic { background: none; width: 28px; height: 28px; }
.trust-strip .ts-title { font-family: var(--font-body); font-weight: 500; font-size: 22px; line-height: 1.1; }
.trust-strip .ts-desc { color: var(--text-muted); font-size: 16px; font-weight: 300; line-height: 1.35; }

/* --------------------------------------------------------------------------
   10. Frise Binance — cartes blanches, alerte = filet ambre en haut
   -------------------------------------------------------------------------- */
.tl-node { padding: 24px; }
.tl-node--alert { border: 0; box-shadow: none; overflow: hidden; }
#dates-binance .tl-node .date { font-size: 20px; }
#dates-binance .tl-node h3 { font-size: 18px; }

/* --------------------------------------------------------------------------
   11. Bonus + simulateur — carte noire www, montant en dégradé
   -------------------------------------------------------------------------- */
/* Carte bonus claire : fond blanc, montant en dégradé */
.bonus-card { background: var(--white); background-image: none; color: var(--text); border-radius: 4px; padding: 40px 28px; }
.bonus-card .label { color: var(--text-muted); font-weight: 300; font-size: 18px; opacity: 1; }
.bonus-card .amount { font-weight: 600; background: var(--bg-purple-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bonus-card .lead-link { color: var(--text); }
/* Desktop : carte bonus et simulateur à la même hauteur, contenu du bonus centré */
@media (min-width: 1024px) {
  .bonus__grid { align-items: stretch; }
  .bonus-card { display: flex; flex-direction: column; justify-content: center; align-items: center; }
}
/* Simulateur : style d'origine de styles.css (libellé gras, champ gris, résultat violet clair),
   seuls les coins passent à 4px */
.simulator { padding: 28px; }
.input-money input { border-radius: 4px; }
.sim-result { border-radius: 4px; }

/* --------------------------------------------------------------------------
   12. Avis
   -------------------------------------------------------------------------- */
.review { padding: 24px; }
.review p { font-weight: 300; font-size: 17px; line-height: 1.35; color: var(--text); }
.review .who { font-weight: 500; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. FAQ — filets www, question en DM Sans Medium
   -------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { font-family: var(--font-body); font-weight: 500; font-size: 18px; padding: 24px 0; }
@media (min-width: 1024px) { .faq-q { font-size: 20px; } }
.faq-a p { color: var(--text-muted); font-weight: 300; font-size: 17px; padding: 0 0 24px; }

/* --------------------------------------------------------------------------
   14. CTA final — aplat noir sans halo
   -------------------------------------------------------------------------- */
.cta-dark { border-radius: 4px; padding: 48px 24px; }
@media (min-width: 768px) { .cta-dark { padding: 72px 48px; } }
.cta-dark::before { display: none; }
.cta-dark h2 { font-size: 32px; line-height: 1; }
@media (min-width: 1024px) { .cta-dark h2 { font-size: 48px; } }
.cta-dark p { font-weight: 300; font-size: 18px; }
.cta-dark .cta-row { margin-top: 24px; }

/* --------------------------------------------------------------------------
   15. Footer clair, comme www
   -------------------------------------------------------------------------- */
.footer { background: var(--light); color: var(--text); border-top: 1px solid var(--line); margin-top: 0; padding-block: 56px 40px; }
.footer__logo img { width: auto; }   /* le logo noir n'a pas le ratio du SVG blanc : ne pas l'étirer */
.footer__social a { color: var(--text); opacity: 1; }
.footer__social a:hover { opacity: .6; }
.footer__legal-links a:hover { color: var(--text); }
.footer__legal { color: var(--text-muted); border-top-color: var(--line); }

/* --------------------------------------------------------------------------
   16. Modales, badges, divers
   -------------------------------------------------------------------------- */
.tier-modal__dialog { border-radius: 4px; }
.tier-opt { border-radius: 4px; font-weight: 500; }
.tier-opt:hover { border-color: var(--black); background: var(--light); }
.video-embed { border-radius: 4px; }
.dates-countdown { border-radius: 4px; }
.lead-link { font-weight: 500; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sticky-cta .btn { box-shadow: 0 10px 30px rgba(117,128,139,.35); }

/* --------------------------------------------------------------------------
   17. Mobile : plus d'air entre les éléments (desktop inchangé)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .section, .v2 .section { padding-block: 64px; }
  .section-title { margin-bottom: 28px; }
  .section-intro { margin-bottom: 32px; }

  /* Hero */
  .hero__inner { padding-block: 40px 64px; gap: 48px; }
  .hero h1 { margin-bottom: 28px; }
  .reassure { gap: 16px; margin-bottom: 36px; }
  .hero__legal { margin-top: 20px; }

  /* Grilles de cartes */
  .timeline, .steps, .reviews, .help__grid, .bonus__grid { gap: 20px; }
  .tl-node, .step, .review { padding: 28px 24px; }
  .tl-node h3, .step h3 { margin-top: 4px; }
  .help-card { padding: 28px 24px; gap: 20px; }
  .trust-strip .ts-item { padding: 28px 0; }

  /* Boutons et compte à rebours sous les grilles */
  #dates-binance .btn { margin-top: 36px; }
  .dates-countdown { margin-top: 20px; }
  #bonus .bonus__grid + div, #etapes .steps + div { margin-top: 36px !important; }

  /* FAQ et CTA final */
  .faq-q { padding: 28px 0; }
  .cta-dark { padding: 56px 24px; }
  .cta-dark h2 { margin-bottom: 20px; }
}

/* --------------------------------------------------------------------------
   18. Blocs des autres pages (MiCA, 404) sur fond clair
   -------------------------------------------------------------------------- */
/* Hero : surtitre et chapô pensés pour un hero sombre → recalés sur fond clair */
.hero__eyebrow { color: var(--purple); font-weight: 500; }
.hero__sub { color: var(--text-lead); font-weight: 300; font-size: 18px; line-height: 1.3; }
@media (min-width: 1024px) { .hero__sub { font-size: 20px; } }
.hero__sub strong { color: var(--text); font-weight: 500; }
.hero__photo-card { border-radius: 4px; box-shadow: var(--shadow-soft); }

/* Chiffres clés */
.stat .lbl { color: var(--text-muted); }

/* FAQ en cartes : cartes blanches sans bordure (grises sur fond blanc) */
.faq--cards .faq-item, .faq--cards .faq-item:first-child { border: 0; border-radius: 4px; background: var(--white); }
.section--white .faq--cards .faq-item { background: var(--light); }

/* Badges sous le CTA final : icônes au trait à la place des emojis */
.cta-dark__badges span { display: inline-flex; align-items: center; gap: 8px; }
.cta-dark__badges svg { width: 16px; height: 16px; flex: none; }
