/* =========================================================
   VANDROSS CRYPTO — Style
   Fond blanc cassé, bleu marine + turquoise (couleurs du logo).
   Pensé d'abord pour le téléphone.
   ========================================================= */

:root {
  --bg: #f6f3ec;          /* blanc cassé */
  --card: #fffdf8;
  --line: #e6e0d4;
  --navy: #0e2a47;        /* bleu marine du logo */
  --teal: #19b8b0;        /* turquoise du logo */
  --text: #0e2a47;
  --muted: #6b7684;
  --grad: linear-gradient(120deg, #0e2a47 0%, #136b84 55%, #19b8b0 100%);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.3em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn:hover { opacity: .9; }
.btn--primary { background: var(--grad); color: #fff; }
.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--sm { min-height: 38px; padding: 0 1em; font-size: .9rem; }
.btn--block { width: 100%; }

/* En-tête */
.header { position: sticky; top: 0; z-index: 10; background: rgba(246,243,236,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text b { font-size: 1.05rem; letter-spacing: .06em; }
.brand__text span { font-size: .62rem; font-weight: 700; letter-spacing: .45em; margin-top: 3px; }

/* Accueil */
.hero { padding: 36px 0 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; }
.lead { color: var(--muted); font-size: 1.05rem; }
.hero__cta { display: grid; gap: 10px; margin-top: 24px; }

/* Calculateur */
.hero__grid > * { min-width: 0; }
.trade { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; }
.seg--coins { grid-template-columns: repeat(3, 1fr); }
.seg__btn {
  min-height: 40px; border: 0; border-radius: 9px; background: transparent;
  font: inherit; font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg__btn.is-active { background: var(--navy); color: #fff; }
.seg--coins .seg__btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(14,42,71,.15); }

.field { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.field--out { background: var(--bg); }
.field__label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; }
.field__row { display: flex; align-items: center; gap: 10px; }
.field input, .field output {
  flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 1.6rem; font-weight: 800; color: var(--navy);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.unit { font-weight: 700; font-size: .9rem; padding: .3em .8em; border-radius: 999px; background: var(--bg); }
.field select {
  width: 100%; margin-top: 4px; padding: 6px 0; border: 0; background: transparent;
  font: inherit; font-weight: 700; color: var(--navy); cursor: pointer;
}
.rate { font-size: .85rem; color: var(--muted); text-align: center; }

/* Sections */
.section { padding: 32px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.section__head h2 { margin: 0; }
.status { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c2b4; }
.status__dot.is-live { background: var(--teal); }
.status__dot.is-off { background: #e0a43a; }

/* Tableau des taux */
.table-wrap { overflow-x: auto; }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: 14px 16px; text-align: right; white-space: nowrap; }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.rates td { font-weight: 700; border-bottom: 1px solid var(--line); }
.rates tr:last-child td { border-bottom: 0; }
.coin { display: inline-flex; align-items: center; gap: 10px; }
.coin i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* Services */
.services { display: grid; gap: 10px; margin-top: 12px; }
.service { padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--card); border-radius: 0 12px 12px 0; }
.service p { color: var(--muted); font-size: .95rem; }

/* Pied de page */
.footer { padding: 28px 0 96px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 16px; }
.footer a { color: var(--navy); font-weight: 700; }

/* WhatsApp flottant */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px -6px rgba(37,211,102,.6);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Tablette et ordinateur */
@media (min-width: 640px) {
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__cta .btn { white-space: nowrap; }
  .services { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 64px 0 40px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
  .trade { padding: 20px; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
