/* ===================================================
   KOMPTO — Custom Styles
   =================================================== */

/* ----- Jost Self-Hosted Font ----- */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/jost-300.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/jost-400.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/jost-500.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/jost-600.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/jost-700.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/jost-800.ttf') format('truetype'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/jost-900.ttf') format('truetype'); }

/* ----- Variables ----- */
:root {
  --k-dark:     #1a1a1a;
  --k-navy:     #1a1a2e;
  --k-orange:   #c4602c;
  --k-orange2:  #e8833a;
  --k-muted:    #6b7280;
  --k-border:   #e5e7eb;
  --k-gray-bg:  #f9fafb;
}

/* ----- Base ----- */
body {
  font-family: 'Jost', sans-serif !important;
  background: #fff;
  color: var(--k-dark);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.fw-bold, .fw-bolder {
  font-family: 'Jost', sans-serif !important;
  letter-spacing: -0.02em;
  font-weight: 600 !important;
}

hr {
  display: none !important;
}

/* ----- NAVBAR ----- */
.navbar .container-fluid {
  padding-left: 5% !important;
  padding-right: 5% !important;
}

.navbar {
  background-color: var(--k-navy) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  position: sticky !important;
  top: 0;
  z-index: 1000;
}

.navbar-brand img {
  filter: brightness(0) invert(1);
  width: 72px !important;
}

.nav-link {
  color: #fff !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover:not(.btn),
.nav-link.active:not(.btn) {
  color: var(--k-orange2) !important;
}

/* Se connecter button — orange gradient (user wants to keep this) */
.navbar .btn-dark,
.nav-link.btn.btn-dark {
  background: linear-gradient(135deg, var(--k-orange) 0%, var(--k-orange2) 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 25px !important;
  padding: 0.45rem 1.4rem !important;
  font-weight: 600 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.navbar .btn-dark:hover,
.nav-link.btn.btn-dark:hover {
  background: linear-gradient(135deg, var(--k-orange2) 0%, #f5a462 100%) !important;
  box-shadow: 0 4px 14px rgba(196, 96, 44, 0.4);
  transform: translateY(-1px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3) !important;
  filter: invert(1);
}

/* ----- HERO — white bg, dark text, orange accent ----- */
#hero h1 {
  font-weight: 600 !important;
}

#hero {
  background: #fff !important;
  padding: 80px 5% 40px !important;
  min-height: 80vh;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--k-border);
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('../assets/background sito.svg') no-repeat right top / auto 100%;
  pointer-events: none;
  z-index: 0;
}

#hero > * {
  position: relative;
  z-index: 1;
}

#hero > div:first-child {
  margin-top: -30px;
}

#hero > div:last-child {
  margin-top: 15px;
}

#hero h1 {
  color: var(--k-dark) !important;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  font-weight: 600 !important;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
  font-family: 'Jost', sans-serif !important;
}

/* orange accent on last word of hero title */
#hero h1 em {
  color: var(--k-orange);
  font-style: normal;
}

#hero p.fs-4 {
  color: var(--k-muted) !important;
  font-weight: 400 !important;
  font-size: 1.05rem !important;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-family: 'Jost', sans-serif !important;
}

#hero table {
  background: transparent;
  padding: 0;
  border: none;
}

#hero table h4 {
  color: var(--k-dark) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 0;
  white-space: nowrap;
}

#hero-preview {
  border-radius: 0;
  box-shadow: none;
  transform: scale(1.1) translateY(-60px);
  transform-origin: top center;
}

/* ----- CTA BUTTONS ----- */
.btn-orange {
  background: linear-gradient(135deg, var(--k-orange) 0%, var(--k-orange2) 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 25px !important;
  padding: 0.6rem 1.6rem !important;
  font-weight: 600 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-orange:hover {
  background: linear-gradient(135deg, var(--k-orange2) 0%, #f5a462 100%) !important;
  box-shadow: 0 4px 14px rgba(196, 96, 44, 0.35);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ----- FEATURES SECTION — light gray bg ----- */
#advantages {
  background: var(--k-gray-bg) !important;
  padding: 3rem 0 0 !important;
  scroll-margin-top: 100px;
}

#advantages .card.border-0.h-100 {
  background: #fff !important;
  border: 1px solid var(--k-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  padding: 1.4rem 1.4rem !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

#advantages .card-body {
  padding: 0.8rem 0.5rem 0.5rem !important;
}

#advantages .card.border-0.h-100:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 25, 80, 0.18) !important;
}

@media (hover: none) {
  #advantages .card.border-0.h-100:hover {
    transform: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
  }
}

.feature {
  width: 52px !important;
  height: 52px !important;
  background: linear-gradient(135deg, var(--k-orange) 0%, var(--k-orange2) 100%) !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.2rem !important;
  margin-top: 0 !important;
  box-shadow: none !important;
}

.feature img {
  filter: brightness(0) invert(1);
  width: 24px !important;
}

#advantages h2.fs-4.fw-bold {
  color: var(--k-dark) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem;
  font-family: 'Jost', sans-serif !important;
}

#advantages p.mb-0 {
  color: var(--k-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ----- PARTNER CARD ----- */
.partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  background: #fff;
  border: 1px solid var(--k-border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding: 1.4rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(20, 25, 80, 0.18) !important;
}

/* ----- "RÉPOND AUX BESOINS" ----- */
#ivoiriens {
  background: #fff !important;
  padding: 3rem 5% !important;
}

#ivoiriens h1.display-5 {
  color: var(--k-dark) !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

#ivoiriens p.fs-4 {
  color: var(--k-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.8;
}

#ivoiriens .img-fluid {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ----- "CONNECTEZ" ----- */
#accountant {
  background: var(--k-gray-bg) !important;
  padding: 3rem 5% !important;
}

#accountant h1.display-5 {
  color: var(--k-dark) !important;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

#accountant p.fs-4 {
  color: var(--k-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 1rem !important;
  line-height: 1.8;
}

#accountant .img-fluid {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* ----- PRICING ----- */
#offers {
  background: linear-gradient(160deg, #1a1a2e 0%, #2d1a10 100%) !important;
  padding: 45px 0 !important;
  scroll-margin-top: 102px;
}

#offers h1.display-5:first-of-type {
  color: var(--k-orange2) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

#offers h1.display-5:last-of-type {
  color: #fff !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  font-weight: 600 !important;
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}

#offers p {
  color: rgba(255, 255, 255, 0.75) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* ----- SUB-PAGE HEADERS (agrement, partenaire, blog articles, guide) ----- */
header:not(#hero) h1.display-5,
.container-fluid.offset-lg-2 h1.display-5 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  line-height: 1.1 !important;
  color: var(--k-dark) !important;
}

/* ----- DÉMARREZ section — light gray ----- */
#demarrer {
  background: var(--k-gray-bg) !important;
  padding: 45px 0 !important;
}

#demarrer h1.display-5 {
  color: var(--k-dark) !important;
  font-size: calc(1.375rem + 1.5vw) !important;
}

#demarrer p {
  color: var(--k-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  line-height: 1.7;
}

#demarrer .form-control {
  border: 1px solid var(--k-border) !important;
  background-color: #fff !important;
  color: var(--k-dark) !important;
  margin-bottom: 0.375rem !important;
}

#demarrer textarea.form-control {
  min-height: calc(3 * 2.4rem) !important;
  resize: vertical;
}

#demarrer .form-control:focus {
  background-color: #fff !important;
  color: var(--k-dark) !important;
  border-color: var(--k-orange2) !important;
  box-shadow: 0 0 0 3px rgba(196, 96, 44, 0.25) !important;
  outline: none;
}

#demarrer .form-control::placeholder {
  color: var(--k-muted) !important;
}

#demarrer .btn-dark {
  background: linear-gradient(135deg, var(--k-orange) 0%, var(--k-orange2) 100%) !important;
  border: none !important;
  padding: 0.75rem 2.2rem !important;
  font-size: 0.9rem;
  border-radius: 25px !important;
  margin-top: 0.3rem;
  font-weight: 600 !important;
  color: #fff !important;
  transition: all 0.25s ease;
}

#demarrer .btn-dark:hover {
  background: linear-gradient(135deg, var(--k-orange2) 0%, #f5a462 100%) !important;
  box-shadow: 0 4px 14px rgba(196, 96, 44, 0.4);
  transform: translateY(-1px);
}

/* ----- CONTACT — light ----- */
#contacts {
  background: #fff !important;
  padding: 45px 0 !important;
  scroll-margin-top: 112px;
  border-top: 1px solid var(--k-border);
  border-bottom: 1px solid var(--k-border);
}

#contacts h1.display-5 {
  color: var(--k-dark) !important;
  font-size: calc(1.375rem + 1.5vw) !important;
}

#contacts h4 {
  color: var(--k-dark) !important;
  font-family: 'Jost', sans-serif !important;
  font-weight: 600;
  font-size: 1.3rem !important;
  margin-bottom: 1rem !important;
}

#contacts p {
  color: var(--k-muted) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  line-height: 1.7;
}

#contacts p b {
  color: var(--k-dark);
  font-weight: 600;
  font-size: 1.3rem;
}

#contacts .form-control {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.85rem;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #fff !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contacts .form-control:focus {
  border-color: var(--k-orange2) !important;
  box-shadow: 0 0 0 3px rgba(232, 131, 58, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  outline: none;
  color: #fff !important;
}

#contacts .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

#contacts .btn-dark {
  background: linear-gradient(135deg, var(--k-orange) 0%, var(--k-orange2) 100%) !important;
  border: none !important;
  padding: 0.75rem 2.2rem !important;
  font-size: 0.9rem;
  border-radius: 25px !important;
  margin-top: 0.3rem;
  font-weight: 600 !important;
  color: #fff !important;
  transition: all 0.25s ease;
}

#contacts .btn-dark:hover {
  background: linear-gradient(135deg, var(--k-orange2) 0%, #f5a462 100%) !important;
  box-shadow: 0 4px 14px rgba(196, 96, 44, 0.4);
  transform: translateY(-1px);
}

/* ----- FOOTER ----- */
footer.py-5 {
  background: var(--k-navy) !important;
  padding: 2rem 0 !important;
  border-top: 1px solid rgba(255,255,255,0.06);
}

footer p {
  color: rgba(255, 255, 255, 0.35) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.footer_ul a {
  color: rgba(255,255,255,0.35) !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.82rem;
}

.footer_ul a:hover {
  color: var(--k-orange2) !important;
}

/* ----- BLOG ----- */
.blog-page {
  padding: 60px 0 80px;
}

@media (max-width: 767.98px) {
  .blog-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .blog-page .post-preview {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.post-preview {
  padding: 0.5rem 0;
}

.post-preview > a {
  text-decoration: none;
  color: var(--k-dark) !important;
  font-family: 'Jost', sans-serif !important;
}

.post-preview > a:hover,
.post-preview > a:focus {
  color: var(--k-orange) !important;
  text-decoration: none;
}

.post-preview > a > .post-title {
  font-family: 'Jost', sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  margin-top: 0 !important;
  margin-bottom: 0.4rem;
  color: var(--k-dark) !important;
  letter-spacing: -0.01em;
}

.post-preview > .post-meta {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--k-muted) !important;
  line-height: 1.6;
  margin-top: 0.3rem;
}

.blog-page hr.my-4 {
  display: block !important;
  border-color: var(--k-border) !important;
  opacity: 1;
  margin: 1.5rem 0 !important;
}

.blog-page .row {
  align-items: flex-start !important;
}

.blog-img-wrap {
  overflow: hidden;
}

.blog-page .row > .col-md-3 img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* ----- GUIDE FNE & SUB-PAGE ARTICLE HEADERS ----- */
.guide-page {
  padding: 0 0 80px;
}

.guide-page .img-fluid {
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.guide-page h1.display-5 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem) !important;
  line-height: 1.1 !important;
  color: var(--k-dark) !important;
}

.guide-page p {
  color: var(--k-dark);
  font-family: 'Jost', sans-serif !important;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.6rem;
}

.guide-page p:has(> b) {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

.guide-page p b,
.guide-page li,
.guide-page ol,
.guide-page ul {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.95rem;
  line-height: 1.8;
}

.guide-page a {
  color: var(--k-orange) !important;
}

.guide-page a:hover {
  color: var(--k-orange2) !important;
}

/* Accordion styling */
.accordion-button {
  font-family: 'Jost', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--k-dark) !important;
  background: #fff !important;
}

.accordion-button:not(.collapsed) {
  color: var(--k-orange) !important;
  background: var(--k-gray-bg) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(232,131,58,0.15) !important;
}

.accordion-body {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--k-dark);
}

.accordion-item {
  border-color: var(--k-border) !important;
}

/* ----- LEGAL PAGES (CGU, Accessibilité, etc.) ----- */
.legal-page,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 {
  padding-top: 60px;
  padding-bottom: 80px;
}

.legal-page h1,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
  color: var(--k-dark) !important;
  margin-bottom: 1.5rem;
  font-family: 'Jost', sans-serif !important;
  font-weight: 600 !important;
}

.legal-page h2, .legal-page h3,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 h2,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 h3 {
  color: var(--k-dark) !important;
  font-weight: 600 !important;
  font-family: 'Jost', sans-serif !important;
}

.legal-page p, .legal-page li,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 p,
.container-fluid.offset-lg-2.col-lg-7.col-sm-12 li {
  font-family: 'Jost', sans-serif !important;
  font-size: 0.95rem;
  color: var(--k-dark);
  line-height: 1.8;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 991px) {
  /* Hide desktop wavy SVG, use mobile one behind image only */
  #hero::after {
    display: none;
  }

  .hero-img-col {
    position: relative;
  }

  .hero-img-col::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: url('../assets/background_2.svg') no-repeat center center / 100% 100%;
    pointer-events: none;
    z-index: 0;
  }

  .hero-img-col > * {
    position: relative;
    z-index: 1;
  }

  #hero {
    padding: 60px 1.5rem 50px !important;
    min-height: auto;
  }

  #ivoiriens,
  #accountant {
    padding: 3rem 1.5rem !important;
  }

  .navbar-collapse {
    background: var(--k-navy);
    padding: 1rem 1.5rem;
    border-radius: 0 0 12px 12px;
    margin-top: 0.5rem;
  }

  /* Fix agrement/partenaire sub-pages: remove offset on non-desktop */
  header:not(#hero) .offset-2 {
    margin-left: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 1.5rem !important;
  }
}

@media (max-width: 576px) {
  /* Hero: show app screenshot above title */
  #hero > div:first-child { order: 2; margin-top: 2.5rem; }
  #hero > div:last-child  { order: 1; }

  #hero {
    padding: 30px 1.2rem 30px !important;
  }

  #hero h1 {
    font-size: 1.75rem !important;
    text-align: center;
  }

  #hero p.fs-4 {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  /* Reset hero image transform on mobile */
  #hero-preview {
    transform: none !important;
    margin-top: 0;
  }

  /* Badge row: centered, button fit-content */
  #hero table { display: block; }

  #hero table tbody,
  #hero table tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  #hero table td:first-child img {
    width: 52px !important;
  }

  #hero table td:last-child {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  #hero table td:last-child a {
    display: inline-block;
    width: auto !important;
  }

  /* Advantages: reduce gap between cards */
  #advantages .col-lg-4 {
    margin-bottom: 1.2rem !important;
  }

  /* Section padding */
  #advantages {
    padding: 50px 0 20px !important;
  }

  /* #ivoiriens: show text first, image after */
  #ivoiriens > div:first-child { order: 2; }
  #ivoiriens > div:last-child  { order: 1; }

  #ivoiriens,
  #accountant {
    padding: 3rem 1.2rem !important;
  }

  /* Last 3 sections: add horizontal breathing room */
  #offers {
    padding: 50px 1.2rem !important;
  }

  #contacts {
    padding: 40px 1.2rem !important;
  }

  #demarrer {
    padding: 40px 1.2rem !important;
  }

  /* Form fields: add horizontal padding */
  #demarrer .offset-lg-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Section headings */
  #ivoiriens h1.display-5,
  #accountant h1.display-5,
  #offers h1.display-5:last-of-type {
    font-size: 1.6rem !important;
  }

  /* Ivoiriens: add space between image and text below */
  #ivoiriens .row > div:last-child {
    margin-top: 1.5rem;
  }

  /* Accountant: show image above text on mobile */
  #accountant .row > div:first-child { order: 2; }
  #accountant .row > div:last-child  { order: 1; }
  #accountant .row > div:first-child { margin-top: 1.5rem; }

  /* Anchor scroll offset — mobile collapsed navbar height ~111px */
  #advantages { scroll-margin-top: 115px; }
  #offers     { scroll-margin-top: 115px; }
  #contacts   { scroll-margin-top: 115px; }
}
