/* Shared finishing layer for the approved public snapshot. */

/* Marge par défaut du navigateur. Sept pages ne l'annulaient pas (les cinq
   pages secteur, servies par six adresses, et /visibilite-geo-ia) : le bandeau sombre
   s'arrêtait à 8 px des bords. Les 1 138 autres pages sont déjà à zéro,
   démonstrations comprises (mesuré le 20/09/2026). */
body {
  margin: 0;
}
#pkh.pkh {
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
}

#pkh.pkh .pkh__lock {
  width: auto;
  white-space: nowrap;
}

/* Le bouton « Parlons-en » est retiré du bandeau. Masqué ici, avant
   l'affichage : retiré par script, il apparaissait un instant à chaque page. */
#pkh.pkh .pkh__cta {
  display: none !important;
}

#pkh.pkh .pkh__lock em {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #b08cff !important;
  font-family: "JetBrains Mono", ui-monospace, monospace !important;
  font-size: .6em !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.pv-visit-dock,
.gc-review,
.v3-review-bar,
.review-toolbar,
[data-review-toolbar] {
  display: none !important;
}

/* Compact footer */
body.site-polished-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body.site-polished-footer > .pkf {
  flex: none;
  width: 100%;
  margin-top: auto !important;
}

.pkf {
  padding: 0 !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: 16px !important;
}

/* review.css réserve 72 px sous la page pour la barre de relecture, retirée :
   il restait une bande blanche sous le pied. La place du badge BNI / Mistral
   passe dans le pied sombre (sur mobile, voir plus bas). */
body.review-v3 {
  padding-bottom: 0 !important;
}

.pkf__compact {
  padding: clamp(44px, 5vw, 68px) 0 96px;
}

.pkf__compact-main {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(360px, 1.6fr) minmax(220px, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.pkf__brand,
.pkf__contact {
  display: grid;
  gap: 16px;
}

.pkf__wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: max-content;
  color: #fff;
  font-family: var(--font-display, "Source Serif 4", Georgia, serif);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
}

.pkf__wordmark em {
  color: #b08cff;
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.pkf__brand p,
.pkf__contact p {
  margin: 0;
  color: #a79fbc;
  font-size: 14px;
  line-height: 1.55;
}

.pkf__compact-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.pkf__compact-nav a {
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: #efecf6;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  padding: 11px 0;
  text-decoration: none;
}

.pkf__compact-nav a:hover,
.pkf__compact-bottom a:hover {
  color: #b08cff;
}

.pkf__contact {
  border-left: 1px solid rgba(255, 255, 255, .14);
  padding-left: 28px;
}

.pkf__contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  border-radius: 4px;
  background: #b08cff;
  color: #1f1a33;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pkf__contact-button:hover {
  background: #fff;
  color: #1f1a33;
}

.pkf__compact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: #a79fbc;
  font-size: 12px;
  line-height: 1.5;
}

.pkf__compact-bottom > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.pkf__compact-bottom a {
  color: #a79fbc;
  text-decoration: none;
}

@media (max-width: 900px) {
  .pkf__compact-main { grid-template-columns: 1fr 1fr; }
  .pkf__contact { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 24px 0 0; grid-template-columns: 1fr auto; align-items: center; }
  .pkf__contact-button { width: auto; min-width: 180px; }
}

/* Lock page scroll while the mobile drawer is open. The lock must sit on <html>:
   style.css sets overflow on html, so a body lock is not propagated to the viewport.
   Body would become its own scroll container: the page keeps scrolling and the
   sticky header sticks to body instead of the screen, leaving the viewport. */
@media (max-width: 980px) {
  html:has(#pkh.pkh[data-tiroir]) {
    overflow: hidden;
  }

  html:has(#pkh.pkh[data-tiroir]) .propul-affiliations {
    visibility: hidden;
  }
}

@media (max-width: 640px) {
  #pkh.pkh {
    min-height: 72px;
  }

  #pkh.pkh .pkh__g {
    width: calc(100% - 32px);
    height: 72px;
    gap: 10px;
  }

  #pkh.pkh .pkh__lock {
    gap: 6px;
    font-size: 26px !important;
  }

  #pkh.pkh .pkh__lock em {
    font-size: .48em !important;
    letter-spacing: .1em !important;
  }

  #pkh.pkh .pkh__droite {
    gap: 0;
  }

  #pkh.pkh .pkh__marques,
  #pkh.pkh .pkh__lien {
    display: none !important;
  }

  #pkh.pkh .pkh__burger {
    width: 42px;
    height: 42px;
    border-color: rgba(255, 255, 255, .34);
    border-radius: 6px;
  }

  #pkh.pkh[data-tiroir] .pkh__nav {
    position: fixed;
    z-index: 140;
    inset: 72px 0 0;
    width: 100%;
    max-height: none;
    height: calc(100dvh - 72px);
    padding: 12px 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #211c35;
    box-shadow: 0 24px 60px rgba(12, 8, 27, .26);
  }

  #pkh.pkh[data-tiroir] .pkh__nav > li {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .13);
  }

  #pkh.pkh[data-tiroir] .pkh__nav > li > button,
  #pkh.pkh[data-tiroir] .pkh__nav > li > a {
    min-height: 54px;
    padding: 13px 2px;
    font-size: 16px;
    font-weight: 580;
    line-height: 1.2;
  }

  #pkh.pkh[data-tiroir] .pkh__nav > li > a {
    color: #d7d1e4;
  }

  #pkh.pkh[data-tiroir] .pkh__nav > li > button::after {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border: 1px solid rgba(176, 140, 255, .32);
    border-radius: 50%;
    font-size: 14px;
  }

  #pkh.pkh[data-tiroir] .pkh__nav > li > button[aria-expanded="true"]::after {
    background: rgba(176, 140, 255, .14);
  }

  #pkh.pkh[data-tiroir] .pkh__mega[data-ouvert] {
    padding: 0 0 16px;
  }

  #pkh.pkh[data-tiroir] .pkh__col {
    padding: 0 0 10px;
  }

  #pkh.pkh[data-tiroir] .pkh__col h3 {
    margin: 8px 0 2px;
    font-size: 15px;
  }

  #pkh.pkh[data-tiroir] .pkh__col li a {
    min-height: 40px;
    padding: 8px 0 8px 14px;
    color: #c1b9d2;
    font-size: 14px;
    font-weight: 450;
  }

  body.home-bg .wpr-banner-area.propul-grid-hero {
    height: calc(100svh - 72px) !important;
    min-height: calc(100svh - 72px) !important;
  }

  body.home-bg .wpr-banner-area.propul-grid-hero .section-title {
    justify-content: center !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  .pkf__compact {
    padding-top: 38px;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  .pkf__compact-main { grid-template-columns: 1fr; gap: 28px; }
  .pkf__wordmark { font-size: 32px; }
  .pkf__brand { gap: 12px; }
  .pkf__compact-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pkf__compact-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 5px;
    font-size: 13px;
  }
  .pkf__contact { grid-column: auto; grid-template-columns: 1fr; gap: 14px; padding-top: 22px; }
  .pkf__contact-button { width: 100%; }
  .pkf__compact-bottom { align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 28px; padding-top: 18px; }
  .pkf__compact-bottom > div { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; width: 100%; gap: 8px 18px; }
  .pkf__compact-bottom > div a:last-child { grid-column: 1 / -1; }
}

/* Team grid (2 columns on phones): center a last portrait left alone on its row. */
@media (max-width: 600px) {
  .pt-grid > .pt-person:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 14px) / 2);
  }
}

/* Home story « Votre quotidien » on phones: shorter pinned scroll, readable text. */
@media (max-width: 700px) {
  /* 300svh → 240svh: about 1.4 screens of pinned scroll instead of 2. */
  #fil-activite.square-home {
    height: 240svh !important;
  }

  /* 8px legend, unreadable on a phone: the titles already name each colour. */
  #fil-activite .legend {
    display: none !important;
  }

  #fil-activite .scene-copy p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  #fil-activite .modules span {
    padding-top: 30px !important;
    font-size: 11px !important;
  }

  #fil-activite .bottom > span {
    font-size: 12px !important;
  }

  #fil-activite .bottom > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #6938cf;
    font-size: 13px !important;
    font-weight: 600;
  }

  #fil-activite .square-film-footer span {
    font-size: 12px !important;
  }
}

/* E-commerce « Entrez dans les coulisses » : le dashboard Lutins est dézoomé
   pour en montrer davantage d'un coup d'œil (release/ecommerce-admin.js
   l'affiche directement, utilisable sur place). */
.ec-page .admin-morph { --am-zoom: 0.6; }
/* Le cadre tient dans l'écran, en-tête du site compris : on voit tout d'un coup. */
.ec-page .admin-morph .am-frame { height: min(780px, calc(100svh - 120px)); }
.ec-page .am-admin iframe {
  width: calc(100% / var(--am-zoom));
  height: calc(100% / var(--am-zoom));
  transform: scale(var(--am-zoom));
  transform-origin: 0 0;
}

/* Sélecteur de langue (FR · EN · PT), posé dans l'en-tête des pages du noyau
   traduit par build/i18n/generer-langues.mjs. Il mène à la même page dans
   l'autre langue, sans redirection automatique. */
#pkh.pkh .pkh__langues {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
}

#pkh.pkh .pkh__langues a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 6px;
  border-radius: 4px;
  color: #a79fbc;
  text-decoration: none;
}

#pkh.pkh .pkh__langues a:hover,
#pkh.pkh .pkh__langues a:focus-visible {
  color: #fff;
}

#pkh.pkh .pkh__langues a[aria-current] {
  color: #fff;
  box-shadow: inset 0 -2px 0 #b08cff;
}

@media (max-width: 640px) {
  #pkh.pkh .pkh__langues {
    margin-right: 6px;
  }

  #pkh.pkh .pkh__langues a {
    min-width: 32px;
    min-height: 42px;
    padding: 0 4px;
  }
}

/* Pages anglaises et portugaises : les formations IA restent en français. */
.pkf__brand .pkf__formations {
  margin-top: 12px;
  font-size: 13px;
}

.pkf__brand .pkf__formations a {
  color: #c9bdf0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Accueil, bloc PropulAI : brique Formation avec son texte et le lien vers le catalogue (build/menu-formations.sh). */
.v3-tags .v3-brique-formation {
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 10px;
}
.v3-brique-formation a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
