/* sofincodigital overrides — logo, hero, pro, app, faq, cookie bar
   (complements the vendored sofinco.min.css) */

:root {
  --sd-cyan: #00b2a9;
  --sd-navy: #1d2b53;
  --sd-gray: #f4f6f8;
}

/* ---------- logo ---------- */
.sd-logo { display: inline-flex; flex-direction: column; line-height: 1.05; text-decoration: none; }
.sd-logo__main { font-family: Cutta, "Cutta Bold", sans-serif; font-weight: 700;
  font-size: 26px; color: var(--sd-navy); letter-spacing: -.02em; }
.sd-logo__main em { font-style: normal; color: var(--sd-cyan); margin-left: 4px; }
.sd-logo__tag { font-size: 11px; color: #6b7280; font-family: Sarabun, sans-serif; margin-top: 1px; }
.sd-logo--footer .sd-logo__main { color: #fff; }
.sd-logo--footer .sd-logo__main em { color: var(--sd-cyan); }

/* ---------- hero ---------- */
.sd-hero { background: var(--sd-gray); padding: 34px 0 0; overflow: hidden; }
.sd-hero__grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 900px) {
  .sd-hero__grid { grid-template-columns: 46% 54%; gap: 0; }
}
.sd-hero__content h1 { font-family: Cutta, sans-serif; font-size: clamp(28px, 4vw, 44px);
  color: var(--sd-navy); margin: 0 0 12px; line-height: 1.08; }
.sd-hero__sub { font-size: clamp(15px, 1.5vw, 18px); color: #374151; max-width: 46ch; }
.sd-hero__card { background: #fff; border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 30px rgba(29,43,83,.10); max-width: 360px; margin: 18px 0; }
.sd-hero__card-badge { display: inline-block; background: var(--sd-cyan); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.sd-hero__card-big { font-family: Cutta, sans-serif; font-size: 34px; color: var(--sd-navy); margin: 8px 0 0; }
.sd-hero__card-big sup { font-size: 18px; }
.sd-hero__card-small { color: #6b7280; font-size: 13px; margin: 2px 0 12px; }
.sd-hero__card-cta { display: block; text-align: center; }
.sd-hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.sd-hero__trust { font-size: 12.5px; color: #6b7280; margin-bottom: 18px; }
.sd-hero__visu img { width: 100%; height: auto; display: block; border-radius: 14px 14px 0 0; }
@media (min-width: 900px) {
  .sd-hero__visu img { border-radius: 14px 0 0 14px; }
}

/* ---------- buttons ---------- */
.button { background: var(--sd-cyan); color: #fff; border: 0; border-radius: 999px;
  padding: 13px 22px; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; display: inline-block; }
.button:hover { filter: brightness(.95); }
.button--ghost { background: #fff; color: var(--sd-navy); border: 2px solid var(--sd-navy); }
.header-menu-cta { font-size: 14px; }

/* ---------- stars (avis) ---------- */
.sd-stars::before { content: "★★★★★"; color: #f5a623; font-size: 18px; letter-spacing: 2px; }

/* ---------- quality band ---------- */
.sd-quality { background: var(--sd-navy); color: #fff; border-radius: 16px; padding: 26px 24px; }
.sd-quality h2 { color: #fff; margin-top: 0; }
.sd-quality p { color: #cbd5e1; max-width: 70ch; }

/* ---------- pro ---------- */
.sd-pro { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; padding: 34px 0; }
@media (min-width: 900px) { .sd-pro { grid-template-columns: 1fr 1fr; } }
.sd-pro__text h2 { color: var(--sd-navy); }
.sd-pro__text p { color: #374151; }
.sd-pro__visu img { width: 100%; height: auto; border-radius: 14px; }

/* ---------- app ---------- */
.sd-app { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; }
@media (min-width: 900px) { .sd-app { grid-template-columns: 1fr 320px; } }
.sd-app__visu img { width: 100%; max-width: 320px; height: auto; border-radius: 14px; }

/* ---------- faq ---------- */
.sd-faq__item { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  margin-bottom: 10px; overflow: hidden; }
.sd-faq__item summary { cursor: pointer; padding: 15px 18px; font-weight: 700;
  color: var(--sd-navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sd-faq__item summary::-webkit-details-marker { display: none; }
.sd-faq__item summary::after { content: "+"; color: var(--sd-cyan); font-size: 22px; font-weight: 800; }
.sd-faq__item[open] summary::after { content: "–"; }
.sd-faq__item p { padding: 0 18px 15px; color: #4b5563; margin: 0; }

/* ---------- contact strip ---------- */
.sd-contact-strip { text-align: center; padding: 30px 0; }

/* ---------- footer extras ---------- */
.footer-baseline { color: #9ca3af; font-size: 13px; max-width: 34ch; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 18px;
  padding: 14px 0 6px; color: #9ca3af; font-size: 12.5px; text-align: center; }

/* ---------- cookie bar ---------- */
.sd-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
  background: var(--sd-navy); color: #fff; display: flex; align-items: center;
  gap: 14px; padding: 12px 16px; font-size: 13px; flex-wrap: wrap; }
.sd-cookie p { margin: 0; flex: 1; min-width: 240px; }
.sd-cookie a { color: var(--sd-cyan); }
.sd-cookie.is-hidden { display: none; }


/* ---------- legal/contact pages ---------- */
.sd-page { max-width: 820px; margin: 0 auto; padding: 30px 18px 60px; }
.sd-page h1 { color: var(--sd-navy); font-family: Cutta, sans-serif; }
.sd-page h2 { color: var(--sd-navy); font-size: 19px; margin: 24px 0 8px; }
.sd-page p, .sd-page li { color: #374151; font-size: 15px; line-height: 1.65; }
.sd-form { display: grid; gap: 12px; max-width: 560px; }
.sd-form label { display: grid; gap: 5px; font-weight: 700; color: var(--sd-navy); font-size: 14px; }
.sd-form input, .sd-form textarea, .sd-form select { padding: 12px 14px;
  border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.sd-form .button { justify-self: start; }
.sd-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  border-radius: 12px; padding: 16px 18px; font-size: 15px; }

/* header: flat nav links in the original's menu slots + mobile drawer */
.header-nav__link { display: block; padding: 12px 16px; color: var(--sd-navy);
  font-weight: 700; font-size: 15px; text-decoration: none; }
.header-nav__link:hover { color: var(--sd-cyan); }
.sd-nav-cta { display: flex; align-items: center; padding-left: 10px; }
.header-menu-links-help { color: var(--sd-navy); font-weight: 700; font-size: 14px;
  text-decoration: none; }
@media (max-width: 62rem) {
  .header-menu .header-nav { display: none; }
  .header-menu.is-open .header-nav, .header-nav.sd-drawer-open {
    display: block; position: fixed; left: 0; right: 0; background: #fff;
    padding: 12px 18px; z-index: 9600;
    max-height: calc(100vh - 96px); overflow-y: auto;
    box-shadow: 0 16px 30px rgba(0,0,0,.12); }
  .header-menu.is-open .header-nav-themenu { display: flex; flex-direction: column; gap: 4px; }
  .header-menu.is-open .header-nav__link { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; }
  .sd-nav-cta { padding: 12px 8px; }
}
