:root{
  --bg:#f7f8fc;
  --panel:#ffffff;
  --panel2:#ffffff;
  --text:#0b0f1a;
  --muted:#4b5563;
  --accent:#2f6dff;
  --accent2:#18c39a;
  --border:rgba(0,0,0,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.10);
  --radius:16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(47,109,255,.14), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(24,195,154,.10), transparent 55%),
    var(--bg);
  line-height:1.55;
}

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

.container{ width:min(1120px, 92%); margin:0 auto; }

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(247,248,252,.72);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.logo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: var(--shadow);
  overflow:hidden;
  flex:0 0 auto;
}
.logo img{ width:40px; height:40px; display:block; }

.brand-text{ display:flex; flex-direction:column; min-width:0; }
.brand-text strong{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-text small{ color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.menu{ display:flex; align-items:center; gap:14px; }
.menu a{ color:var(--muted); font-weight:800; font-size:14px; }
.menu a:hover{ color:var(--text); }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px;
  background: linear-gradient(135deg, rgba(47,109,255,1), rgba(24,195,154,1));
  color:#08101a;
  font-weight:900;
  border:0;
  box-shadow: var(--shadow);
}
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow:none;
}
.btn-ghost{
  background: rgba(0,0,0,.03);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow:none;
}
.w-full{ width:100%; }

/* HERO */
.hero{ padding:64px 0 22px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
}
h1{ font-size: clamp(36px, 4vw, 56px); margin:0 0 12px; letter-spacing:-.02em; }
.lead{ color:var(--muted); font-size:18px; margin:0 0 18px; }
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px; }

.badges{ display:flex; gap:10px; flex-wrap:wrap; }
.badge{
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  border-radius: 999px;
  padding:8px 12px;
  display:flex; gap:10px; align-items:center;
}
.badge-title{ color:var(--muted); font-size:12px; }
.badge-value{ font-weight:900; font-size:13px; }

.section{ padding:54px 0; }
.section-alt{
  background: rgba(255,255,255,.55);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.section-head{ margin-bottom:18px; }
.section-head h2{ margin:0 0 8px; font-size:28px; }
.section-head p{ margin:0; color:var(--muted); }

.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}

.hero-card h2{ margin:0 0 8px; font-size:18px; }
.muted{ color:var(--muted); }
.tiny{ color:var(--muted); font-size:12px; }

.quick-links{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.pill{
  padding:8px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.03);
  border: 1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}

.list{ margin:12px 0 0; padding-left:18px; color:var(--muted); }
.list li{ margin:8px 0; }

.quote blockquote{ margin:0 0 10px; color: var(--text); font-weight:800; }
.quote figcaption{ color:var(--muted); font-size:13px; }

label{ display:block; margin-top:12px; color:var(--muted); font-size:14px; }
input, textarea, select{
  width:100%;
  margin-top:6px;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#ffffff;
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus, select:focus{ border-color: rgba(47,109,255,.55); }

.contact-actions{ display:grid; gap:10px; margin-top:12px; }

.footer{
  border-top: 1px solid var(--border);
  padding:18px 0;
  background: rgba(255,255,255,.72);
}
.footer-grid{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
.sep{ opacity:.6; margin:0 8px; }

/* ===== Mobile Hamburger + Menu ===== */
.hamburger{
  display:none;
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: var(--shadow);
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  flex:0 0 auto;
}

.mobile-menu{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  display:none;
  z-index:100;
}
.mobile-menu.is-open{ display:block; }

.mobile-menu__panel{
  position:absolute;
  right:12px;
  top:12px;
  left:12px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding:14px;
}

.mobile-menu__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}

.mobile-menu__close{
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.03);
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}

.mobile-link{
  display:block;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.02);
  color: var(--text);
  font-weight:900;
  margin:10px 0;
}

.mobile-link--cta{
  background: linear-gradient(135deg, rgba(47,109,255,1), rgba(24,195,154,1));
  color:#08101a;
  border:0;
}

/* Responsive */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .menu{ display:none !important; }
  .hamburger{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    margin-left:auto;
  }
}
.tv-wrap{
  width:100%;
  min-height:520px;
}

@media (max-width: 900px){
  .tv-wrap{ min-height:520px; }
}
.deriv-banner{
  margin: 16px 0;
  display: flex;
  justify-content: center;
}

.deriv-banner__link{
  display: inline-block;
  border: 0;
}

.deriv-banner__img{
  width: min(260px, 82vw);   /* augmente ici si tu veux plus large */
  height: auto;             /* garde les proportions */
  max-height: 560px;        /* évite un truc trop long */
  border: 0;
  display: block;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
/* Texte blanc dans les boutons colorés */
.btn,
.btn-deriv,
.btn-join,
.mobile-link--cta{
  color:#fff !important;
}

/* Optionnel : meilleure lisibilité sur fond coloré */
.btn,
.btn-deriv,
.btn-join,
.mobile-link--cta{
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
/* 1) Boutons/cases BLANCHES => texte BLEU */
.btn-outline,
.btn-neutral,
.btn-ghost,
.mobile-link{
  color:#2f6dff !important;
}

/* Assure que le fond reste clair */
.btn-outline,
.btn-neutral,
.btn-ghost,
.mobile-link{
  background:#fff !important;
}

/* Bordure bleue (optionnel, plus propre) */
.btn-outline,
.btn-neutral,
.btn-ghost,
.mobile-link{
  border:1px solid rgba(47,109,255,.35) !important;
}

/* 2) Boutons ROUGES (Deriv) => texte BLANC (prioritaire) */
.btn-deriv,
.mobile-link--cta{
  color:#fff !important;
  border:0 !important;
}
/* Fix mobile menu : Deriv (CTA) doit rester rouge + texte blanc */
.mobile-link--cta{
  background: linear-gradient(135deg,#ff2d55,#ff6a00) !important;
  color:#fff !important;
  border: 0 !important;
}

/* Optionnel : meilleure lisibilité */
.mobile-link--cta{
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.deriv-banner{
  margin: 16px 0;
  display:flex;
  justify-content:center;
}

.deriv-banner__link{
  display:block;
  background:#fff;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.10);
  box-shadow: var(--shadow);
}

.deriv-banner__img{
  width: min(360px, 92vw) !important; /* s’adapte mobile */
  height: auto !important;
  max-height: 620px;
  display:block;
  border-radius:14px;
}
.cards{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
}