/* =========================================================
   KH STUDIO 1.12.1 · FINITIONS UI / ESPACE CLIENT / BLOG / VIDÉO LOCALE
   Couche légère chargée partout, sans remplacer le CSS global.
   ========================================================= */

/* ---------- Médias administrables ---------- */
.kh-managed-media-element,
.kh-managed-media-bg,
.kh-managed-media-band {
  box-sizing: border-box;
}

.kh-managed-media-element {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1C3A2A;
}

.kh-managed-media-element > img,
.kh-managed-media-element > video,
.kh-managed-media-element > iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
}

.kh-managed-media-element > iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, calc(100vh * 1.78));
  height: max(100%, calc(100vw / 1.78));
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kh-managed-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.kh-managed-media-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(14,14,12,.72), rgba(14,14,12,.18) 56%, rgba(14,14,12,.36)),
    linear-gradient(to right, rgba(14,14,12,.68), rgba(14,14,12,.08) 72%);
}

.kh-managed-media-bg .kh-managed-media-element {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.has-kh-managed-bg {
  position: relative !important;
  isolation: isolate;
}

.has-kh-managed-bg > :not(.kh-managed-media-bg) {
  position: relative;
  z-index: 3;
}

.kh-content-hero.has-kh-managed-bg::after,
.kh-contact-hero.has-kh-managed-bg::after {
  z-index: 2;
}

.kh-contact-hero.has-kh-managed-bg::before {
  display: none;
}

.kh-managed-media-band {
  position: relative;
  width: min(calc(100% - 40px), 1200px);
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 560px;
  margin: clamp(34px, 5vw, 70px) auto 0;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  background: #1C3A2A;
}

.kh-managed-media-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245,242,234,.12);
}

.kh-managed-media-band .kh-managed-media-element {
  position: absolute;
  inset: 0;
}

.kh-services > .kh-managed-media-band {
  grid-column: 1 / -1;
  width: calc(100% - 40px);
  margin-bottom: clamp(28px, 5vw, 64px);
}

.kh-contact-layout > .kh-managed-media-band {
  grid-column: 1 / -1;
  width: 100%;
}

.kh-hero-right.has-kh-managed-replace > .kh-managed-media-element,
.kh-work-immersive-hero__video-wrap.has-kh-managed-replace > .kh-managed-media-element,
.kh-work-focus__media.has-kh-managed-replace > .kh-managed-media-element {
  position: absolute;
  inset: 0;
}

.kh-hero-right.has-kh-managed-replace > .kh-managed-media-element {
  z-index: 1;
}

.kh-work-focus__media.has-kh-managed-replace > .kh-managed-media-element > iframe {
  width: 125%;
  height: 125%;
}

/* ---------- Titres : éviter les débordements ---------- */
.kh-content-hero__copy h1,
.kh-content-heading h2,
.kh-about-approach__head h2,
.kh-services-pricing__head h2,
.kh-engagements-ai h2,
.kh-content-final h2,
.kh-training-b2b-hero__title,
.kh-work-immersive-hero__title,
.kh-contact-hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

/* ---------- Tarifs ---------- */
.kh-services-pricing__head h2 {
  max-width: 780px;
  font-size: clamp(2.55rem, 4.4vw, 4.65rem) !important;
  line-height: .98 !important;
}

.kh-price-card {
  min-width: 0;
}

.kh-price-card__head {
  display: flex !important;
  min-height: 132px !important;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 20px;
}

.kh-price-card__head p {
  margin: 0 !important;
  min-height: 2.5em;
  line-height: 1.25 !important;
}

.kh-price-card__head strong {
  max-width: 100%;
  font-size: clamp(2.25rem, 3vw, 3.45rem) !important;
  line-height: .96 !important;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal !important;
}

.kh-services-dayrate > strong {
  font-size: clamp(2.45rem, 4vw, 4.25rem) !important;
}

/* ---------- Mobile / tablette ---------- */
@media (max-width: 980px) {
  .kh-managed-media-band {
    width: min(calc(100% - 36px), 860px);
    aspect-ratio: 16 / 8;
  }

  .kh-services-pricing__head h2 {
    max-width: 680px;
    font-size: clamp(2.45rem, 7vw, 4rem) !important;
  }

  .kh-price-card__head {
    min-height: 120px !important;
  }
}

@media (max-width: 900px) {
  .kh-hero-right.has-kh-managed-replace {
    display: block !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .kh-hero:has(.kh-hero-right.has-kh-managed-replace) .kh-hero-left {
    min-height: auto !important;
    padding-bottom: clamp(3rem, 10vw, 5rem) !important;
  }
}

@media (max-width: 720px) {
  .kh-managed-media-band {
    width: calc(100% - 32px);
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-top: 32px;
    border-radius: 16px;
  }

  .kh-services > .kh-managed-media-band {
    width: calc(100% - 32px);
  }

  .kh-content-hero__copy h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.75rem) !important;
    line-height: .98 !important;
  }

  .kh-contact-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.4rem) !important;
    line-height: .9 !important;
  }

  .kh-training-b2b-hero__title {
    font-size: clamp(2.45rem, 11vw, 3.65rem) !important;
    line-height: .98 !important;
  }

  .kh-work-immersive-hero__title {
    font-size: clamp(2.75rem, 12vw, 4.2rem) !important;
    line-height: .92 !important;
  }

  .kh-content-heading h2,
  .kh-about-approach__head h2,
  .kh-services-pricing__head h2,
  .kh-engagements-ai h2 {
    font-size: clamp(2.15rem, 9.6vw, 3.15rem) !important;
    line-height: 1 !important;
  }

  .kh-price-card {
    flex-basis: min(84vw, 350px) !important;
    padding: 22px !important;
  }

  .kh-price-card__head {
    min-height: 108px !important;
    gap: 10px;
    padding-bottom: 16px;
  }

  .kh-price-card__head p {
    min-height: 0;
    font-size: .68rem !important;
  }

  .kh-price-card__head strong {
    font-size: clamp(2.1rem, 9.6vw, 3rem) !important;
  }

  .kh-services-dayrate {
    gap: 20px !important;
  }

  .kh-services-dayrate > strong {
    font-size: clamp(2.35rem, 11vw, 3.4rem) !important;
  }

  .kh-content-final h2 {
    font-size: clamp(2.35rem, 10.5vw, 3.55rem) !important;
    line-height: .98 !important;
  }
}

@media (max-width: 420px) {
  .kh-managed-media-band {
    width: calc(100% - 28px);
    aspect-ratio: 1 / 1;
  }

  .kh-content-hero__copy h1 {
    font-size: clamp(2.3rem, 11.8vw, 3.25rem) !important;
  }

  .kh-price-card {
    flex-basis: 86vw !important;
  }
}


/* Blog : contraste automatique lorsqu'un média de hero est défini dans le Core. */
.brblog-masthead.has-kh-managed-bg {
  min-height: clamp(430px, 58vh, 680px);
  display: flex;
  align-items: flex-end;
  color: #F5F2EA;
  background: #0E0E0C;
}
.brblog-masthead.has-kh-managed-bg .brblog-container { width: min(100% - 40px, 1380px); }
.brblog-masthead.has-kh-managed-bg .brblog-kicker { color: #77BD9A; }
.brblog-masthead.has-kh-managed-bg h1 { color: #F5F2EA; }
.brblog-masthead.has-kh-managed-bg .brblog-masthead__intro { color: rgba(245,242,234,.8); }

@media (max-width: 720px) {
  .brblog-masthead.has-kh-managed-bg { min-height: 470px; }
}

@media (max-width: 600px) {
  .kh-svc__title { font-size: clamp(2.45rem, 11.5vw, 3.45rem) !important; line-height: .98 !important; }
  .kh-approche__title { font-size: clamp(2.45rem, 11.5vw, 3.55rem) !important; line-height: .98 !important; }
  .kh-portfolio__title { font-size: clamp(2.45rem, 11vw, 3.5rem) !important; line-height: .98 !important; }
  .kh-conv__title { font-size: clamp(2.4rem, 10.8vw, 3.4rem) !important; line-height: .98 !important; }
}

/* ---------- v1.10 · Hiérarchie tarifs ---------- */
.kh-price-card__head {
  min-height: 146px !important;
  justify-content: flex-start !important;
}

.kh-price-card__price {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  margin-top: auto;
  font-size: 1rem !important;
  line-height: 1 !important;
}

.kh-price-card__amount {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.55rem, 3.25vw, 3.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: .92;
  color: var(--kh-cream);
  white-space: nowrap;
}

.kh-price-card__from {
  display: block;
  margin-bottom: 3px;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(.8rem, .82vw, .95rem);
  font-weight: 600;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: .02em;
  color: rgba(245,242,234,.7);
}

@media (max-width: 980px) {
  .kh-price-card__head { min-height: 132px !important; }
  .kh-price-card__amount { font-size: clamp(2.4rem, 6vw, 3.3rem); }
}

@media (max-width: 720px) {
  .kh-price-card__head { min-height: 116px !important; }
  .kh-price-card__amount { font-size: clamp(2.35rem, 10vw, 3.05rem); }
  .kh-price-card__from { font-size: .78rem; }
}

/* ---------- v1.10 · Navigation avec Blog ---------- */
@media (min-width: 901px) and (max-width: 1100px) {
  .kh-nav-links,
  .kh-nav-cta {
    display: none !important;
  }

  .kh-burger {
    display: flex !important;
  }
}

/* ================================================================
   KH STUDIO 1.11 · NAVIGATION DESKTOP ROBUSTE
   Évite tout retour à la ligne / chevauchement après ajout du Blog.
   ================================================================ */
@media (min-width: 1321px) {
  .kh-nav-inner {
    max-width: 1600px !important;
    padding-inline: clamp(28px, 3vw, 64px) !important;
    gap: clamp(.85rem, 1.4vw, 1.45rem) !important;
  }

  .kh-logo,
  .kh-logo-full {
    max-width: 205px !important;
  }

  .kh-nav-links {
    flex: 1 1 auto !important;
    justify-content: center !important;
    gap: clamp(.9rem, 1.45vw, 1.9rem) !important;
    min-width: 0 !important;
  }

  .kh-nav-links li,
  .kh-nav-links a {
    white-space: nowrap !important;
  }

  .kh-nav-links a,
  .kh-nav-links a:visited {
    font-size: clamp(.68rem, .55vw, .74rem) !important;
    letter-spacing: clamp(.10em, .12vw, .14em) !important;
  }

  .kh-nav-cta,
  .kh-nav-cta:visited {
    flex: 0 0 auto !important;
    padding-inline: clamp(1rem, 1.4vw, 1.45rem) !important;
    font-size: clamp(.68rem, .55vw, .74rem) !important;
  }
}

/* On passe volontairement au burger avant que la navigation ne se tasse. */
@media (min-width: 901px) and (max-width: 1320px) {
  .kh-nav-links,
  .kh-nav-cta {
    display: none !important;
  }

  .kh-burger {
    display: flex !important;
  }
}

/* ---------- v1.11 · vidéo locale / portfolio ---------- */
.kh-port-hero__media.has-kh-managed-replace > .kh-managed-media-element {
  position: absolute;
  inset: 0;
}

.kh-port-hero__media .kh-local-background-video,
.kh-hero-right .kh-local-background-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kh-video-lightbox__inner video,
.kh-port-lightbox__inner video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0E0E0C;
}

/* ================================================================
   KH STUDIO 1.12 · PASSE LIVRAISON
   Hiérarchie, CTA, carrousels mobiles, médias par bloc et sobriété visuelle.
   ================================================================ */

/* Média administrable : point focal + overlay pilotés depuis le Core. */
.kh-managed-media-element > img,
.kh-managed-media-element > video {
  object-position: var(--kh-media-position, center center) !important;
}

.kh-managed-media-bg::after {
  background: rgb(14 14 12 / var(--kh-overlay-opacity, .42)) !important;
}

.kh-managed-media-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgb(14 14 12 / var(--kh-overlay-opacity, 0));
}

.kh-managed-media-band::after { z-index: 3; }

/* Si un bloc clair passe volontairement en média de fond, conserver la lisibilité. */
.has-kh-managed-bg :is(h1, h2, h3, p, li) {
  color: #F5F2EA;
}
.has-kh-managed-bg :is(em, .kh-content-eyebrow, .kh-content-mini-label, .kh-tag, .kh-training-b2b-panel__label) {
  color: #77BD9A;
}
.has-kh-managed-bg .kh-btn--outline-dark {
  border-color: rgba(245,242,234,.58) !important;
  color: #F5F2EA !important;
}

/* Sobriété : suppression des motifs décoratifs sur les heroes éditoriaux. */
.kh-content-hero::after { display: none !important; }

/* H2 : hiérarchie plus nette par rapport aux H1 sur l'ensemble du site. */
.kh-content-heading h2,
.kh-about-approach__head h2,
.kh-about-engagement h2,
.kh-services-pricing__head h2,
.kh-engagements-ai h2 {
  font-size: clamp(2.35rem, 3.85vw, 4.15rem) !important;
  line-height: .98 !important;
}

.kh-svc__title,
.kh-portfolio__title,
.kh-approche__title,
.kh-conv__title {
  font-size: clamp(2.65rem, 4.2vw, 4.45rem) !important;
  line-height: .98 !important;
}

.kh-work-gallery__top h2,
.kh-work-focus__content h2,
.kh-work-final h2 {
  font-size: clamp(2.55rem, 4vw, 4.25rem) !important;
  line-height: .98 !important;
}

.kh-training-why__head h2,
.kh-training-skills__intro h2,
.kh-training-formats__head h2,
.kh-training-process h2,
.kh-training-usecases__left h2,
.kh-training-why-kh__card h2,
.kh-training-faq__head h2,
.kh-training-final h2 {
  font-size: clamp(2.25rem, 3.55vw, 3.9rem) !important;
  line-height: 1 !important;
}

/* Engagements : hero sans vignette secondaire, plus calme et plus éditorial. */
.kh-engagements-hero .kh-content-hero__grid {
  grid-template-columns: minmax(0, 920px) !important;
  align-items: center !important;
}
.kh-engagements-hero .kh-content-hero__aside { display: none !important; }
.kh-engagements-hero .kh-content-hero__copy { max-width: 920px; }
.kh-engagements-hero .kh-content-hero__copy h1 em {
  display: block;
  margin-top: .12em;
  font-size: .78em;
  line-height: .98;
}

/* Engagements : éviter tout chevauchement du grand titre avec le texte. */
.kh-engagements-intro__grid {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr) !important;
  gap: clamp(54px, 7vw, 110px) !important;
}
.kh-engagements-intro .kh-content-heading { min-width: 0; }
.kh-engagements-intro .kh-content-heading h2 {
  max-width: 580px;
  font-size: clamp(2.45rem, 3.55vw, 3.85rem) !important;
}

/* Prestations : hero simplifié, meilleure respiration, sous-titre visuel secondaire. */
.kh-services-hero .kh-content-hero__grid {
  grid-template-columns: minmax(0, 980px) !important;
  align-items: center !important;
}
.kh-services-hero__aside { display: none !important; }
.kh-services-hero .kh-content-hero__copy { max-width: 980px; }
.kh-services-hero .kh-content-hero__copy h1 {
  max-width: 900px;
  font-size: clamp(3.15rem, 5.4vw, 5.75rem) !important;
}
.kh-services-hero .kh-content-hero__copy h1 em {
  display: block;
  max-width: 820px;
  margin-top: .12em;
  font-size: .72em;
  line-height: 1;
}
.kh-services-hero .kh-content-lead { max-width: 660px; }

/* À propos : le sous-titre vert devient une vraie seconde lecture. */
.kh-about-hero .kh-content-hero__copy h1 em {
  display: block;
  max-width: 760px;
  margin-top: .1em;
  font-size: .67em;
  line-height: 1.02;
}

/* À propos · Produire autrement : composition centrée, plus premium. */
.kh-about-engagement__grid {
  grid-template-columns: 1fr !important;
  max-width: 980px;
  text-align: center;
}
.kh-about-engagement__grid > div:first-child,
.kh-about-engagement__copy {
  max-width: 780px;
  margin-inline: auto;
}
.kh-about-engagement .kh-content-eyebrow {
  justify-content: center;
}
.kh-about-engagement h2 {
  max-width: 780px;
  margin-inline: auto;
}
.kh-about-engagement__copy { margin-top: 28px; }
.kh-about-engagement__copy .kh-btn { margin-inline: auto; }

/* Offres : meilleure densité desktop, cartes lisibles et prix hiérarchisés. */
.kh-services-pricing__head {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr) !important;
  gap: clamp(52px, 7vw, 100px) !important;
  align-items: end !important;
}
.kh-services-pricing__head h2 { max-width: 680px !important; }
.kh-services-pricing__head > p { max-width: 480px; }
.kh-services-pricing__cards { gap: 18px !important; }
.kh-price-card { padding: clamp(24px, 2.35vw, 32px) !important; }
.kh-price-card__head { min-height: 122px !important; }
.kh-price-card__amount { font-size: clamp(2.4rem, 2.85vw, 3.35rem) !important; }
.kh-price-card__from {
  font-size: clamp(.72rem, .7vw, .82rem) !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* CTA de fin : ne plus terminer une page sur le même noir que le footer. */
.kh-content-final {
  background: #1C3A2A !important;
  color: #F5F2EA !important;
}
.kh-content-final__inner {
  max-width: 900px !important;
  margin-inline: auto !important;
  text-align: center;
}
.kh-content-final .kh-content-eyebrow { justify-content: center; }
.kh-content-final h2 {
  max-width: 820px !important;
  margin-inline: auto !important;
  font-size: clamp(2.7rem, 4.25vw, 4.6rem) !important;
  line-height: .98 !important;
}
.kh-content-final p:not(.kh-content-eyebrow) {
  max-width: 600px !important;
  margin-inline: auto !important;
}
.kh-content-final .kh-btn { margin-inline: auto; }

/* Engagements : la conclusion tranche avec le bloc vert précédent. */
.kh-engagements-final {
  background: #77BD9A !important;
  color: #0E0E0C !important;
}
.kh-engagements-final .kh-content-eyebrow,
.kh-engagements-final h2,
.kh-engagements-final h2 em,
.kh-engagements-final p:not(.kh-content-eyebrow) {
  color: #1C3A2A !important;
}
.kh-engagements-final .kh-btn--menthe {
  background: #1C3A2A !important;
  border-color: #1C3A2A !important;
  color: #F5F2EA !important;
}

/* Formation : aucun cercle / motif décoratif en arrière-plan. */
.kh-training-b2b-panel::before,
.kh-training-b2b-panel::after {
  display: none !important;
}
.kh-training-b2b-panel,
.kh-training-b2b-hero,
.kh-training-why,
.kh-training-skills,
.kh-training-formats,
.kh-training-process,
.kh-training-usecases,
.kh-training-why-kh,
.kh-training-faq,
.kh-training-final {
  background-image: none !important;
}

/* Menu mobile : le panneau va systématiquement jusqu'au bas du viewport réel. */
@media (max-width: 1320px) {
  .kh-mobile-menu {
    top: var(--nav-h) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #1C3A2A !important;
  }
  .kh-mobile-menu__inner {
    min-height: 100% !important;
    padding-bottom: max(2rem, env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 782px) {
  body.admin-bar .kh-mobile-menu {
    top: calc(var(--nav-h) + 46px) !important;
    height: auto !important;
    min-height: 0 !important;
  }
}
@media (min-width: 783px) and (max-width: 1320px) {
  body.admin-bar .kh-mobile-menu {
    top: calc(var(--nav-h) + 32px) !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Petites flèches premium pour rendre les carrousels mobiles explicites. */
.kh-mobile-carousel-nav { display: none; }

@media (max-width: 720px) {
  .kh-content-heading h2,
  .kh-about-approach__head h2,
  .kh-about-engagement h2,
  .kh-services-pricing__head h2,
  .kh-engagements-ai h2 {
    font-size: clamp(2.05rem, 9vw, 2.95rem) !important;
  }

  .kh-engagements-intro__grid { grid-template-columns: 1fr !important; gap: 34px !important; }
  .kh-engagements-intro .kh-content-heading h2 { max-width: none; }

  .kh-services-hero .kh-content-hero__copy h1,
  .kh-about-hero .kh-content-hero__copy h1,
  .kh-engagements-hero .kh-content-hero__copy h1 {
    font-size: clamp(2.55rem, 11vw, 3.65rem) !important;
  }
  .kh-services-hero .kh-content-hero__copy h1 em { font-size: .74em; }
  .kh-about-hero .kh-content-hero__copy h1 em { font-size: .72em; }
  .kh-engagements-hero .kh-content-hero__copy h1 em { font-size: .8em; }

  .kh-services-pricing__head { grid-template-columns: 1fr !important; gap: 22px !important; }
  .kh-services-pricing__head > p { max-width: 560px; }
  .kh-price-card { flex-basis: min(82vw, 346px) !important; }
  .kh-price-card__head { min-height: 108px !important; }

  .kh-mobile-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
  }
  .kh-mobile-carousel-nav > span {
    margin-right: 2px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: currentColor;
    opacity: .55;
  }
  .kh-mobile-carousel-nav__btn {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    opacity: .68;
    cursor: pointer;
  }
  .kh-mobile-carousel-nav__btn:active { transform: scale(.96); }

  .kh-services-pricing .kh-mobile-carousel-nav,
  .kh-about-approach .kh-mobile-carousel-nav {
    color: #F5F2EA;
  }
  .kh-engagements-actions .kh-mobile-carousel-nav { color: #1C3A2A; }

  .kh-content-final h2 {
    font-size: clamp(2.25rem, 9.6vw, 3.2rem) !important;
  }
}

/* =========================================================
   Livraison 1.12 · fin de page distincte du footer
   ========================================================= */

/* Formation : conserver l'identité de la page, mais éviter un dernier bloc noir
   collé au footer noir. Aucun motif décoratif ajouté. */
.kh-training-final {
  background: #1C3A2A !important;
  color: #F5F2EA !important;
}
.kh-training-final h2 { color: #F5F2EA !important; }
.kh-training-final p { color: rgba(245, 242, 234, .76) !important; }

/* Le footer reste Nuit ; les contenus de fin gardent donc une rupture claire. */


/* ================================================================
   KH STUDIO 1.12.1 · FINITIONS DE LIVRAISON
   Ajustements non destructifs : grands écrans, H2, Formation et motifs.
   ================================================================ */

/* ---------- Aucun motif circulaire décoratif en fond ---------- */
.kh-content-hero::after,
.kh-port-final::before,
.kh-port-final::after,
.kh-training-b2b-panel::before,
.kh-training-b2b-panel::after,
.kh-training-why-kh::before,
.kh-training-why-kh::after,
.kh-training-why-kh__card::before,
.kh-training-why-kh__card::after,
.kh-training-why-kh__quote::before,
.kh-training-why-kh__quote::after,
.kh-contact-hero::after {
  content: none !important;
  display: none !important;
}

/* Les anciennes versions de la page Formation pouvaient dessiner des grilles /
   formes via des pseudo-éléments sur les sections. On neutralise uniquement
   ces décors de fond, jamais les puces ou contrôles internes. */
.kh-training-b2b-hero::before,
.kh-training-b2b-hero::after,
.kh-training-why::before,
.kh-training-why::after,
.kh-training-skills::before,
.kh-training-skills::after,
.kh-training-formats::before,
.kh-training-formats::after,
.kh-training-process::before,
.kh-training-process::after,
.kh-training-usecases::before,
.kh-training-usecases::after,
.kh-training-why-kh::before,
.kh-training-why-kh::after,
.kh-training-faq::before,
.kh-training-faq::after,
.kh-training-final::before,
.kh-training-final::after {
  content: none !important;
  display: none !important;
}

.kh-port-hero__grain {
  display: none !important;
}

.kh-contact-hero {
  background:
    linear-gradient(135deg, rgba(14, 14, 12, .96), rgba(28, 58, 42, .97)),
    #0E0E0C !important;
}

@media (max-width: 1320px) {
  .kh-mobile-menu {
    background: #1C3A2A !important;
    background-image: none !important;
  }
}

/* ---------- Hiérarchie H1 / H2 : H2 volontairement plus calmes ---------- */
.kh-svc__title,
.kh-portfolio__title,
.kh-approche__title,
.kh-conv__title,
.kh-work-gallery__top h2,
.kh-work-focus__content h2,
.kh-work-final h2,
.kh-training-why__head h2,
.kh-training-skills__intro h2,
.kh-training-formats__head h2,
.kh-training-process h2,
.kh-training-usecases__left h2,
.kh-training-why-kh__card h2,
.kh-training-faq__head h2,
.kh-training-final h2,
.kh-content-heading h2,
.kh-about-approach__head h2,
.kh-about-engagement h2,
.kh-services-pricing__head h2,
.kh-engagements-ai h2,
.kh-content-final h2,
.kh-port-showreel__copy h2,
.kh-port-gallery__head h2,
.kh-port-final h2 {
  text-wrap: balance;
}

.kh-svc__title,
.kh-portfolio__title,
.kh-approche__title,
.kh-conv__title {
  font-size: clamp(2.45rem, 3.55vw, 3.95rem) !important;
}

.kh-work-gallery__top h2,
.kh-work-focus__content h2,
.kh-work-final h2 {
  font-size: clamp(2.35rem, 3.35vw, 3.75rem) !important;
}

.kh-training-why__head h2,
.kh-training-skills__intro h2,
.kh-training-formats__head h2,
.kh-training-process h2,
.kh-training-usecases__left h2,
.kh-training-why-kh__card h2,
.kh-training-faq__head h2,
.kh-training-final h2 {
  font-size: clamp(2.15rem, 3.05vw, 3.45rem) !important;
}

.kh-content-heading h2,
.kh-about-approach__head h2,
.kh-about-engagement h2,
.kh-services-pricing__head h2,
.kh-engagements-ai h2 {
  font-size: clamp(2.2rem, 3.25vw, 3.65rem) !important;
}

.kh-content-final h2,
.kh-port-final h2 {
  max-width: 820px !important;
  margin-inline: auto !important;
  font-size: clamp(2.35rem, 3.55vw, 4rem) !important;
  line-height: .98 !important;
  letter-spacing: -.05em !important;
}

.kh-port-final {
  padding-top: clamp(4.75rem, 7vw, 7.25rem) !important;
  padding-bottom: clamp(4.75rem, 7vw, 7.25rem) !important;
}

.kh-port-final__inner {
  width: min(100%, 940px) !important;
}

/* ---------- Formation : hero restauré, lisible et cohérent ---------- */
.kh-training-b2b-hero {
  position: relative !important;
  min-height: min(760px, calc(100svh - var(--nav-h))) !important;
  padding: clamp(5rem, 7vw, 7rem) var(--px) !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background: #0E0E0C !important;
  background-image: none !important;
  color: #F5F2EA !important;
  isolation: isolate;
}

.kh-training-b2b-hero.has-kh-managed-bg {
  background: #0E0E0C !important;
}

.kh-training-b2b-hero__inner {
  position: relative !important;
  z-index: 3 !important;
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .58fr) !important;
  gap: clamp(3rem, 6vw, 6.5rem) !important;
  align-items: center !important;
}

.kh-training-b2b-hero__content {
  display: block !important;
  max-width: 760px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.kh-training-b2b-hero .kh-hero-eyebrow {
  display: block !important;
  margin: 0 0 1.35rem !important;
  color: #77BD9A !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.kh-training-b2b-hero__title {
  display: block !important;
  max-width: 760px !important;
  margin: 0 !important;
  color: #F5F2EA !important;
  font-size: clamp(3rem, 4.45vw, 5rem) !important;
  line-height: .94 !important;
  letter-spacing: -.055em !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.kh-training-b2b-hero__text {
  display: block !important;
  max-width: 620px !important;
  margin-top: 1.65rem !important;
  color: rgba(245,242,234,.76) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.kh-training-b2b-hero__ctas {
  margin-top: 2rem !important;
}

.kh-training-b2b-panel {
  width: min(100%, 390px) !important;
  min-height: 0 !important;
  justify-self: end !important;
  padding: clamp(1.65rem, 2.5vw, 2.25rem) !important;
  background: rgba(28,58,42,.72) !important;
  border: 1px solid rgba(245,242,234,.16) !important;
  box-shadow: none !important;
}

.kh-training-b2b-panel__list {
  margin: 1.8rem 0 !important;
}

.kh-training-b2b-panel__list li {
  padding: .82rem 0 !important;
  font-size: clamp(.92rem, 1vw, 1.05rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
}

.kh-training-b2b-panel__footer span {
  padding: .52rem .68rem !important;
  font-size: .6rem !important;
}

/* Le bloc citation reste graphique par la typo, jamais par un cercle de fond. */
.kh-training-why-kh__quote {
  position: relative !important;
  overflow: hidden !important;
  background-image: none !important;
}

/* ---------- Ancres sous header sticky ---------- */
#offres,
#devis,
#approche-formation,
.kh-services-pricing,
.kh-training-process {
  scroll-margin-top: calc(var(--nav-h) + 28px) !important;
}

body.admin-bar #offres,
body.admin-bar #devis,
body.admin-bar #approche-formation {
  scroll-margin-top: calc(var(--nav-h) + 64px) !important;
}

/* ---------- Grands écrans : contenu plus large, sans gonfler la typo ---------- */
@media (min-width: 1600px) {
  .kh-content-shell {
    --kh-shell: 1320px;
  }

  .kh-training-b2b-hero__inner,
  .kh-training-why__inner,
  .kh-training-skills__inner,
  .kh-training-formats__inner,
  .kh-training-process__inner,
  .kh-training-usecases__inner,
  .kh-training-why-kh__inner,
  .kh-training-faq__inner,
  .kh-training-final__inner {
    max-width: 1320px !important;
  }

  .kh-content-hero__grid {
    min-height: min(700px, calc(100svh - var(--nav-h))) !important;
  }

  .kh-services-pricing__cards,
  .kh-engagements-actions__cards {
    gap: 20px !important;
  }
}

/* ---------- Tablette / mobile : Formation sans grands vides ---------- */
@media (max-width: 1024px) {
  .kh-training-b2b-hero {
    min-height: auto !important;
  }

  .kh-training-b2b-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .kh-training-b2b-panel {
    width: 100% !important;
    max-width: 640px !important;
    justify-self: start !important;
  }
}

@media (max-width: 720px) {
  .kh-training-b2b-hero {
    padding: 4rem 1.25rem 4.5rem !important;
  }

  .kh-training-b2b-hero__title {
    font-size: clamp(2.55rem, 11.2vw, 3.55rem) !important;
  }

  .kh-training-b2b-hero__text {
    font-size: .96rem !important;
    line-height: 1.7 !important;
  }

  .kh-training-b2b-panel {
    padding: 1.4rem !important;
  }

  .kh-content-final h2,
  .kh-port-final h2,
  .kh-training-final h2,
  .kh-work-final h2,
  .kh-conv__title {
    font-size: clamp(2.1rem, 9vw, 3rem) !important;
    line-height: 1 !important;
  }

  .kh-port-final {
    padding-top: 4.5rem !important;
    padding-bottom: 4.5rem !important;
  }
}


/* ================================================================
   KH STUDIO 1.12.2 · TARIFS / NAVIGATION / FOOTER
   ================================================================ */

/* Le préfixe reste volontairement très secondaire par rapport au montant. */
.kh-price-card__price--from,
.kh-price-card__price:has(.kh-price-card__from) {
  gap: .45rem !important;
}

.kh-price-card__from {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  color: rgba(245, 242, 234, .64) !important;
  white-space: nowrap !important;
}

.kh-price-card__price--from .kh-price-card__amount,
.kh-price-card__price:has(.kh-price-card__from) .kh-price-card__amount {
  font-size: clamp(2.45rem, 2.7vw, 3.25rem) !important;
  line-height: .9 !important;
}

/* Sept entrées + CTA : burger avant que le desktop ne commence à se tasser. */
@media (min-width: 1401px) {
  .kh-nav-inner {
    max-width: 1660px !important;
    padding-inline: clamp(26px, 2.6vw, 58px) !important;
  }
  .kh-nav-links {
    gap: clamp(.72rem, 1.08vw, 1.4rem) !important;
  }
  .kh-nav-links a,
  .kh-nav-links a:visited {
    font-size: clamp(.64rem, .51vw, .72rem) !important;
    letter-spacing: clamp(.085em, .1vw, .12em) !important;
  }
}

@media (min-width: 901px) and (max-width: 1400px) {
  .kh-nav-links,
  .kh-nav-cta {
    display: none !important;
  }
  .kh-burger {
    display: flex !important;
  }
}

/* Footer : 4 colonnes équilibrées, mais uniquement des vraies pages. */
@media (min-width: 769px) {
  .kh-footer-inner {
    max-width: 1320px !important;
  }
  .kh-footer-top {
    grid-template-columns: minmax(280px, 2.1fr) minmax(150px, .85fr) minmax(150px, .85fr) minmax(260px, 1.35fr) !important;
    gap: clamp(2rem, 4vw, 4.25rem) !important;
  }
}

@media (max-width: 720px) {
  .kh-price-card__from {
    font-size: .68rem !important;
  }
  .kh-price-card__price--from .kh-price-card__amount,
  .kh-price-card__price:has(.kh-price-card__from) .kh-price-card__amount {
    font-size: clamp(2.3rem, 10vw, 3rem) !important;
  }
}


/* ================================================================
   KH STUDIO 1.12.3 · TARIF RÉCIT D’ENTREPRISE
   Le préfixe ne concurrence plus visuellement le montant.
   ================================================================ */
.kh-price-card__price--from {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  gap: .5rem !important;
  width: 100% !important;
}

.kh-price-card__price--from .kh-price-card__from {
  display: block !important;
  margin: 0 !important;
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif !important;
  font-size: clamp(.62rem, .42vw, .72rem) !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  color: rgba(245,242,234,.62) !important;
  white-space: nowrap !important;
}

.kh-price-card__price--from .kh-price-card__amount {
  display: block !important;
  max-width: 100% !important;
  font-size: clamp(2.55rem, 2.55vw, 3.15rem) !important;
  line-height: .9 !important;
  white-space: nowrap !important;
}

@media (min-width: 1600px) {
  .kh-price-card__price--from .kh-price-card__from {
    font-size: .66rem !important;
  }
  .kh-price-card__price--from .kh-price-card__amount {
    font-size: 3rem !important;
  }
}

@media (max-width: 720px) {
  .kh-price-card__price--from { gap: .4rem !important; }
  .kh-price-card__price--from .kh-price-card__from { font-size: .64rem !important; }
  .kh-price-card__price--from .kh-price-card__amount { font-size: clamp(2.35rem, 10vw, 3rem) !important; }
}

/* ===== KH Studio 1.13 · Posters vidéo multi-ratios ===== */
.kh-video-card__media,
.kh-port-card__button,
.kh-port-showreel__media,
.kh-work-card > button {
  overflow: hidden;
}

.kh-video-card__media > img,
.kh-port-card__button > img,
.kh-port-showreel__media > img,
.kh-work-card > button > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover !important;
  object-position: center center;
}

.kh-video-card__media,
.kh-port-card__button,
.kh-port-showreel__media,
.kh-work-card > button {
  background: var(--kh-night, #0e0e0c);
}

.kh-work-focus__media > .kh-local-background-video,
.kh-work-focus__media > .kh-managed-media-element,
.kh-work-focus__media > .kh-managed-media-element > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== KH Studio 1.13.1 · Titres portfolio plus discrets ===== */
.kh-video-card__content h3 {
  max-width: 26ch !important;
  font-size: clamp(1.35rem, 1.65vw, 2.15rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -0.025em !important;
}

.kh-video-card--wide .kh-video-card__content h3 {
  font-size: clamp(1.6rem, 2vw, 2.55rem) !important;
}

.kh-port-card__content h3,
.kh-port-card--wide .kh-port-card__content h3,
.kh-port-card--large .kh-port-card__content h3 {
  max-width: 24ch !important;
  font-size: clamp(1.25rem, 1.45vw, 1.85rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.025em !important;
}

.kh-port-card--wide .kh-port-card__content h3,
.kh-port-card--large .kh-port-card__content h3 {
  font-size: clamp(1.45rem, 1.75vw, 2.2rem) !important;
}

.kh-work-card__content h3,
.kh-work-card--large .kh-work-card__content h3,
.kh-work-card--wide .kh-work-card__content h3 {
  max-width: 24ch !important;
  font-size: clamp(1.3rem, 1.6vw, 2rem) !important;
  line-height: 1.03 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

@media (min-width: 1700px) {
  .kh-video-card__content h3 { font-size: 2rem !important; }
  .kh-video-card--wide .kh-video-card__content h3 { font-size: 2.4rem !important; }
  .kh-port-card__content h3 { font-size: 1.75rem !important; }
  .kh-port-card--wide .kh-port-card__content h3,
  .kh-port-card--large .kh-port-card__content h3 { font-size: 2.1rem !important; }
}

@media (max-width: 720px) {
  .kh-video-card__content h3,
  .kh-video-card--wide .kh-video-card__content h3,
  .kh-port-card__content h3,
  .kh-port-card--wide .kh-port-card__content h3,
  .kh-port-card--large .kh-port-card__content h3,
  .kh-work-card__content h3,
  .kh-work-card--large .kh-work-card__content h3,
  .kh-work-card--wide .kh-work-card__content h3 {
    font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
    line-height: 1.02 !important;
  }
}

/* Les lecteurs locaux du Portfolio remplissent toujours leur conteneur. */
.kh-port-lightbox__inner video,
.kh-video-lightbox__inner video,
.kh-portfolio-local-inline-video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0e0e0c;
}

/* ===== KH Studio 1.13.10 · recadrage posters verticaux sans modifier les cartes ===== */
[data-kh-project="portfolio_project_02"] img,
[data-kh-project="portfolio_project_03"] img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  transform: scale(3.15) !important;
  transform-origin: center center !important;
}

[data-kh-project="portfolio_project_02"]:hover img,
[data-kh-project="portfolio_project_03"]:hover img {
  transform: scale(3.22) !important;
}
