/* ──────────────────────────────────────────────────────────────────────────────
   Responsive public : adaptations tablette et mobile
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .kb-topbar {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 70px;
    padding: 12px 24px;
  }

  .kb-menu-toggle {
    display: block;
  }

  .kb-nav,
  .kb-topbar__actions {
    display: none;
  }

  .kb-nav.is-open,
  .kb-topbar__actions.is-open {
    grid-column: 1 / -1;
    display: grid;
    justify-content: stretch;
    gap: 12px;
    padding-top: 12px;
  }

  .kb-nav.is-open a {
    padding: 10px 0;
    border-bottom: 1px solid var(--kb-border);
  }

  .kb-topbar-button,
  .kb-login {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .kb-hero__grid,
  .kb-evolution__grid,
  .kb-cta-zone__grid {
    grid-template-columns: 1fr;
  }

  .kb-orbit {
    min-height: 560px;
  }

  .kb-connected__grid,
  .kb-profiles__grid {
    grid-template-columns: 1fr;
  }

  .kb-tool-line {
    grid-template-columns: repeat(3, 1fr);
  }

  .kb-profile-line {
    grid-template-columns: repeat(3, 1fr);
  }

  .kb-cta-zone__content {
    padding-left: 0;
  }

  .kb-device {
    min-height: 360px;
  }

  .kb-laptop {
    right: 120px;
  }

  .kb-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .kb-container {
    width: calc(100% - 28px);
  }

  .kb-hero {
    padding: 52px 0 34px;
  }

  .kb-hero h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .kb-hero__lead {
    font-size: 16px;
  }

  .kb-hero__actions,
  .kb-cta-zone__actions {
    display: grid;
  }

  .kb-button {
    width: 100%;
  }

  .kb-hero__trust {
    gap: 16px;
  }

  .kb-orbit {
    min-height: 430px;
    transform: scale(0.78);
    transform-origin: center top;
    margin: 0 -48px -80px;
  }

  .kb-evolution {
    padding: 60px 0 48px;
  }

  .kb-switch {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .kb-switch__arrow {
    transform: rotate(90deg);
  }

  .kb-switch__rings {
    left: 50%;
    transform: translateX(-50%);
  }

  .kb-mini-steps {
    grid-template-columns: 1fr;
  }

  .kb-tool-line,
  .kb-profile-line,
  .kb-stats__grid {
    grid-template-columns: 1fr;
  }

  .kb-tool,
  .kb-profile {
    min-height: auto;
    padding: 24px 10px;
  }

  .kb-tool:not(:last-child)::after,
  .kb-profile:not(:last-child)::after {
    right: 18%;
    left: 18%;
    top: auto;
    bottom: 0;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a8c3ff, transparent);
  }

  .kb-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.16);
  }

  .kb-stat:last-child {
    border-bottom: 0;
  }

  .kb-device {
    min-height: 280px;
    transform: scale(0.78);
    transform-origin: center top;
    margin: 0 -40px -70px;
  }

  .kb-laptop {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .kb-phone {
    right: 8%;
  }

  .kb-footer__grid {
    grid-template-columns: 1fr;
  }

  .kb-footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .kb-brand__symbol {
    font-size: 29px;
  }

  .kb-brand__text strong {
    font-size: 17px;
  }

  .kb-hero h1 {
    font-size: 40px;
  }

  .kb-orbit {
    transform: scale(0.62);
    margin: 0 -92px -170px;
  }

  .kb-device {
    transform: scale(0.62);
    margin: 0 -90px -115px;
  }
}

@media (max-width: 1180px) {
  .kb-connected__layout {
    grid-template-columns: 1fr;
  }

  .kb-connected__title p:not(.kb-eyebrow) {
    max-width: 720px;
  }
}

@media (max-width: 760px) {
  .kb-real-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .kb-real-tool:not(:nth-child(5n))::after {
    display: none;
  }

  .kb-real-tool:nth-child(n+3) {
    border-top: 1px solid rgba(168, 195, 255, 0.45);
  }

  .kb-real-tool:nth-child(odd)::after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background: linear-gradient(180deg, transparent, #a8c3ff, transparent);
  }
}

@media (max-width: 430px) {
  .kb-real-tools {
    grid-template-columns: 1fr;
  }

  .kb-real-tool:nth-child(odd)::after {
    display: none;
  }

  .kb-real-tool:nth-child(n+2) {
    border-top: 1px solid rgba(168, 195, 255, 0.45);
  }
}

@media (max-width: 1180px) {
  .kb-seo-platform__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .kb-seo-platform__content {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 2px solid rgba(45, 109, 255, 0.45);
  }
}

@media (max-width: 760px) {
  .kb-seo-platform {
    padding: 56px 0;
  }

  .kb-seo-platform__points {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive finitions Home KreaBoard
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .kb-evolution,
  .kb-connected,
  .kb-profiles,
  .kb-seo-platform,
  .kb-cta-zone {
    padding-top: 74px;
    padding-bottom: 74px;
  }

  .kb-seo-platform__content {
    padding-left: 0;
  }

  .kb-platform-map::before {
    width: 390px;
    height: 390px;
  }
}

@media (max-width: 760px) {
  .kb-evolution,
  .kb-connected,
  .kb-profiles,
  .kb-seo-platform,
  .kb-cta-zone {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .kb-evolution__content p,
  .kb-connected__title p:not(.kb-eyebrow),
  .kb-seo-platform__content p,
  .kb-cta-zone__content p {
    font-size: 16px;
    line-height: 1.72;
  }

  .kb-platform-map {
    min-height: 380px;
  }

  .kb-platform-map::before {
    width: 330px;
    height: 330px;
  }

  .kb-platform-map::after {
    height: 260px;
  }

  .kb-platform-map__item {
    width: 150px;
  }

  .kb-cta-zone__actions .kb-button--outline-dark {
    font-size: 13px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive - visuel premium Organisation digitale
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .kb-platform-showcase {
    transform: scale(0.94);
    transform-origin: center;
  }
}

@media (max-width: 900px) {
  .kb-switch--premium {
    min-height: auto;
  }

  .kb-switch--premium .kb-platform-map {
    min-height: auto;
    padding: 12px 0;
  }

  .kb-platform-showcase {
    width: 100%;
    height: auto;
    transform: none;
    display: grid;
    gap: 18px;
  }

  .kb-platform-showcase__glow,
  .kb-platform-showcase__ring {
    display: none;
  }

  .kb-platform-showcase__window {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    height: 240px;
  }

  .kb-platform-showcase__mobile {
    display: none;
  }

  .kb-platform-showcase__floating-grid {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .kb-platform-showcase__card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-height: 96px;
  }
}

@media (max-width: 640px) {
  .kb-platform-showcase__window-body {
    grid-template-columns: 70px 1fr;
  }

  .kb-platform-showcase__content {
    padding: 14px;
    gap: 12px;
  }

  .kb-platform-showcase__top-cards {
    gap: 10px;
  }

  .kb-platform-showcase__chart {
    padding: 14px 12px;
    gap: 8px;
  }

  .kb-platform-showcase__chart i {
    width: 22px;
  }

  .kb-platform-showcase__floating-grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive - Constellation Organisation digitale
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .kb-switch--constellation {
    min-height: 500px;
  }

  .kb-constellation {
    transform: scale(0.94);
    transform-origin: center;
  }
}

@media (max-width: 760px) {
  .kb-switch--constellation {
    min-height: 620px;
  }

  .kb-constellation {
    width: 100%;
    height: 600px;
    transform: none;
  }

  .kb-constellation__ring--three {
    width: 340px;
    height: 340px;
  }

  .kb-constellation__ring--two {
    width: 260px;
    height: 260px;
  }

  .kb-constellation__ring--one {
    width: 180px;
    height: 180px;
  }

  .kb-constellation__line {
    width: 330px;
  }

  .kb-constellation__core {
    width: 140px;
    height: 140px;
  }

  .kb-constellation__core strong {
    font-size: 50px;
  }

  .kb-constellation__node {
    width: 138px;
  }

  .kb-constellation__node--create {
    top: 0;
  }

  .kb-constellation__node--sell {
    right: 0;
    top: 130px;
  }

  .kb-constellation__node--book {
    right: 0;
    bottom: 118px;
  }

  .kb-constellation__node--cash {
    left: 0;
    bottom: 118px;
  }

  .kb-constellation__node--plan {
    left: 0;
    top: 130px;
  }

  .kb-constellation__node--track {
    bottom: 0;
  }
}

@media (max-width: 460px) {
  .kb-switch--constellation {
    min-height: 680px;
  }

  .kb-constellation {
    height: 660px;
  }

  .kb-constellation__line,
  .kb-constellation__ring {
    opacity: 0.55;
  }

  .kb-constellation__node {
    width: 130px;
  }

  .kb-constellation__node small {
    font-size: 12px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive footer après suppression colonne Plateforme
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .kb-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .kb-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kb-footer__brand {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .kb-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive - Carrousel bloc Free
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .kb-free-carousel {
    min-height: auto;
  }

  .kb-free-carousel__track {
    min-height: 370px;
  }

  .kb-free-slide__browser {
    height: 245px;
  }
}

@media (max-width: 620px) {
  .kb-free-slide__browser {
    height: 230px;
  }

  .kb-free-slide__body {
    grid-template-columns: 68px 1fr;
  }

  .kb-free-slide__content {
    padding: 18px;
    gap: 12px;
  }

  .kb-free-slide__content > span {
    height: 42px;
  }

  .kb-free-slide__chart {
    height: 88px;
    gap: 10px;
    padding: 14px;
  }

  .kb-free-slide__sales-row {
    gap: 10px;
  }

  .kb-free-slide__sales-row i {
    height: 76px;
  }

  .kb-free-slide__calendar {
    padding: 16px;
    gap: 10px;
  }

  .kb-free-slide__calendar i {
    height: 36px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   Responsive - Défilement naturel bloc Free
   ────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .kb-free-marquee {
    min-height: 360px;
  }

  .kb-free-preview {
    flex-basis: 460px;
    height: 280px;
  }

  .kb-free-preview__body {
    grid-template-columns: 72px 1fr;
  }

  .kb-free-preview main {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .kb-free-marquee {
    min-height: 310px;
  }

  .kb-free-marquee__track {
    gap: 20px;
    animation-duration: 28s;
  }

  .kb-free-preview {
    flex-basis: 340px;
    height: 245px;
    border-radius: 24px;
  }

  .kb-free-preview__body {
    grid-template-columns: 54px 1fr;
  }

  .kb-free-preview main {
    padding: 16px;
    gap: 12px;
  }

  .kb-free-preview header {
    gap: 10px;
  }

  .kb-free-preview header span {
    height: 40px;
  }

  .kb-free-preview__chart {
    height: 86px;
    gap: 8px;
    padding: 12px;
  }

  .kb-free-preview__cards {
    gap: 10px;
  }

  .kb-free-preview__cards i {
    height: 82px;
  }

  .kb-free-preview__calendar {
    gap: 8px;
  }

  .kb-free-preview__calendar i {
    height: 34px;
  }

  .kb-free-preview strong {
    left: 20px;
    bottom: 16px;
    font-size: 15px;
  }
}
