@import url("./fonts.css");

html,
body {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 0;
}

.contact-us-form::-webkit-scrollbar {
  width: 0;
}

/* autofill */

input:-webkit-autofill {
  background-color: transparent !important;
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: inherit !important;
}

input:-webkit-autofill::first-line {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ==== GRAPH ==== */
.apexcharts-legend-text {
  font-size: 20px !important;
  font-family: "Funnel Display", "sans-serif" !important;
  padding-left: 24px !important;
}

.apexcharts-text tspan {
  font-family: "Inter", "sans-serif" !important;
  font-size: 14px !important;
}
.apexcharts-legend {
  padding-left: 0px !important;
}

@media (max-width: 1023.98px) {
  .apexcharts-text tspan {
    font-size: 12px !important;
  }
}
@media (max-width: 767.98px) {
  .apexcharts-text tspan {
    font-size: 8px !important;
  }
  .apexcharts-legend {
    padding-left: 20px !important;
  }
  .apexcharts-legend-text {
    font-size: 16px !important;
    padding-left: 20px !important;
  }
}

/* === TOASTTIFY === */

.toastify {
  display: flex !important;
  align-items: center !important;
  border: 1px solid black !important;
  font-size: 14px !important; /* Ajustez la taille de la police */
  font-family: 'Funnel Display', sans-serif !important; /* Appliquer la police */
  color: white !important; /* Couleur du texte */
  border-radius: 0 !important; /* Pas de bord arrondi */
  background: rgba(0, 0, 0, 0.7) !important; /* Fond sombre légèrement transparent */
}
.toastify .toastify-avatar {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

/* === LANGUAGE TOGGLE (index.html) === */
.lang-toggle {
  display: flex !important;
  border: 1px solid #D0DAE3 !important;
  overflow: hidden;
  border-radius: 3px;
}
.lang-btn {
  padding: 7px 12px !important;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  color: #6B7B8D !important;
  border: none !important;
  cursor: pointer !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px !important;
  transition: background 0.2s, color 0.2s;
}
.lang-btn + .lang-btn {
  border-left: 1px solid #D0DAE3 !important;
}
.lang-btn.active {
  background: #0E1117 !important;
  background-color: #0E1117 !important;
  color: #FFFFFF !important;
}
.lang-btn:hover:not(.active) {
  background: #F3F5F7 !important;
  background-color: #F3F5F7 !important;
  color: #0E1117 !important;
}

/* ── Hero left content — right padding to prevent text touching image ── */
@media (min-width: 768px) {
  .hero-content-left {
    padding-right: 48px;
  }
}

/* ── Section light background (Our approach) ── */
.section-light-bg {
  background-color: #F3F5F7;
}

/* ── Trust strip ── */
.trust-strip {
  background-color: #F3F5F7;
  border-bottom: 1px solid #D0DAE3;
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 24px;
}
@media (min-width: 1024px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 14px 24px;
  }
  .trust-strip__grid > div {
    padding: 0 24px;
    border-left: 1px solid #D0DAE3;
  }
  .trust-strip__grid > div:first-child {
    padding-left: 0;
    border-left: none;
  }
  .trust-strip__grid > div:last-child {
    padding-right: 0;
  }
}
.trust-strip__label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.trust-strip__value {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: #0E1117;
  text-decoration: none;
}
a.trust-strip__value:hover {
  text-decoration: underline;
}

/* ── Hero ghost CTA ── */
.hero-cta-ghost {
  background: transparent;
  color: #DBD1BC;
  border: 1px solid #DBD1BC;
  transition: background 0.3s, color 0.3s;
}
.hero-cta-ghost:hover {
  background: #DBD1BC;
  color: #0E1117;
}

/* ── Nav Articles button (header secondary CTA — outlined ghost) ── */
.nav-articles-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #0E1117;
  background: transparent;
  border: 1px solid #0E1117;
  border-radius: 4px;
  height: 44px;
  padding: 0 16px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-articles-link:hover {
  background: #0E1117;
  color: #fff;
}
@media (min-width: 768px) {
  .nav-articles-link {
    height: 54px;
    padding: 0 24px;
    font-size: 16px;
  }
}

/* Hide on mobile: the "Découvrir SparkCore" CTA + logo already saturate the
   narrow header. Showing both buttons forced the Articles pill to overlap the
   logo text. Users still reach articles via footer + main CTA discovery. */
@media (max-width: 767px) {
  .nav-articles-link {
    display: none;
  }
}

/* ── Hero latest article badge ── */
.hero-latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  background: rgba(219, 209, 188, 0.08);
  border: 1px solid rgba(219, 209, 188, 0.25);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #DBD1BC;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  margin-bottom: 24px;
  max-width: 100%;
  width: max-content;
}
.hero-latest-badge:hover {
  background: rgba(219, 209, 188, 0.18);
  border-color: rgba(219, 209, 188, 0.5);
}
.hero-latest-badge__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8FA3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 700;
}
.hero-latest-badge__label::before {
  content: "✦";
  color: #DBD1BC;
  font-size: 13px;
}
.hero-latest-badge__title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}
.hero-latest-badge__arrow {
  font-weight: 500;
  transition: transform 0.2s ease;
}
.hero-latest-badge:hover .hero-latest-badge__arrow {
  transform: translateX(2px);
}
@media (min-width: 768px) {
  .hero-latest-badge {
    font-size: 14px;
  }
  .hero-latest-badge__title {
    max-width: 320px;
  }
}

/* ── Article author bio (S2-2) ── */
.article-bio-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Founder CTA button (S2-6) — Cal.eu popup ── */
.founder-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  background: #0E1117;
  border-radius: 4px;
  padding: 12px 20px;
  text-decoration: none;
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
}
.founder-cta-btn:hover {
  background: #4A6275;
}
@media (min-width: 768px) {
  .founder-cta-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
}